html {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  color: #284539;
  background: linear-gradient(180deg, #fbf7f0 0%, #f3efe7 100%);
}

.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;
}

.one {
  font-size: clamp(2.1rem, 8vw, 4.1rem);
  line-height: 1.08;
  padding: 0 14px;
  color: #214534;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

#name {
  display: block;
  font-size: 0.58em;
  line-height: 1.15;
  margin-top: 0.2em;
  overflow-wrap: anywhere;
}

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

.three {
  font-size: 3rem;
  color: #356f56;
  font-family: Georgia, "Times New Roman", serif;
}

.four .text-box {
  background: #efe7dc;
  border: 1px solid #bfc8be;
  border-radius: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  transform: scale(0.93);
  transform-origin: top center;
  width: min(360px, 95vw);
  height: min(680px, 88vh);
}

.four {
  top: 10vh !important;
}

.wa-header {
  align-items: center;
  background: linear-gradient(180deg, #2d7b64 0%, #24644f 100%);
  color: #fff;
  display: flex;
  gap: 10px;
  padding: 14px 14px 12px;
  text-align: left;
}

.wa-back {
  font-size: 1.35rem;
  line-height: 1;
}

.wa-avatar {
  background: #c4cfd4;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 34px;
  height: 34px;
}

.wa-contact strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
  color: #fffaf1;
}

.wa-contact small {
  font-size: 0.75rem;
  color: rgba(244, 250, 246, 0.8);
}

.wa-chat-bg {
  background:
    radial-gradient(circle at 7px 7px, rgba(54, 97, 74, 0.04) 2px, transparent 2.5px),
    #efe7dc;
  background-size: 14px 14px;
  display: flex;
  height: calc(100% - 126px);
  padding: 16px 14px 10px;
}

.wa-bubble {
  background: #fffdf9;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  height: 100%;
  max-width: none;
  overflow-y: auto;
  padding: 12px 14px;
  width: 100%;
}

.hbd-chatbox {
  font-size: 1.05rem;
  line-height: 1.35;
  color: #355243;
}

.wa-input {
  align-items: center;
  background: #f4eee5;
  display: flex;
  gap: 10px;
  height: 78px;
  padding: 12px 14px;
}

.wa-input-text {
  align-items: center;
  background: #fffdf9;
  border: 1px solid #d7ddd4;
  border-radius: 24px;
  color: #607267;
  display: flex;
  flex: 1;
  font-size: 0.95rem;
  height: 46px;
  margin: 0;
  overflow: hidden;
  padding: 0 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.text-box span {
  visibility: hidden;
}

.text-box .fake-btn {
  align-items: center;
  background: #4ba67d;
  border-radius: 50%;
  bottom: 16px;
  color: #fff;
  display: flex;
  font-size: 1.2rem;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 14px;
  text-align: center;
  width: 42px;
}

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

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

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

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

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

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


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

.six img {
  display: inline-block;
  height: min(330px, 46vh);
  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: clamp(1.9rem, 5vw, 2.8rem);
  margin: 0;
  text-transform: uppercase;
  color: #d86d95;
  font-family: Georgia, "Times New Roman", serif;
}

.wish h5 {
  font-size: clamp(1.05rem, 3.2vw, 1.5rem);
  font-weight: lighter;
  margin: 10px 0 0;
  color: #61756a;
}

.nine p {
  font-size: 2rem;
  font-weight: lighter;
}

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

/* 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%;
  }

  .one {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
    line-height: 1.1;
  }

  #name {
    font-size: 0.54em;
  }

  .four .text-box {
    width: min(350px, 95vw);
    height: min(700px, 91vh);
    transform: scale(0.92);
  }

  .wa-header {
    padding: 11px 12px 9px;
  }

  .wa-contact strong {
    font-size: 0.95rem;
  }

  .wa-contact small {
    font-size: 0.7rem;
  }

  .wa-chat-bg {
    padding: 12px 10px 8px;
  }

  .wa-bubble {
    width: 100%;
    padding: 8px 9px;
  }

  .hbd-chatbox {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .wa-input {
    height: 68px;
    padding: 10px;
  }

  .wa-input-text {
    font-size: 0.85rem;
    height: 40px;
    padding: 0 11px;
  }

  .text-box .fake-btn {
    bottom: 17px;
    right: 15px;
    font-size: 1rem;
    height: 36px;
    width: 36px;
  }

  .idea-5 span {
    display: block;
  }

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

  .five .idea-5 {
    font-size: 2.15rem;
    line-height: 1.12;
  }

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

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

  .wish-hbd {
    font-size: 1.8rem;
  }

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

  .nine p {
    font-size: 1.5rem;
    font-weight: lighter;
  }

}
