/* =========================
   THEME VARIABLES
========================= */
:root {
  --bg-color: #ffffff;
  --text-color: #111827;
  --soft-text: #6b7280;
  --border-color: #d1d5db;
  --box-bg: #ffffff;
  --accent: #6366f1;
  --pause-bg: rgba(255, 255, 255, 0.55);
  --pause-text: #1f2937;
}

[data-theme="dark"] {
  --bg-color: #0f172a;
  --text-color: #e5e7eb;
  --soft-text: #9ca3af;
  --border-color: #334155;
  --box-bg: #1e293b;
  --accent: #818cf8;
  --pause-bg: rgba(15, 23, 42, 0.65);
  --pause-text: #e5e7eb;
}

/* =========================
   SAFE UI ENHANCEMENT
========================= */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}

/* =========================
   TOP RIGHT CONTROLS
========================= */
#langToggle,
#themeToggle {
  position: fixed;
  top: 16px;
  z-index: 999;
}

/* posisi horizontal sejajar */
#langToggle {
  right: 72px;
}

#themeToggle {
  right: 20px;
}

#langToggle,
#themeToggle {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background-color: var(--box-bg);
  color: var(--text-color);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

#langToggle:hover,
#themeToggle:hover {
  background-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

#langToggle:active,
#themeToggle:active {
  transform: scale(0.96);
}

.two,
.wish h5,
.nine p {
  color: var(--soft-text);
}

/* text box enhancement (NO SIZE CHANGE) */
.four .text-box {
  background-color: var(--box-bg);
  border-color: var(--border-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* button */
.text-box .fake-btn {
  background-color: var(--accent);
}

/* accent emphasis */
.idea-6 span {
  color: var(--accent);
}

/* =========================
   THEME TOGGLE BUTTON
========================= */
#themeToggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  border: none;
  background: var(--box-bg);
  color: var(--text-color);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

#themeToggle:hover {
  transform: scale(1.05);
}

html {
  box-sizing: border-box;
}

body {
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  letter-spacing: -0.01em; /* bikin lebih modern */
}

.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: 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: rgb(21, 161, 237);
  border-radius: 3px;
  bottom: -50px;
  color: #fff;
  padding: 0.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;
}

.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 p {
  font-size: 2rem;
  font-weight: lighter;
}

#replay {
  cursor: pointer;
  z-index: 3;
}

/* =========================
   PLAY AGAIN BUTTON
========================= */
.play-again-btn {
  margin-top: 1.2rem;
  padding: 0.6rem 1.4rem;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background-color: var(--box-bg);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.25s ease;

  /* hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

/* hover */
.play-again-btn:hover {
  transform: translateY(-2px);
  background-color: var(--accent);
  color: #fff;
}

/* show when final section active */
.nine.show-retry .play-again-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

/* 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;
  }

  .nine p {
    font-size: 1.5rem;
    font-weight: lighter;
  }
}

.profile-picture {
  width: min(90vw, 540px);
  height: min(90vh, 420px); /* 🔥 ini kuncinya */
  max-height: 420px;
  object-fit: cover;
}

/* =========================
   MOMENT OF PAUSE
========================= */

/* =========================
   MOMENT OF PAUSE (FINAL)
========================= */

.pause {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--pause-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pause-text {
  font-family: inherit;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
  letter-spacing: 0.5px;
  color: var(--pause-text);
  max-width: 80%;
}
