header{
    width: 100%;
    height: 80px;
    padding-inline: 30px;

    background-color: var(--gray-700);

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;

    position: sticky;
    top: 0;
    z-index: 1000;
}

header a{
    display: flex;
    align-items: center;
    justify-content: center;
}

header img{
    height: 30px;
    filter: drop-shadow(5px 5px var(--primary-dark));
    transition: filter 150ms ease-out;
    cursor: pointer;
    position: relative;
}

@keyframes appear {
    0%{
        background-color: red;
        display: none;
    }
    100%{
        background-color: rgb(9, 255, 0);
        display: none;
    }
}

header img:hover{
    filter: drop-shadow(0 0 var(--primary-dark));
}

header ul{
    list-style-type: none;
    
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

header ul li{
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 150ms ease-out;

}

header ul li:hover{
    background-color: var(--gray-600);
}

header ul li a{
    width: 100%;
    height: 100%;
    padding-inline: 15px;

    text-decoration: none;

    text-transform: uppercase;
    font-size: 30px;
    font-family: "Smooch Sans", sans-serif;
    font-weight: 300;
    color: var(--gray-200);

    transition: all 150ms ease-out;

    display: flex;
    align-items: center;
    justify-content: center;
}

header ul li a.on{
    font-weight: 400;
    color: var(--gray-100);
}

header ul li:hover a{
    color: var(--gray-100);
}

header img.animate{
    animation: logo 150ms forwards ease-out;
}

@keyframes logo {
    0%{
        transform: scale(90%,90%)
    }
    100%{
        transform: scale(100%,100%)
    }
}

header div.click{
    position: absolute;

    opacity: 0;

    text-transform: uppercase;
    color: var(--primary-dark);
    font-family: "Smooch Sans", sans-serif;
    font-weight: 800;
    font-size: 25px;

    pointer-events: none;
    user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
}

header div.click.animate{
    animation: up 500ms forwards ease-out;
}


@keyframes up {
    0%{
        transform: translateY(0%);
        opacity: 1;
    }
    100%{
        transform: translateY(-100%);
        opacity: 0;
    }
}

#hamburguer-menu{
    display: none;
}

#links{
    height: 100%;
}

@media (max-width: 800px) {

    header img{
        height: 25px;
        filter: drop-shadow(4px 4px var(--primary-dark));
        padding-left: 15px;
    }    

    header ul{
        height: auto;

        flex-direction: column;
        align-items: start;
        justify-content: start;
    }    
    
    header ul li{
        width: 100%;
        height: 60px;
    }

    header ul li a{
        justify-content: start;
    }
    header ul li a:hover{
        background-color: var(--gray-500);
    }

    #links{
        width: 250px;
        height: 100svh;
        padding-top: 60px;
                
        position: absolute;
        z-index: 10;
        top: 0px;
        right: 0px;
        opacity: 0;
        
        background-color: var(--gray-600);
        
        transition: all 300ms ease-in-out;
        pointer-events: none;
    }
    
    header.open #links{
        pointer-events: visible;
        right: 0%;
        opacity: 1;
    }

    header{
        height: 60px;
        padding: 0px;
    }
    
    #hamburguer-menu{
        height: 60px;
        width: 60px;
        
        appearance: none;
        background-color: transparent;
        outline: none;
        border: none;

        position: relative;
        z-index: 12;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    #hamburguer-menu:active{
        background-color: var(--gray-500);
    }

    header.open #hamburguer-menu{
        width: 60px;
        padding-inline: 15px;
        justify-content: space-between;
    }

    #hamburguer-menu h3{
        display: none;
        font-size: 30px;
        font-weight: 300;
        opacity: 0;
        transition: all 300ms ease-in-out;
    }

    header.open #hamburguer-menu h3{
        display: none;
        opacity: 1;
    }

    #hamburguer-menu-icon{
        height: 3px;
        width: 35px;

        background-color: var(--gray-100);

        position: relative;

        transition: all 150ms ease-out;
    }

    #hamburguer-menu-icon::before, #hamburguer-menu-icon::after{
        content: '';
        background-color: var(--gray-100);

        width: 100%;
        height: 3px;
        
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        transition: all 150ms ease-out;
    }

    #hamburguer-menu-icon::before{
        top: -10px;
    }

    #hamburguer-menu-icon::after{
        top: 10px;
    }

    header.open #hamburguer-menu-icon{
        transform: rotateZ(45deg);
        width: 25px;
    }
    
    header.open #hamburguer-menu-icon::before{
        transform: translateX(-50%) rotateZ(90deg);
        opacity: 0;
        top: 0px;
    }

    header.open #hamburguer-menu-icon::after{
        transform: translateX(-50%) rotateZ(90deg);
        top: 0px;
    }

}