/* Estilos generales */
body {
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
  margin: 0;
  padding: 0;
}

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

h2 {
  text-align: center;
  color: #333;
}

/* Estilos del ejercicio */
#exercise {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.input-container {
  text-align: center;
}

input {
  width: 200px;
  padding: 10px;
  margin-bottom: 10px;
}

button {
  padding: 10px 20px;
  background-color: #003A00;
  color: white;
  border: none;
  cursor: pointer;

}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Estilos del mensaje de resultado */
#message {
  text-align: center;
  margin-top: 20px;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  max-width: 300px;
}

.message-correct {
  background-color: #003A00;
}

.message-incorrect {
  background-color: #7E0000;
}

.hidden {
  display: none;
}

/* Estilos para el mensaje de felicitaciones */
#congratulations {
  text-align: center;
  margin-top: 30px;
  font-size: 2em;
  color: #003A00;
  font-weight: bold;
  background-color: #b3ffb3;
}

#next-button {
  float: right;
}

#problem {
  font-size: 20px;
  font-weight: bold;
}

td {
  vertical-align: middle;
}

#word-input {
  width: 50px;
}

table {
    width: 70%;
    margin: 0 auto;
    border-collapse: collapse;
}

th, td {
    border: 1px solid black;
    padding: 10px;
    background-color: #f2f2f2;
}



td {
  height: 50px;
  background-color: #f2f2f2;
  border: 1px solid black;
}

td.selected {
    background-color: lightgreen;
}

/* Contenedor de los botones */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Estilo de los botones */
.button-container button {
  padding: 10px 20px;
  background-color: #003A00;
  color: white;
  border: none;
  cursor: pointer;
  margin: 0 10px;
}

.button-container span {
  width: 20px;
}

