@media screen and (max-width: 600px) {

    nav {
        display: none;
    }
    nav.mobile {
        display: flex;
    }
    body {
        /*--nav-height: 65px;*/
        --nav-color: var(--body-color-semidark);
    }
}

nav.mobile {
    position: fixed;
    bottom: 0;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 0px 8px 8px rgba(0, 0, 0, 0.5);

    overflow: visible;
}
nav.mobile ul{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;

    padding: 0;

    height: 100%;
}

nav.mobile li{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    list-style-type: none;
    padding: 0;
    margin: 0;
    height: 100% !important;
}

nav.mobile a{
    text-decoration: none;
    color: var(--nav-text-color);

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    padding: 10px;

    height: calc(var(--nav-height) - 30px);
    width: calc(var(--nav-height) - 30px);

    border-radius: 50%;
}

nav.mobile a span{
    font-size: 30px;
    height: 30px;
    width: 30px;
}


nav.mobile a.highlighted{
    background-color: var(--body-color-light);
    height: calc(var(--nav-height) - 15px);
    width: calc(var(--nav-height) - 15px);
    transform: translate(0, -5px);
    box-shadow: 0px 0px 4px 4px rgba(50, 50, 50, 0.35);
}
nav.mobile a.highlighted span{
    font-size: 40px;
    height: 40px;
    width: 40px;
}

nav.mobile p{
    font-size: 10px;
    font-weight: bold;
    /*color: var(--text-color-grey);*/
    margin: 3px 0 0 0;
}
