html {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  overflow-x: hidden;
}

.music-control {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.music-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #07c160;
  border-radius: 25px;
  padding: 10px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #07c160;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.music-btn:hover {
  background: #07c160;
  color: white;
  transform: scale(1.05);
}

.music-btn.playing {
  background: #07c160;
  color: white;
  animation: pulse 2s infinite;
}

.music-btn .music-icon {
  font-size: 18px;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.4);
  }
  50% {
    box-shadow: 0 2px 16px rgba(7, 193, 96, 0.6);
  }
}

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

.container div.six {
  top: 10vh;
  z-index: 1;
}

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

.container > div {
  position: absolute;
  left: 0;
  right: 0;
  top: 20vh;
}

.one {
  font-size: 4.5rem;
}

.one > img {
  vertical-align: middle;
  margin-bottom: 10px;
  max-width: 100%;
  height: auto;
}

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

.three {
  font-size: 3rem;
}

.four .wechat-chatbox {
  width: 600px;
  max-width: 90%;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #ededed;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
}

.chat-header {
  background: #ededed;
  padding: 12px 16px;
  border-bottom: 1px solid #dcdcdc;
}

.chat-title {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  text-align: center;
}

.chat-content {
  background: #ededed;
  padding: 20px 15px;
  min-height: 150px;
}

.message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.message-received {
  flex-direction: row;
}

.message-avatar {
  margin-right: 10px;
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 40px;
  height: 40px;
  background: #07c160;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.message-bubble {
  background: white;
  padding: 12px 16px;
  border-radius: 4px;
  position: relative;
  max-width: 70%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message-bubble::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid white;
}

.message-bubble p {
  margin: 0;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
  color: #000;
}

.chat-input-area {
  background: #f7f7f7;
  padding: 12px;
  border-top: 1px solid #dcdcdc;
}

.input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.fake-input {
  flex: 1;
  background: white;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  color: #999;
  border: 1px solid #ddd;
}

.send-btn {
  background: #07c160;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.send-btn:hover {
  background: #06ad56;
}

.send-btn:active {
  background: #059a4a;
}

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

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

.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;
  padding: 0 20px;
}

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

.six .hat {
  position: absolute;
  width: 80px;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@media screen and (max-width: 768px) {
  .container {
    width: 100vw;
  }

  .music-control {
    top: 15px;
    right: 15px;
  }

  .music-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .one {
    font-size: 3rem;
  }

  .two {
    font-size: 1rem;
  }

  .three {
    font-size: 2rem;
  }

  .four .wechat-chatbox {
    width: 90%;
  }

  .message-bubble {
    max-width: 75%;
  }

  .five p {
    font-size: 1.5rem;
  }

  .idea-5 {
    font-size: 2.5rem !important;
  }

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

  .six .hat {
    width: 60px;
    top: -25px;
    left: 50%;
  }

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

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

  .nine p {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 500px) {
  .container {
    width: 100vw;
    padding: 0 10px;
  }

  .music-control {
    top: 10px;
    right: 10px;
  }

  .music-btn {
    padding: 6px 12px;
    font-size: 12px;
    gap: 6px;
  }

  .music-btn .music-icon {
    font-size: 16px;
  }

  .one {
    font-size: 2.2rem;
  }

  .two {
    font-size: 0.9rem;
  }

  .three {
    font-size: 1.6rem;
  }

  .four .wechat-chatbox {
    width: 95%;
  }

  .chat-content {
    padding: 15px 12px;
  }

  .message-bubble p {
    font-size: 14px;
  }

  .avatar-placeholder {
    width: 35px;
    height: 35px;
    font-size: 12px;
  }

  .send-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .five p {
    font-size: 1.2rem;
    padding: 0 10px;
  }

  .idea-3 strong {
    padding: 2px 4px;
  }

  .idea-5 {
    font-size: 2rem !important;
  }

  .idea-5 span {
    display: block;
  }

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

  .six {
    padding: 0 15px;
  }

  .six .hat {
    width: 50px;
    top: -20px;
    left: 50%;
  }

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

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

  .nine p {
    font-size: 1.1rem;
    padding: 0 15px;
  }

  #replay {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 10px;
  }

  .eight svg {
    width: 18px;
  }
}

@media screen and (max-width: 360px) {
  .one {
    font-size: 1.8rem;
  }

  .three {
    font-size: 1.4rem;
  }

  .idea-5 {
    font-size: 1.6rem !important;
  }

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

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

  .six .hat {
    width: 40px;
    top: -15px;
    left: 50%;
  }
}

@media screen and (orientation: landscape) and (max-height: 500px) {
  .container {
    height: auto;
    min-height: 100vh;
  }

  .music-control {
    top: 10px;
    right: 10px;
  }

  .one {
    font-size: 2rem;
  }

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