nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    /* padding: 16px; */
    background-color: var(--a-color);
    display: flex;
    justify-content: space-between;
    /*z-index: 1000; This may not have a z-index to make menu close button show over overlay*/
    box-shadow: 0px 7px 7px 0px rgba(0, 0, 0, 0.2);
}

#nav-logo {
    margin: 0 2vw;
    padding: 0 1vw;
    height: 100%;
}


#navbar-links {
    display: flex;
    height: 100%;
    padding-right: 3vw;
    gap: 2em;
    align-items: center;
}

.nav-mobile-only {
    display: none;
}

@media only screen and (max-width: 860px) { /* De knoppen komen al over het logo vanaf 860px*/
    #navbar-links>* :not(.mobile-only) {
        display: none;
    }

    .nav-mobile-only {
        display: block;
    }

    #mobile-menu-overlay {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        position: absolute;
        left: 0;
        top: 0;
        height: 0;
        width: 100vw;
        
        /* voorkomt dat de knoppen al op het scherm staan */
        overflow:hidden;

        z-index: 2000;
        align-items: center;
        justify-content: center;
        
        /* Laat de overlay gradueel over het scherm groeien */
        transition: all 0.3s ease;

        background-color: var(--background-color);
    }

    #open-close-button {
        /* Zorg dat de sluitknop boven de overlay wordt getoond */
        position: relative;
        z-index: 3000;
    }

    #mobile-menu-overlay.open {
        height: 100vh;
    }
}

#nav-link {
    flex: 0 1 10em;
}

.home-link {
    width: 0;
}

.nav-button {
    height: 3rem;
    width: 9rem;
    font-family: "New Computer Modern", serif;
}

.language-switch {
    height: 3rem;
    width: 3rem;
    font-size: 100%;
}