/* Spinner Container Styles */
#spinner-container {
    display: none; /* Hidden by default */
    position: fixed;
    pointer-events: auto;
    top: 0;
    left: 0;
    z-index: 9999;
    background-image: url('../assets/background-day.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#spinner-container.show {
    display: flex;
    opacity: 1;
}

/* Loading Text Styles */
.loading-text {
    font-family: Luckiest;
    display: inline-block;
    text-align: center;
    width: 100%;
    color: black;
    font-size: 60px;
    margin-bottom: 20px; /* Optional: add spacing below the text */
}
/* Spinner styles */
.lds-ring {
    display: inline-block;
    width: 100px;
    height: 100px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 100px;
    height: 100px;
    margin: 8px;
    border: 13px solid #fff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    font-family: Luckiest;
}

.error-modal {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.error-modal h2 {
    color: #ff3333;
    margin-bottom: 1rem;
}

.error-modal button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-family: Luckiest;
}

.error-modal button:hover {
    background-color: #45a049;
}