body {
    background-color: #FCCC00;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.interrogacion {
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.titulo {
    font-family: 'Kalam', cursive;
    /* font-weight: bold; */
    font-size: 30px;
    color: #000000;
    cursor: pointer;
}

.bandera {
    width: 50px;
    height: 30px;
    border: 1px solid #000000;
}

main {
    display: flex;
    flex-direction: column;
}

.contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 10px;
    margin-top: -7px;
    margin-bottom: -6px;

}

.contenedor_2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 10px;
    margin-bottom: -6px;

}

.contenedor_3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 10px;
    margin-bottom: -6px;

}

.contenedor_4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 10px;
    margin-bottom: -6px;

}

.contenedor_5 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 10px;
    margin-bottom: -6px;

}

.contenedor_6 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 10px;
    margin-bottom: -6px;

}

.caja {
    width: 55px;
    height: 55px;
    background-color: #F2F2F2;
    display: flex;
    justify-content: center;
    align-items: center;
    /*borde rendodo */
    border-radius: 10px;
    font-family: 'Kameron', sans-serif;
    font-size: 30px;
    border: 2px solid #7C8663;
}


.teclado {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
    margin-top: 50px;
}

.tecla {
    width: 43px;
    height: 43px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    /*borde rendodo */
    border-radius: 8px;
    font-family: 'Kameron', sans-serif;
    font-size: 30px;
    cursor: pointer;
}

.eliminar {
    width: 50px;
    height: 43px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    /*borde rendodo */
    border-radius: 8px;
    font-family: 'Kalam', cursive;
    font-size: 20px;
    cursor: pointer;
}

.enter {
    width: 50px;
    height: 43px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    /*borde rendodo */
    border-radius: 8px;
    font-family: 'Kalam', cursive;
    font-size: 20px;
    cursor: pointer;
}

.enter2 {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.colmuna_de_arriba {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.columna_del_medio {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.columna_de_abajo {
    display: flex;
    gap: 4px;
}

#contenedor {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    40% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animar {
    animation: popIn 0.3s ease-in-out forwards;
    border-color: #000000;
    /* Optional: highlight border on input */
}

.tecla:active {
    background-color: #e0e0e0;
    transform: scale(0.95);
}

.eliminar:active {
    background-color: #e0e0e0;
    transform: scale(0.95);
}

.enter:active {
    background-color: #e0e0e0;
    transform: scale(0.95);
}


@media (max-width: 600px) {
    .caja {
        width: 13vw;
        height: 13vw;
        max-width: 55px;
        max-height: 55px;
        font-size: 24px;
    }

    .tecla {
        width: 8vw;
        height: 10vw;
        max-width: 43px;
        max-height: 50px;
        font-size: 1.2rem;
    }

    .eliminar, .enter {
        width: 12vw;
        height: 10vw;
        max-width: 60px;
        max-height: 50px;
    }

    .titulo {
        font-size: 24px;
    }

    .interrogacion {
        width: 40px;
        height: 40px;
    }
    
    .bandera {
        width: 40px;
        height: 24px;
    }
    
    .contenedor, .contenedor_2, .contenedor_3, .contenedor_4, .contenedor_5, .contenedor_6 {
        gap: 3px;
    }
    
    .colmuna_de_arriba, .columna_del_medio, .columna_de_abajo {
        gap: 3px;
    }
}
.win-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.win-modal {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 90%;
  width: 400px;
  font-family: "Kameron", sans-serif;
}

.win-modal h2 {
  margin-top: 0;
  font-size: 2rem;
  color: #6aaa64;
}

.word-reveal {
  margin: 20px 0;
}

.the-word {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 10px 0;
  letter-spacing: 2px;
}

.meaning {
  font-size: 1.2rem;
  color: #555;
  font-style: italic;
}

.timer-container {
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

#countdown {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 10px;
}

.loss-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e74c3c;
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  font-family: "Kameron", sans-serif;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 90%;
}

/* Help Modal */
.help-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.help-modal {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  width: 500px;
  font-family: "Kameron", sans-serif;
  text-align: left;
  position: relative;
}

.help-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.help-modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}

.help-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #555;
  padding: 0;
  width: 30px;
  height: 30px;
  display: none; /* Hidden by default (desktop) */
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.help-modal-close:hover {
  color: #000;
}

.help-modal h2 {
  margin-top: 0;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.help-modal p {
  font-size: 1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.examples {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.example {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.example .caja {
  width: 40px;
  height: 40px;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  border: 2px solid #7c8663;
  font-weight: bold;
}

/* Invalid Word Toast */
.invalid-message {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000000;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-family: "Kameron", sans-serif;
  z-index: 2000;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.invalid-message.show {
  opacity: 1;
}

/* Modal Links */
.modal-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.modal-links a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.modal-links a:hover {
    background-color: #f0f0f0;
    color: #000;
}

.boludle-link {
    font-weight: bold;
    color: #4DA6FF !important; /* Light blue */
}

.email-link {
    font-style: italic;
}

@media (max-width: 600px) {
    .win-modal {
        padding: 20px;
        width: 85%;
        max-width: 85%;
    }
    
    .the-word {
        font-size: 2rem;
    }
    
    .meaning {
        font-size: 1rem;
    }
    
    .help-modal {
        padding: 20px;
        width: 85%;
        max-width: 85%;
    }
    
    .help-modal-close {
        display: flex; /* Show close button on mobile */
    }
    
    .help-modal h2 {
        font-size: 1.2rem;
    }
    
    .help-modal p {
        font-size: 0.9rem;
    }
}


.correct {
    background-color: #22c55e !important;
    color: white !important;
    border-color: #22c55e !important;
}

.present {
    background-color: #C9B458 !important;
    color: white !important;
    border-color: #C9B458 !important;
}

.absent {
    background-color: #94a3b8 !important;
    color: white !important;
    border-color: #94a3b8 !important;
}
