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

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

body {
  font-family: "Permanent Marker", cursive !important;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cell {
  width: 75px;
  height: 75px;
  border: 2px solid #333;
  box-shadow: 0 0 0 2px #333;
  line-height: 75px;
  font-size: 50px;
  cursor: pointer;
  user-select: none;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    background-color 0.25s ease,
    transform 0.15s ease;
}

.cell:hover {
  background-color: #f3f3f3;
  transform: scale(1.05);
}

.cell.X {
  color: #ff4c4c;
}
.cell.O {
  color: #4c6fff;
}

.cell.win {
  background-color: #4caf50;
  color: #fff;
  animation: pop 0.3s ease-in-out;
}

#cellContainer {
  display: grid;
  grid-template-columns: repeat(3, auto);
  width: 225px;
  margin: 20px auto;
}

#statusText {
  margin: 15px 0;
  font-size: 24px;
}

#restartBtn {
  padding: 8px 18px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 6px;
}

#restartBtn:hover {
  background: #555;
}

footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: start;
  padding: 16px;
  color: #454545;
  font-size: 14px;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
