

#board, .boardInfo {
    
    max-width: 500px;
}

#board {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
   
}

#start, .boardInfo {
    font-size: 25px;
}

#gameOver {
    display: none;
}

.boardInfo {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

#start {
    background-color: #f35a69;
    border: none;
    color: white;
}

#scoreBoard {
    display: inline-flex;
}

.square {
    aspect-ratio: 1;
}

.emptySquare {
    background-color: #6d71b5;
}

.snakeSquare {
    background-color: #e3e773;
    border: 1px solid #000;
}

.foodSquare {
    background-color: #55e7e7;
    border: 1px solid #000;
}

 .mango {
      width: 400px; /* o el ancho que necesites */
      background-color: orange;
      margin: 0 auto; /* esto lo centra horizontalmente */
      padding: 20px;
      text-align: center;
    }
    /* Centramos el contenido del juego */
#board, .boardInfo {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Ajuste del tablero */
#board {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
  background-color: #222;
  padding: 5px;
  border-radius: 10px;
}

/* Botón y puntuación */
#start, .boardInfo {
  font-size: 1.2rem;
}

/* Estilo responsive general */
.boardInfo {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 15px;
  gap: 10px;
  flex-wrap: wrap;
}

/* Botón responsivo */
#start {
  background-color: #f35a69;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}

/* Cuadro del juego */
.square {
  aspect-ratio: 1;
  width: 100%;
}

/* Colores */
.emptySquare {
  background-color: #6d71b5;
}

.snakeSquare {
  background-color: #e3e773;
  border: 1px solid #000;
}

.foodSquare {
  background-color: #55e7e7;
  border: 1px solid #000;
}

/* Responsive: Pantallas pequeñas */
@media screen and (max-width: 600px) {
  .boardInfo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #start {
    width: 100%;
  }
}