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

.main {
  position: relative;
  height: 100vh;
  background-color: rgb(43, 43, 43);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.main__heading {
  color: white;
  font-size: 45px;
  margin-bottom: 20px;
}
.main__subheading {
  color: white;
  font-size: 25px;
  margin-bottom: 20px;
}
.main__tictactoe {
  display: grid;
  width: 300px;
  height: 300px;
  grid-template-columns: repeat(3, auto);
  grid-template-rows: repeat(3, auto);
  gap: 3px;
}
.main__tictactoe .card {
  background-color: teal;
  border-radius: 5px;
  border: none;
  position: relative;
}
.main__tictactoe .card .xo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  font-size: 50px;
}
.main__tictactoe .card:hover {
  border: 2px solid gold;
  cursor: pointer;
}

.winner {
  display: none;
  height: 100vh;
  width: 100vw;
  position: absolute;
  color: white;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
}
.winner__screen {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.winner__screen__border {
  border: 5px solid white;
}
.winner__screen__border .winner__screen__content {
  height: 250px;
  width: 400px;
  background-color: teal;
  margin: 5px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.winner__screen__border .winner__screen__content .result {
  font-size: 50px;
  margin: 0 0 10px;
}
.winner__screen__border .winner__screen__content .restart {
  color: teal;
  font-size: 30px;
  padding: 5px;
  border: none;
}
.winner__screen__border .winner__screen__content .restart:hover {
  cursor: pointer;
}

@media screen and (max-width: 500px) {
  .main__heading {
    font-size: 35px;
  }
  .main__subheading {
    font-size: 15px;
  }
  .main__tictactoe {
    width: 200px;
    height: 200px;
  }
  .winner__screen__border .winner__screen__content {
    width: 200px;
    height: 200px;
  }
  .winner__screen__border .winner__screen__content .result {
    font-size: 40px;
  }
  .winner__screen__border .winner__screen__content .restart {
    font-size: 20px;
  }
}/*# sourceMappingURL=main.css.map */