
.blocker {
  position: fixed; 
  z-index: 1; 
  left:0;
  right:0;
  bottom:0;
  width: 100%; 
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.5); 
  text-align:center;
}

.modal {
  display:none;
}

.blocker.current .modal {
  position: relative;
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
  background-color:#3a3a3a;
  margin: 0 auto;
  margin-top:3%;
  display: flex;
  align-items: center;
  justify-content: center; 
  background:linear-gradient(var(--bg-secondary),var(--bg-secondary)) padding-box,linear-gradient(to right,var(--theme-first-color),var(--theme-second-color)) border-box;
  border:2px solid transparent;
  border-radius:var(--radius-medium);
  display:block;
  width: 600px;
  -webkit-animation-name:pulse;
  animation-name:pulse;
  -webkit-animation-timing-function:ease-in-out;
  animation-timing-function:ease-in-out;
  text-align:left;
  animation-duration: 0.4s;
}

.modal_content {
 max-height: 80vh; /* Maximum height of 80% of viewport height */
    overflow-y: auto; /* Enable vertical scrolling if content exceeds max-height */
  
   
    box-sizing: border-box; /* Include padding in the height calculation */
 
    width: 100%; /* Full width of the container */
   
}

@keyframes pulse {
  0% {
    -webkit-transform:scaleX(1);
    transform:scaleX(1)
  }
  50% {
    -webkit-transform:scale3d(1.05,1.05,1.05);
    transform:scale3d(1.05,1.05,1.05)
  }
  to {
    -webkit-transform:scaleX(1);
    transform:scaleX(1)
  }
}


@-webkit-keyframes animatetop {
  from {top:-300px; opacity:0} 
  to {top:0%; opacity:1}
}

@keyframes animatetop {
  from {top:-300px; opacity:0}
  to {top:0%; opacity:1}
}

@keyframes slideIn {
  from {
    transform: translateY(-100%);
  }
}
@keyframes slideOut {
  to {
    transform: translateY(-100%);
  }
}

.modal a.close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  display: block;
  font-size:0px;
}

.modal a.close-modal:before {
  font-weight:500;
  font-size:1rem;
  content:"Close";
  color:var(--theme-first-color);
}

.modal-spinner {
 position: fixed;
  z-index: 997;
  background-color:rgba(0, 0, 0, 0.300);
  overflow: show;
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.modal-spinner:after {
  width: 80px;
  height: 80px;
  content:"";
  margin: auto;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position:fixed;
  z-index:999;
  margin: 100px auto;
  background-color: #e74c3c;

  border-radius: 100%;  
  -webkit-animation: sk-scaleout 1.0s infinite ease-in-out;
  animation: sk-scaleout 1.0s infinite ease-in-out;
}

@-webkit-keyframes sk-scaleout {
  0% { -webkit-transform: scale(0) }
  100% {
    -webkit-transform: scale(1.0);
    opacity: 0;
  }
}

@keyframes sk-scaleout {
  0% { 
    -webkit-transform: scale(0);
    transform: scale(0);
  } 100% {
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
    opacity: 0;
  }
}
