nav {
    display: flex;
    flex-direction: row;
    gap: 10px;

    align-items: center;

    padding: 20px;
    padding-left: 30px;
    padding-right: 30px;

    transition: background-color .1s ease-in-out;
}

nav span[desktop] {
    @media screen and (max-width: 888px) {
        display: none;
    }
}

nav[menu-visible="true"] {
    background-color: var(--container-color);
}

.nav-items {
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;

    display: flex;
    flex-direction: row;
    gap: 10px;

    align-items: center;
}

.nav-items a {
    border-radius: 10px;

    transition: background-color 0.4s, outline 0.1s;
}
.nav-items a:focus-visible {
    color: var(--accent-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.nav-links-title {
    user-select: none;
}
.nav-links-list {
    display: flex;
    flex-direction: row;
    gap: 20px;

    @media screen and (max-width: 888px) {
        display: none;
    }
}

.nav-under,
.footer-above,
.footer-under {
    background-color: var(--control-background-color);
    height: 2px;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-item {

}

#buton-menus-toggle {
    background: none;
    cursor: pointer;

    color: inherit;
    outline: none;
    border: none;

    font-size: inherit;
    border-radius: 10px;

    padding-left: 20px;
    padding-right: 20px;
    height: 100%;

    transition: background-color 0.4s, outline 0.1s;
}
#buton-menus-toggle:hover {
    background-color: var(--container-color);
}
#buton-menus-toggle:focus-visible {
    color: var(--accent-color);
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

#nav-menus {
    max-height: 0; /* collapsed */
    opacity: 0;
    width: 100vw;
    background-color: var(--container-color);

    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;

    position: absolute;
    z-index: 10000;
    box-shadow: 0px 2px 2px 0px var(--text-color);

    overflow-x: hidden;
    overflow-y: auto;

    transition: max-height 0.2s ease-out, opacity 0.1s ease-in-out;
}

#nav-menus[menu-visible="true"] {
    opacity: 1;
    max-height: 500px; /* or a value bigger than your menu height */
}

#nav-menus a {
    padding: 20px;
    padding-left: 50px;
    color: inherit;
    display: flex;
    flex-direction: column;
    
    position: relative;

    transition: background-color 0.25s, outline 0.1s;
}
#nav-menus a::before {
    content: '';
    position: absolute;
    left: 20px;
    width: 20px;
    height: 20px;
    background-color: currentColor; /* <-- uses text color */
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><polyline points="9 18 15 12 9 6" stroke="black" stroke-width="2" fill="none"/></svg>') no-repeat center;
    -webkit-mask-size: contain;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><polyline points="9 18 15 12 9 6" stroke="black" stroke-width="2" fill="none"/></svg>') no-repeat center;
    mask-size: contain;
}
#nav-menus a:hover {
    color: var(--accent-color);
    background-color: var(--control-background-color-fifth);
}
#nav-menus a:focus-visible {
    color: var(--accent-color);
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}