body {
  font-family: sans-serif;
  background-color:black;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  text-align: center;
  color: white;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  gap: 5px;
  margin: 20px auto;
}

.cell {
  width: 100px;
  height: 100px;
  font-size: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  border: 2px solid rgba(0, 38, 255, 0.959);
  cursor: pointer;
  user-select: none;
  border-radius: 1rem;
  color: red;
}

.cell.win {
  background: #8ef78e;
}

.controls {
  margin-top: 10px;
}

.scoreboard {
  margin-top: 20px;
  font-size: 1.1rem;
  color: aliceblue;
}

/* Popup styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  background:whitesmoke;
  color:black;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 300px;
  width: 80%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  animation: popup-appear 0.3s ease-out;
}

@keyframes popup-appear {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-content button {
  margin-top: 1rem;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
}
