.header nav ul{
    display: flex; 
}

.header nav ul li a{
    font-size: 2rem;
    font-weight: 500;
    padding: 10px 30px;
    border-radius: 50px;
    transition: .3s ease-in-out;
}

.header nav ul li a:hover{
    color: #fff;
    background-color: coral;
}

/* RESPONSIVE */

.header nav label{
    display: block;
    margin-left: 140px;
}

.header .menu{
    display: none;
    width: 60px;
    height: 60px;
}

.header .hamburguer{
    background-color: #000;
    position: relative;
    display: block;
    width: 30px;
    height: 2px;
    top: 29px;
    left: 15px;
    transition: .5s ease-in-out;
}

.header .hamburguer:before, .header .hamburguer:after{
    background-color: #000;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    transition: 0.2s ease-in-out;
}

.header .hamburguer:before{
    top: -10px;
}

.header .hamburguer:after{
    top: 10px;
}

.header input{
    display: none;
}

.header input:checked ~ label .hamburguer{
    transform: rotate(45deg);
}

.header input:checked ~ label .hamburguer:before{
    transform: rotate(90deg);
    top: 0;
}

.header input:checked ~ label .hamburguer:after{
    transform: rotate(90deg);
    top: 0;
}



@media(max-width: 900px){


    .header .menu{
        display: block;
    }

    .header nav ul{
        display: block;
        width: 200px;
        padding: 20px;
        background-color: #fff;
        animation: hide-item .4s forwards;
    }

    @keyframes emerge {
        from { 
            transform: scale(.9);
            opacity: 0;
        }
        to{
            opacity: 1;
            visibility: visible;
        }
    }

    @keyframes hide-item {
        from {
            opacity: 1;
        }
        to{
            opacity: 0;
            transform: scale(.9);
            visibility: hidden;
        }
    }

    .header nav{
        position: fixed;
        top: 8px;
        right: 16px;
        z-index: 1;
    }

    .header nav ul a{
        text-align: center;
        padding: 20px;
        display: block;
    }

    .header input:checked ~ ul{
        animation: emerge .5s;
    }
}
