body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

#welcome-screen, #form-container, #thank-you-screen {
    display: none;
}

button, a {
    text-decoration: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 20px;
    margin: 8px 0;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #0056b3;
}

#prev-button {
    background-color: #ccc;
    color: #333;
    border: none;
    border-radius: 50%;
    padding: 10px;
    font-size: 16px;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#prev-button i {
    font-size: 18px;
}

#timer-message {
    margin-top: 10px;
    font-size: 16px;
    color: #555;
}

#timer-message i {
    margin-right: 5px;
}

input {
    width: 95%;
    padding: 10px;
    font-size: 18px;
    border: none;
    border-bottom: 1px solid #007bff;
    margin-top: 10px;
    outline: none;
}

#question-container {
    margin-top: 20px;
}

#question-text {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: bold;
    padding-bottom: 12px;
}

#answer-instructions {
    text-align: left;
}

/* Styles for custom elements */
.ending-image {
    width: auto;
    max-width: 300px;
    height: 50vh;
    max-height: 300px;
    margin: 0 auto;
    display: block;
}

/* Estilos para las opciones de selección múltiple */
#options-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
}

input[type="radio"] {
    display: none;
}

label {
    cursor: pointer;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

label:hover {
    background-color: #eee;
}

input[type="radio"]:checked + label {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    #question-text {
        font-size: 16px;
    }
    #answer-input {
        font-size: 16px;
    }
    label {
        font-size: 14px;
    }
    #prev-button {
        padding: 8px 12px;
        font-size: 14px;
        margin-right: 5px;
    }
    button {
        font-size: 14px;
    }
}

#suggestions-list {
    position: absolute; /* Posición absoluta para superponerla al campo de entrada */
    background-color: #ffffff; /* Fondo blanco */
    border: 1px solid #ccc; /* Borde gris */
    max-height: 150px; /* Altura máxima con desplazamiento */
    overflow-y: auto; /* Agregar desplazamiento vertical cuando sea necesario */
    width: 100%;
    max-width: 30vw;
    z-index: 1;
    list-style: none; /* Quitar los puntos de la lista */
    padding: 0; /* Quitar el relleno predeterminado */
    margin: 0; /* Quitar el margen predeterminado */
}

#suggestions-list li {
    padding: 8px 12px; /* Relleno para elementos de la lista */
    cursor: pointer; /* Cambiar el cursor al pasar por encima de las sugerencias */
}
  
#suggestions-list li:hover {
    background-color: #f0f0f0; /* Cambiar el color de fondo al pasar el mouse */
}

@keyframes scrollAnimation {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeAnimation {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.scroll-animation {
    animation: scrollAnimation 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.fade-animation {
    animation: fadeAnimation 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
