/* Message box when SW.JS gets update */
.update-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 99999;
  backdrop-filter: blur(3px);
}

.update-overlay.show {
  display: flex;
}

.update-box {
  width: min(90%, 320px);
  padding: 25px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
  font-family: system-ui, sans-serif;
}

.update-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.update-text {
  font-size: 14px;
  color: #666;
}

.update-spinner {
  width: 30px;
  height: 30px;
  margin: 0 auto 15px;
  border: 3px solid #ddd;
  border-top-color: #1976d2;
  border-radius: 50%;
  animation: updateSpin 0.8s linear infinite;
}

@keyframes updateSpin {
  to {
    transform: rotate(360deg);
  }
}


/* Preloader */
/* text loading */
.ctn-preloader .animation-preloader .txt-loading {
  font: bold 5em 'Montserrat', sans-serif;
  text-align: center;
  /* Mozilla-specific values */
  -moz-user-select: none;
  /* WebKit-specific values */
  -webkit-user-select: none;
  /* Microsoft-specific values */
  -ms-user-select: none;
  /* Chromium-specific values */
  user-select: none;
}

.ctn-preloader .animation-preloader .txt-loading .letters-loading:before {
  animation: letters-loading 4s infinite;
  color: #4e4187;
  content: attr(data-text-preloader);
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transform: rotateY(-90deg);
}

.ctn-preloader .animation-preloader .txt-loading .letters-loading {
  color: rgba(0, 0, 0, 0.2);
  position: relative;
}

.ctn-preloader .animation-preloader .txt-loading .letters-loading:nth-child(2):before {
  animation-delay: 0.15s;
}

.ctn-preloader .animation-preloader .txt-loading .letters-loading:nth-child(3):before {
  animation-delay: 0.3s;
}

.ctn-preloader .animation-preloader .txt-loading .letters-loading:nth-child(4):before {
  animation-delay: 0.45s;
}

/*
.ctn-preloader .animation-preloader .txt-loading .letters-loading:nth-child(5):before {
  animation-delay: 0.6s;
}
*/
/*
.ctn-preloader .animation-preloader .txt-loading .letters-loading:nth-child(6):before {
  animation-delay: 1s;
}

.ctn-preloader .animation-preloader .txt-loading .letters-loading:nth-child(7):before {
  animation-delay: 1.2s;
}
*/
.ctn-preloader .loader-section {
  background-color: #ffffff;
  height: 100%;
  position: fixed;
  top: 0;
  width: calc(50% + 1px);
}

.ctn-preloader .loader-section.section-left {
  left: 0;
}

.ctn-preloader .loader-section.section-right {
  right: 0;
}

/* Fade effect on loading animation */
.loaded .animation-preloader {
  opacity: 0;
  transition: 0.3s ease-out;
}

/* fade out effect */
.loaded .loader-section.section-left {
  /*curtain effect */
  /*transform: translateX(-101%);*/
  /*transition: 0.7s 0.3s all cubic-bezier(0.1, 0.1, 0.1, 1.000);*/
  -webkit-animation: fadeOut ease 3s;
  -moz-animation: fadeOut ease 3s;
  -o-animation: fadeOut ease 3s;
  -ms-animation: fadeOut ease 3s;
  animation: fadeOut ease 3s;
}

.loaded .loader-section.section-right {
  /*transform: translateX(101%);*/
  /*transition: 0.7s 0.3s all cubic-bezier(0.1, 0.1, 0.1, 1.000);*/
  -webkit-animation: fadeOut ease 3s;
  -moz-animation: fadeOut ease 3s;
  -o-animation: fadeOut ease 3s;
  -ms-animation: fadeOut ease 3s;
  animation: fadeOut ease 3s;
}

/* preloader animation */
@keyframes spinner {
  to {
    transform: rotateZ(360deg);
  }
}

/* Animation of the letters loading from the preloader */
@keyframes letters-loading {

  0%,
  75%,
  100% {
    opacity: 0;
    transform: rotateY(-90deg);
  }

  25%,
  50% {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

/* Laptop size (laptop, tablet, cell phone) */
@media screen and (max-width: 767px) {

  /* Preloader */
  /* Spinner cargando */
  .ctn-preloader .animation-preloader .spinner {
    height: 8em;
    width: 8em;
  }

  /* text loading */
  .ctn-preloader .animation-preloader .txt-loading {
    font: bold 3.5em 'Montserrat', sans-serif;
  }
}

@media screen and (max-width: 500px) {

  /* Prelaoder */
  /* Spinner loading */
  .ctn-preloader .animation-preloader .spinner {
    height: 7em;
    width: 7em;
  }

  /* text loading */
  .ctn-preloader .animation-preloader .txt-loading {
    font: bold 2em 'Montserrat', sans-serif;
  }
}