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

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

.card__wrap .bookmark-switch-text {
  margin-top: -33%;
}
.markup-interactive {
  position: relative;
}
.counting-triangles {
  /* 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; */
}
.counting-triangles.winner {
  display: none;
}

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

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

.for-float-wrapper .card__text {
  text-align: start;
  font-size: 18px;
  margin-top: 5px;
  margin-bottom: 30px;
  width: 88%;
}
@media screen and (min-width: 436px) {
  .for-float-wrapper .card__text {
    margin-top: 10px;
  }
}

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

@media screen and (min-width: 436px) {
  .container {
    width: 70px;
    height: 120px;
  }
}

.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: 24px;
  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: 20%;
  left: 71%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
@media screen and (min-width: 436px) {
  .main-quantity {
  }
}
.figures-container {
  width: 77%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  margin: 0 auto;
}
.figures-container-bottom {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  margin-top: 0vw;
  position: relative;
}
/* @media screen and (min-width: 436px) {
  .figures-container-bottom {
    width: 88%;
  }
} */
.figures-container-top .figure {
  margin-top: 1vw;
}
.figure {
  height: max-content;
  position: relative;
  transition: all 250ms;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.figure.active {
  border-bottom: 2px solid #7d9fe3;
}

.figure.active .quantity {
  font-weight: 800;
}
.figure-one {
  width: 8vw;
}

.figure-two {
  width: 16vw;
}
.figure-three {
  width: 24vw;
}
.figure-four {
  width: 32vw;
}

.quantity {
  position: absolute;
  top: 100%;
  left: 100%;
  transform: translate(25%, -100%);
  display: flex;
  line-height: 1;
  padding-bottom: 3px;
}
@media screen and (min-width: 436px) {
  .figures-container-top .figure {
    margin-top: 7px;
  }

  .figure-one {
    width: 30px;
  }
  .figure-two {
    width: 60px;
  }
  .figure-three {
    width: 90px;
  }
  .figure-four {
    width: 120px;
  }
}

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