p {
  margin: 0;
}

body {
  background-color: #f9f2e7;
}

/* title */
h1 {
  text-align: center;
  font-size: 60px;
  color:pink;
}

/* game container */
.container {
  position: relative;
  width: 471px;
  height: 471px;
  margin: 0 auto;
}

/* board info after win */
.game-message {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(69, 133, 136, 0.4);
  text-align: center;
}

/* winner */
.game-message p {
  margin: 180px 0 40px 0;
  color: #fff;
  font-size: 50px;
}

/* restart button */
.game-message button {
  color: #517304;
  border-color: #517304;
  width: 110px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
}

/* game board */
.game-board {
  width: 471px;
  height: 471px;
}
.game-board.x .cell:not(.x):not(.o):hover::before {
  content: 'X';
  color: lightgray;
}
.game-board.o .cell:not(.x):not(.o):hover::before {
  content: 'O';
  color: lightgray;
}

/* board - row */
.row {
  display: flex;
}
.row:last-child .cell {
  border-bottom: 0;
}

/* board - cell */
.cell {
  flex: 1;
  box-sizing: border-box;
  width: 157px;
  height: 157px;
  line-height: 157px;
  border-right: 6px solid gray;
  border-bottom: 6px solid grey;
  text-align: center;
  cursor: pointer;
  font-size: 88px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
}
.cell:last-child {
  border-right: 0;
}

/* x player */
.cell.x::before {
  content: 'X';
  color: #e496f1;
}
/* o player */
.cell.o::before {
  content: 'O';
  color: #71087a;
}
