body {
    background-color: #000517;
    color: white;
    font-family: Bitcount;
}

.game-container {
    display: flex;
    flex-direction: column;
    gap: 4vh;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: Bitcount;
    background: radial-gradient(circle at top left, white 0, var(--theme-light) 5%, transparent 40%),
                radial-gradient(circle at top right, white 0, var(--theme-light) 5%, transparent 40%);
    padding: 50px 0;
}

.board {
  display: grid;
  gap: 2px;
  margin: 0 auto;
  background-color: #000;
  width: fit-content;
  padding: 10px;
  border: var(--border-thick) solid var(--theme-light);
  box-shadow: inset 0 0 10px var(--theme-light), 0 0 15px var(--theme-light);
  border-radius: 10px;
}

.cell {
  width: 40px;
  height: 40px;
  background-color: #000;
  border: 2px solid var(--theme-light);
  box-shadow: 0 0 4px var(--theme-light);
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
}

.cell:hover {
  box-shadow: 0 0 8px var(--theme-accent);
  transform: scale(1.02);
  filter: brightness(1.2);
}

.cell:active {
  filter: brightness(0.9);
}

.cell.revealed {
  border-style: dotted;
}

.cell.flagged {
  color: #facc15;
  background: radial-gradient(circle at center, var(--theme-dark), transparent);
}

.cell.mine {
  border-color: #a31d52;
  color: white;
  font-size: 1.2rem;
}

.cell.revealed.mine {
    background: radial-gradient(circle at center, #dc2626, transparent);
}

.cell.flagged.mine {
    background: none;
}

.cell.number-1 { color: #3b82f6; }   /* Blue */
.cell.number-2 { color: #10b981; }   /* Green */
.cell.number-3 { color: #ef4444; }   /* Red */
.cell.number-4 { color: #8b5cf6; }   /* Purple */
.cell.number-5 { color: #f59e0b; }   /* Amber */
.cell.number-6 { color: #14b8a6; }   /* Teal */
.cell.number-7 { color: #eab308; }   /* Yellow */
.cell.number-8 { color: #f43f5e; }   /* Rose */

.game-button {
    font-size: 16px;
    font-family: inherit;
    text-align:center;
    background: radial-gradient(circle at top left, white 0, var(--theme-light) 5%, transparent 50%),
                radial-gradient(circle at top right, white 0, var(--theme-light) 5%, transparent 50%);
    text-decoration: none;
    color: white;
    box-shadow: 0px 0px 9px var(--theme-accent);
    border: 1px solid var(--theme-light);
    border-radius: 5px;
    padding: 8px 30px;
}

.game-button:active {
    box-shadow: 0px 0px 9px white;
    background: radial-gradient(circle at center, white 0, var(--theme-light) 20%, transparent 100%);
}


.game-button:hover {
    cursor: pointer;
    box-shadow: 0px 0px 9px white;
    border-color: var(--theme-accent);
}

.back-button {
    width: 30%;
}

#current-difficulty {
    text-align: center;
    font-size: 20px;
}

.change-difficulty {
    font-size: 12px;
    padding: 5px 15px;
}

.difficulty-display {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.game-controls {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 30px;
    padding: 0 30px;
}

.game-info {
    font-size: 20px;
}

.radio-button {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    margin: 0;
    padding: 8px;
    border-radius: 50%;
    border-width: 2px;
}

.radio-button:checked {
    background-color: var(--theme-light);
}
