/*#region Unity WebGL Canvas*/
/* Local Inter (minimal: only 400 + 600). Files in ./fonts/Inter/: Inter-Regular.woff2, Inter-SemiBold.woff2 */
@import url('./fonts/Inter/inter-min.css');

canvas {
    display: block;
    background-color: #fff;
}

body {
    margin: 0;
    background-color: #fff;
    font-family: "Inter", sans-serif;
    font-weight: 600;
}

#unity-block {
    position: relative;
}

#unity-container {
    width: 100%;
    height: 100%;
    position: relative;
}

#unity-canvas {
    margin: auto;
    width: 100vw;
    height: calc(100vw * 1080 / 1920); /* Mantener la relación de aspecto 1920:1080 */
    max-width: 100vw; /* Limitar el ancho máximo al 100% del ancho de la ventana */
    max-height: 100vh; /* Limitar la altura máxima al 100% de la altura de la ventana */
    background: #fff; /* Establecer un color de fondo blanco para el canvas */
}

/* Media query para asegurar que el canvas no desborde en dispositivos de pantalla alta */
@media (min-aspect-ratio: 16/9) {
    #unity-canvas {
        width: calc(100vh * 1920 / 1080); /* Ajustar el ancho para mantener la relación de aspecto 1920:1080 */
        height: 100vh; /* Limitar la altura al 100% de la altura de la ventana */
    }
}

.hide-class {
    display: none;
}

#loading-cover {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-loading-bar {
    flex: 1 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#unity-logo {
    text-align: center;
    width: 512px;
}

#unity-logo img {
    max-width: 80%;
}

#unity-progress-bar-empty {
    width: 80%;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid #000;
    padding: 2px;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: #000;
}

.light #unity-progress-bar-empty {
    border-color: #000;
}

.light #unity-progress-bar-full {
    background: #000;
}

#unity-fullscreen-button {
    position: absolute;
    display: flex;
    bottom: 20px;
    right: 20px;
    align-items: center;
    justify-content: center;
    color: #fff;
    width: 50px;
    height: 50px;
    background-color: #000;
    background-size: contain;
    cursor: pointer;
}

#unity-fullscreen-button img {
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
}

.spinner,
.spinner:after {
    border-radius: 50%;
    width: 4em;
    height: 4em;
}

.spinner {
    margin: 10px;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: .5em solid rgba(255, 255, 255, 0.2);
    border-right: .5em solid rgba(255, 255, 255, 0.2);
    border-bottom: .5em solid rgba(255, 255, 255, 0.2);
    /* border-left: .5em solid #e51c6d; Original Alternova*/
    border-left: .5em solid #00a1d1;
    animation: spinner-spin 1.1s infinite linear;
}

@keyframes spinner-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/*#endregion*/
