.card__wrap .main .card__img {
  width: 59%;
  margin-top: 0;
}

@media screen and (min-width: 436px) {
  .card__wrap .main .card__img {
    width: 66%;
  }
}

.card__wrap .bookmark-switch-text {
  margin-top: -33%;
}
.markup-interactive {
  position: relative;
}
.a-chessboard-challenge {
  /* width: 25%;
  margin-left: 24px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  float: right;
  shape-outside: inset(-17% 0% -24% 10%);
  z-index: 5;
  transition: all 1500ms; */
}
.a-chessboard-challenge.winner {
  display: none;
}

.text-confirm-answer {
  font-size: 17px;
  text-align: center;
  font-weight: 400;
  color: grey;
  position: absolute;
  top: 95%;
  left: 50%;
  width: max-content;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: all 250ms;
}

.text-confirm-answer.transparent {
  opacity: 0;
  transition: all 250ms;
}

.for-float-wrapper .card__text {
  text-align: start;
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 30px;
  width: 88%;
}

.for-float-wrapper .card__text.card__text-explanations {
  margin-top: 5px;
}
.container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  width: 15vw;
  height: 30vw;
  justify-content: center;
  margin-left: 3vw;
  align-items: center;
}

@media screen and (min-width: 436px) {
  .container {
    width: 52px;
    height: 108px;
    margin-left: 7px;
  }
}

.changer {
  /* width: 45px; */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  /* margin: 10px 30px 15px 10px; */
  position: absolute;
  opacity: 0;
  transition: all 150ms;
  pointer-events: none;
}

.changer.active {
  opacity: 1;
  pointer-events: all;
}
.arrow {
  display: none; /* Hide the arrow */
  width: 0;
  height: 0;
  border: 10px solid transparent;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.up-arrow::after,
.down-arrow::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  position: absolute;
  z-index: 1;
}
.up-arrow::after {
  border-width: 0 25px 43.3px 25px; /* 43.3 = 25 * tan(30°) */
  border-color: transparent transparent green transparent;
  top: -21.6px;
  left: -25px;
}
.down-arrow::after {
  border-width: 43.3px 25px 0 25px; /* 43.3 = 25 * tan(30°) */
  border-color: green transparent transparent transparent;
  bottom: -21.6px;
  left: -25px;
}
.digit {
  font-size: 28px;
  margin-bottom: 0px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; /* Prevent text selection */
  color: navy;
}
.digit-x {
  color: navy;
  position: absolute;
  font-size: 18px;
  top: 63%;
  left: 88%;
  -webkit-transform: translate(50%, -50%);
  -ms-transform: translate(50%, -50%);
  transform: translate(50%, -50%);
}
.triangle {
  width: 0;
  height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  position: relative;
  cursor: pointer;
}
.triangle.up {
  border-bottom: 37px solid green; /* 43.3 = 25 * tan(30°) */
  /* margin-bottom: 10px; */
}
.triangle.down {
  border-top: 37px solid green; /* 43.3 = 25 * tan(30°) */
  /* margin-top: 10px; */
}

.digit-container {
  position: relative;
  z-index: 2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex; /* Add this line */
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center; /* Add this line */
}
.inactive {
  cursor: default;
  opacity: 0.4;
  -webkit-filter: grayscale();
  filter: grayscale();
}

.click-path {
  cursor: pointer;
  width: 66%;
  height: 69%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.main-quantity {
  font-size: 37px;
  font-weight: 700;
  position: absolute;
  top: 92%;
  left: 117%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
@media screen and (min-width: 436px) {
  .main-quantity {
    top: 109%;
    left: 86%;
  }
}
.squares-container {
  width: 88%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  margin: 0 auto;
}
.squares-container-bottom {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  margin-top: 0vw;
}
/* @media screen and (min-width: 436px) {
  .squares-container-bottom {
    width: 88%;
  }
} */
.squares-container-top .square {
  margin-top: 8vw;
}
.square {
  border: 2px solid #7d9fe3;
  border-radius: 1px;
  position: relative;
  transition: all 250ms;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}
.square.active {
  outline: 4px solid #7d9fe3;
  box-shadow: 2px 2px 3px #7d9fe3;
}
.square .area {
  pointer-events: none;
}
.square.active .area {
  font-weight: 800;
}
.square-one {
  width: 6vw;
  height: 6vw;
}
.square-one .area {
  left: -22%;
}
.square-one .quantity {
  font-size: 15px;
}
.square-two {
  width: 10vw;
  height: 10vw;
}
.square-three {
  width: 15vw;
  height: 15vw;
}
.square-four {
  width: 20vw;
  height: 20vw;
}
.square-five {
  width: 25vw;
  height: 25vw;
}
.square-six {
  width: 30vw;
  height: 30vw;
  margin-left: 3vw;
}
.square-seven {
  width: 35vw;
  height: 35vw;
}
.area {
  position: absolute;
  left: 0;
  top: -5.8vw;
}
.quantity {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
}
@media screen and (min-width: 436px) {
  .squares-container-top .square {
    margin-top: 57px;
  }

  .square-one {
    width: 20px;
    height: 20px;
  }
  .square-two {
    width: 36px;
    height: 36px;
  }
  .square-three {
    width: 54px;
    height: 54px;
  }
  .square-four {
    width: 72px;
    height: 72px;
  }
  .square-five {
    width: 90px;
    height: 90px;
  }
  .square-six {
    width: 108px;
    height: 108px;
    margin-left: 7px;
  }
  .square-seven {
    width: 126px;
    height: 126px;
  }
  .area {
    top: -21px;
  }
}

.card__wrap-blocked .main-quantity,
.card__wrap-blocked .squares-container-top,
.card__wrap-blocked .squares-container-bottom {
  display: none;
}
.card__wrap-blocked .text-confirm-answer {
  display: none;
}
.card__img .restart {
  display: flex;
  width: 35px;
  position: absolute;
  top: 6px;
  left: 106%;
  cursor: pointer;
}
.card__img .restart path {
  fill: #7d9fe3;
}
@media screen and (min-width: 436px) {
  .card__img .restart {
    left: 105%;
  }
}
.card__wrap-blocked .card__img .restart {
  display: none;
}
