@charset "UTF-8";
/**
 * Configuration.
 */
/**
 * Buttons.
 */
.button {
  margin-bottom: 4px;
  padding: 8px 12px;
  border: 1px solid #75b9e1;
  border-radius: 3px;
  background: #4fa0d0;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  color: #fff;
}
.button:focus {
  outline: none;
}
.button--warning {
  border: 1px solid #ffb039;
  background: #ff9800;
}
.button--success {
  border: 1px solid #71e6ab;
  background: #4ad890;
}
.button--error {
  border: 1px solid #f578a4;
  background: #ef5289;
}

/**
 * Popups.
 */
 #popupfonts p{
  color: var(--p-color);
 }

.popup {
  visibility: hidden;
  transition: visibility 0ms linear 0.3s;
}
.popup--visible {
  visibility: visible;
  transition: visibility 0ms;
}

.popup__background {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.popup--visible .popup__background {
  opacity: 1;
}
.popup__content {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10001;
  min-width: 400px;
  padding: 25px 50px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  text-align: center;
  animation: hide-popup 0.3s forwards;
  /**
  * Popup types.
  */
}
.popup--visible .popup__content {
  animation: show-popup 0.3s forwards;
}
.popup--icon .popup__content {
  padding-top: 130px;
  /**
  * Animations on opened popups.
  *
  * We need to prepend ".popup--visible" with no space to "&" to match the
  * an opened popup: ".popup--visible.popup--icon".
  *
  * Therefore we need the "at-root" function to break out of nesting as well as the
  * "selector-append" function to append parent selectors without space.
  *
  * Details:
  *  - https://css-tricks.com/the-sass-ampersand/
  *  - http://sass-lang.com/documentation/Sass/Script/Functions.html#selector_append-instance_method
  */
  /**
  * Different popup icon styles
  *
  * E.g. selector for type question: ".popup--icon.-question" to match class="popup--icon -question"
  *
  * To have an easier selector in SCSS we use a little workaround and rearrange the selectors:
  *  ".-question.popup--icon" is also matching class="popup--icon -question"
  */
}
.popup--icon .popup__content:before, .popup--icon .popup__content:after {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  height: 90px;
  width: 90px;
}
.popup--icon .popup__content:before {
  content: "";
  border: 3px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%) scale(1, 0);
  opacity: 0;
}
.popup--icon .popup__content:after {
  content: "✓";
  line-height: 90px;
  font-size: 45px;
  transform: translateX(-50%) scale(0);
  opacity: 0;
}
.popup--visible.popup--icon .popup__content:before {
  animation: show-icon-cirlce 0.3s forwards 0.15s;
}
.popup--visible.popup--icon .popup__content:after {
  animation: show-icon 0.6s forwards 0.6s;
}

.-question.popup--icon .popup__content:before {
  border-color: #ff9800;
}
.-question.popup--icon .popup__content:after {
  content: "?";
  color: #ff9800;
}

.-success.popup--icon .popup__content:before {
  border-color: #4ad890;
}
.-success.popup--icon .popup__content:after {
  content: "✓";
  color: #4ad890;
}

.-error.popup--icon .popup__content:before {
  border-color: #ef5289;
}
.-error.popup--icon .popup__content:after {
  content: "✗";
  color: #ef5289;
}

.popup__content__title {
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 100;
  color: #626262;
}

/**
 * Popup animations.
 * Based on Sweet Alert: "https://t4t5.github.io/sweetalert/"
 */
@keyframes show-popup {
  0% {
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
  }
  45% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }
  80% {
    transform: translate(-50%, -50%) scale(0.95);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes hide-popup {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
}
/**
 * Icon animations.
 */
@keyframes show-icon {
  0% {
    transform: translateX(-50%) scale(0);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}
@keyframes show-icon-cirlce {
  0% {
    transform: translateX(-50%) scale(1, 0);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) scale(1, 1);
    opacity: 1;
  }
}

/*# sourceMappingURL=popup.css.map */

.popup-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Пример значения z-index, можете подстроить под ваши нужды */
}

.popup-content {
  max-width: 80vw;
  max-height: 80vh;
  overflow: auto;
}

#popup-image {
  max-width: 70vw; /* Ограничиваем максимальную ширину до 70% ширины экрана */
  max-height: 90vh;
  width: auto;
  height: auto;
}
.close-popup {
  position: absolute;
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 60%;
  z-index: 1001;
}






