/* Full-screen overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    opacity: 0;  /* Initially invisible */
    transition: opacity 0.3s ease-in-out; /* Smooth fade-in transition */
}
  

.dot-spinner {
    display: inline-block;
    position: relative;
}
  
.dot {
    width: 20px;
    height: 20px;
    margin: 0 10px;
    background-color: #fff;
    border-radius: 50%;
    animation: dot-bounce 1.2s infinite ease-in-out;
    display: inline-block;
    transform: scale(0.4);
}
  
.dot:nth-child(1) {
    animation-delay: 0s;
}
  
.dot:nth-child(2) {
    animation-delay: 0.2s;
}
  
.dot:nth-child(3) {
    animation-delay: 0.4s;
}
  
  /* Bounce animation */
@keyframes dot-bounce {
    0%, 100% {
        transform: scale(0.4);
    }
    50% {
        transform: scale(1);
    }
}
  
  /* Text below the spinner */
.loading-text {
    font-size: 1.5rem;  /* Set text size */
    color: #fff;        /* White color for visibility */
    margin-top: 20px;    /* Space between spinner and text */
    font-family: Arial, sans-serif;
    font-weight: bold;
}
  