@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
  font-family: 'Press Start 2P', monospace;
  background-color: #fefefe;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

h1 {
  margin-bottom: 30px;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.tic-tac-grid {
  display: grid;
  grid-template-columns: repeat(3, 120px);
  grid-template-rows: repeat(3, 120px);
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.cell {
  width: 120px;
  height: 120px;
  background-color: transparent;
  border: 1px solid #eee;
  text-decoration: none;
  transition: background-color 0.1s ease, transform 0.1s ease, border-color 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #333;
}

.cell:hover {
  transform: scale(1.03);
  border-color: #999;
}


.cell-1:hover { background-color: #f3ebeb; }
.cell-2:hover { background-color: #ffd6a5; }
.cell-3:hover { background-color: #fdffb6; }
.cell-4:hover { background-color: #20381b; }
.cell-5:hover { background-color: #9bf6ff; }
.cell-6:hover { background-color: #a0c4ff; }
.cell-7:hover { background-color: #ffc9de; }
.cell-8:hover { background-color: #e3d7ff; }
.cell-9:hover { background-color: #d0f0ff; }

#resetButton {
  margin-top: 20px;
  padding: 10px 20px;
  font-family: 'Press Start 2P', monospace;
  cursor: pointer;
  background: #eee;
  border: 1px solid #aaa;
  border-radius: 4px;
  transition: background-color 0.2s;
}

#resetButton:hover {
  background-color: #ddd;
}
