* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  text-align: center;
  background: linear-gradient(to bottom right, #ffffff, white);

  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
}

.bord {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  border: 4px solid #333;
  gap: 0;
  border-radius: 12px;
  margin-top: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 50px;
}

.cell {
  font-size: 64px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}
.cell:hover {
  background-color: #f0f0f0;
}

.cell:not(:nth-child(3n)) {
  border-right: 2px solid #333;
}
.cell:nth-child(-n + 6):not(:nth-child(n + 7)) {
  border-bottom: 2px solid #333;
}
.cell.X {
  color: #ff6b6b;
}
.cell.O {
  color: #1e88e5;
}
.cell.winning {
  background-color: #c8e6c9 !important;
}
#status {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

#resetBtn {
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
#resetBtn:hover {
  background-color: #555;
}
#status {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
