body {
  margin: 0;
  padding: 20px;
  font-family: Arial, sans-serif;
  background-color: #f2f2f2;
}

h1 {
  margin-top: 20px;
  text-align: center;
  color: #333;
}

#grid-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

#grid {
  display: grid;
  grid-template-columns: repeat(60, 10px);
  grid-template-rows: repeat(60, 10px);
  gap: 1px;
  background-color: #fff;
  border: 1px solid #ccc;
}

#status {
  text-align: center;
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
  cursor: pointer;
}

#speed-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

#speed-controls button {
  background-color: #333;
  color: #fff;
  font-size: 16px;
  border: none;
  padding: 8px 16px;
  margin: 0 5px;
  cursor: pointer;
}

#speed {
  text-align: center;
  font-size: 16px;
  color: #333;
}

#rules-container {
  text-align: center;
  margin-bottom: 20px;
}

.rules {
  border: 1px solid #ccc;
  padding: 10px;
  background-color: #fff;
}

.rules h2 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.rules ol {
  padding-left: 20px;
  font-size: 16px;
  color: #555;
  text-align: left;
}

.cell {
  width: 10px;
  height: 10px;
  background-color: #ccc;
}

.cell.alive {
  background-color: #5e3c3c; /* Cambia el color de fondo a rojo para las celdas activas */
}

#alive-count {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

#alive-count span {
  margin-left: 5px;
}
