* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

.song {
  visibility: hidden;
}

.container {
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  text-align: center;
  visibility: hidden;
  width: 100vw;
}

.container>div {
  left: 0;
  position: absolute;
  right: 0;
  top: 20vh;
  z-index: 10;
  /* Force text above canvas */
}

.one {
  font-size: 4.5rem;
}

.two {
  font-size: 1.2rem;
  font-weight: lighter;
}

.three {
  font-size: 3rem;
}

.four {
  z-index: 40 !important;
  /* Ensure it stays above later elements */
}

.four .text-box {
  border: 4px solid #aaa;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.95);
  /* Readable text even if tree touches */
  padding: 20px;

  position: absolute;
  /* Centering logic */
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  /* Align with top of container */
  width: 45vw;
  /* Responsive width */
  max-width: 600px;
  z-index: 2000;
  /* Ensure on top of tree */

  /* Reset old margins */
  margin: 0;
}

.text-box p {
  margin: 0;
  text-align: left;
}

.text-box span {
  visibility: hidden;
}

.text-box .fake-btn {
  background-color: rgb(21, 161, 237);
  border-radius: 3px;
  bottom: -50px;
  color: #fff;
  padding: .5rem 1rem;
  position: absolute;
  right: 5px;
  cursor: pointer;
  z-index: 1000;
  /* Ensure above canvas */
}

.five p {
  font-size: 2rem;
  left: 0;
  position: absolute;
  right: 0;
}

.idea-3 strong {
  border-radius: 3px;
  display: inline-block;
  padding: 3px 5px;
}

.five .idea-5 {
  font-size: 4rem;
}

.idea-5 span,
.idea-6 span,
.wish-hbd span {
  display: inline-block;
}

.idea-6 span {
  font-size: 15rem;
}


.six {
  position: relative;
  top: 10vh;
  z-index: 1;
}

.six img {
  display: inline-block;
  height: 350px;
  max-width: 100%;
  /* height: auto; */
}

.six .hat {
  left: 41.5%;
  position: absolute;
  /* transform: scale(0.1); */
  top: -35%;
  width: 80px;
}

.baloons img {
  display: inline-block;
  position: absolute;
}

.baloons img:nth-child(even) {
  left: -10%;
}

.baloons img:nth-child(odd) {
  right: -10%;
}

.baloons img:nth-child(3n + 0) {
  left: 30%;
}

.seven,
.eight {
  height: 100vh;
  position: fixed;
  top: 0;
  width: 100vw;
}

.eight svg {
  left: 0;
  position: absolute;
  top: 0;
  visibility: hidden;
  width: 25px;
  z-index: -1;
}

.eight svg:nth-child(1) {
  fill: #bd6ecf;
  left: 5vw;
  top: 7vh;
}

.eight svg:nth-child(2) {
  fill: #7dd175;
  left: 35vw;
  top: 23vh;
}

.eight svg:nth-child(3) {
  fill: #349d8b;
  left: 23vw;
  top: 33vh;
}

.eight svg:nth-child(4) {
  fill: #347a9d;
  left: 57vw;
  top: 43vh;
}

.eight svg:nth-child(5) {
  fill: #c66053;
  left: 7vw;
  top: 68vh;
}

.eight svg:nth-child(6) {
  fill: #bfaa40;
  left: 77vw;
  top: 42vh;
}

.eight svg:nth-child(7) {
  fill: #e3bae8;
  left: 83vw;
  top: 68vh;
}

.eight svg:nth-child(8) {
  fill: #8762cb;
  left: 37vw;
  top: 86vh;
}

.eight svg:nth-child(9) {
  fill: #9a90da;
  left: 87vw;
  top: 94vh;
}

.wish-hbd {
  font-size: 3em;
  margin: 0;
  text-transform: uppercase;
}

.wish h5 {
  font-size: 2rem;
  font-weight: lighter;
  margin: 10px 0 0;
}

.nine {
  position: absolute;
  top: 60vh;
  width: 100vw;
  text-align: center;
  z-index: 200;
  visibility: hidden;
}

.nine p {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.5;
  color: #333;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.nine #replay {
  display: inline-block;
  margin-top: 15px;
  font-size: 1.3rem;
  text-decoration: none;
  border-bottom: 2px solid #333;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.nine #replay:hover {
  color: #555;
  border-bottom-color: #555;
}

#replay {
  cursor: pointer;
  z-index: 3;
}

/* Media Queries */
@media screen and (max-height: 1000px) {
  .six .hat {
    left: 40%;
  }
}

@media screen and (max-height: 800px) {
  .six .hat {
    left: 37%;
  }
}

@media screen and (max-height: 700px) {
  .six .hat {
    left: 32%;
  }
}

@media screen and (max-height: 850px) and (max-width: 450px) {
  .six .hat {
    left: 32%;
  }
}

@media screen and (max-width: 500px) {
  .container {
    width: 90%;
  }

  .four .text-box {
    width: 90%;
  }

  .text-box .fake-btn {
    bottom: -38px;
    right: 5px;
  }

  .idea-5 span {
    display: block;
  }

  .idea-6 span {
    font-size: 10rem;
  }

  .six .hat {
    /* top: -20px; */
    width: 50px;
  }

  .wish-hbd {
    font-size: 2.2em;
  }

  .wish h5 {
    font-size: 1.4rem;
  }


  /* Ensure mobile responsiveness */
  @media screen and (max-width: 600px) {
    .final-gallery {
      flex-direction: column;
    }

    .final-img {
      max-width: 80vw;
      max-height: 25vh;
    }
  }
}

/* Satellite Images (Profile Popup) */
.satellite-img {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  z-index: 2;
}

.sat-1 {
  top: 0;
  left: 50%;
  margin-left: -260px;
  /* Left of image */
  transform: rotate(-15deg);
}

.sat-2 {
  top: 50px;
  left: 50%;
  margin-left: 180px;
  /* Right of image */
  transform: rotate(10deg);
}

.sat-3 {
  top: 250px;
  left: 50%;
  margin-left: 190px;
  transform: rotate(5deg);
}

/* Mobile adjustments */
@media screen and (max-width: 500px) {
  .satellite-img {
    width: 60px;
    height: 60px;
  }

  .sat-1 {
    margin-left: -140px;
    top: -10px;
  }

  .sat-2 {
    margin-left: 100px;
    top: 20px;
  }

  .sat-3 {
    margin-left: 110px;
    top: 200px;
  }
}