/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top, #1a1a2e, #16213e);
  color: white;
}

/* deve name body */
.dev-credit {
  text-align: center;
  font-size: 14px;   /* small text */
  font-weight: 400;
  color: #f381dc;       /* light grey for soft look */
  margin-top: 10px;
  font-style: italic;
  animation: fadeIn 2s ease-in-out;
}

.dev-credit span {
  color: #daffef;    /* highlight name */
  font-weight: 600;
}

/* smooth fade in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-container {
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding: 20px;
}

/* Title */
header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 3px;
  margin-bottom: 5px;
  text-shadow: 0 0 15px rgba(255,255,255,0.3);
}

header h3 {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: #ddd;
  margin-bottom: 20px;
  animation: fadeIn 1s ease-in-out;
}

/* Game Board */
.game-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px 0;
}

.game {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 90vmin;
  max-width: 500px;
}

.box {
  aspect-ratio: 1 / 1;
  font-size: clamp(1.5rem, 6vw, 3rem);
  font-weight: bold;
  border: none;
  border-radius: 15px;
  background: #0f3460;
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.box:hover:not(:disabled) {
  background: #e94560;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.7);
}

.box:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

/* Winner / Draw Message */
.msg-container {
  margin: 20px 0;
  padding: 15px;
  border-radius: 10px;
  background: rgba(0,0,0,0.6);
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
  animation: fadeIn 0.6s ease-in-out;
}

.msg-container.hide {
  display: none;
}

#winner {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffcc00;
  text-shadow: 0 0 8px rgba(255,255,0,0.7);
}

/* Buttons */
button {
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  margin: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#reset, #newGame {
  background: #21e6c1;
  color: #111;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(33, 230, 193, 0.6);
}

#reset:hover, #newGame:hover {
  background: #1dbfaf;
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(33, 230, 193, 0.9);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

