/*Modal*/
#modal {
    top: 0;
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 99998;
    cursor: wait;
}

#modalBackground {
    height: 100%;
    width: 100%;
    background-color: #FFFFFF;
    opacity: 1;
    border-radius: 1px;
}

#modalContent {
    position: absolute;
    width: 100%;
    height: 200px; /* Increased height to fit spinner and text comfortably */
    margin: -100px 0px; /* Center vertically */
    top: 50%;
    text-align: center;
    background-color: transparent;
    z-index: 100000;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner-container {
    position: relative;
    height: 60px; /* Fixed height for the spinner container */
}

.spinner {
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 40px;
    width: 40px;
}

[class^=ball-] {
    position: absolute;
    display: block;
    left: 30px;
    width: 12px;
    height: 12px;
    border-radius: 6px;
    transition: all 0.5s;
    animation: circleRotate 4s both infinite;
    transform-origin: 0 250% 0;
}

@keyframes circleRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(1440deg);
    }
}
.ball-1 {
    z-index: -1;
    background-color: #448124;
    animation-timing-function: cubic-bezier(0.5, 0.3, 0.9, 0.9);
}

.ball-2 {
    z-index: -2;
    background-color: #00B0F0;
    animation-timing-function: cubic-bezier(0.5, 0.6, 0.9, 0.9);
}

.ball-3 {
    z-index: -3;
    background-color: #94297D;
    animation-timing-function: cubic-bezier(0.5, 0.9, 0.9, 0.9);
}

.ball-4 {
    z-index: -4;
    background-color: #333747;
    animation-timing-function: cubic-bezier(0.5, 1.2, 0.9, 0.9);
}

.ball-5 {
    z-index: -5;
    background-color: #1d87c8;
    animation-timing-function: cubic-bezier(0.5, 1.5, 0.9, 0.9);
}

.ball-6 {
    z-index: -6;
    background-color: #333747;
    animation-timing-function: cubic-bezier(0.5, 1.8, 0.9, 0.9);
}

.ball-7 {
    z-index: -7;
    background-color: #BBBE4A;
    animation-timing-function: cubic-bezier(0.5, 2.1, 0.9, 0.9);
}

.ball-8 {
    z-index: -8;
    background-color: #333747;
    animation-timing-function: cubic-bezier(0.5, 2.4, 0.9, 0.9);
}

.loading-message {
    color: #333; /* Text color */
    font-size: 16px;
    text-align: center;
    margin-top: 60px; /* Space it below the spinner */
    position: relative;
    z-index: 1; /* Ensures it's above the background but below spinner animation */
}