#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;
}

#navbarend {
    visibility:visible;
    transition: opacity 0.2s ease,
                visibility 0.5s ease,
                top 0.5s ease;
    opacity: 1;
    top: 0;
}

#navbarend.scrolled {
    opacity: 0;
    visibility: hidden;
    top: -100px;
}

.transition-height {
    transition: height 0.5s ease-in-out;
  }

.transition-opacity {
transition: opacity 0.5s ease-in-out;
}

.slider-outer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Total height of the window */
}

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

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

.bar2 {
    width: 45px;
    height: 2px;
    background-color: #41789C;
    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);
}

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

.cross .bar2:nth-child(2) {
    transform: rotate(45deg) translate(-5px, -5px);
}
    
.slide-down {
    animation: slideDown 0.5s ease-out; /* Duration and timing function of the animation */
}

.slide-up {
    animation: slideUp 0.5s ease-in; /* Duration and timing function of the animation */
}

.selected-btn {
    background-color: #00D399;
    border-radius: 15px;
    border-color: white;
    border-width: 2px; /* Adjust border thickness according to your preferences */
}


@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-100%);
    }
}


#back {
    background-color: #ffffff;
    transition: background-color .4s ease;
}

#back.scrolled {
    background-color: #41789C;
    transition: background-color 1s ease;
}
