 body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #04AA6D;
  background-size: cover;
}

#board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px auto;
  max-width: 320px;
  width: 90vw;
}

.cell {
  width: 100%;
  aspect-ratio: 1 / 1;           /* Keeps each cell square */
  font-size: 8vw;
  min-width: 60px;
  min-height: 60px;
  background: #f0f0f0;
  cursor: pointer;
  border: 2px solid #ccc;
  box-sizing: border-box;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}

.cell:focus {
  outline: none;
  background: #e0ffe0;
}

.cell:active {
  background: #d0ffd0;
}

button {
  font-size: 1.2em;
  padding: 12px 20px;
}

#status {
  font-size: 1.5em;
  margin-top: 20px;
}

@media (min-width: 601px) {
  #board {
    max-width: 200px;
    width: 100%;
    grid-template-columns: repeat(3, 60px);
    gap: 5px;
  }
  .cell {
    font-size: 2em;
  }
	.games-section {
  text-align: center;
  margin-top: 2em;
}

.dropdown {
  display: inline-block;
  position: relative;
}

.dropbtn {
  background: #B22222;
  color: #fff;
  padding: 0.6em 2em;
  border: none;
  border-radius: 12px;
  font-size: 1.1em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.dropbtn:hover, .dropbtn:focus {
  background: #d12d2d;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  min-width: 250px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.17);
  border-radius: 18px;
  z-index: 10;
  margin-top: 0.5em;
  padding: 1em 0;
  text-align: left;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.game-btn {
  display: block;
  width: 85%;
  margin: 0.7em auto;
  padding: 0.8em 1.2em;
  border-radius: 9px;
  font-size: 1.08em;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: background 0.15s, color 0.15s, transform 0.12s;
  text-align: center;
  color: #fff;
  border: none;
  outline: none;
}
.game-btn.tic-tac { background: #32A852; }
.game-btn.santa-free { background: #CC0033; }
.game-btn.present { background: #F2A117; }
.game-btn.puzzle { background: #20A1CF; }
.game-btn.word-game { background: #8173C4; }

.game-btn:hover,
.game-btn:focus {
  filter: brightness(1.15);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transform: translateY(-2px) scale(1.03);
  color: #FFF7EB;
}

@media(max-width:600px) {
  .dropdown-content { min-width: 95vw; left: 2.5vw; transform: none; }
  .game-btn { width: 98%; font-size: 1em; }
}

}