@font-face {
  font-family: "Winston-ExtraBold";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/winston/winston-extrabold.woff") format("woff"),
    url("../fonts/winston/winston-extrabold.woff2") format("woff2");
}

/* =============== */

.markup-interactive {
  position: relative;
}
.complete-the-square {
  width: 35%;
  min-height: 138px;
  margin-left: 24px;
  margin-top: 75px;
  margin-bottom: 10px;
  float: right;
  shape-outside: inset(40% 0% 0% 10%);
  z-index: 5;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
}

@media screen and (min-width: 436px) {
  .complete-the-square {
    margin-top: 130px;
    margin-bottom: 14px;
    shape-outside: inset(55% 0% -73% 18%);
  }
}
.complete-the-square .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: relative;
  margin-right: 15px;
}

.for-float-wrapper .card__text {
  text-align: start;
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 25px;
}

.card_img_numbers_wrapper {
  position: relative;
}

.total-number {
  font-family: "Winston-ExtraBold";
  font-weight: 800;
  font-size: 17vw;
  color: white;
  width: 30vw;
  height: 30vw;
  padding-top: 8%;
  position: absolute;
  z-index: 2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
@media screen and (min-width: 436px) {
  .total-number {
    font-size: 3.5rem;
    width: 6.5rem;
    height: 6.5rem;
    padding-top: 8px;
    top: 0;
    left: 0;
  }
}
.card__img .number {
  font-family: "Winston-ExtraBold";
  font-weight: 800;
  font-size: 15vw;
  text-shadow: 1.5px 1.5px #326ad1;
  color: white;
  width: 21vw;
  height: 21vw;
  margin: 3px;
  padding-top: 2%;
  position: absolute;
  z-index: 2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: -webkit-grab;
  cursor: grab;
}

@media screen and (min-width: 436px) {
  .card__img .number {
    font-size: 3.3rem;
    width: 4.5rem;
    height: 4.5rem;
    padding-top: 4px;
  }
}
.card__img .number.hundred {
  font-size: 10vw;
}

@media screen and (min-width: 436px) {
  .card__img .number.hundred {
    font-size: 2.3rem;
  }
}
.card__img .number.thousand {
  font-size: 8vw;
}

@media screen and (min-width: 436px) {
  .card__img .number.thousand {
    font-size: 1.6rem;
  }
}

.card__img .number-duplicate {
  font-size: 5vw;
  width: auto;
  height: auto;
  /* height: 7vw; */
  position: absolute;
  top: 0;
  right: 6%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
@media screen and (min-width: 436px) {
  .card__img .number-duplicate {
    font-size: 1rem;
    width: auto;
    height: auto;
  }
}

#interactive-number-1 {
  top: 0%;
  left: 0%;
}
#interactive-number-2 {
  top: 0%;
  left: 24.7%;
}
#interactive-number-3 {
  top: 0%;
  left: 49.5%;
}
#interactive-number-4 {
  top: 0%;
  left: 74.3%;
}
#interactive-number-5 {
  top: 24.8%;
  left: 0;
}
#interactive-number-6 {
  top: 24.8%;
  left: 24.7%;
}
#interactive-number-7 {
  top: 24.8%;
  left: 49.5%;
}
#interactive-number-8 {
  top: 24.8%;
  left: 74.3%;
}
#interactive-number-9 {
  top: 49.7%;
  left: 0%;
}
#interactive-number-10 {
  top: 49.7%;
  left: 24.7%;
}
#interactive-number-11 {
  top: 49.7%;
  left: 49.5%;
}
#interactive-number-12 {
  top: 49.7%;
  left: 74.3%;
}
#interactive-number-13 {
  top: 74.4%;
  left: 0%;
}
#interactive-number-14 {
  top: 74.4%;
  left: 24.7%;
}
#interactive-number-15 {
  top: 74.4%;
  left: 49.5%;
}
#interactive-number-16 {
  top: 74.4%;
  left: 74.3%;
  color: #e60000;
}

/* CSS анимация для числа */

.number.disappearing .number-duplicate {
  -webkit-animation: numberAnimation 0.8s ease forwards;
  animation: numberAnimation 0.8s ease forwards;
}
@-webkit-keyframes numberAnimation {
  0% {
    top: 50%;
    right: 50%;
    -webkit-transform: scale(8);
    transform: scale(8);
    opacity: 0;
  }

  100% {
    top: 0%;
    right: 6%;
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes numberAnimation {
  0% {
    top: 50%;
    right: 50%;
    -webkit-transform: scale(8);
    transform: scale(8);
    opacity: 0;
  }

  100% {
    top: 0%;
    right: 6%;
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }
}
.drag-clear-text {
  position: absolute;
  top: 100%;
  left: 100%;
  width: 26%;
  color: gray;
  transform: translate(-96%, 2px);
  opacity: 0;
  font-size: 14px;
}
@media screen and (min-width: 436px) {
  .drag-clear-text {
    font-size: 13px;
  }
}
