/* sudoku________________________ */
.sudoku {
  /* text-align: center; */
  /* align-items: center; */
}

.sudoku h2 {
  /* text-align: center; */
  /* margin-bottom: 60px; */
}

.sudoku-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#sudoku-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1px;
  background: #333;
  padding: 1px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.sudoku-cell {
  background: black;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: white;
  border: 1px solid #444;
  font-family: "Inter", sans-serif;
}

.sudoku-cell input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 24px;
  color: white;
  outline: none;
  font-family: "Inter", sans-serif;
}

.sudoku-cell.given {
  background: #1a1a1a;
  color: white !important;
  /* font-weight: bold; */
}

/* Add a new class for completed puzzle */
.puzzle-complete .sudoku-cell {
  background: rgba(46, 204, 113, 0.2);
}

.puzzle-complete .sudoku-cell.given {
  background: #2ecc71;
}

#message {
  color: white;
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
}

.sudoku-cell input::-webkit-outer-spin-button,
.sudoku-cell input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sudoku-cell input[type="number"] {
  -moz-appearance: textfield;
}

@media screen and (max-width: 768px) {
  .sudoku-cell {
    font-size: 16px;
  }

  .sudoku-cell input {
    font-size: 16px;
  }

  #sudoku-grid {
    gap: 0.5px;
  }
}
