* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  width: 100vw;
  background: rgb(98, 185, 65);
  background: linear-gradient(
    100deg,
    rgba(98, 185, 65, 0.8) 0%,
    rgba(0, 212, 255, 0.8) 100%
  );
}

.board {
  display: grid;
  grid-template-columns: repeat(3, auto);
  width: 100%;
  height: 100%;

  justify-content: center;
  align-content: center;
  justify-items: center;
  align-items: center;
}

.cell {
  height: 100px;
  width: 100px;

  border: 2px solid white;

  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;
}
.cell.x,
.cell.y {
  cursor: not-allowed;
}

.cell:nth-child(1),
.cell:nth-child(2),
.cell:nth-child(3) {
  border-top: none;
}
.cell:nth-child(1),
.cell:nth-child(4),
.cell:nth-child(7) {
  border-left: none;
}
.cell:nth-child(7),
.cell:nth-child(8),
.cell:nth-child(9) {
  border-bottom: none;
}
.cell:nth-child(9),
.cell:nth-child(6),
.cell:nth-child(3) {
  border-right: none;
}

.board.x .cell:not(.x):not(.y):hover::before,
.board.x .cell:not(.x):not(.y):hover::after,
.board.y .cell:not(.x):not(.y):hover::before {
  background: rgba(255, 255, 255, 0.8) !important;
}

/* player one */
.cell.x::before,
.cell.x::after,
.board.x .cell:not(.x):not(.y):hover::before,
.board.x .cell:not(.x):not(.y):hover::after {
  content: "";
  height: calc(100px * 0.15);
  width: calc(100px * 0.9);
  background: white;
  position: absolute;
}

.cell.cell.x::before,
.board.x .cell:not(.x):not(.y):hover::before {
  rotate: -45deg;
}
.cell.cell.x::after,
.board.x .cell:not(.x):not(.y):hover::after {
  rotate: 45deg;
}

/* player two */
.cell.y::before,
.board.y .cell:not(.x):not(.y):hover::before {
  content: "";
  height: calc(100px * 0.9);
  width: calc(100px * 0.9);
  background: white;
  border-radius: 50%;
}

.winning-message {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;

  justify-content: center;
  align-items: center;

  background-color: rgba(0, 0, 0, 0.8);
  flex-direction: column;
}

.winning-message-text {
  color: white;
  font-size: 5rem;
}

.winning-message-button {
  padding: 10px 15px;
  margin-top: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;

  font-size: 2.5rem;
  background-color: rgba(98, 185, 65, 1);
  color: white;
}
.winning-message-button:hover {
  background-color: white;
  color: rgba(98, 185, 65, 1);
}

.show-winning-menssage {
  display: flex;
}
