/*Header*/
header {
    margin: auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;    
    z-index: 100;
    background: rgba(2, 0, 0, 0.7);
    padding: 1rem 5%;
    top: 0;
    left: 0;
    transition: height 5s ease-in-out, box-shadow 0.4s ease-in-out, top 0.2s ease-in-out;
    position: fixed;
    box-sizing: border-box;
}

#check{
    right: 8%;
    position: absolute;
    display: none;
    
}

.icons{
    position: absolute;
    right: 5%;
    font-size: 2.8rem;
    color: #fff;
    cursor: pointer;
    display: none;
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    margin-left: 1%;
    text-decoration: none; 
    color: white;
    cursor:default;
    z-index: 2;
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.logo.animate{
    opacity: 1;
    transform: translateX(0);
}

.navbar a {
    margin: 0 10px; 
    text-decoration: none; 
    color: white;
    font-size: 1rem;
    margin-left: 2rem;
    font-weight: 500;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
}
.navbar.animate a{
    opacity: 1;
}

.navbar a:hover{
    color: var(--dark-blue)
}

@media (max-width: 992px){
    .header{
        padding :  1rem 4%;
    }
}

@media (max-width: 830px){
    .icons{
        display: inline-flex;
    }

    #check:checked~.icons #menu-icon{
        display: none;
    }
    
    .icons #close-icon{
       display: none; 
    }

    #check:checked~.icons #close-icon{
        display: block;
    }
    .navbar{
        position: absolute;
        top:100%;
        left:0;
        width: 100%;
        height: 0;
        opacity: 1;
        background: rgba(0,0,0,.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        overflow: hidden;
        transition: .3s ease;
    }
    header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(2, 0, 0, 0.5);

    }
    #check:checked~.navbar{
        height: 17.7rem;
    }
    .navbar a{
        display: block;
        font-size: 1.1rem;
        margin: 1.5rem 0;
        text-align: center;
        transform: translate(-50px);
        transition: .3s ease;
    }

    #check:checked~.icons .navbar a{
        transform: translateY(0);
        transition-delay: calc(.15s * var(--i));
    }
}


/*Header*/