/* Estilos Generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background-color: #f4f4f4;
}

/* Fondos */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/montana.jpg') no-repeat center center/cover;
    filter: blur(8px);
    z-index: -1;
}

.exam-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/assets/banner.png') no-repeat center center/cover;
    z-index: -1;
}

.question-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/shapebg.jpg') no-repeat center center/cover;
    filter: blur(8px);
    z-index: -1;
}

/* Estructura Principal */
.container-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: rgba(13, 132, 243, 0.9);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 750px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

/* Contenedor de Preguntas */
.questions-container {
    max-height: 65vh;
    overflow-y: auto;
    padding: 10px 5px;
    margin-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #1a3c5e #f4f4f4;
}

.questions-container::-webkit-scrollbar {
    width: 8px;
}

.questions-container::-webkit-scrollbar-track {
    background: #f4f4f4;
    border-radius: 4px;
}

.questions-container::-webkit-scrollbar-thumb {
    background-color: #1a3c5e;
    border-radius: 4px;
}

/* Preguntas */
.question {
    margin-bottom: 25px;
    padding: 18px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: rgba(249, 249, 249, 0.95);
    break-inside: avoid;
}

.question p {
    margin: 0 0 15px 0;
    font-weight: bold;
    color: #333;
    font-size: 17px;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Imágenes */
.question-image {
    max-width: 100%;
    max-height: 250px;
    height: auto;
    display: block;
    margin: 15px auto;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Opciones de Radio */
.question label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 4px;
}

.question label:hover {
    background-color: rgba(57, 255, 20, 0.1);
}

.question input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #1a3c5e;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    outline: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.question input[type="radio"]:checked {
    background-color: #39ff14;
    border-color: #39ff14;
    box-shadow: 0 0 10px #39ff14;
}

.question input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #ffea00;
    border-radius: 50%;
}

.question input[type="radio"]:checked + span {
    color: #1a3c5e;
    font-weight: bold;
}

/* Pie del Formulario */
.form-footer {
    position: sticky;
    bottom: -10px;
    background: linear-gradient(to top, rgba(13, 132, 243, 0.95) 70%, transparent);
    padding: 15px 0;
    margin-top: 20px;
    text-align: center;
    z-index: 2;
}

/* Botones */
button {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

button:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
}

/* No hay preguntas */
.no-questions {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .container-wrapper {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    .questions-container {
        max-height: 60vh;
    }
    
    .question {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .question p {
        font-size: 16px;
    }
    
    .question input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 800px;
    }
    
    .questions-container {
        max-height: 70vh;
    }
    
    .question-image {
        max-height: 300px;
    }
}