/* Center everything horizontally and vertically */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background-color: #000000;
  color: #ff6f00;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;    /* horizontal centering */
  justify-content: center; /* vertical centering */
  min-height: 100vh;       /* full viewport height */
  user-select: none;
  text-align: center;      /* center text inside elements */
}

.title {
  font-size: 4em;
  padding-bottom: 5rem;
}

#gameboard {
  margin: 20px auto;
}

#scoreboard {
  margin-top: 10px;
  max-width: 300px;
  width: 100%;
}

/* Neon orange glowing text */
#status, #rounds, #scoreX, #scoreO, .player-inputs input, .player-inputs button {
  color: #ff6f00;
}

/* Inputs and buttons styled */
.player-inputs input, .player-inputs button, #resetBtn, #scoreboard button {
  background-color: #111;
  border: 1px solid #ff6f00;
  color: #ff6f00;
  padding: 8px 12px;
  margin: 5px 10px 15px 0;
  border-radius: 20px;
  font-size: 16px;
  box-shadow:
    0 0 5px #ff6f00,
    0 0 10px #ff6f00;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.player-inputs input:focus, .player-inputs button:hover, #resetBtn:hover {
  background-color: #ff6f00;
  color: #000;
  box-shadow:
    0 0 10px #ff6f00,
    0 0 20px #ff6f00,
    0 0 40px #ff6f00;
  outline: none;
}

/* Gameboard container */
#gameboard {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 5px;
  margin: 20px 0;
  justify-content: center;
}

/* Each cell */
.cell {
  background-color: #000;
  border: 2px solid #ff6f00;
  color: #ff6f00;
  font-size: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  text-shadow:
    0 0 5px #ff6f00,
    0 0 10px #ff6f00,
    0 0 20px #ff6f00;
  transition: background-color 0.3s ease;
  box-shadow:
    0 0 10px #ff6f00,
    0 0 20px #ff6f00,
    0 0 40px #ff6f00;
    outline: none;
}

.cell:hover {
  background-color: #1a1a00;
  box-shadow:
    0 0 15px #ff6f00,
    0 0 30px #ff6f00;
}

/* Scoreboard styling */
#scoreboard button {
  font-size: 18px;
  margin: 5px 0;
  text-align: center;
}

