.model_bg{
  background-color: rgba(0, 0, 0, 0.0);
  border:none;
}

.loading_text{
  color:#0F2D59;
  font-size: medium;
  font-weight: bold;
  padding-top: 20px;
  font-size: 24px;
}
.loader {
  transform: rotateZ(45deg);
  perspective: 1000px;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  color: #0F2D59;
}
  .loader:before,
  .loader:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: 1s spin linear infinite;
  }
  .loader:after {
    color:#F29618;
    transform: rotateY(70deg);
    animation-delay: .4s;
  }

@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotateZ(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotateZ(360deg);
  }
}

@keyframes rotateccw {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes spin {
  0%,
  100% {
    box-shadow: .2em 0px 0 0px currentcolor;
  }
  12% {
    box-shadow: .2em .2em 0 0 currentcolor;
  }
  25% {
    box-shadow: 0 .2em 0 0px currentcolor;
  }
  37% {
    box-shadow: -.2em .2em 0 0 currentcolor;
  }
  50% {
    box-shadow: -.2em 0 0 0 currentcolor;
  }
  62% {
    box-shadow: -.2em -.2em 0 0 currentcolor;
  }
  75% {
    box-shadow: 0px -.2em 0 0 currentcolor;
  }
  87% {
    box-shadow: .2em -.2em 0 0 currentcolor;
  }
}

/* loader text animation starts */
.dot {
  opacity: 0;
  animation: wave 1.5s infinite;
}

.dot:nth-child(1) {
  animation-delay: 0s;
}

.dot:nth-child(2) {
  animation-delay: 0.3s;
}

.dot:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes wave {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}



/* loader text animation ends */


/* New center code for the phone */



.loader_inner_container {
  display: flex;
  /* flex-direction: row; */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

/* Add this media query to handle mobile screens */
@media (max-width: 768px) {
  .loader_inner_container {
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
  }

  .loader {
    width: 80px;
    height: 80px; /* Adjust the size for smaller screens */
  }
}



/* CODE FOR NEW LOADER */

/* Centering and layout */
.loader-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px; /* Adjust as needed */
  text-align: center;
}

.loader-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin-bottom: 20px;
}

/* Loader animation */
.loader-animation {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.loader-animation div {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  animation: loaderAnim 1.2s linear infinite;
}

.loader-animation div:nth-child(1) { top: 32px; left: 8px; animation-delay: 0s; background: #ff6b6b; }
.loader-animation div:nth-child(2) { top: 16px; left: 16px; animation-delay: -0.1s; background: #feca57; }
.loader-animation div:nth-child(3) { top: 8px;  left: 32px; animation-delay: -0.2s; background: #1dd1a1; }
.loader-animation div:nth-child(4) { top: 16px; left: 48px; animation-delay: -0.3s; background: #54a0ff; }
.loader-animation div:nth-child(5) { top: 32px; left: 56px; animation-delay: -0.4s; background: #5f27cd; }
.loader-animation div:nth-child(6) { top: 48px; left: 48px; animation-delay: -0.5s; background: #ff6b6b; }
.loader-animation div:nth-child(7) { top: 56px; left: 32px; animation-delay: -0.6s; background: #feca57; }
.loader-animation div:nth-child(8) { top: 48px; left: 16px; animation-delay: -0.7s; background: #1dd1a1; }

@keyframes loaderAnim {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

/* Loading text */
.loader-text {
  margin-top: 20px;
  color: white;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.loader-text span {
  display: inline-block;
  animation: bounce 1.4s infinite;
}

.loader-text span:nth-child(2) { animation-delay: 0.2s; }
.loader-text span:nth-child(3) { animation-delay: 0.4s; }
.loader-text span:nth-child(4) { animation-delay: 0.6s; }
.loader-text span:nth-child(5) { animation-delay: 0.8s; }
.loader-text span:nth-child(6) { animation-delay: 1s; }
.loader-text span:nth-child(7) { animation-delay: 1.2s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
