@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@700&family=Lobster&family=Mochiy+Pop+P+One&display=swap");
* {
  padding: 0;
  margin: 0;
}
.background {
  background-color: cornsilk;
  height: 100vh;
  padding-top: 1px;
}
.original {
  color: blueviolet;
  text-align: center;
  font-size: 40px;
  margin-top: 10%;
  font-family: "Mochiy Pop P One";
  cursor: pointer;
}
.ai {
  color: blueviolet;
  text-align: center;
  font-size: 40px;
  margin-top: 10%;
  font-family: "Mochiy Pop P One";
  cursor: pointer;
}
.display {
  font-size: x-large;
  text-align: center;
  margin-top: 1em;
  margin-bottom: 1em;
  font-family: "lobster";
}
.board {
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto auto;
  max-width: 300px;
}
.playerX {
  color: rgb(35, 142, 237);
}
.playerO {
  color: hotpink;
}
.cell {
  border: 1px solid black;
  width: 100px;
  height: 100px;
  cursor: pointer;
  justify-items: center;
  align-items: center;
}

.win-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 5rem;
  flex-direction: column;
}
.cell:nth-child(n + 1) {
  border-top: none;
}
.cell:nth-child(3n + 1) {
  border-left: none;
}
.cell:nth-child(3n + 3) {
  border-right: none;
}
.cell:nth-child(7),
.cell:nth-child(8),
.cell:nth-child(9) {
  border-bottom: none;
}
.button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 1em;
}
.button button {
  background-color: blueviolet;
  font-family: "Exo 2";
  font-size: 20px;
  border-radius: 8px;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
}

#restart-btn:hover {
  background-color: white;
  color: black;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.hide {
  display: none;
}
.score p {
  display: inline;
}
.score {
  font-size: 25px;
  text-align: center;
  margin-top: 1em;
  margin-bottom: 1em;
  font-family: "Exo 2";
}

div.playerO,
div.playerX {
  cursor: not-allowed;
}
.score .playerO {
  font-family: "lobster";
}
.score .playerX {
  font-family: "lobster";
}
.hide-ai {
  display: none;
}
