* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter;
}

body {

  background-color: #fefefe;
}
h1{
  margin-top: 150px;
  text-align: center;
}
.jogo {
  margin-top: 70px;
  display: grid;
  width: 100%;
  height: 100%;
  display: grid;
  justify-content: center;
  align-content: center;
  justify-items: center;
  align-items: center;
  grid-template-columns: repeat(3, auto);
}

.jogo.x .celula:not(.x):not(.circle):hover::after,
.jogo.x .celula:not(.x):not(.circle):hover::before,
.jogo.circle .celula:not(.x):not(.circle):hover::after,
.jogo.x .celula:not(.x):not(.circle):hover::before {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* Célula */
.celula {
  width: 10em;
  height: 10em;
  border: 2px solid black;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.celula:hover{
  cursor: pointer;
}

.celula.x,
.celula.circle {
  cursor: not-allowed;
}

.celula:nth-child(1),
.celula:nth-child(2),
.celula:nth-child(3) {
  border-top: none;
}

.celula:nth-child(1),
.celula:nth-child(4),
.celula:nth-child(7) {
  border-left: none;
}

.celula:nth-child(7),
.celula:nth-child(8),
.celula:nth-child(9) {
  border-bottom: none;
}

.celula:nth-child(3),
.celula:nth-child(6),
.celula:nth-child(9) {
  border-right: none;
}

/* X */
.celula.x::before,
.celula.x::after,
.jogo.x .celula:not(.x):not(.circle):hover::after,
.jogo.x .celula:not(.x):not(.circle):hover::before {
  content: "";
  height: calc(100px * 0.15);
  width: calc(100px * 0.9);
  background: black;
  position: absolute;
}

.celula.x::before,
.jogo.x .celula:not(.x):not(.circle):hover::before {
  transform: rotate(45deg);
}

.celula.x::after,
.jogo.x .celula:not(.x):not(.circle):hover::after {
  transform: rotate(-45deg);
}

/* Circle */
.celula.circle::before,
.celula.circle::after,
.jogo.circle .celula:not(.x):not(.circle):hover::after,
.jogo.circle .celula:not(.x):not(.circle):hover::after {
  content: "";
  height: calc(100px * 0.9);
  width: calc(100px * 0.9);
  background: black;
  position: absolute;
  border-radius: 50%;
}

.resultado-jogo {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
  flex-direction: column;
}

.resultado-jogo-botao {
  font-size: 2rem;
  background-color: yellow;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  margin-top: 16px;
  color: black;
}

.resultado-jogo-botao:hover {
  color: rgb(198, 198, 0);
  background-color: white;
}

.resultado-jogo-texto {
  color: white;
  font-size: 4rem;
}

.mostrar-resultado-jogo {
  display: flex;
}

.contato {
  margin-top: 100px;
  scroll-behavior: smooth;
}
.contato p {
  text-align: center;
}

@media screen and (max-width: 500px){
  .jogo{
    width: 80%;
    height: 80%;
    margin: auto;
    margin-top: 70px;
  }

  .celula{
    width: 100px;
    height: 100px;
  }

  /* X */
.celula.x::before,
.celula.x::after,
.jogo.x .celula:not(.x):not(.circle):hover::after,
.jogo.x .celula:not(.x):not(.circle):hover::before {
  content: "";
  height: calc(70px * 0.15);
  width: calc(70px * 0.9);
  background: black;
  position: absolute;
}

.celula.x::before,
.jogo.x .celula:not(.x):not(.circle):hover::before {
  transform: rotate(45deg);
}

.celula.x::after,
.jogo.x .celula:not(.x):not(.circle):hover::after {
  transform: rotate(-45deg);
}

/* Circle */
.celula.circle::before,
.celula.circle::after,
.jogo.circle .celula:not(.x):not(.circle):hover::after,
.jogo.circle .celula:not(.x):not(.circle):hover::after {
  content: "";
  height: calc(70px * 0.9);
  width: calc(70px * 0.9);
  background: black;
  position: absolute;
  border-radius: 50%;
}
}