header{   
    width: 100%;
    height: 150px;
      
    display: flex;   
    position: fixed;
    
    top: 0px;
    left: 0px;
    transition: .5s;   
}

header.rolagem{
    height: 120px;

    background-color: rgb(20, 20, 20);
}

header nav{
    width: 100%;    
    margin: 0px 10%;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    height: 85px;

    border-radius: 50px;
    background-color: var(--header-bg-a);
}

header a{
    text-decoration: none;
    color: white;
}

.logo{    
    height: 100px;
}

.nav-list {            
    list-style: none;
    display: flex;
}

.nav-list li{
    width: 100%;
    letter-spacing: 2px;
    margin-left: 82px;
    font-size: 20px;
    text-shadow: 3px 3px 5px rgb(0, 0, 0);
}

.mobile-menu{
    display: none;
    cursor: pointer;
}

.mobile-menu div{
    width: 32px;
    height: 2px;
    background: #fff;
    margin: 8px;
    transition: 0.3s;
}

@media (max-width: 500px) {

    body {
        overflow-x: hidden;
    }

    header{
        height: 13vh;
    }

    header.rolagem{
        height: 15vh; 
    }

    .logo{
        height: 70px;
    } 

    .nav-list{
        position: absolute;
        top: 15vh;
        right: 0;
        width: 50vw;
        height: 85vh;
        color: white;
        background-color: rgba(20, 20, 20, 0.651);
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
    }

    .nav-list li{
        opacity: 0;
    }

    .mobile-menu{
        display: block;
    }
}

.nav-list.active{
    transform: translateX(0);
}

@keyframes navLinkFade{
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to{
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu.active .line1 {
    transform: rotate(-45deg) translate(-8px, 12px);
}
.mobile-menu.active .line2 {
    opacity: 0;
}
.mobile-menu.active .line3 {
    transform: rotate(45deg) translate(-5px, 0px);
}






