.gameText {
  width: 100%;
}
.gameText h3 {
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
  text-align: center;
}
.gameText p {
  margin: 0 1.5rem 1rem 1.5rem;
  font-family: "merriweather", serif;
  font-size: 1rem;
  font-weight: 400;
}
.gameDiv {
  width: 100%;
  margin: 0 auto;
  background-color: whitesmoke;
  border-bottom-right-radius: 1.5rem;
  border-bottom-left-radius: 1.5rem;
  border-top: solid;
  border-top-width: thin;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 500px;
}
.tttDiv {
  width: 50%;
  margin-left: 0%;
  margin-right: 0.5%;
}

.tttRightDiv {
  margin: 0.5rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: row;
}
.tttRightDiv .scoreDiv {
  display: flex;
  width: 50%;
  flex-wrap: wrap;
}
.tttRightDiv .scoreDiv .score {
  width: 100%;
  display: block;
  margin: 0 0 0.25rem;
}
.tttRightDiv .scoreDiv .squareResultRed {
  width: 50%;
  padding: 1rem;
  display: block;
  margin-left: auto;
  background-color: #ff0004;
  color: #ffffff;
  font-weight: 900;
  text-align: center;
  font-style: normal;
  line-height: 2.5rem;
  font-size: 2.5rem;
  font-family: serif-pro;
}
.tttRightDiv .scoreDiv .squareResultBlue {
  width: 50%;
  padding: 1rem;
  display: block;
  margin-left: auto;
  background-color: #2400dd;
  color: #ffffff;
  font-style: normal;
  font-weight: 900;
  font-size: 2.5rem;
  text-align: center;
  line-height: 2.5rem;
  font-family: serif-pro;
}
.resetDiv {
  align-self: flex-end;
  width: 20%;
  border: 1px solid #000000;
  border-radius: 15px;
  margin: 0 0 0 1rem;
  cursor: pointer;
  padding: 0 0.5rem;
}
.resetDiv .resetGame {
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
  width: 100%;
  font-family: serif-pro;
  margin: 0;
}
.resetScoreDiv {
  align-self: flex-end;
  width: 20%;
  border: 1px solid #000000;
  border-radius: 15px;
  margin: 0 0 0 1rem;
  cursor: pointer;
  padding: 0 0.5rem;
}
.resetScoreDiv .resetGame {
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
  width: 100%;
  font-family: serif-pro;
  margin: 0;
}
.tttLeftDiv {
  margin: 1.5rem 1.5rem 0.5rem 1.5rem;
  display: inline-block;
}
.tttLeftDiv .player {
  display: block;
  background-color: #ff0004;
  border-radius: 0.25rem;
  padding: 1rem;
}
.tttLeftDiv .player .tttCurrent {
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: large;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}
.gameFrame {
  margin: 0 1.5rem 0 1.5rem;
  display: inline-block;
  padding: 0.25rem 1.5rem;
  text-align: center;
  height: 25rem;
  border-style: solid;
  border-radius: 0.25rem;
  -webkit-box-shadow: inset 0px 0px 5px 5px #707070;
  box-shadow: inset 0px 0px 5px 5px #707070;
}
.square {
  display: inline-block;
  width: 30%;
  border: medium solid #000000;
  border-radius: 0.25rem;
  background-color: #f8f77f;
  height: 32%;
  cursor: pointer;
  position: relative;
}
.square.red {
  background-color: red;
}
.square.red::after {
  content: "X";
  font-size: 400%;
  color: white;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.square.blue {
  background-color: blue;
}
.square.blue::after {
  content: "O";
  font-size: 400%;
  color: white;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
.tttmodal {
  opacity: 0.9;
  font-size: 165%;
  text-align: center;
  background-color: #26f13d;
  z-index: 5001;
  width: 99%;
  margin-left: 0.5%;
  margin-right: 0.5%;
  margin-top: 0.5%;
  margin-bottom: 0.5%;
  border: medium ridge #000000;
  border-radius: 25px;
  -webkit-box-shadow: 0px 0px 10px 8px #5c5c5c;
  box-shadow: 0px 0px 10px 8px #5c5c5c;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
}
.innerBox {
  display: block;
  background-color: #ffffff;
  opacity: 1;
  margin-top: 20%;
  margin-bottom: auto;
  border-style: solid;
  border-color: #000000;
  width: fit-content;
  height: 30%;
  z-index: 9099;
  text-align: center;
  font-size: 150%;
  margin-left: 42%;
  clear: both;
  padding: 5px;
  color: #ffffff;
  text-shadow: 2px 2px 5px #000000;
}
.button {
  color: #000000;
}
.score {
  text-align: center;
  font-weight: 600;
  font-size: large;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media all and (max-width: 940px) {
  .gameText p {
    min-height: 210px;
  }
}
@media all and (max-width: 580px) {
  .gameText p {
    min-height: 40px;
    font-size: 1rem;
  }
}

@media all and (max-width: 440px) {
  .resetDiv .resetGame,
  .resetScoreDiv .resetGame {
    font-size: 1rem;
  }
}
