/*NAV STYLING*/
header{
    display: flex;
    height: 6rem;
    padding: 0.5rem;
}
header *  {
    height: 100%;
} 
nav {
    width: 100%;
}
nav ul{
    padding: 0 1rem;
    display: flex;
    justify-content: center;
}
nav a{
    margin: 0 3vw;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
}
nav li{
    list-style: none;
    text-align: center;
    color: black;
    font-size: 1.6rem;
    height: auto;
}
nav a:hover{
    font-weight: 500;
}
header input[type="checkbox"], .hamburger-lines{
   display: none;
}



@media only screen and (max-width: 800px) {
    nav{
        transform: translateX(100%);
        position: fixed;
        z-index: 100;
        top: 5rem;
        right: 0;
        height: 5rem;
        padding: 0.4rem 0;
        display: inline-flex;
        flex-direction: column;
        width: 60vw;
        height: 30rem;
    }
    nav ul{
        display: inline-flex;
        flex-direction:column;
        align-items:  left;
        position:fixed;
        height: 30rem;
        width: 60vw;
        background-color: hsl(0, 0%, 100%, 90%);
        padding: 1rem 0;

    }
    nav a{
       margin:0;
       width: 70%;
    }

    nav a:hover{
        border-bottom: 1px solid black;
    }

    header input[type="checkbox"], .hamburger-lines {
        display: block;
    }

    header input[type="checkbox"] {
        position: fixed;
        height: 23px;
        width: 35px;
        top: 17px;
        right: 20px;
        z-index: 100;
        opacity: 0;
    }

    .hamburger-lines {
        display: block;
        height: 23px;
        width: 35px;
        position: fixed;
        top: 17px;
        right: 20px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .line {
        display: block;
        height: 4px;
        width: 100%;
        border-radius: 10px;
        background: #333;
    }
    .line1 {
        transform-origin: 0% 0%;
        transition: transform 0.4s ease-in-out;
    }
        
    .line2 {
        transition: transform 0.2s ease-in-out;
    }
        
    .line3 {
        transform-origin: 0% 100%;
        transition: transform 0.4s ease-in-out;
    }
    header input[type="checkbox"]:checked ~ .navbar {
        transform: translateX(0);
    }
        
    header input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
        transform: rotate(35deg);
    }
        
    header input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
        transform: scaleY(0);
    }
        
    header input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
        transform: rotate(-35deg);
    }


}
