body {
  font-family: "Caveat", cursive;
  margin: 0;
  padding: 0;
  min-height: 100lvh; /* Standard fallback for browsers that don't support -webkit-fill-available */
  min-height: -webkit-fill-available; /* Specific fix for iOS Safari */
}

html {
  height: -webkit-fill-available; /* Ensures the html element also respects the available height */
}

.main {
  position: relative;
  width: 100%;
  height: 100lvh;
  overflow: hidden;
}

.img-logo {
  position: absolute;
  top: 22px;
  left: 16px;
  width: 192px;
  height: 162px;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg__svg-desk,
.bg__svg-tablet,
.bg__svg-mob {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; 
}

.bg__svg-mob,
.bg__svg-tablet {
  display: none;
}

.desk {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 701px;
  height: 205px;
  display: flex;
  align-items: center;

  background-image: url("/assets/img/bottom-bg.webp");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: top;
}

.img-actor {
  margin-left: -11px;
  width: 229px;
  height: 192px;
  margin-top: 27px;
}

h2 {
  font-weight: 400;
  font-size: 44px;
  line-height: 45px;
  letter-spacing: 0;
  text-align: center;
  color: #FFCC56;
  max-width: 318px;
}

.audio-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 35px;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  border: none;
  outline: none;
  background: #FFCC56;
  color: #20190F;
  cursor: pointer;
  transition: all 0.2s ease-in;

  box-shadow: 0 0 0 0px rgba(254, 240, 170, 0);
  animation: pulseShadow 2s infinite;
}

.audio-btn.playing {
  background: #FEDC2D;
}

.audio-btn:active {
  background: #FEDC2D;
}

.icon-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease-in;
  opacity: 0;
}

.icon-wrapper.play {
  opacity: 1; 
}

.audio-btn.playing .icon-wrapper.play {
  opacity: 0;
}

.audio-btn.playing .icon-wrapper.pause {
  opacity: 1;
}

@keyframes pulseShadow {
  0% {
    box-shadow: 0 0 0 0px rgba(254, 240, 170, 0);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(254, 240, 170, 0.66);
  }
  75% {
    box-shadow: 0 0 0 30px rgba(254, 240, 170, 0.1);

  }
  100% {
    box-shadow: 0 0 0 30px rgba(254, 240, 170, 0);
  }
}

@media (max-width: 700px) {
  .desk {
    bottom: 29px;
    width: 100%;
    max-width: 372px;
    height: 127px;

    background-image: url("/assets/img/bottom-bg-mob.webp");
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: top;
  }

  .img-actor {
    margin-left: -3px;
    width: 136px;
    height: 114px;
    margin-top: 14px;
    border-bottom-left-radius: 30px;
  }

  h2 {
    font-size: 26px;
    line-height: 26.5px;
    max-width: 151px;
    margin-left: -30px;
  }

  .audio-btn {
    width: 70px;
    height: 70px;
    margin-left: 15px;
  }
}

@media (max-width: 500px) {
  .img-logo {
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 116px;
    height: 105px;
  }

  .bg__svg-desk,
  .bg__svg-tablet {
    display: none;
  }

  .bg__svg-mob {
    display: block;
  }
}

@media (max-height: 500px) {
  .desk {
    bottom: 0;
    width: 100%;
    max-width: 438px;
    height: 127px;

    background-image: url("/assets/img/bottom-bg.webp");
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: top;
  }

  .img-logo {
    top: 20px;
    left: 20.5px;
    width: 111.5px;
    height: 90px;
  }

  h2 {
    font-size: 26px;
    line-height: 26.5px;
    margin-left: -35px;
    margin-top: 60px;
  }

  .img-actor {
    margin-left: 13px;
    margin-top: 0;
    margin-bottom: -30px;
    width: 122px;
    height: 102px;
    border-bottom-left-radius: 10px;
  }

  .audio-btn {
    margin-left: 0;
    margin-right: 30px;
    flex-shrink: 0;
    width: 70px;
    height: 70px;
  }

  .bg__svg-desk,
  .bg__svg-mob {
    display: none;
  }

  .bg__svg-tablet {
    display: block;
  }
}