body {
  background: linear-gradient(135deg, #e0f7fa, #f1f8e9);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 10px;
  color: white;
  background: linear-gradient(45deg, #007bff, #00c6ff);
  padding: 15px 30px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  font-size: 2.2em;
}

.reset-btn {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #4da9dc;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.reset-btn:hover {
  background-color: #3791c7;
}

.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.rules-box {
  background: #f5f5f5;
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  width: 250px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: float 4s ease-in-out infinite;
}

.rules-box h2 {
  color: #007bff;
  margin-bottom: 10px;
}

.rules-box ul {
  list-style: disc;
  padding-left: 20px;
  color: black;
  font-size: 0.95em;
  line-height: 1.6;
}

.turn-indicator {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: black;
}

/* Game Board Styling (responsive like superBoard) */
.board {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: rgb(13, 42, 158);
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  max-width: 90%;
  max-height: 90%;
}

/* Cell Styling */
.cell {
  width: 60px;
  height: 60px;
  max-width: 70%;
  max-height: 70%;
  background-color: #ffffff20;
  border-radius: 90%;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

.cell.player1 {
  background-color: red;
}

.cell.player2 {
  background-color: yellow;
}

/* Winner dialog */
.winner-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
}

.dialog-content {
  background: #2c5364;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
}

.dialog-content button {
  margin: 10px;
  padding: 10px 20px;
  background: #1e90ff;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 8px;
}

/* Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Responsive Media Query */
@media (max-width: 800px) {
  .board {
    grid-template-columns: repeat(7, 1fr);
    min-width: 420px;
    min-height: 360px;
  }

  .cell {
    width: 50px;
    height: 50px;
  }
}
