@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&family=Phudu:wght@700&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

input,
textarea {
  background-color: transparent !important;
  -webkit-text-fill-color: #000 !important; /* Prevent dark mode styling */
  color-scheme: light;
}


.background-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: url('img/HomePageFinal.png') no-repeat center center/cover;
}

/* Main container */
.main-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 50px;
  z-index: 2;
  position: relative;
  flex-direction: row;
  margin-top: 15px;
}

/* Hero Slider */
.hero-slider {
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 20px;
  position: relative;
}
.hero-slide-wrapper {
  position: relative;
  width: 250px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  transition: opacity 1s ease-in-out;
}
.hero-slide.active {
  display: block;
  opacity: 1;
}
.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.dot.active {
  background: #fff;
}

/* Cards */
.image-card {
  position: relative;
  flex: 1 1 320px;
  max-width: 400px;
  text-align: center;
}
.main-img {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

/* Spin Wheel Section */
.spin-title {
  position: absolute;
  top: 7%;
  width: 50%;
  left: 25%;
  font-size: 25px;
}
.spin-wheel {
    position: absolute;
    bottom: 7%;
    left: 50%;
    transform: translateX(-50%);
    width: 263px;
}

/* Treasure Chest Section */
.treasure-title {
  position: absolute;
  top: 13%;
  left: 20%;
}
.t-chest {
  position: absolute;
  top: 19%;
  left: 17%;
  width: 228px;
}
.cta-container {
  position: absolute;
  top: 92%;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: auto;
  text-decoration: none;
  text-align: left;

}
.cta-img {
  width: 100%;
}
.cta-text {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 11px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: white;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
  line-height: 11px;
}

/* Decorations */
.hat.top-left {
  position: absolute;
  top: 62%;
  left: -15%;
  width: 168px;
  transform: scaleX(-1);
}
.skull.top-right {
  position: absolute;
  top: 33px;
  right: -56px;
  width: 144px;
}


.gun.bottom-right {
    position: absolute;
    bottom: 12px;
    right: 19px;
    width: 88px;
    transform: scaleX(-1);
}

/* Popup */
.password-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.popup-bg {
  position: relative;
  width: 320px;
  margin-top: -196px;
}
.popup-frame {
  width: 100%;
}
.popup-content {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
}
.styled-input {
  width: 240px;
  height: 45px;
  padding: 0 15px;
  font-size: 30px;
  background: linear-gradient(to bottom, #f9f9f9, #ececec);
  border-radius: 999px;
  border: 2px solid #fff;
  position: absolute;
  top: 60px;
  right: 30px;
  box-shadow: inset 3px 3px 4px rgba(0, 0, 0, 0.25),
              0 0 0 1px rgba(0, 0, 0, 0.1),
              0 4px 0 0 rgba(0, 0, 0, 0.15);
}
#real-pwd {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent !important;
  color: transparent !important;
  caret-color: black;
  font-size: 30px;
  border: none;
  z-index: 2;
  -webkit-text-fill-color: transparent; /* Fix for Safari dark mode */
  appearance: none;
}

#svg-display {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 15px;
  gap: 4px;
}
.svg-char {
  width: 18px;
  height: 18px;
  background: url('img/star.png') no-repeat center;
  background-size: contain;
}
.lock-button {
  position: absolute;
  top: 50px;
  right: 1px;
  background: none;
  border: none;
  cursor: pointer;
}
.lock-button img {
  width: 50px;
}
.popup-close {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 22px;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
}
.no-password-text {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #000;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  width: 100%; /* or a specific width like 260px if needed */
}

.no-style-link {
  color: #4d2e00;
  text-decoration: none;
  font-weight: 600;
}
.main-heading {
  font-family: 'Phudu', sans-serif;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}
.text-section {
  text-align: center;
  color: #4d2e00;
}
.error-message {
  position: absolute;
  top: 110px;
  left: 30px;
  font-size: 12px;
  color: red;
  font-family: "Montserrat", sans-serif;
  display: none;
}


@media screen and (min-width:767px) {
.main-container {
        gap: 110px;
        margin-top: 110px;
    }
    .main-img {
        width: 108%;
        max-width: 562px;
        margin: 0 auto;
    }
.image-card {
    
    max-width: 562px;
    
}

    .spin-wheel {
        bottom: 15%;
        left: 50%;
        width: 362px;
    }

    .t-chest{
      left: 18%;
    width: 365px;
    }

.treasure-title {
  
    top: 12%;
    left: 20%;
    width: 61%;
}

    .cta-container {
        top: 91%;
        left: 53%;
        width: 188px;
    }

.cta-text {
    
    top: 47%;
    left: 23px;
   line-height: 16px;
    font-size: 16px;
  }

  .skull.top-right {
    
    right: -87px;

}
.hat.top-left {
   
    width: 222px;
}
.gun.bottom-right{
  width: 126px;
}
}
/* --- Keyframes (Commented for future use) --- */



@keyframes pulse-wiggle {
  0%, 100% { transform: translateX(-50%) scale(1); }
  10% { transform: translateX(-50%) scale(1.05) rotate(1deg); }
  20% { transform: translateX(-50%) scale(1.05) rotate(-1deg); }
  30% { transform: translateX(-50%) scale(1.05) rotate(1deg); }
}

.cta-container {
  animation: pulse-wiggle 1s ease-in-out infinite;
  animation-delay: 3s;
  animation-play-state: running;
}


.treasure-card:hover #chest-image {
  animation: pulseShine 1.2s ease-in-out infinite;
}



.spin-card:hover #wheel-img {
  animation: rotateShine 2s linear infinite;
}


@keyframes pulseShine {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px gold);
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px #ffeb3b);
  }
}

@keyframes rotateShine {
  0% { transform: translateX(-50%) rotate(0deg)  scale(1); filter: drop-shadow(0 0 5px yellow); }
  50% { transform: translateX(-50%) rotate(180deg)  scale(1.05); filter: drop-shadow(0 0 20px yellow); }
  100% { transform: translateX(-50%) rotate(360deg)   scale(1); filter: drop-shadow(0 0 5px yellow); }
}

.chest-animate {
  animation: pulseShine 1.2s ease-in-out infinite;
}

.wheel-animate {
  animation: rotateShine 2s linear infinite;
}

.spin-auto {
  animation: rotateWheel 2s linear;
}

.pop {
  animation: chestPop 1s ease-in-out;
}

@keyframes pulseLock {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px gold);
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px yellow);
  }
}
 
