/* ====== Global Page Styling ====== */
body {
  font-family: "Poppins", sans-serif;
  text-align: center;
  background: linear-gradient(135deg, #1e1e2f, #121212, #0f2027);
  color: #fff;
  height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 50px;
  overflow: hidden;
}

/* ====== Game Title ====== */
h1 {
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #00e0ff, #ff0099);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* ====== Game Board ====== */
#game {
  display: grid;
  grid-template-columns: repeat(3, 110px);
  gap: 15px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

/* ====== Game Cells ====== */
.cell {
  width: 110px;
  height: 110px;
  background: linear-gradient(145deg, #1b2735, #090a0f);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 2.8rem;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hover glow effect */
.cell:hover {
  background: linear-gradient(145deg, #00c6ff, #0072ff);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 150, 255, 0.5);
}

/* When a cell is clicked (X or O) */
.cell.taken {
  cursor: not-allowed;
  opacity: 0.85;
}

/* ====== Status Text ====== */
#status {
  margin-top: 25px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #00e0ff;
  text-shadow: 0 0 8px rgba(0, 224, 255, 0.6);
}

/* ====== Reset Button ====== */
#reset {
  margin-top: 25px;
  padding: 10px 25px;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  background: linear-gradient(90deg, #ff0099, #00e0ff);
  color: white;
  border-radius: 8px;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0, 224, 255, 0.3);
}

#reset:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 0, 153, 0.6);
}

#Start {
  margin-top: 25px;
  padding: 10px 25px;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  background: linear-gradient(90deg, #ff0099, #00e0ff);
  color: white;
  border-radius: 8px;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0, 224, 255, 0.3);
}

#Start:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 0, 153, 0.6);
}

/* ====== Responsive for Mobile ====== */
@media (max-width: 600px) {
  #game {
    grid-template-columns: repeat(3, 90px);
    gap: 10px;
  }

  .cell {
    width: 90px;
    height: 90px;
    font-size: 2rem;
  }

  h1 {
    font-size: 2rem;
  }
}
