/*====================================================*/
/*====================================================*/
/*=========== Preloader ============*/
#loader-container {
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -140px;
  margin-left: -120px;
  text-align: center;
  z-index: 3000;
}

.loader-box {
  margin: 0 auto;
  height: 240px;
  width: 240px;
  position: fixed;
  background: #cccccc;
  border-radius: 100%;
  overflow: hidden;
  z-index: 3000;
}

.loader-box .percent {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  display: -webkit-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 64px;
}

.loader-box .water {
  position: fixed; /* Garante que cubra toda a tela */
  left: 0;
  top: 0;
  width: 100vw; /* Ocupa toda a largura da tela */
  height: 100vh; /* Ocupa toda a altura da tela */
  background: #202e65;
  z-index: 2;
  -webkit-transform: translate(0, 100%);
  transform: translate(0, 100%);
  transition: transform 1s ease-in-out;
}


.loader-box .water_wave {
  width: 200%;
  position: absolute;
  bottom: 100%;
}

.loader-box .water_wave_back {
  right: 0;
  fill: #61acec;
  -webkit-animation: wave-back 2s infinite linear;
  animation: wave-back 2s infinite linear;
}

.loader-box .water_wave_front {
  left: 0;
  fill: #202e65;
  margin-bottom: -1px;
  -webkit-animation: wave-front 1s infinite linear;
  animation: wave-front 1s infinite linear;
}

@media screen and (max-width: 1140px) {
  #loader-container {
    margin-top: -110px;
    margin-left: -90px;
  }
  .loader-box {
    height: 180px;
    width: 180px;
  }
  .loader-box .percent {
    font-size: 42px;
  }
}

@-webkit-keyframes wave-front {
  100% {
      -webkit-transform: translate(-50%, 0);
      transform: translate(-50%, 0);
      -ms-transform: translate(-50%, 0);;
      -moz-transform: translate(-50%, 0);;
  }
}

@keyframes wave-front {
  100% {
      -webkit-transform: translate(-50%, 0);
      transform: translate(-50%, 0);
      -ms-transform: translate(-50%, 0);;
      -moz-transform: translate(-50%, 0);;
  }
}

@-webkit-keyframes wave-back {
  100% {
      -webkit-transform: translate(50%, 0);
      transform: translate(50%, 0);
      -ms-transform: translate(50%, 0);;
      -moz-transform: translate(50%, 0);;
  }
}

@keyframes wave-back {
  100% {
      -webkit-transform: translate(50%, 0);
      transform: translate(50%, 0);
  }
}   

/* ======================================== */
/* ======================================== */
/* ======================================== */

.ctn-preloader {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    cursor: default;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 9000;
    overflow: hidden !important;
}
.ctn-preloader .animation-preloader {
    background: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden !important;
}
.ctn-preloader .loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 0;
    z-index: 1;
    pointer-events: none;
}
.ctn-preloader.loaded {
    -webkit-transform: translateY(-100vh);
    transform: translateY(-100vh);
    -webkit-transition: 0.5s ease-in-out;
    -o-transition: 0.5s ease-in-out;
    transition: 0.5s ease-in-out;
}

/* Botão flutuante */
.audio-btn {
  position: fixed;
  bottom: 12px;
  left: 20px;
  background: #ffffffcc;
  border-radius: 50px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: opacity 0.3s;
  z-index: 1000;
}

.audio-btn.paused {
  animation-play-state: paused;
  opacity: 0.4;
}

.audio-icon svg {
  width: 24px;
  height: 24px;
  fill: #333;
  margin-right: 8px;
}

/* Ondas */
.waves-audio {
  display: flex;
  gap: 3px;
}

.wave-audio {
  width: 4px;
  height: 10px;
  background: #00aaff;
  animation: waveAnim 2s infinite;
  animation-delay: calc(var(--i) * 0.1s);
}

.audio-btn.paused .wave-audio {
  animation: none;
  background: #ccc;
}

@keyframes waveAnim {
  0%, 100% { height: 10px; }
  50% { height: 20px; }
}

@media screen and (max-width: 1140px) {
  .audio-btn {
    bottom: 6px;
    left: 5px;
    padding: 6px 14px;
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
  }
}