#wordle-game {
  text-align: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  max-width: 650px; 
  margin: auto;
  position: relative;
}

#wordle-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  align-items: center;
}

#wordle-timer,
#wordle-word-change {
  background: #eee;
  color: #000;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: bold;
  display: inline-block;
  min-width: 140px;   /* tamaño fijo para que no cambie con el texto */
  text-align: center; /* centra el texto dentro */
}




.fila {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 5px;
}

.celda {
    flex: 1;
    max-width: 70px;  /* tamaño escritorio */
    aspect-ratio: 1 / 1;  /* siempre cuadrada */
    border: 2px solid #555;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    background: #fff;
    color: #000;
    transition: background 0.3s;
}



.correcta { background: #6aaa64 !important; color: #fff; }   
.presente { background: #c9b458 !important; color: #fff; }   
.incorrecta { background: #3a3a3c !important; color: #fff; } 

#wordle-result {
  margin: 10px 0;
  font-weight: bold;
  font-size: 1.2em;
}

#teclado {
  margin-top: 30px;
}

.fila-teclado {
    display: flex;
    justify-content: center;  /* centrado como las filas de arriba */
    margin-bottom: 5px;
    gap: 4px; /* espacio entre teclas */
}

.tecla {
    width: 50px;  /* ancho fijo para todas las teclas */
    height: 50px; /* alto fijo para todas las teclas */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #818384;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    line-height: 2.5;
}

#botones-juego {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

#botones-juego .boton {
  flex: 1;
  max-width: 150px;
  padding: 10px;
  color: #fff;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  font-size: 16px;
}

#botones-juego #enviar-btn { background: #28a745; } 
#botones-juego #borrar-btn { background: #dc3545; }

@media (max-width: 600px) {
    .fila{
   	 	margin: 10px 0;
    }
  .celda {
    max-width: none;
    height: 50px;  /* tamaño reducido en móvil */
    font-size: 16px;
  }
  .tecla {
    width: 50px;  /* mantenemos tamaño igual que escritorio */
    height: 50px;
    font-size: 16px;
  }
  .fila .celda {
        max-width: 50px; /* reduce ancho */
        font-size: 16px; /* reduce fuente */
    }

}