#navbar {
    visibility: hidden;
    transition: opacity 0.2s ease,
                visibility 0.5s ease,
                top 0.5s ease;
    opacity: 0;
    top: -100px;
}

#navbar.scrolled {
    opacity: 1;
    visibility: visible;
    top: 0px;
}

.bars-container {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 35px;
    height: 2px;
    background-color: #ffffff;
    opacity: .5;
    margin: 6px 0;
    transition: transform 0.3s ease;
}

.cross .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.cross .bar:nth-child(2) {
    transform: rotate(45deg) translate(-5px, -5px);
}

@keyframes slideInDown {
    from {
        transform: translateY(-10%);
    }
    to {
        transform: translateY(0);
    }
    }

    .animate-slideInDown {
        animation: slideInDown 0.5s ease-out;
    }