.blocker {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  overflow: auto;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgba(43, 43, 43, 0.8);
  text-align: center;
  z-index: 2000;
}
.blocker:before{
  content: "";
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -0.05em;
}
.blocker.behind {
  background-color: transparent;
}
.modal {
  display: none;
  vertical-align: middle;
  position: relative;
  z-index: 2;
  max-width: 690px;
  box-sizing: border-box;
  width: 90%;
  background: #fff;
  padding: 50px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -o-border-radius: 5px;
  -ms-border-radius: 5px;
  border-radius: 5px;
  box-shadow: none;
  text-align: left;
}

.modal a.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  display: block;
  width: 33px;
  height: 33px;
  text-indent: -9999px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 5px;
  background-color: var(--main-color-preset);
  background-image: url("/icons/ui/close.svg");
  transition: .3s;

}

.modal a.close-modal:hover {
   background-color: var(--color-default);
 }

.modal h2{
  margin: 0;
  font-weight: 500;
  font-size: 36px;
  margin-bottom: 15px;
}

.modal-spinner {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  padding: 12px 16px;
  border-radius: 5px;
  background-color: #111;
  height: 20px;
}

.modal-spinner > div {
  border-radius: 100px;
  background-color: #fff;
  height: 20px;
  width: 2px;
  margin: 0 1px;
  display: inline-block;

  -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
  animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.modal-spinner .rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.modal-spinner .rect3 {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

.modal-spinner .rect4 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

@-webkit-keyframes sk-stretchdelay {
  0%, 40%, 100% { -webkit-transform: scaleY(0.5) }
  20% { -webkit-transform: scaleY(1.0) }
}

@keyframes sk-stretchdelay {
  0%, 40%, 100% {
    transform: scaleY(0.5);
    -webkit-transform: scaleY(0.5);
  }  20% {
    transform: scaleY(1.0);
    -webkit-transform: scaleY(1.0);
  }
}

@media (max-width: 768px){
  .modal{
    padding: 10px;
    width: 100%;
  }
  .modal a.close-modal{
    top: 10px;
    right: 10px;
    display: block;
    width: 25px;
    height: 25px;
  }
}
@media (max-width: 390px){

  

  .blocker{
    padding: 10px;
  }

  .modal h2{
    font-size: 24px;
  }

}
