/* Home Page Css */
body.page-home {
  background: linear-gradient(180deg, #316631 0%, #006B00 70.7%, #003800 100%);
}

.logo-area {
  margin-top: 3vh;
  margin-bottom: 2vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 340px;
}

.logo-area img {
  width: 100%;
  height: auto;
  max-height: 405px;
  object-fit: contain;
}

.subtitle {
  margin-top: -10vh;
  font-family: 'joti-one';
  font-size: clamp(14px, 4vw, 18px);
  color: #f8fbfd;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 1px 10px #18773c;
}

.main-illustration-section {
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.main-illustration {
  margin: 2vh auto;
  width: 25vw;
  min-width: 150px;
  max-width: 180px;
  height: auto;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

.main-illustration .placeholder-icon {
  width: 60%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
}

.main-illustration .devil-horns img {
  width: 100%;
  height: auto;
  max-width: 75px;
}

img.horn_left {
  left: 0px;
  position: absolute;
  top: 0;
}

img.horn_right {
  position: absolute;
  top: 0;
  right: 0;
}

.play-card {
  margin: 2vh auto 0;
  background: linear-gradient(180deg, #316631 0%, #196919 50%, #003800 100%);
  border: 1px solid #ffffff;
  border-width: 1px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-image-source: linear-gradient(99.98deg, rgba(255, 255, 255, 0.6) 1.91%, rgba(255, 255, 255, 0.2) 50.29%, rgba(255, 255, 255, 0.6) 98.67%);
  border-image-slice: 1;
  border-image: none;
  padding: 5vh 3vw 4vh;
  box-shadow: 0 1px 8px 0 rgba(118, 255, 90, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 360px;
  min-height: 235px;
  gap: 3vh;
  position: relative;
  z-index: 2;
}

/* Footer CSS */
.powered-row {
  margin: 2vh 0;
  color: #eaffc6;
  font-size: clamp(12px, 3vw, 14px);
  font-family: 'roboto';
  display: flex;
  align-items: center;
  gap: 0.4vw;
  opacity: 0.88;
  /* flex-wrap: wrap; */
  justify-content: center;
  font-weight: 500;
  padding: 0 0.2vw;
  text-align: center;
  flex-direction: row;
}

.powered-logo {
  height: clamp(20px, 5vw, 28px);
  margin-left: 1vw;
}

/* Media Queries */
@media screen and (max-width: 1536px) and (max-height: 730px) {
  .logo-area {
    margin-top: 0;
  }
.subtitle {
    margin-top: -13vh;
}
}

@media (max-width: 768px) {
  .play-card {
    padding: 4vh 3vw;
    gap: 2vh;
}
}

@media (max-width: 480px) {
  .logo-area {
    margin-top: 4vh;
  }

  .logo-area img {
    width: 80% !important;
    margin-top: 15px;
  }
  
  .subtitle {
    margin-top: -10vh;
}
  
.main-illustration {
  min-width: 200px;
}

}

@media (max-height: 700px) {
  .logo-area {
    margin-top: 3vh;
  }
  .logo-area {
    margin-top: -6vh;
}
  .play-card {
    margin-top: 1vh;
  }
}


/* Back Animation Styles */
.back-anime {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.back-anime img {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: auto;
  /* max-height: 150px; */
  transform: translateX(-50px);
  transition: opacity 1s ease, transform 1s ease;
  will-change: transform, opacity;
}

/* Animation keyframes - smoother movement */
@keyframes fadeInMoveRight {
  0% {
    opacity: 0;
    transform: translateX(-80px) scale(0.9);
  }
  100% {
    opacity: 0.7; /* Slightly transparent for better readability */
    transform: translateX(0) scale(1);
  }
}

/* Mobile screen styles */
@media (max-width: 767px) {
  .back-anime {
    display: block;
  }

  .back-anime .left-anime {
    left: -64%;
    top: 7%;
    animation: fadeInMoveRight 1.2s ease-out forwards 0.5s;
    transform-origin: center;
    rotate: 240deg;
}

.back-anime .middle-anime {
  left: 12.2%;
  top: -31%;
  animation: fadeInMoveRight 1.2s ease-out forwards 1.5s;
  transform-origin: center;
  rotate: 60deg;
}

.back-anime .right-anime {
  right: -44%;
  top: -2%;
  animation: fadeInMoveRight 1.2s ease-out forwards 2.5s;
  transform-origin: center;
  rotate: 60deg;
}
}

/* Smaller mobile devices */
@media (max-width: 480px) {
  .back-anime img {
    height: auto;
  }

  .back-anime .left-anime {
    left: -62%;
    top: 30%;
}

.back-anime .middle-anime {
  left: 11.5%;
  top: 4%;
}

  .back-anime .right-anime {
    right: -41%;
    top: 24%;
}
}

/* Very small screens (e.g., iPhone 5/SE) */
@media (max-width: 320px) {
  .back-anime img {
    height: auto;
    opacity: 0.6; 
  }

  .back-anime .left-anime {
    left: -65%;
    top: 48%;
}

  .back-anime .middle-anime {
    left: 10.4%;
    top: 32%;
}

.back-anime .right-anime {
  right: -42%;
  top: 44%;
}
}

/* Landscape orientation adjustments */
@media (max-width: 767px) and (orientation: landscape) {
  .back-anime img {
    height: auto;
  }

  .back-anime .left-anime {
    top: 25%;
    left: -30%;
  }

  .back-anime .middle-anime {
    top: 10%;
    left: 15%;
  }

  .back-anime .right-anime {
    top: 20%;
    right: -25%;
  }
}
