* {
    margin: 0;
    padding: 0;
}
body{
    font-family: 'Fira Sans', sans-serif;
    overflow-x: hidden;
}

nav{
    display: flex;
    color: white;
    font-weight: 500;
    background-color: salmon;
    justify-content: space-around;
    /* padding: 15px 0; */
    height: 50px;
    align-items: center;
}

nav .logo{
    font-family: 'Lobster', cursive;
    font-size: 20px;

}
nav ul{
    display: flex;
    width: 40%;
    list-style: none;
    justify-content: space-around;
}

nav ul li a{
    text-decoration: none;
    color: rgb(214, 190, 190);
    font-size: 20px;
    padding: 10px;
}

nav ul li a:hover{
    color: rgb(255, 255, 255);
}

/* active class */
.active{
    color: rgb(255, 255, 255);
}


/* hamburger menu */

.burger{
    display: none;
    justify-content: space-around;
    flex-direction: column;
    position: relative;
}

/* .burger input{
    width: 60px;
    height: 30px;
    position: absolute;
    opacity: 0;
    left: -12px;
    z-index: 1;
    cursor: pointer;
} */
    


.burger span{
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 2px;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.burger:hover{
    opacity: 1;
}


.push-1{
    transform: rotate(45deg) translate(5px, 4px);
    opacity: 0.5;
}

.push-2{
    transform: rotate(-45deg) translate(7px, -4.5px);
    opacity: 0.5;
}

.push-3{
    opacity: 0;
    scale: 0;
}

/* hamburger animation */

.burger span:nth-child(2){
    transform-origin: 0 0;
}

/* .burger input:checked ~ span:nth-child(2){
    transform: rotate(45deg) translate(-4px, 0px);
} */

.burger .p2{
    transform-origin: 0 100%;
}

/* .burger input:checked ~ span:nth-child(4){
    transform: rotate(-45deg) translate(-5px, 0px);
} */

/* .burger input:checked ~ span:nth-child(3){
    opacity: 0;
    scale: 0;
} */




@media screen and (max-width: 768px){
    nav ul{
        width: 50%;
    }
}

@media screen and (max-width: 568px){
    .burger{
        display: flex;
    }
    nav ul{
        flex-direction: column;
        background-color: rgba(250, 128, 114, 0.822);
        position: absolute;
        right: 0;
        top: 0;
        height: 100vh;
        z-index: -1;
        align-items: center;
        justify-content: space-evenly;
        width: 70%;
        transition: all 1s;
        transform: translateX(100%);
        opacity: 0;
    }

    nav ul.slide{
        transform: translateX(0);
        opacity: 1;
    }
}
    