html {
  box-sizing: border-box;
}

* {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Work Sans", sans-serif;
  background-color: #ffffff;
  color: #000000;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.container {
  height: 100vh;
  width: 100vw;
  margin: 0 auto;
  text-align: center;
  visibility: hidden;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 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;
  font-weight: 700;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  margin: 0;
  padding: 0 20px;
}

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

.one #name {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: transform 0.3s ease;
}

.two {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin: 15px 0;
  transition: opacity 0.3s ease;
}

.three {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.three p {
  margin: 0;
}

.four .text-box {
  width: 600px;
  margin: 0 auto;
  border: 2px solid #000000;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.text-box p {
  margin: 0;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.8;
}

.text-box span {
  visibility: hidden;
}

.text-box .fake-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: #ffffff;
  background-color: #000000;
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #000000;
}

.text-box .fake-btn:hover {
  background-color: #ffffff;
  color: #000000;
  transform: scale(1.05);
}

.five p {
  font-size: 2rem;
  position: absolute;
  left: 0;
  right: 0;
  transition: all 0.3s ease;
  margin: 15px 0;
}

.idea-3 strong {
  padding: 5px 12px;
  border-radius: 4px;
  display: inline-block;
  background-color: #000000;
  color: #ffffff;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid #000000;
}

.five .idea-5 {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.idea-5 span,
.idea-6 span,
.wish-hbd span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.idea-6 span {
  font-size: 15rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.six {
  position: relative;
  transition: all 0.3s ease;
}

.six img {
  display: inline-block;
  max-width: 30%;
  border-radius: 50%;

  height: auto;
  transition: transform 0.3s ease;
}

.six img:hover {
  transform: scale(1.02);
}

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

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

.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: 15px 0 0 0;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.wish h5 {
  font-weight: 300;
  font-size: 2rem;
  margin: 15px 0 0 0;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.nine p {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin: 20px 0;
  transition: all 0.3s ease;
}

#replay {
  z-index: 3;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid #000000;
  padding-bottom: 5px;
}

.replay-btn {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 1100;

  display: inline-block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  margin: 0;
  padding: 12px 20px;
  border: 2px solid #000000;
  border-radius: 999px;
  background-color: #ffffff;
  color: #000000;
  font-size: 1rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.replay-btn.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  animation: replayFloat 2.8s ease-in-out infinite;
}

#replay:hover {
  transform: scale(1.05);
}

.replay-btn:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.04);
  background-color: #000000;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.replay-btn:active {
  transform: translateX(-50%) translateY(0) scale(0.98);
}

@keyframes replayFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

.last-smile {
  font-size: 2rem;
  margin: 20px 0;
}

/* Audio Player Styling */
.audio-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  max-width: 300px;
  transition: all 0.3s ease;
}

.audio-container:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.audio-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
  letter-spacing: 0.5px;
}

audio {
  width: 100%;
  height: 40px;
  cursor: pointer;
  accent-color: #000000;
}

/* Start screen styles */
.start-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
}
.start-card {
  background: #fff;
  color: #000;
  padding: 32px 36px;
  text-align: center;
  border-radius: 12px;
  border: 2px solid #000;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.start-card h1 {
  margin: 0 0 8px 0;
}
.start-card p {
  margin: 0 0 18px 0;
}
.start-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}
.start-btn:active { transform: translateY(1px); }
.start-screen.hidden { display: none; }

/* 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: 768px) {
  .one {
    font-size: 3.5rem;
    letter-spacing: 1.5px;
  }

  .two {
    font-size: 1rem;
  }

  .three {
    font-size: 2.5rem;
  }

  .four .text-box {
    width: 85%;
    padding: 15px;
  }

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

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

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

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

  .audio-container {
    bottom: 15px;
    right: 15px;
    max-width: 250px;
  }
}

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

  .one {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }

  .two {
    font-size: 0.95rem;
  }

  .three {
    font-size: 2rem;
  }

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

  .text-box .fake-btn {
    right: 8px;
    bottom: 8px;
    padding: 6px 12px;
    font-size: 0.9rem;
  }

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

  .idea-5 span {
    display: block;
  }

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

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

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

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

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

  .replay-btn {
    font-size: 0.95rem;
    padding: 10px 18px;
    bottom: 16px;
  }

  .audio-container {
    bottom: 10px;
    right: 10px;
    max-width: 200px;
    padding: 10px;
  }

  .audio-label {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  audio {
    height: 32px;
  }
}
