@charset "utf-8";
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 25px;
}

.option {
    text-align: left;
    margin-bottom: 15px;
}

.option input[type="radio"] {
    margin-right: 10px;
}

.option label {
    font-size: 1.1em;
    color: #555;
}

button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.results-link {
    margin-top: 25px;
    font-size: 0.9em;
}

.results-link a {
    color: #007bff;
    text-decoration: none;
}

.results-link a:hover {
    text-decoration: underline;
}

/* Estilos para la página de resultados */
.results-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.results-container h2 {
    color: #333;
    margin-bottom: 25px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555;
}

.result-bar-container {
    flex-grow: 1;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin: 0 15px;
    overflow: hidden; /* Asegura que la barra no se salga */
}

.result-bar {
    height: 100%;
    background-color: #28a745; /* Color de la barra de progreso */
    border-radius: 5px;
    text-align: right; /* Alinea el porcentaje a la derecha si está dentro */
    color: white; /* Color del texto del porcentaje */
    line-height: 20px; /* Centra el texto verticalmente */
    padding-right: 5px; /* Pequeño padding para el texto */
    box-sizing: border-box; /* Incluye padding en el width */
}

.result-percentage {
    font-weight: bold;
    color: #333;
    min-width: 40px; /* Asegura que el porcentaje tenga espacio */
    text-align: right;
}

.back-link {
    margin-top: 30px;
    font-size: 0.9em;
}

.back-link a {
    color: #007bff;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}/* CSS Document */

