.card__wrap .main .card__img {
  width: 80%;
}

@media screen and (min-width: 436px) {
  .card__wrap .main .card__img {
    margin-top: 5px;
  }
}

.card__wrap .bookmark-switch-text {
  margin-top: -23%;
}
.markup-interactive {
  position: relative;
}
.main {
  position: relative;
}
.main .restart {
  width: 35px;
  height: 35px;
  position: absolute;
  top: 1%;
  left: 86%;
  cursor: pointer;
  z-index: 2;
}

.main .restart path {
  fill: #7d9fe3;
}

.card__wrap-blocked .main .restart {
  display: none;
}

.right-triangles-in-the-square.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: 8px;
  margin-bottom: 30px;
}
@media screen and (min-width: 436px) {
  .for-float-wrapper .card__text {
    margin-top: 15px;
  }
}

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

.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: 38px;
  font-weight: 700;
  position: absolute;
  top: 86%;
  left: 100%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.figures-container {
  width: 90%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  margin: 0 auto;
  gap: 8%;
  row-gap: 20px;
}
@media screen and (min-width: 436px) {
  .figures-container {
    row-gap: 25px;
  }
}

.figure {
  width: 21vw;
  height: max-content;
  position: relative;
  transition: all 250ms;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

.figure .quantity {
  font-weight: 800;
}

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

  .figure-one {
    width: 70px;
  }
  .figure-two {
    width: 70px;
  }
}

.card__wrap-blocked .main-quantity,
.card__wrap-blocked .figures-container {
  display: none;
}
.card__wrap-blocked .text-confirm-answer {
  display: none;
}
.card__wrap-blocked .changer.active {
  pointer-events: none;
}
