html {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

.song {
  visibility: hidden;
}

.play-music-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #ff69b4;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.play-music-btn:hover {
  background: #ff1493;
}

.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;
}

.one {
  font-size: 4.5rem;
}

.two {
  font-size: 1.2rem;
  font-weight: lighter;
}

.three {
  font-size: 3rem;
}

.four .text-box {
  border: 3px solid #aaa;
  border-radius: 5px;
  margin: 0 auto;
  padding: 10px;
  position: relative;
  width: 600px;
}

.text-box p {
  margin: 0;
  text-align: left;
}

.text-box span {
  visibility: hidden;
}

.text-box .fake-btn {
  background-color: #ff69b4;
  border-radius: 3px;
  bottom: -50px;
  color: #fff;
  padding: .5rem 1rem;
  position: absolute;
  right: 5px;
}

.five p {
  font-size: 2rem;
  left: 0;
  position: absolute;
  right: 0;
}

.idea-3 strong {
  border-radius: 3px;
  display: inline-block;
  padding: 3px 5px;
  background-color: #ff69b4;
  color: #fff;
}

.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;
}

.ten p {
  font-size: 1.8rem;
  font-weight: lighter;
  margin: 10px 0;
  position: relative;
  z-index: 2;
}

.ten p:first-child {
  font-size: 2.2rem;
  font-weight: bold;
  color: #ff69b4;
}

.nine p {
  font-size: 2rem;
  font-weight: lighter;
  position: relative;
  z-index: 3;
}

#replay {
  cursor: pointer;
  z-index: 3;
}

/* Eleven - Pilihan */
.eleven p {
  font-size: 2rem;
  font-weight: lighter;
  margin-bottom: 20px;
}

.choice-btn {
  background-color: #ff69b4;
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  font-size: 1.5rem;
  margin: 10px;
  padding: 15px 30px;
  transition: background-color 0.3s;
}

.choice-btn:hover {
  background-color: #ff1493;
}

/* Twelve - Lilin */
.twelve {
  background-color: black;
  display: none;
  height: 100vh;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 10;
}

.candle-container {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  text-align: center;
}

.cake {
  position: relative;
  width: 200px;
  height: 150px;
  margin: 0 auto;
}

.cake-layer {
  width: 100%;
  height: 40px;
  background-color: #f4a261;
  border-radius: 10px;
  position: absolute;
  bottom: 0;
}

.cake-layer:nth-child(1) {
  bottom: 0;
}

.cake-layer:nth-child(2) {
  bottom: 40px;
  width: 180px;
  left: 10px;
}

.cake-frosting {
  width: 180px;
  height: 20px;
  background-color: #fff;
  border-radius: 10px 10px 0 0;
  position: absolute;
  bottom: 80px;
  left: 10px;
}

.candle {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 50px;
  background-color: #f4e4bc;
  border-radius: 5px;
  cursor: pointer;
}

.flame {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 40px;
  background: linear-gradient(to top, #ff4500, #ffd700);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flicker 1s ease-in-out infinite alternate;
}

@keyframes flicker {
  0% { transform: translateX(-50%) scaleY(1); }
  100% { transform: translateX(-50%) scaleY(1.1); }
}

.candle-text {
  color: white;
  font-size: 1.8rem;
  margin-top: 20px;
}

.photo-card {
  background: linear-gradient(135deg, #ff69b4, #ff1493);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: none;
  max-width: 90vw;
  padding: 20px;
  position: fixed;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  z-index: 20;
}

.close-card {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 2rem;
  position: absolute;
  right: 10px;
  top: 10px;
}

.card-content h2 {
  color: white;
  font-size: 2rem;
  margin: 10px 0;
}

.card-content p {
  color: #ffe4e1;
  font-size: 1.2rem;
  margin: 5px 0;
}

.card-photo {
  border: 5px solid white;
  border-radius: 50%;
  height: 150px;
  width: 150px;
  object-fit: cover;
}

.card-message {
  color: white;
  font-size: 1.4rem;
  font-style: italic;
  margin-top: 20px;
}

@media screen and (max-width: 500px) {
  .photo-card {
    max-width: 95vw;
    padding: 15px;
    width: auto;
  }

  .card-photo {
    height: 120px;
    width: 120px;
  }

  .card-content h2 {
    font-size: 1.5rem;
  }

  .card-content p {
    font-size: 1rem;
  }

  .card-message {
    font-size: 1.2rem;
  }
}

.nine p {
  font-size: 2rem;
  font-weight: lighter;
  position: relative;
  z-index: 3;
}
@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;
  }

  .nine p {
    font-size: 1.5rem;
    font-weight: lighter;
  }
}
