/* Intentar cargar la fuente SUASCS (tienes que asegurarte de tener el archivo ttf en la carpeta assets) */
@font-face {
    font-family: 'suascs';
    src: url('assets/suascs.ttf') format('truetype');
    /* Fallback en caso de que no exista el archivo aun */
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    font-family: 'Inter', 'Roboto', sans-serif;
}

#ui-container {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through to 3D canvas */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

#ui-container h1 {
    pointer-events: auto;
    /* Permitir clics sobre el título */
    margin: 0 0 10px 0;
    font-size: 38px;
    letter-spacing: 2px;
    font-weight: normal;
    font-family: 'suascs', 'Inter', sans-serif;
    color: #4F81BD;
    text-shadow: 0 0 10px rgba(79, 129, 189, 0.5), 2px 2px 4px rgba(0, 0, 0, 1);
    transition: all 0.3s ease;
}

#ui-container h1:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(79, 129, 189, 1), 2px 2px 4px rgba(0, 0, 0, 1);
}

#ui-container p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
    font-weight: 300;
}

/* Control de Música */
#music-control {
    margin: 0;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 15, 30, 0.6);
    border: 1px solid rgba(0, 188, 212, 0.4);
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

#music-control:hover {
    background: rgba(0, 188, 212, 0.25);
    border-color: rgba(0, 188, 212, 0.8);
    transform: translateY(-1px);
}

#music-icon {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Texto de Copyright */
#copyright-text {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: auto;
    transition: color 0.3s ease;
    max-width: 650px;
    line-height: 1.4;
    z-index: 1000;
}

#copyright-text:hover {
    color: rgba(255, 255, 255, 0.95);
}

/* Modales Globales (Contenido y QR) */
#content-modal,
#qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.4s ease;
}

#content-modal.hidden,
#qr-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: rgba(10, 15, 30, 0.85);
    border: 1px solid rgba(0, 188, 212, 0.5);
    border-radius: 12px;
    padding: 40px;
    width: 80%;
    max-width: 800px;
    /* Un poco más ancho para texto largo */
    max-height: 80vh;
    /* Máximo 80% de la altura de la pantalla */
    overflow-y: auto;
    /* Activar scroll vertical si el contenido excede la altura */
    color: white;
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.2);
    position: relative;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Opcional: Estilizar la barra de scroll para que combine con el diseño sci-fi */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(10, 15, 30, 0.5);
    border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 188, 212, 0.5);
    border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 188, 212, 0.8);
}

#content-modal.hidden .modal-content,
#qr-modal.hidden .modal-content {
    transform: scale(0.9);
}

.modal-content h2 {
    margin-top: 0;
    color: #00BCD4;
    font-weight: 300;
    letter-spacing: 1px;
    font-size: 32px;
}

.modal-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #00BCD4;
    transition: color 0.2s;
}

.close-btn:hover {
    color: white;
}

/* Animaciones para Splash Screen */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.radar-spinner {
    animation: spin 1s linear infinite;
}