@charset "utf-8";

.loading-overlay {
    /* THIS IS THE FIX: Position it over the entire screen */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Center the dots within the overlay */
    display: flex; 
    justify-content: center;
    align-items: center;
    
    /* Visuals */
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
    -webkit-backdrop-filter: blur(5px); /* Safari support */
    backdrop-filter: blur(5px);
    z-index: 1000; /* Ensure it's on top of everything */
    
    /* Start hidden, control with JS */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.loading-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.loading-dots {
    position: relative; 
    display: flex;   
}

.loading-dots .dot {
    position: relative;
    width: 20px;
    height: 20px;
    background: #00897B;
    margin: 0 10px; /* Adjusted margin for better spacing */
    border-radius: 50%;
    animation: dotanim 1s infinite linear;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes dotanim {
    0% {
        transform: scale(0.2);
    }
    10% {
        transform: scale(1);
    }
    50%,100% {
        transform: scale(0.2);
    }
}