@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: #e5e7eb;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.logo-frame {
    position: relative;
    background: white;
    width: 100%;
    max-width: 600px;
    padding: 3rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 8px solid #1a1a1a;
}

/* --- PERSONALIZACIÓN DEL TEXTO DE LA PREGUNTA --- */
#question-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    text-align: left;
    border-left: 5px solid #b91c1c; 
    padding-left: 15px;
}

#question-image-container {
    max-height: 130px;
    background: #f9fafb;
}

#question-image {
    max-height: 130px;
    margin: 0 auto;
}

/* --- ESTADOS DE LAS OPCIONES (CORRECTO/ERROR) --- */
.btn-option {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e5e7eb;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.btn-option:hover:not(:disabled) {
    border-color: #070707;
    background-color: #eff6ff;
    transform: scale(1.01);
}

/* Cuando el usuario acierta (Verde/Azul según tu preferencia, mantenemos azul marcial) */
.btn-option.correct {
    background-color: #0ed118 !important;
    color: white;
    border-color: #000000 !important;
}

.btn-option.correct.revealed {
    background-color: #fbbf24 !important;
    color: #1a1a1a !important;
    border-color: #d97706 !important;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

/* Cuando el usuario falla, marcamos su error en ROJO */
.btn-option.wrong {
    background-color: #b91c1c !important;
    color: white;
    border-color: #991b1b;
}


/* --- LOGO CONTAINER UNIFICADO --- */
.logo-container {
    width: 85px;
    height: 85px;
    background: white; /* Aseguramos fondo blanco */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #1a1a1a;
    box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 20;
}

.logo-container img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* -------------------------------- */

#quiz-screen {
    margin-top: 2.5rem;
}

#quiz-screen .flex.justify-between {
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
}

#quiz-screen h3 {
    font-size: 1.25rem;
    line-height: 1.1;
    margin-top: 4px;
    color: #1a1a1a;
}

#quiz-screen #question-counter {
    font-size: 0.65rem;
    white-space: nowrap;
    color: #b91c1c;
    font-weight: 800;
}

.bg-gray-100.p-2.rounded-lg {
    border-top: 3px solid #b91c1c;
}

.logo-bg-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(185, 28, 28, 0.1) 100%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.belt-stripe {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 50px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 5;
}

.belt-stripe::after {
    content: "GIMNASIO LEE • TAEKWONDO";
    color: #d4af37;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 1rem;
    text-align: center;
    padding: 0 15px;
}

.belt-ends {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 5;
}

.belt-tip {
    width: 60px;
    height: 80px;
    background: #1a1a1a;
    border-radius: 2px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.belt-tip.left { transform: rotate(17deg); }
.belt-tip.right { 
    transform: rotate(-17deg); 
    border-bottom: 12px solid #d4af37;
}

/* Colores de los cinturones según nivel 
1 - Amarillo
2 - Naranja
3 - Verde
4 - Azul
5 - Rojo
*/
.belt-1 .belt-tip { background-color: #eac42e; border-bottom: #eac42e; }
.belt-2 .belt-tip { background-color: #db6708; border-bottom: #db6708; }
.belt-3 .belt-tip { background-color: #009336; border-bottom: #009336; }
.belt-4 .belt-tip { background-color: #0757ec; border-bottom: #0757ec; }
.belt-5 .belt-tip { background-color: #cc0808; border-bottom: #cc0808; }


.main-btn {
    background: #1a1a1a;
    color: white;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.main-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.title-display {
    font-family: 'Oswald', sans-serif;
    color: #1a1a1a;
}

.copyright-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 0.65rem;
    color: #4e4f50;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: -0.5rem 0 0.5rem 0;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #b91c1c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Protección de imágenes contra copia en versión WEB */
#question-image {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    -webkit-touch-callout: none;
}

#question-image-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}