:root {
  --chatgpt-primary-color: #3e71ae;
  --chatgpt-secondary-color: #f2a900;
  --chatgpt-tertiary-color: #4c4c4c;
  --chatgpt-gray-color: #e1e1e1;
}

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

body {
  font-family: "Roboto", sans-serif;
  text-align: center;
  text-transform: uppercase;
}

/* html {
  box-sizing: border-box;
  background-color: #dbd3d3;
  color: #222;
  text-align: center;
  font-family: "Roboto", sans-serif;
} */

.tic-tac-toe {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

.main {
  padding-left: 10%;
  display: block;
  margin-top: 5%;
  width: 50%;
}

.question {
  margin: 5%;
  width: 40%;
  text-align: left;
}

input {
  margin: 5px 0;
  cursor: pointer;
}

#textQuestion {
  font-weight: 600;
}

.turn-indicator {
  display: block;
  margin: 5px auto;
  text-align: center;
  line-height: 25px;
  padding: 5px;
  width: 60%;
  background-color: var(--chatgpt-tertiary-color);
  color: var(--chatgpt-gray-color);
  border-radius: 5px;
  font-size: 1.2rem;
}

.board {
  margin: auto;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
}

.square {
  width: 100px;
  height: 100px;
  border: 1px solid var(--chatgpt-tertiary-color);
  font-size: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.square:hover {
  background-color: var(--chatgpt-gray-color);
  cursor: pointer;
}

.board.game-over .square:hover,
.square.player0:hover,
.square.player1:hover {
  background-color: inherit;
  cursor: default;
}

.player1 {
  filter: hue-rotate(180deg);
}

.square:nth-of-type(1),
.square:nth-of-type(2),
.square:nth-of-type(3) {
  border-top: none;
}

.square:nth-of-type(1),
.square:nth-of-type(4),
.square:nth-of-type(7) {
  border-left: none;
}

.square:nth-of-type(3),
.square:nth-of-type(6),
.square:nth-of-type(9) {
  border-right: none;
}

.square:nth-of-type(7),
.square:nth-of-type(8),
.square:nth-of-type(9) {
  border-bottom: none;
}

.new-game {
  margin-top: 40px;
  visibility: hidden;
}

.new-game.show {
  visibility: visible;
}

.btn-footer {
  margin-top: 25%;
  display: flex;
  gap: 5%;
}

button {
  border: none;
  padding: 11px 18px;
  background-color: var(--chatgpt-tertiary-color);
  color: var(--chatgpt-gray-color);
  transition: 0.2s ease-out;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}

button:hover {
  background-color: var(--chatgpt-secondary-color);
  box-shadow: 0 10px 20px #00000020, 0 6px 6px #00000050;
}

.badge {
  background-color: var(--chatgpt-secondary-color);
  padding: 5px;
  border-radius: 3px;
  height: 25px;
  color: var(--chatgpt-gray-color);
  line-height: 15px;
  margin: 15px;
}

.meet-us {
  margin: 10% 0;
  text-transform: capitalize;
}

.meet-us a {
  text-decoration: none;
  position: relative;
  color: var(--chatgpt-secondary-color);
  transition: transform 0.3s ease;
}

.meet-us a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  border-radius: 1px;
  background-color: var(--chatgpt-tertiary-color);
  bottom: 0;
  left: 0;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.meet-us a:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}

.meet-us a:hover {
  color: var(--chatgpt-secondary-color);
  transition: transform 0.3s ease-in-out;
}

@media screen and (max-width: 480px) {
  .tic-tac-toe {
    display: block;
    justify-content: space-between;
    flex-direction: column;
    margin: 0 auto;
  }

  .main {
    display: block;
    margin: 30px auto;
    width: 80%;
    align-items: center;
    justify-content: center;
    padding: 0px;
  }

  .question {
    width: 80%;
    margin: 0 auto;
  }

  .btn-footer {
    display: block;
    margin: 15% auto;
    text-align: center;
  }
}

#radiosInputs button {
  text-transform: uppercase;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}
