body {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;
  transition: background-color 0.3s, color 0.3s;
  border: none;
}

body.dark-mode {
  background-color: #333;
  color: #fff;
  border: none;
}

#board {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-gap: 10px;
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
  border: none;
}

#board.dark-mode {
  background-color: #555;
  border: none;
}

.cell {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  background-color: transparent;
  border: none;
  transition: background-color 0.3s, color 0.3s;
  user-select: none;
  border: none;
}

.cell:hover {
  background-color: #f0f0f0;
  border: none;
}

.cell.occupied {
  cursor: not-allowed;
  border: none;
}

.cell.dark-mode {
  border: 2px solid #555;
  border: none;
}

.cell.dark-mode:hover {
  background-color: #444;
  border: none;
}

#status {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  transition: color 0.3s;
  border: none;
}

#status.dark-mode {
  color: #ddd;
  border: none;
}

#reset-btn {
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  background-color: #aeaeae; /* Cambiado a gris claro en modo claro */
  color: #000; /* Cambiado a negro en modo claro */
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  border: none;
}

#reset-btn:hover {
  background-color: rgb(85, 2, 48);
  border: none;
  color: #fff; 
}

#reset-btn.dark-mode {
  background-color:rgb(0, 0, 0);
  color: #fff; 
  border: none;
}
#reset-btn.dark-mode:hover {
  background-color: rgb(85, 2, 48);
  border: none;
  color: #fff; 
}
#theme-btn {
  margin-top: 20px;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  background-color: rgb(0, 0, 0);
  color: #fff;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  border: none;
}

#theme-btn:hover {
  background-color: rgb(85, 2, 85);
  border: none;
}

#theme-btn.dark-mode {
  background-color: #c4c4c4;
  border: none;
  color: #000000;
}
