/* solo móvil 

body {
  font-family: Arial, sans-serif;
  text-align: center;
  background: #f2f2f2;
  padding: 20px;
  margin: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  grid-auto-rows: 1fr;
  gap: 1px;
  max-width: 90%;
  margin: 0 auto 20px auto;
  aspect-ratio: 1 / 1; /* mantiene cuadrada la retícula 
}

.grid-cell {
  border: 1px solid #ccc;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  aspect-ratio: 1 / 1; /* mantiene celdas cuadradas 
  cursor: pointer;
}

.header {
  background-color: #e0e0e0;
  font-weight: bold;
  cursor: default;
}

.resultado {
  font-size: 1rem;
  padding: 10px;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 5px;
  display: inline-block;
  max-width: 90%;
  word-wrap: break-word;
}

.selected {
  background-color: #ffd54f !important;
}
*/

/* responsivo al 100% */
body {
  font-family: Arial, sans-serif;
  text-align: center;
  background: #f2f2f2;
  padding: 20px;
  margin: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  grid-auto-rows: 1fr;
  gap: 1px;
  margin: 0 auto 20px auto;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 660px; /* tamaño fijo para escritorio */
}

.grid-cell {
  border: 1px solid #ccc;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.header {
  background-color: #e0e0e0;
  font-weight: bold;
  cursor: default;
}

.resultado {
  font-size: 1rem;
  padding: 10px;
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 5px;
  display: inline-block;
  max-width: 90%;
  word-wrap: break-word;
}

.selected {
  background-color: #ffd54f !important;
}


/*  Para pantallas pequeñas (móviles) */
@media (max-width: 660px) {
  .grid-container {
    max-width: 98%;
  }

  .grid-cell {
    font-size: 0.7rem;
  }

  h1 {
    font-size: 1.2rem;
  }

  .resultado {
    font-size: 0.9rem;
  }
}
