body {
  font-family: Arial, sans-serif;
  background-color: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  text-align: center;
}

h1 {
  color: #333;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 5px;
}

.cell {
  border: 2px solid #ccc;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3em;
  cursor: pointer;
  background-color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cell:hover {
  background-color: #e0e0e0;
}

.cell.X {
  color: #ff3d00; /* Red */
}

.cell.O {
  color: #2962ff; /* Blue */
}

button {
  margin-top: 20px;
  font-size: 1.2em;
  padding: 10px 20px;
  background-color: #4caf50; /* Green */
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #43a047; /* Darker Green */
}

.end-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  display: none;
  justify-content: center;
  align-items: center;
}

.end-screen-content {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.end-screen-message {
  font-size: 1.5em;
  margin-bottom: 20px;
}

.end-screen button {
  font-size: 1em;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.end-screen button:hover {
  background-color: #555;
}
