/*#region Unity WebGL Canvas*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

canvas {
    display: block;
    background-color: #fff;
}


#unity-block {
    position: relative;
}

body {
    margin: 0;
    background-color: #fff;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#unity-container {
    position: relative;
    display: inline-block;
}

#unity-canvas {
    display: block;
    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 */
    position: relative;
}

/* 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;
    min-width: 512px;
    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;
    min-width: 512px;
}

#unity-logo {
    text-align: center;
    width: 512px;
}

#unity-logo img {
    max-width: 80%;
}


#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;
    z-index: 10;
    pointer-events: auto;
}

#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: 8em;
    height: 8em;
}

.spinner {
    margin: 20px;
    font-size: 16px;
    position: relative;
    text-indent: -9999em;
    border-top: .6em solid rgba(0, 161, 209, 0.2);
    border-right: .6em solid rgba(0, 161, 209, 0.2);
    border-bottom: .6em solid rgba(0, 161, 209, 0.2);
    border-left: .6em solid #00a1d1;
    animation: spinner-spin 1.1s infinite linear;
}

@keyframes spinner-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/*#endregion*/
