nav {
    position: fixed;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 60px;
    background: #ffffff33;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    gap: 1em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    transition: 0.5s ease-in-out;
}

nav.dark {
    background: #000000c4;
}

nav.darkText {
    color: black;
    background: #ffffff33;
}


nav div {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
}

nav .nav-button {
    font-weight: 500;
    font-family: 'Montserrat';
    padding: 0.4em 1.1em;
    background: #ffffff38;
    border-radius: 100vw;
    cursor: pointer;
}

nav .nav-button:hover {
    background: #ffffff60;
}

nav img.logo {
    margin-left: 2em;
    height: 28px;
}

nav h3 {
    margin: 0 20px 0 10px;
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
}

nav a {
    text-decoration: none;
    color: inherit;
}

nav ul a {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25em;
}

nav ul.desktop {
    height: 100%;
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-direction: row;
}

nav ul.desktop > li {
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-family: 'Montserrat';
    cursor: pointer;
}

nav ul.desktop > li:hover, nav > div:first-child > a:hover {
    background-color: #ffffff60;
}


nav button {
    background: none;
    border: none;
    height: 100%;
    aspect-ratio: 1;
    color: inherit;
}

#mobileNavOverlay {
    position: fixed;
    width: 100%;
    z-index: 20;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2em;
    transition: 0.2s ease-in-out;
    overflow: hidden;
}

#mobileNavOverlay.active {
    height: 100%;
}

#mobileNavOverlay:not(.active) {
    height: 0;
    padding: 0;
}

#mobileNavOverlay a {
    text-decoration: none;
    font-size: 30px;
    font-weight: 800;
    color: black;
}

#mobileNavOverlay a:hover {
    color: #0d8838;
}


@media screen and (max-width: 968px) {
    nav img.logo {
        margin-left: 1em;
    }

    nav > div:last-child {
        margin-right: 1em;
    }

    nav ul.desktop, nav div.desktop {
        display: none;
    }
}

@media screen and (min-width: 969px) {
    nav button {
        display: none;
    }
}
