* {
  box-sizing: border-box;
}


body {
  height: 100vh;
  
  margin: 0;
  background: #f5f5f5;
  font-family: 'Inter';
}

#landing h1{
  font-size: 18px;
  font-weight: 400;
  justify-content: flex-start; /* start content from top */
  margin-top: 1px;
}

#loading p{
  font-size: 18px;
  font-weight: 400;
  justify-content: flex-start; 
  top: 120px
}

@keyframes spinSoft {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dots {
  0%   { content: ""; }
  25%  { content: "."; }
  50%  { content: ".."; }
  75%  { content: "..."; }
  100% { content: ""; }
}

.dots::after {
  content: "";
  animation: dots 1.5s steps(4, end) infinite;
}


.screen {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}


.page-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  position: static;    
  transform: none;     
}

#loading .page-icon {
  animation: spinSoft 1.2s linear infinite;
}


@media (max-width: 400px) {
  .page-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
}

#gift {
  justify-content: flex-start;
  padding-top: 120px;
}


#giftImg{
    max-width:160px;
    max-height:160px;
    object-fit: contain;
    margin-top: 24px;
  }

#giftText{
  margin-top: 24px;
  max-width: 90%;
  text-align: center;
  line-height: 1.5;
}

/* Download Page */
#download {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 140px;
  height: auto;
  display: flex;
  min-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  text-align: center;
  position: relative;
}

#download .image-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60%;   /* almost full width */
  max-width: 400px; /* limit on big screens */
  height: auto;
  margin-bottom: 80px;
}

#download img {
  width: 50%;
  height: auto;
  object-fit: contain;
  border-radius: none;
  margin-top: 4px;
}

#downloadText {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 400;
}

#download .cta-btn {
  position: static;     /* remove absolute positioning */
  width: 90%;
  padding: 18px;
  border-radius: 10px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  display: block;
  margin: 12px auto;   /* stack buttons vertically */
  transition: transform 0.15s ease, opacity 0.15s ease;
}

#download .cta-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.secondary-btn {
  background: black;    /* slightly different color */
  font-size: 16px;
}

.image-box{
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Button */
.cta-btn {
  position: absolute;
  bottom: 30px;
  width: 90%;
  padding: 18px;
  border-radius: 10px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 18px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.cta-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

@media (min-width: 768px) {
    body::before {
        content: "Mobile only. please open on your phone :)";
        position: fixed;
        inset: 0;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        padding: 20px;
        text-align: center;
        z-index: 9999;
    }
}



