@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body{
    min-height: 110vh;
    background-color: white;
}
nav{
    width: 100%;
    position: fixed;
    background-color: #f8fcff;
    height: 6.5rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 0px 32px black;
}

nav div ul{
    display: flex;
    list-style-type: none;
}


nav div ul li{
    padding-left: 3rem;
}
nav div ul li a{
    font-size: 1.3rem;
    font-family: "Jost", sans-serif;
    color: #05043a; 
    position: relative;
    text-decoration: none;
}

.logo{
    height: 5rem;
}

#hamburger{
    display: none;
}

main{
    min-height: 100vh;
}

@media only screen and (min-width: 850px ){


nav li a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background-color: #dda815;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .2s ease-in-out;
  }
  
  nav li a:hover::before {
    transform-origin: left;
    transform: scaleX(1);
  }
}
@media only screen and (max-width: 850px ){
    nav{
        justify-content: space-around;
        padding: 0.9rem;
    }
    #hamburger{
        display: block;
        width: 38px;
        transition: 0.2s;
    }
   #hamburger li{
    list-style-type: none;
    background-color: #05043a;
    margin: 4px;
    width: 100%;
    height: 5px;
    transition: all 0.2s ease;
    border-radius: 2px ;
   }
   
   #hamburger.open li:nth-child(1){
        transform: translateY(9px) rotateZ(-45deg);
   }
   #hamburger.open li:nth-child(3){
    transform: translateY(-9px) rotateZ(45deg);    
    }   
    #hamburger.open li:nth-child(2){
        background-color: rgba(0, 0, 0, 0);
   }
   
    nav div ul{
        height: 100%;
        position: fixed;
        top: 0;
        right: -100%;
        display: block;
        background-color: #f8fcff;
        box-shadow: 0 16px 16px rgba(0, 0, 0, 0.425); /* x-offset, y-offset, blur, color */
        transition: 0.2s;
        transform: translateY(6.5rem);
    }
    nav div ul li{
        padding-left: 0.4rem;
        padding-right: 0.4rem;
        margin: 0.9rem;
        text-decoration: underline #dda815 1.5px;
    }
    .logo{
        height: 4.5rem;
    }
    nav li a:hover{
        background-color: #05043a;
        color: #f8fcff;
        text-decoration: none;
    }
}
