@font-face {
  font-family: "Raleway-Regular";
  src: url("./fonts/Raleway-Regular.ttf");
}
@font-face {
  font-family: "Raleway-Medium";
  src: url("./fonts/Raleway-Medium.ttf");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  font-size: 1.2rem;
}

body {
  height: 100vh;
  background-color: #111;
  color: white;
  font-family: "Raleway-Regular";
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}
.toggle-opponent,
.audio-icons-wrapper {
  cursor: pointer;
}
#startBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 50px 40px;
  border-radius: 10px;
  background-color: hsl(0, 0%, 36%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  cursor: pointer;
  transition: padding 0.8s ease, background-color 0.16s ease;
}
#startBtn.fade-out {
  padding: 0;
}
#startBtn:hover {
  background-color: hsl(0, 0%, 46%);
}
.container {
  width: 450px;
  height: 450px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.gameboard {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.gameboard .cell {
  font-family: "Raleway-Medium";
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-size: 150px;
  color: #ababa1;
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.45s ease;
}
.gameboard .cell:nth-child(1) {
  border-width: 0 2px 2px 0;
}
.gameboard .cell:nth-child(2) {
  border-width: 0 2px 2px 2px;
}
.gameboard .cell:nth-child(3) {
  border-width: 0 0 2px 2px;
}
.gameboard .cell:nth-child(4) {
  border-width: 2px 2px 2px 0;
}
.gameboard .cell:nth-child(6) {
  border-width: 2px 0 2px 2px;
}
.gameboard .cell:nth-child(7) {
  border-width: 2px 2px 0 0;
}
.gameboard .cell:nth-child(8) {
  border-width: 2px 2px 0 2px;
}
.gameboard .cell:nth-child(9) {
  border-width: 2px 0 0 2px;
}
.scoreboard {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 10px;
}
.scoreboard .placeholder {
  width: 18px;
  height: 18px;
}
.scoreboard > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 8px;
}
.scoreboard > * .head {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 6px;
}
.spinner {
  width: 100%;
  height: 100%;
  border: 9px solid hsl(0, 0%, 60%);
  border-radius: 50%;
  border-top-color: transparent;
  border-bottom-color: transparent;
}
/* utility classes */
.d-none {
  display: none;
}
.thinking {
  animation: spin 2.4s linear infinite;
}
.blink {
  animation: blink 0.6s ease;
  animation-iteration-count: 4;
}
.fade-in {
  animation: fade-in 0.15s ease-out;
}
.fade-out {
  animation: fade-out 1s ease;
}

@keyframes spin {
  to {
    transform: rotateZ(360deg);
  }
}
@keyframes blink {
  50% {
    opacity: 0;
    transform: scale(0.8);
  }
}
@keyframes fade-in {
  from {
    font-size: 0;
  }
}
@keyframes fade-out {
  to {
    font-size: 0;
  }
}
