﻿/* Preloader container */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it stays on top */
}

/* Spinner container with bars */
#spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animated bars container */
.bars {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100px; /* Total width for the 5 bars */
}

/* Individual animated bars */
.bar {
    width: 10px;
    height: 50px;
    background-color: #3498db; /* Blue color for the bars */
    animation: barAnimation 1.5s ease-in-out infinite;
}

/* Animation for each bar */
@keyframes barAnimation {
    0%, 100% {
        transform: scaleY(1); /* Normal size */
        opacity: 1;
    }

    50% {
        transform: scaleY(0.3); /* Shrink the bar */
        opacity: 0.5; /* Make it semi-transparent */
    }
}

/* Delay the animation for each bar to create the "sequential" effect */
.bar:nth-child(1) {
    animation-delay: 0s;
}

.bar:nth-child(2) {
    animation-delay: 0.2s;
}

.bar:nth-child(3) {
    animation-delay: 0.4s;
}

.bar:nth-child(4) {
    animation-delay: 0.6s;
}

.bar:nth-child(5) {
    animation-delay: 0.8s;
}
