header nav {
    z-index: 9999;

    display: flex;
    position: sticky;
    top: 0;
    justify-content: space-between;

    color: var(--primary-1);

    padding: 0 1rem;
    border-radius: 2rem;
} 

@keyframes nav-scroll-effect {
    0% {
        box-shadow: none;
        border: none;
        border-radius: 0;
        width: 100%;
    }
    100% {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border: 2px solid rgba(88, 88, 88, 0.822);
        border-radius: 2rem;
        width: 80%;
    }
}

header {
    z-index: 10000;
    position: sticky;
    top: 0;
    padding: 1rem;
}

header > div {
    z-index: -1;

    margin: auto;

    background-color: var(--secondary-1);
    border-radius: 2rem;

    animation: nav-scroll-effect ease forwards;
    animation-timeline: scroll(y);
    animation-range: entry 0% entry 10%;
}

#nav-mobile {
    display: none;

}

.nav {
    overflow: hidden;
}

.mobile-nav {
    display: none;
    transition: 0.5s;
    flex-direction: column;
    position: absolute;
}

#nav-mobile:checked + .nav .mobile-nav {
    display: flex;

    position: absolute;
    right: 1rem;
    top: 8rem;
    
    background-color: var(--secondary-3);
    border-radius: 1rem;

    font-size: 1.4em;
    opacity: 1;
}


.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 1rem;
    color: white;
}

.bar {
    height: 2px;
    width: 20px;
    background-color: white;
    margin: 2px 0;
}

@media (min-width: 600px) {
    .mobile-nav {
        display: flex;
        flex-direction: row;
        position: relative;
    }

    #nav-mobile {
        display: none;
    }

    .hamburger {
        display: none;
    }

    header label {
        position: absolute;
    }
}

header ul {
    padding: 0;
    margin: 0;
    display: inline-flex;
}

header ul.align-right {
    flex-direction: row-reverse;
}

header li {
    display: inline-flex;
    list-style-type: none;
}

header li a {
    color: var(--primary-1);
    text-decoration: none;
    padding: 1rem;
}

header li.home {
    flex-direction: column;
}