@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');

body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background-image: url('xox.jpg'); /* Your background image */
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.container {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  backdrop-filter: blur(15px);
  color: white;
  position: relative;
}

h1 {
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 15px;
  justify-content: center;
  align-items: center;
  position: relative;
}

.cell {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  margin: 5px;
  font-size: 2.8rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.cell:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
}

.cell.X {
  color: #ff4c4c; /* Red color for X */
}

.cell.O {
  color: #4cf0ff; /* Blue color for O */
}

#resetBtn {
  background: #ffffff33;
  border: none;
  padding: 10px 20px;
  color: white;
  font-size: 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 15px;
  transition: 0.3s;
}

#resetBtn:hover {
  background: #ffffff55;
}

.status {
  margin-top: 15px;
  font-size: 1.3rem;
}

#win-line {
  position: absolute;
  height: 5px;
  background: gold;
  border-radius: 4px;
  z-index: 1;
  transition: all 0.5s ease;
  display: none;
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}
