/* Small triangle in upper left of cell */
.cell-corner-triangle {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 14px solid #6d8fb3;
  border-right: 14px solid transparent;
  opacity: 0.5;
  z-index: 2;
}
.cell {
  position: relative;
  box-sizing: border-box;
}
/* Difficulty Dropdown Styles */
.difficulty-label {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: #333;
  font-weight: 500;
}
.difficulty-select {
  width: 140px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  background: #f8f9fa;
  color: #333;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: border 0.2s;
}
.difficulty-select:focus {
  border: 1.5px solid #007bff;
  outline: none;
}
/* Ensure spinner overlays only the game board */
.game-board-wrapper {
  position: relative;
}
.game-board-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.game-board-spinner.d-none {
  display: none;
}
.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #007bff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Sudoku Puzzler Page Styles */
.puzzler-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  justify-content: center;
  background: #f8f9fa;
}

.puzzler-title {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333;
  letter-spacing: 2px;
}

.puzzler-board-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 2rem 3rem;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  position: relative;
}

.puzzler-controls {
  margin-left: 60px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

.puzzler-btn {
  padding: 0.7rem 2.2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 0.5rem;
  width: 160px;
}
.puzzler-btn-primary {
  background: #007bff;
  color: white;
}
.puzzler-btn-success {
  background: #28a745;
  color: white;
}
.puzzler-btn-warning {
  background: #ffc107;
  color: #333;
}

/* Sudoku Board Styles */
.board {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
  gap: 0px;
  width: 450px;
  height: 450px;
}

.cell {
  width: 50px;
  height: 50px;
  border: solid 1px;
  border-left: none;
  border-top: none;
  border-color: gray;
  align-items: center;
  display: flex;
  justify-content: center;
}

.cell-value {
  font-size: 20px;
}

.cell-options {
  padding: 2px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  color: rgb(67, 67, 186);
}

.cell.cj-2,
.cell.cj-5 {
  border-right: solid 2px;
  border-color: black;
}

.cell.cj-3,
.cell.cj-6 {
  border-left: none;
}

.cell.ci-0 {
  border-top: solid 2px;
  border-color: black;
}

.cell.cj-0 {
  border-left: solid 2px;
  border-color: black;
}

.cell.cj-8 {
  border-right: solid 2px;
  border-color: black;
}

.cell.ci-8 {
  border-bottom: solid 2px;
  border-color: black;
}

.cell.ci-2,
.cell.ci-5 {
  border-bottom: solid 2px;
  border-color: black;
}

.cell.ci-3,
.cell.ci-6 {
  border-top: none;
}

.d-none {
  display: none;
}

.cell.edit-mode {
  border: solid 3px #00ffe5 !important;
  border-top: 3px solid #00ffe5 !important;
  border-right: 3px solid #00ffe5 !important;
  border-bottom: 3px solid #00ffe5 !important;
  border-left: 3px solid #00ffe5 !important;
}

.message-success {
  color: #28a745;
  background-color: #d4edda;
}

.message-failure {
  color: #dc3545;
  background-color: #f8d7da;
}

.message-warning {
  color: #856404;
  background-color: #fff3cd;
}

.message-container {
  width: auto;
  min-width: 450px;
  max-width: 100%;
  margin: 0 auto 1.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 2rem 3rem;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  font-size: 0.8rem;
  margin-top: 1rem;
  border-radius: 6px;
}

/* Rainbow text color classes */
.solved-cell-1 {
  color: #ff3b30;
}
.solved-cell-2 {
  color: #ff9500;
}
.solved-cell-3 {
  color: #ffcc00;
}
.solved-cell-4 {
  color: #34c759;
}
.solved-cell-5 {
  color: #5ac8fa;
}
.solved-cell-6 {
  color: #007aff;
}
.solved-cell-7 {
  color: #5856d6;
}
.solved-cell-8 {
  color: #af52de;
}
.solved-cell-9 {
  color: #ff2dc1;
}
.message-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}
.message-close:hover {
  color: #dc3545;
}
.message-container {
  position: relative;
}
