﻿.loading-overlay-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

:root {
    --spinner-color: #333333;
    --spinner-size: 80px;
}


.sk-chase-spinner {
    width: var(--spinner-size);
    height: var(--spinner-size);
    position: relative;
    animation: sk-chase 2.5s infinite linear both;
}

.sk-dot {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    animation: sk-chase-dot 2.0s infinite ease-in-out both;
}

    .sk-dot::before {
        content: '';
        display: block;
        width: 25%; 
        height: 25%;
        background-color: var(--spinner-color);
        border-radius: 100%;
        animation: sk-chase-dot-before 2.0s infinite ease-in-out both;
    }

    .sk-dot:nth-child(1) {
        animation-delay: -1.1s;
    }

    .sk-dot:nth-child(2) {
        animation-delay: -1.0s;
    }

    .sk-dot:nth-child(3) {
        animation-delay: -0.9s;
    }

    .sk-dot:nth-child(4) {
        animation-delay: -0.8s;
    }

    .sk-dot:nth-child(5) {
        animation-delay: -0.7s;
    }

    .sk-dot:nth-child(6) {
        animation-delay: -0.6s;
    }

    .sk-dot:nth-child(1)::before {
        animation-delay: -1.1s;
    }

    .sk-dot:nth-child(2)::before {
        animation-delay: -1.0s;
    }

    .sk-dot:nth-child(3)::before {
        animation-delay: -0.9s;
    }

    .sk-dot:nth-child(4)::before {
        animation-delay: -0.8s;
    }

    .sk-dot:nth-child(5)::before {
        animation-delay: -0.7s;
    }

    .sk-dot:nth-child(6)::before {
        animation-delay: -0.6s;
    }

    .sk-dot:nth-child(7) {
        animation-delay: -0.5s;
    }

    .sk-dot:nth-child(8) {
        animation-delay: -0.4s;
    }

    .sk-dot:nth-child(9) {
        animation-delay: -0.3s;
    }

    .sk-dot:nth-child(10) {
        animation-delay: -0.2s;
    }

    .sk-dot:nth-child(11) {
        animation-delay: -0.1s;
    }

    .sk-dot:nth-child(12) {
        animation-delay: 0s;
    }

    .sk-dot:nth-child(7)::before {
        animation-delay: -0.5s;
    }

    .sk-dot:nth-child(8)::before {
        animation-delay: -0.4s;
    }

    .sk-dot:nth-child(9)::before {
        animation-delay: -0.3s;
    }

    .sk-dot:nth-child(10)::before {
        animation-delay: -0.2s;
    }

    .sk-dot:nth-child(11)::before {
        animation-delay: -0.1s;
    }

    .sk-dot:nth-child(12)::before {
        animation-delay: 0s;
    }

/* Definición de las animaciones clave */
@keyframes sk-chase {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-chase-dot {
    80%, 100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-chase-dot-before {
    50% {
        transform: scale(0.4);
    }

    100%, 0% {
        transform: scale(1.0);
    }
}

/* Spinner inicial mientras se descargan los archivos de WASM */
#app-container {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

    #app-container:empty::before {
        content: "";
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 150px;
        height: 150px;
        border: 50px solid #f3f3f3;
        border-top: 5px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
