nav {
    display: grid;
    grid-auto-flow: column;

    position: sticky;
    top: 5px;

    background-color: var(--accent-color-1);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    overflow: hidden;

    margin-bottom: 8px;
    z-index: 1;
}

.nav-item {
    position: relative;
    text-align: center;
    height: var(--nav-bar-height);
    line-height: var(--nav-bar-height);
}

nav a {
    color: white;
    font-weight: bold;
    text-decoration: none !important;
}

nav a:hover::after {
    content: " ]";
}
nav a:hover::before {
    content: "[ ";
}

nav input[type=checkbox] {
    display: none;
}

nav > div:first-child {
    display: none;
}

nav > div:first-child label {
    display: block;
    height: inherit;
    width: 100%;
}

nav > div:first-child svg {
    --btn-size: 24px;

    height: var(--btn-size);
    padding: calc((var(--nav-bar-height-mobile) - var(--btn-size)) / 2);
    fill: white;
}

.nav-item > div {
    width: 100%;
    height: inherit;
}

.nav-item > div > a {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 600px){
    nav {
        grid-auto-flow: initial;
        grid-template-columns: 1fr;
    }

    .nav-item {
        height: var(--nav-bar-height-mobile);
        line-height: var(--nav-bar-height-mobile);
        display: none;
    }

    nav > div:first-child {
        display: initial;
    }

    nav:has(input[type=checkbox]:checked) div {
        display: initial;
    }
}
