
/* NAVBAR */
.header{
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    justify-items: center;

}

header img{
    display: flex;
    width: 200px;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}


.navbar a{
    display: inline-flex;
    font-size: 18px;
    color: black;
    text-decoration: none;
    font-weight: 500;
    margin-left: 55px;
    transition: .5s;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
    margin-bottom: 10px;
}

header button{
    display: inline-flex;
    padding: 12px 28px;
    margin-left: 20px;
    border-radius: 40px;
    background-color: #EC6408;
    color: black;
    border: 2px solid black;
    cursor: pointer;
    animation: slideLeft 1s ease forwards;

}

header button:hover{
    box-shadow: 0 0 10px #EC6408;
}

.navbar a:hover,
.navbar a.active{
    color: #0ef;
    color: #EC6408;
}


@keyframes slideRight{
    0%{
        transform: translateX(-100px);
        opacity: 0;
    }
    100%{
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft{
    0%{
        transform: translateX(100px);
        opacity: 0;
    }
    100%{
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop{
    0%{
        transform: translateY(-100px);
        opacity: 0;
    }
    100%{
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes drop{
    0%{
        transform: translateY(-200px);
        opacity: 0;
    }
    100%{
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 912px) {
    .header {
        flex-direction: column;
        align-items: center;
        justify-content: center; 
        padding: 10px;
        text-align: center;
    }

    .logo {
        text-align: center; 
        margin-bottom: 20px;
    }

    .navbar a {
        display: inline-block;
        text-align: center; 
        margin-left: 0; 
        font-size: 15px;
        margin: 10px;
    }

    .header h1 {
        font-size: 25px;
    }
}

@media (max-width: 400px) {
    .navbar a {
        margin: 8px;
        font-size: 14px;
    }
}
