.navigation {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: var(--dark);
    color: var(--light);
    justify-content: center;
    align-items: center;
    height: 4rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.navigation h1 {
    position: absolute;
    left: 4rem;
    font-family: 'Mayorice';
    text-shadow: 5px 5px 5px rgba(0,0,0,0.2);
}

nav ul {
    display: flex;
    text-decoration: none;
    list-style: none;
}

nav ul li {
    padding: 2rem;
    text-wrap: nowrap;
}

nav ul li a {
    text-decoration: none;
    /* color: var(--light); */
    color: white;
    font-family: 'Mayorice';
    font-size: 2rem;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 1px;
    background-color: white;
    transition: ease 0.05s;
    opacity: 0;
}

nav ul li a:hover::after {
    opacity: .8;
}

@media (max-width: 1200px)
{
    .navigation {
        justify-content: flex-end;

        nav {
            margin-right: 2rem;
        }   
    }
}

@media (max-width: 850px)
{
    .navigation {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
       
        height: 6rem;
        
        h1 {
            position: static;
            text-wrap: nowrap;
            margin-top: 4px;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        nav {
            margin-top: -1.4rem;
            margin-inline: 3rem;
            li a {               
                font-size: min(2rem, 5vw);  
            }
            
        }   
    }
}