/* ===============================
   Base & Reset
=============================== */

html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  body {
    margin: 0;
    font-family: "Inter", "Work Sans", sans-serif;
    background: radial-gradient(
      circle at top,
      #fff1f5,
      #fbe7ee,
      #f6dfe7
    );
    color: #2b2b2b;
    overflow: hidden;
  }
  
}

/* ===============================
   Container & Scene Layout
=============================== */

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

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

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

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

/* ===============================
   Typography
=============================== */

.one {
  font-size: 4.2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.two {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.8;
}

.three {
  font-size: 2.8rem;
  font-weight: 500;
}

/* ===============================
   Message Box
=============================== */

.four .text-box {
  width: 600px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 10px;
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.text-box span {
  visibility: hidden;
}

.text-box .fake-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: #000;
  background: linear-gradient(135deg, #7fcdf8, #5bb4f5);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  filter: grayscale(100%);
}

/* ===============================
   Thought Sequence
=============================== */

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

.idea-3 strong {
  padding: 3px 6px;
  border-radius: 6px;
  display: inline-block;
  background: linear-gradient(120deg, #ff7eb3, #ff758c);
  color: #000;
}

.five .idea-5 {
  font-size: 4rem;
  font-weight: 600;
}

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

.idea-6 span {
  font-size: 14rem;
  font-weight: 700;
  letter-spacing: -5px;
}

/* ===============================
   Image Section
=============================== */

.six {
  position: relative;
}

.six img {
  max-width: 38%;
  max-height: 55vh;
  display: inline-block;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* ===============================
   Floating Visuals
=============================== */

.baloons img {
  display: inline-block;
  position: absolute;
  width: 180px;
  opacity: 0.85;
  will-change: transform;
}

.baloons img:nth-child(even) {
  left: 12%;
}

.baloons img:nth-child(odd) {
  right: 12%;
}

.baloons img:nth-child(3n + 0) {
  left: 32%;
}

/* ===============================
   SVG Bursts
=============================== */

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

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

/* ===============================
   Final Message
=============================== */

.wish-hbd {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  margin: 0;
}

.wish h5 {
  font-weight: 300;
  font-size: 1.8rem;
  margin: 10px 0 0;
  opacity: 0.85;
}

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

/* Hide final scene until GSAP reveals it */
.nine {
  opacity: 0;
  pointer-events: none;
}

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

/* ===============================
   Responsive
=============================== */

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

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

  .text-box .fake-btn {
    bottom: -38px;
  }

  .idea-5 span {
    display: block;
  }

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

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

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

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

/* --- Valentine Final Question --- */

.valentine-box {
  opacity: 0;              /* IMPORTANT */
  pointer-events: auto;    /* IMPORTANT */
  margin-top: 30px;
  z-index: 999999;  
  text-align: center;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.buttons button {
  padding: 10px 20px;
  font-size: 22px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  background-color: #ff3b2f;
  color: white;
}

#noBtn {
  background-color: #bfbfbf;
}
#noBtn {
  z-index: 99999;
}

/* --- Valentine Buttons (GLOBAL, DOM-safe) --- */

.val-btn {
  font-family: "Handjet", serif; /* or your project font */
  padding: 10px 20px;
  font-size: 22px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  background-color: #ff3b2f;
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 1000000;
}

.val-btn:hover {
  transform: scale(1.1);
  background-color: #e7271b;
}

.val-btn.no {
  background-color: #bfbfbf;
  color: #333;
}

.val-btn.no:hover {
  background-color: #878787;
}



/*

html {
  box-sizing: border-box;
}

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

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

.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 .text-box {
  width: 600px;
  margin: 0 auto;
  border: 3px solid #aaa;
  border-radius: 5px;
  padding: 10px;
  position: relative;
}

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

.text-box span {
  visibility: hidden;
}

.text-box .fake-btn {
  position: absolute;
  right: 5px;
  bottom: 5px;
  color: #fff;
  background-color: rgb(21, 161, 237);
  padding: 5px 8px;
  border-radius: 3px;
}

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

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

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

.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: 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: 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 {
    right: 5px;
    bottom: -38px;
  }

  .idea-5 span {
    display: block;
  }

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

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

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

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

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