@import url("https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
:root {
  --primary-color: black;
  --x-color: orange;
  --o-color: rgba(255, 0, 0, 0.863);
}
body {
  height: 100vh;
  width: 100vw;
  background: var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Fredoka One", cursive;
}
#start {
  width: 100vw;
  height: 100vh;
  z-index: 9;
  display: grid;
  place-content: center;
}
#start div {
  display: flex;
  justify-content: center;
}
button {
  padding: 15px 30px;
  margin: 5px;
  font-family: inherit;
  outline: none;
  border: none;
  background-color: whites;
  cursor: pointer;
}
.heading,
.turn {
  color: white;
  font-size: 40px;
  margin-bottom: 20px;
}
.turn {
  font-size: 20px;
}
#started {
  display: none;
}
section#started h1,
p {
  text-align: center;
}
#board {
  width: 400px;
  min-height: 400px;
  border-radius: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
.move {
  display: grid;
  place-content: center;
  font-family: "Fredoka One", cursive;
  color: white;
  border: 0.5px solid rgba(255, 255, 255, 0.397);
  user-select: none;
  cursor: pointer;
  font-size: 60px;
}

.winner {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 1, 0.466);
  place-content: center;
  top: 0;
  left: 0;
}
.restart {
  padding: 15px;
  outline: none;
  border: none;
  border-radius: 5px;
  background: white;
  color: black;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}
button:hover,
.restart:hover {
  background: black;
  color: white;
  border: 1px solid white;
  transition: all 0.5s ease;
}
.move:nth-child(3n + 1),
.move:nth-child(3n + 3) {
  border-left: none;
  border-right: none;
}
.inverse-move {
  background: white;
  color: black;
  transition: all 0.5s ease;
}
.move:nth-child(-n + 3),
.move:nth-last-child(-n + 3) {
  border-top: none;
  border-bottom: none;
}

.disabled {
  pointer-events: none;
}
.pre-show {
  opacity: 0.5;
}

/* animation */
@-webkit-keyframes zoomIn {
  from {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  50% {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }

  50% {
    opacity: 1;
  }
}

.zoomIn {
  -webkit-animation-name: zoomIn;
  animation-name: zoomIn;
}

.animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}
