/* --- VARIABLES DE COLOR (Estilo VS Code Dark) --- */ :root { --bg-color: #1e1e1e; --text-color: #d4d4d4; --accent-color: #007acc; --titulos-color: #4ec9b0; --border-color: #3b3b3b; --card-bg: #252526; --hover-bg: #2a2d2e; --success: #6a9955; --error: #f44747; --warning: #d7ba7d; } /* --- ESTILOS GENERALES --- */ body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-size: 1.1rem; line-height: 1.6; color: var(--text-color); background-color: var(--bg-color); margin: 2rem auto; max-width: 850px; padding: 0 20px; } h1 { color: var(--titulos-color); text-align: center; border-bottom: 2px solid var(--accent-color); padding-bottom: 10px; } /* --- SELECTOR Y BOTONES --- */ select, button { background-color: var(--card-bg); color: var(--text-color); border: 1px solid var(--border-color); padding: 10px 15px; border-radius: 4px; font-size: 1rem; cursor: pointer; transition: all 0.2s ease; } select:focus, button:hover { border-color: var(--accent-color); background-color: var(--hover-bg); } button#aleatoria { background-color: var(--accent-color); color: white; font-weight: bold; } /* --- TARJETA DE PREGUNTA --- */ .pregunta { background-color: var(--card-bg); border: 1px solid var(--border-color); padding: 2rem; margin-top: 2rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); } .pregunta p strong { color: var(--titulos-color); font-size: 1.2rem; display: block; margin-bottom: 1rem; } /* --- OPCIONES (Efecto lista de terminal) --- */ .opcion { display: block; padding: 12px 15px; margin: 8px 0; background: var(--bg-color); border: 1px solid transparent; border-radius: 5px; cursor: pointer; transition: 0.2s; } .opcion:hover { border-color: var(--accent-color); background: var(--hover-bg); } .opcion input[type="radio"] { margin-right: 12px; accent-color: var(--accent-color); } /* --- FEEDBACK Y RESULTADOS --- */ #resultado { margin: 20px 0; padding: 15px; border-radius: 5px; border: 2px solid var(--border-color); background: var(--bg-color); margin-bottom: 10px; } #feedback { margin-top: 1.5rem; padding: 10px; border-radius: 4px; text-align: center; font-family: 'Consolas', monospace; } /* --- ANIMACIÓN DE CARGA --- */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .pregunta { animation: fadeIn 0.3s ease-out; } .marcador-container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; background-color: var(--card-bg); border: 1px solid var(--border-color); border-left: 4px solid var(--accent-color); padding: 15px; margin-bottom: 20px; border-radius: 4px; font-family: 'Consolas', monospace; /* Fuente de código */ } .stat { font-size: 0.9rem; margin-right: 15px; } .verde { color: var(--success); font-weight: bold; } .rojo { color: var(--error); font-weight: bold; } .nota-actual { font-size: 1.2rem; color: var(--titulos-color); } .nota-actual strong { font-size: 1.5rem; border: 1px solid var(--titulos-color); padding: 2px 8px; border-radius: 4px; margin-left: 5px; } .supuesto-container { max-height: 200px; /* Para que no ocupe toda la pantalla */ overflow-y: auto; /* Si es muy largo, sale scroll */ border-radius: 4px; line-height: 1.4; } /* Contenedor de la pregunta */ .pregunta { position: relative; display: flex; flex-direction: column; min-height: 400px; /* Tamaño mínimo para que no salte el contenido */ padding-bottom: 80px; /* Espacio para que los botones no tapen el texto */ } /* Contenedor de los botones */ .acciones-quiz { position: absolute; bottom: 20px; left: 20px; right: 20px; /* Al darle left y right, el contenedor ocupa todo el ancho de la tarjeta */ display: flex; justify-content: space-between; /* ¡ESTA ES LA MAGIA! Uno a cada punta */ align-items: center; gap: 0; /* Ya no necesitamos gap fijo */ } /* Estilo de los botones (limpiamos el left/right manual que tenías) */ .btn-principal { background-color: var(--titulos-color); color: white; padding: 12px 25px; font-weight: bold; border: none; } .btn-principal:hover { background-color: var(--hover-bg); } .btn-secundario { background-color: transparent; border: 1px solid var(--border-color); color: var(--text-color); padding: 12px 20px; } .btn-secundario:hover { background-color: var(--hover-bg); } /* --- AJUSTES PARA MÓVIL --- */ @media (max-width: 600px) { body { font-size: 1.25rem; /* Aumenta la legibilidad */ padding: 0 15px; } h1 { font-size: 1.8rem; } .pregunta { padding: 1.5rem; } .opcion { font-size: 1.15rem; padding: 18px; margin: 12px 0; } .opcion input[type="radio"] { transform: scale(1.5); margin-right: 15px; } .marcador-container { flex-direction: column; align-items: flex-start; gap: 10px; } .nota-actual strong { font-size: 1.4rem; } .acciones-quiz { width: calc(100% - 40px); /* Ocupa todo el ancho menos el padding */ left: 20px; justify-content: space-between; /* Uno a cada lado */ bottop: 10px; /* Para que no se quede pegado al fondo */ } .pregunta { min-height: 450px; } }