body, html {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
}
#score {
    font-size: 1.5em;
    color: #333;
}
#timer {
    font-size: 1.5em;
    color: #333;
}
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    height: 80%;
    margin-top: 60px; /* Para evitar que el contenedor se superponga al header */
}
.lists-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.list, .dropzone {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px;
    width: 100%;
    max-width: 200px;
    height: calc(100% - 30px);
    overflow-y: auto;
    transition: all 0.3s ease;
    background-color: #f9fbe7;
}
.list {
    background-color: #e3f2fd;
}
.list div, .dropzone div {
    padding: 10px;
    margin: 20px 0 5px 0; /* Aumenta el espacio superior para separar las palabras del título */
    background-color: #ffca28;
    border-radius: 8px;
    text-align: center;
    cursor: grab;
    transition: background-color 0.3s ease;
    position: relative;
}
.list div:hover, .dropzone div:hover {
    background-color: #ffa726;
}
.dropzone:hover {
    border: 2px dashed #1976d2;
}
.correct {
    background-color: #66bb6a !important; /* Verde para indicar correcto */
}
.incorrect {
    background-color: #f44336 !important; /* Rojo para indicar error */
}
.feedback {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffeb3b;
    color: #333;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    animation: fadeInOut 2s forwards;
}
@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}
@media (min-width: 600px) {
    .container {
        flex-direction: row;
        justify-content: space-between;
        padding: 40px;
    }
    .lists-container {
        flex-direction: row;
        gap: 40px;
    }
}
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: none;
    z-index: 1000;
}
.modal.active {
    display: block;
}
.modal h2 {
    margin: 0 0 10px;
}
.modal p {
    margin: 0 0 20px;
}
.modal button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border: none;
    background-color: #1976d2;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.modal button:hover {
    background-color: #145a9e;
}
/* Estilo para centrar los títulos dentro de los contenedores */
.list h3, .dropzone h3 {
    text-align: center;
    margin-bottom: 20px; /* Incrementa la distancia entre el título y la primera palabra */
    font-size: 1.2em;
    color: #333;
    position: absolute;
    top: 0;
    width: 100%;
    padding-top: 10px;
}

/* Asegurar que el título no afecte el tamaño del contenedor */
.list, .dropzone {
    padding-top: 40px; /* Ajustar el padding superior para espacio del título */
    position: relative;
}

.list h3, .dropzone h3 {
    position: absolute;
    top: 0;
    width: 100%;
    padding-top: 10px;
}
