@import "./font.css";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: #1a2a33;
}

.container {
  max-width: 460px;
  width: 100%;
  padding-inline: 15px;
  margin: 139px auto;
}
@media screen and (max-width: 576px) {
  .container {
    max-width: 375px;
    margin: 84px auto 127px;
  }
}

button {
  cursor: pointer;
  transition: all 0.2s linear;
  border: none;
}

.choise_section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.choise_section-img {
  width: 71.97px;
  height: 32px;
  margin-bottom: 40px;
}

.choise_mark {
  width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  background-color: #1f3641;
  border-radius: 10px;
  box-shadow: 0px -8px 0px 0px #10212a inset;
  padding: 24px 32px 34px;
  margin-bottom: 40px;
}
@media screen and (max-width: 480px) {
  .choise_mark {
    max-width: 300px;
  }
}

.choise_mark-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: 1px;
  text-align: center;
  color: #a8bfc9;
}

.choise_mark-wrapper {
  max-width: 95%;
  width: 100%;
  background-color: #1a2a33;
  display: flex;
  padding-inline: auto;
  padding: 10px;
  border-radius: 10px;
}

.choise_mark-btn {
  max-width: 50%;
  width: 100%;
  border-radius: 8px;
  padding: 10px;
  border: none;
  background-color: transparent;
}
.choise_mark-btn img {
  width: 32px;
  aspect-ratio: 1;
}

#isActive-choise {
  background-color: #a8bfc9;
}

.choise_mark-btn-x {
  background-color: transparent;
}
.choise_mark-btn-x:hover {
  background-color: rgba(168, 191, 201, 0.0509803922);
}

.choise_mark-btn-o {
  background-color: transparent;
}
.choise_mark-btn-o:hover {
  background-color: rgba(168, 191, 201, 0.0509803922);
}

.choise_mark-bottom-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.26;
  letter-spacing: 0.875px;
  text-align: center;
  color: #a8bfc9;
  opacity: 0.5;
}

.choise_section-cpu {
  max-width: 460px;
  border-radius: 15px;
  border: none;
  background-color: #f2b137;
  box-shadow: 0px -8px 0px 0px #cc8b13 inset;
  font-size: 20px;
  font-weight: 700;
  line-height: 25.2px;
  letter-spacing: 1.25px;
  text-align: center;
  padding: 17px 122px 25px 124px;
  color: #1a2a33;
  text-wrap: nowrap;
  margin-bottom: 20px;
}
.choise_section-cpu:hover {
  background-color: #ffc860;
}
@media screen and (max-width: 576px) {
  .choise_section-cpu {
    max-width: 360px;
    width: 100%;
    padding: 20px 40px;
  }
}
@media screen and (max-width: 400px) {
  .choise_section-cpu {
    max-width: 310px;
    width: 100%;
    padding: 20px 10px;
    font-size: 16px;
  }
}

.choise_section-player {
  max-width: 460px;
  border-radius: 15px;
  border: none;
  background-color: #31c3bd;
  box-shadow: 0px -8px 0px 0px #118c87 inset;
  font-size: 20px;
  font-weight: 700;
  line-height: 25.2px;
  letter-spacing: 1.25px;
  text-align: center;
  padding: 17px 122px 25px 124px;
  color: #1a2a33;
  text-wrap: nowrap;
}
.choise_section-player:hover {
  background-color: #65e9e4;
}
@media screen and (max-width: 576px) {
  .choise_section-player {
    max-width: 360px;
    width: 100%;
    padding: 20px 40px;
  }
}
@media screen and (max-width: 400px) {
  .choise_section-player {
    max-width: 310px;
    width: 100%;
    padding: 20px 10px;
    font-size: 16px;
  }
}

.game_nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  max-width: 457px;
  width: 100%;
  padding-inline: 10px;
}
@media screen and (max-width: 576px) {
  .game_nav {
    margin-bottom: 64px;
  }
}

.game_nav-turn-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  background-color: #1f3641;
  padding: 18px 30px;
  box-shadow: 0px -4px 0px 0px #10212a inset;
  color: #a8bfc9;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 20.16px;
  letter-spacing: 1px;
  text-align: center;
  cursor: default;
}
@media screen and (max-width: 370px) {
  .game_nav-turn-btn {
    max-width: 96px;
    font-size: 14px;
    padding: 10px 18px;
    gap: 5px;
  }
  .game_nav-turn-btn .turn-img {
    width: 16px;
  }
}

.restart-btn {
  width: 52px;
  aspect-ratio: 1;
  border-radius: 10px;
  background: #a8bfc9;
  box-shadow: 0px -4px 0px 0px #6b8997 inset;
  color: #1f3641;
}
.restart-btn:hover {
  background-color: #dbe8ed;
}
@media screen and (max-width: 370px) {
  .restart-btn {
    max-width: 40px;
  }
}

.game-area {
  max-width: 457px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  padding-inline: 10px;
}

.game-area-btn {
  max-width: 140px;
  aspect-ratio: 1;
  border-radius: 15px;
  background-color: #1f3641;
  box-shadow: 0px -8px 0px 0px #10212a inset;
}

.game-area-btn-4 {
  grid-row-start: 2;
}

.game-area-btn-5 {
  grid-row-start: 2;
}

.game-area-btn-6 {
  grid-row-start: 2;
}

.game-area-btn-7 {
  grid-row-start: 3;
}

.game-area-btn-8 {
  grid-row-start: 3;
}

.game-area-btn-9 {
  grid-row-start: 3;
}

.game_score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-block: 40px;
}

.game_score-info {
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.875px;
  text-align: center;
}
.game_score-info h3 {
  font-size: 34px;
  font-weight: 700;
  line-height: 30.24px;
  letter-spacing: 1.5px;
  text-align: center;
}

.game_score-info-win {
  max-width: 30%;
  width: 100%;
  height: 72px;
  border: none;
  padding: 10px;
  border-radius: 15px;
  background-color: #31c3bd;
  color: #1a2a33;
  display: flex;
  line-height: 1.2;
  flex-direction: column;
  align-items: center;
}

.game_score-info-tied {
  max-width: 30%;
  width: 100%;
  height: 72px;
  border: none;
  padding: 10px;
  border-radius: 15px;
  background-color: #a8bfc9;
  color: #1a2a33;
  display: flex;
  line-height: 1.2;
  flex-direction: column;
  align-items: center;
}

.game_score-info-cpu {
  max-width: 30%;
  width: 100%;
  height: 72px;
  border: none;
  padding: 10px;
  border-radius: 15px;
  background-color: #f2b137;
  color: #1a2a33;
  display: flex;
  line-height: 1.2;
  flex-direction: column;
  align-items: center;
}

.result_modal,
.restart_modal,
.tied_modal {
  position: fixed;
  width: 100%;
  top: 20%;
  bottom: 40%;
  height: 270px;
  padding: 40px 10px;
  background-color: #1f3641;
}
@media screen and (max-width: 700px) {
  .result_modal,
  .restart_modal,
  .tied_modal {
    top: 20%;
  }
}

.result_modal-info,
.restart_modal-info,
.tied_modal-info {
  margin: 10px auto;
  max-width: 491px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.result_modal-res-text {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: 1px;
  text-align: center;
  color: #a8bfc9;
}

.tied_modal-title {
  color: #a8bfc9;
  font-size: 40px;
}

.restart_modal-title {
  color: #a8bfc9;
  font-size: 40px;
}

.result_modal-title,
.restart_modal-title,
.tied_modal-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 2.5px;
  text-align: left;
  color: #f2b137;
  display: flex;
  align-items: center;
  gap: 10px;
}
@media screen and (max-width: 400px) {
  .result_modal-title,
  .restart_modal-title,
  .tied_modal-title {
    font-size: 20px;
  }
}

.won-side {
  width: 64px;
  aspect-ratio: 1;
}
@media screen and (max-width: 576px) {
  .won-side {
    width: 30px;
  }
}

.result_modal-btns,
.restart_modal-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.restart_modal-btns button {
  border: none;
  border-radius: 10px;
  color: #1a2a33;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: 1px;
  text-align: center;
  padding: 15px 16px;
}

.restart_modal-cancel {
  background-color: #a8bfc9;
}
.restart_modal-cancel:hover {
  background-color: #dbe8ed;
}

.restart_modal-confirm {
  box-shadow: 0px -4px 0px 0px #cc8b13 inset;
  background-color: #f2b137;
}
.restart_modal-confirm:hover {
  background-color: #ffc860;
}

.result_modal-quit,
.result_modal-next {
  padding: 12px 10px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: 1px;
  text-align: center;
  color: #1a2a33;
  background-color: #a8bfc9;
  box-shadow: 0px -4px 0px 0px #6b8997 inset;
  border: none;
}
.result_modal-quit:hover,
.result_modal-next:hover {
  background-color: #dbe8ed;
}

.result_modal-next {
  color: #1a2a33;
  background-color: #f2b137;
  box-shadow: 0px -4px 0px 0px #cc8b13 inset;
}
.result_modal-next:hover {
  background-color: #ffc860;
}

.isHoverX:hover {
  background-image: url("../images/hoverX.svg");
  background-repeat: no-repeat;
  background-position: center;
}

.isHoverOval:hover {
  background-image: url("../images/hoverOval.svg");
  background-repeat: no-repeat;
  background-position: center;
}

.winClassForLine {
  background-color: greenyellow;
}

.modals_wrapper {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
}

.loader-body {
  /* center in the viewport */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  /* color picked up by the svg through the currentColor value */
  color: hsl(53, 95%, 53%);
  background: hsl(0, 100%, 65%);
}

svg {
  width: 350px;
  height: auto;
}

/* animate the shapes to rotate around the center of the svg */
.rotate-shapes {
  animation: rotateShapes 4s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

@keyframes rotateShapes {
  12.5% {
    transform: rotate(0deg);
  }
  25%, 62.5% {
    transform: rotate(180deg);
  }
  75%, 100% {
    transform: rotate(360deg);
  }
}
/* rotate the x sign in between the keyframes describing the shapes' own rotation */
.rotate-x {
  animation: rotateX 4s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

@keyframes rotateX {
  12.5%, 25% {
    transform: rotate(45deg);
  }
  37.5%, 50% {
    transform: rotate(90deg);
  }
  62.5%, 75% {
    transform: rotate(135deg);
  }
  87.5%, 100% {
    transform: rotate(180deg);
  }
}
/* translate the two signs, once again in between the keyframes describing the rotation */
.translate-zero {
  animation: translateZero 4s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

@keyframes translateZero {
  12.5%, 25% {
    transform: translate(0);
  }
  37.5%, 50% {
    transform: translate(-20px);
  }
  62.5%, 75% {
    transform: translate(0);
  }
  87.5%, 100% {
    transform: translate(-20px);
  }
}
/* scale the goo to appear / disappear in between the translations of the two shapes */
.scale-goo {
  animation: scaleGoo 4s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

@keyframes scaleGoo {
  /* hide the shape by default and once again 5% before and after every time the shape is shown  */
  0%, 7.5%, 30%, 57.5%, 80%, 100% {
    transform: scale(0);
    opacity: 0;
  }
  /* show the shape as the two signs connect */
  12.5%, 25%, 62.5%, 75% {
    transform: scale(1);
    opacity: 1;
  }
}/*# sourceMappingURL=style.css.map */