/* Main styles for the quiz application */

/* Hide elements until Alpine initializes */
[x-cloak] {
    display: none !important;
}

/* Initial styling based on URL parameter */
.initial-daria {
    background-color: #f1eeeb;
    color: #182947;
    font-family: "Montserrat", Helvetica, Arial, Lucida, sans-serif;
}

.initial-default {
    background-color: #111827;
    color: #f3f4f6;
}

/* Loading animation */
#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #006666;
    animation: spin 1s ease-in-out infinite;
}

.initial-default .spinner {
    border-top-color: #3b82f6;
}

.initial-daria .spinner {
    border-top-color: #006666;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fade-out {
    opacity: 0;
}
