/* @import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600&display=swap'); */

/* @import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap'); */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600&display=swap');



* {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: 'Dancing Script', cursive;
    background: #fff1f4;
    color: #333;
    text-align: center;
  }
  
/* 🎊 Confetti Canvas – shared for all pages */
#confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
  }
  
  
  /* Pages */
  .page {
    display: none;
    min-height: 100vh;
    padding: 40px 20px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 1;
  }
  
  .page.active {
    display: flex;
  }
  
  /* Text styles */
  .soft-text {
    font-size: 35px;
    color: #9a4c6c; /* dusty rose */
    margin: 6px 0;
  }
  
  .main-text {
    font-size: 25px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #7a1f3d; /* deep romantic wine */
  }

  .p4-text {

        font-size: 30px;
        line-height: 1.8;
        margin-bottom: 30px;
        color: #9a4c6c; /* deep romantic wine */
  }
  
  
  /* Door */
  .door {
    font-size: 130px;
    margin: 28px 0;
    cursor: pointer;
    animation: wiggle 1.6s infinite;
  }
  
  .hint {
    font-size: 40px;
    color: #f48fb1;
  }
  
  /* Buttons */
  .btn-row {
    display: flex;
    gap: 20px;
    margin-top: 10px;
  }
  
  .yes-btn {
    background: #f48fb1;
    border: none;
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 20px;
    cursor: pointer;
    margin: 5px;
  }
  
  .no-btn {
    background: white;
    border: 1px solid #f48fb1;
    color: #f48fb1;
    padding: 12px 26px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
  }
  
  /* Sad reactions */
  .sad-area {
    margin-top: 18px;
    font-size: 20px;
  }
  
  /* Animations */
  @keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
  }

  .no-btn:hover {
    animation: tease 0.4s ease-in-out infinite alternate;
  }
  
  @keyframes tease {
    from { transform: translateX(0); }
    to { transform: translateX(6px); }
  }
  
  .gentle-line {
    margin-top: 16px;
    font-size: 20px;
    color: #b85c7a; /* soft romantic pink */
    line-height: 1.4;
    max-width: 280px;
    margin-left: 30px;
  }
  .tease-line {
    margin-top: 10px;
    font-size: 25px;
    color: #c46a8a; /* soft blush */
    opacity: 0.9;
    animation: blink 1.8s infinite;
  }

  .tease-line {
    display: none;
  }
  
  
  @keyframes blink {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
  }


  /* 🌸 Soft text animation */

.fade-up {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 1.2s ease forwards;
  }
  
  .delay-1 { animation-delay: 0.4s; }
  .delay-2 { animation-delay: 0.8s; }
  .delay-3 { animation-delay: 1.2s; }
  
  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .main-text {
    letter-spacing: 0.3px;
  }
  
  .soft-text {
    letter-spacing: 3.0px;
  }
  
  .back-btn {
    position: fixed;
    top: 16px;
    left: 14px;
    padding: 6px 14px;
    border-radius: 20px;
  
    background: rgba(255, 255, 255, 0.85);
    color: #7a1f3d;
  
    font-size: 14px;
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
  
    border: 1px solid rgba(248, 143, 177, 0.6);
    box-shadow: 0 4px 12px rgba(248, 143, 177, 0.25);
  
    cursor: pointer;
    z-index: 10;
  
    display: none;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
  }
  
  
  .back-btn:hover {
    text-decoration: underline;
  }

  



  /* ✍️ Handwriting animation */
.handwrite {
    font-family: 'Quicksand', cursive;
    white-space: pre-wrap;
  }
  
/* ✍️ Pen-style writing cursor */
.pen-cursor {
    display: inline-block;
    margin-left: 4px;
    font-size: 16px;
    animation: penBlink 1s infinite;
    vertical-align: middle;
  }
  
  .pen-cursor::after {
    content: "✍️";
  }
  
  @keyframes penBlink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
  }
  
  
  @keyframes blinkCursor {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
  }



  /* 🌷 Simple, safe fade animation */

.fade-simple {
    opacity: 0;
    transform: translateY(10px);
    animation: simpleFade 1s ease forwards;
  }
  
  .delay-1 { animation-delay: 0.4s; }
  .delay-2 { animation-delay: 0.8s; }
  .delay-3 { animation-delay: 1.2s; }
  
  @keyframes simpleFade {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }


  .btn-row {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
  }
  
  .btn-row.show {
    opacity: 1;
    pointer-events: auto;
  }


/* 🌌 Night star page */

.star-page {
    background: radial-gradient(circle at top, #1b2735, #090a0f);
    overflow: hidden;
  }
  
  #stars-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  
  
  .star-btn {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    color: #7a1f3d;
    box-shadow: 0 0 20px rgba(255, 182, 193, 0.6);
    animation: glowPulse 2s ease-in-out infinite alternate;
  }
  
  @keyframes glowPulse {
    from { box-shadow: 0 0 16px rgba(255, 182, 193, 0.4); }
    to { box-shadow: 0 0 28px rgba(255, 182, 193, 0.8); }
  }
  
  
  .warm-page {
    background: linear-gradient(#fff1f4, #ffe4ec);
  }
  
  .glow-page {
    background: linear-gradient(135deg, #ffdde1, #ee9ca7);
  }
  
/* 💝 Page 7 – allow confetti to show */
.romantic-page {
    background: transparent;
  }
  
  
  .big-love {
    font-size: 28px;
    color: #7a1f3d;
  }

  /* 🌌 Page 4 readable content */

.star-card {
    position: relative;
    z-index: 2;
  
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
  
    padding: 32px 24px;
    border-radius: 24px;
  
    max-width: 320px;
    margin: auto;
  
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  }
  
  /* Main line on stars */
  .p4-text {
    font-size: 30px;
    line-height: 1.7;
    color: #fff;
    margin-bottom: 16px;
  }
  
  /* Sub line */
  .p4-sub {
    font-size: 25px;
    color: #ffd6e8;
    margin-bottom: 28px;
  }



  /* page 5 */

  /* 🌗 Twilight page */

.twilight-page {
    background: linear-gradient(
      180deg,
      #2b1055 0%,
      #6a0572 40%,
      #ff9a9e 100%
    );
    color: #fff;
  }
  
  /* Soft glass card */
  .twilight-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
  
    padding: 34px 26px;
    border-radius: 26px;
  
    max-width: 330px;
    margin: auto;
  
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }
  
  /* Main emotional line */
  .twilight-main {
    font-size: 25px;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 16px;
  }
  
  /* Supporting text */
  .twilight-text {
    font-size: 20px;
    line-height: 1.6;
    color: #ffd6e8;
    margin-bottom: 14px;
  }
  
  /* Soft closing line */
  .twilight-sub {
    font-size: 22px;
    line-height: 1.5;
    color: #ffeaf2;
    margin-bottom: 28px;
  }
  
  /* Button styling */
  .twilight-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #6a0572;
    box-shadow: 0 0 20px rgba(255, 182, 193, 0.5);
    animation: floatBtn 2.5s ease-in-out infinite alternate;
  }
  
  @keyframes floatBtn {
    from { transform: translateY(0); }
    to { transform: translateY(-6px); }
  }

  /* 🧸 Teddy couple dance */

.teddy-dance {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 18px 0 26px;
  }
  
  .teddy {
    font-size: 40px;
    display: inline-block;
  }
  
  /* Left teddy */
  .teddy.left {
    animation: swayLeft 2.2s ease-in-out infinite;
  }
  
  /* Right teddy */
  .teddy.right {
    animation: swayRight 2.2s ease-in-out infinite;
  }
  
  @keyframes swayLeft {
    0%   { transform: translateY(0) rotate(0deg); }
    25%  { transform: translateY(-3px) rotate(-6deg); }
    50%  { transform: translateY(0) rotate(0deg); }
    75%  { transform: translateY(-3px) rotate(6deg); }
    100% { transform: translateY(0) rotate(0deg); }
  }
  
  @keyframes swayRight {
    0%   { transform: translateY(0) rotate(0deg); }
    25%  { transform: translateY(-3px) rotate(6deg); }
    50%  { transform: translateY(0) rotate(0deg); }
    75%  { transform: translateY(-3px) rotate(-6deg); }
    100% { transform: translateY(0) rotate(0deg); }
  }

  .teddy-dance::after {
    content: "💗";
    position: absolute;
    margin-top: -6px;
    animation: heartFloat 2.5s ease-in-out infinite;
  }
  
  @keyframes heartFloat {
    0% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-6px); opacity: 1; }
    100% { transform: translateY(0); opacity: 0.6; }
  }
  
  /* 🧸 Dudu & Bubu dance */

.dudu-wrap {
    display: flex;
    justify-content: center;
    margin: 22px 0 28px;
  }
  
  .dudu-gif {
    width: 160px;
    max-width: 75%;
    border-radius: 22px;
  }

  /* 💖 PAGE 6 – Ultimate Love Page */

.glow-love-page {
    background: radial-gradient(circle at top, #ffe4ec, #ffd6e5, #fff1f4);
    overflow: hidden;
  }
  
  .love-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 26px;
    padding: 28px 22px 32px;
    max-width: 360px;
    width: 100%;
    box-shadow:
      0 12px 30px rgba(248, 143, 177, 0.35),
      0 0 40px rgba(255, 200, 220, 0.4);
    animation: softGlow 3s ease-in-out infinite alternate;
  }
  
  /* ✨ glow breathing */
  @keyframes softGlow {
    from {
      box-shadow:
        0 12px 30px rgba(248, 143, 177, 0.25),
        0 0 30px rgba(255, 200, 220, 0.3);
    }
    to {
      box-shadow:
        0 18px 40px rgba(248, 143, 177, 0.45),
        0 0 50px rgba(255, 200, 220, 0.6);
    }
  }
  
  /* 💑 GIF area */
  .love-gifs {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
  }
  
  .love-gifs img {
    width: 120px;
    max-width: 45%;
    border-radius: 18px;
  }
  
  /* 💗 Text styles */
  .love-title {
    font-size: 26px;
    color: #7a1f3d;
    margin: 10px 0 6px;
  }
  
  .love-name {
    font-size: 22px;
    color: #b85c7a;
    margin-bottom: 12px;
  }
  
  .love-text {
    font-size: 25px;
    line-height: 1.6;
    color: #7a1f3d;
    margin-bottom: 22px;
  }
  
  /* 💝 Button */
  .love-btn {
    font-size: 22px;
    padding: 14px 32px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ff8fab, #f06292);
    box-shadow: 0 8px 20px rgba(240, 98, 146, 0.45);
  }
  
  .love-btn:hover {
    transform: scale(1.04);
  }
  

  /* 💝 Valentine Week Page */

.week-title {
    font-size: 26px;
    color: #7a1f3d;
    margin-bottom: 8px;
  }
  
  .week-subtitle {
    font-size: 18px;
    color: #b85c7a;
    margin-bottom: 26px;
    line-height: 1.5;
  }
  
  /* Grid */
  .week-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 360px;
    width: 100%;
  }
  
  /* Cards */
  .card {
    background: white;
    border-radius: 18px;
    padding: 16px 10px;
    box-shadow: 0 8px 20px rgba(248,143,177,0.25);
    transition: transform 0.3s;
    text-align: center;
  }
  
  .card.unlocked {
    cursor: pointer;
  }
  
  .card.unlocked:hover {
    transform: scale(1.06);
  }
  
  .card.locked {
    opacity: 0.45;
    filter: grayscale(0.8);
    cursor: not-allowed;
  }
  
  /* Modal */
  .modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
  }
  
  .hidden {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .modal-content {
    background: white;
    border-radius: 22px;
    padding: 26px 22px;
    max-width: 90%;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  }
  
  #close {
    float: right;
    font-size: 22px;
    cursor: pointer;
    color: #7a1f3d;
  }

  .week-wrapper {
    background: rgba(255, 245, 248, 0.88);
    border-radius: 26px;
    padding: 28px 20px 32px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 12px 30px rgba(248,143,177,0.25);
  }
  

  /* 🌹 Rose Day Pages */
  .rose-page {
    background: transparent;  /* 👈 IMPORTANT */
  }
  
  
  .rose-bloom-page {
    background: radial-gradient(circle at top, #ffe4ec, #ffccd5);
  }
  
  .rose-card {
    background: rgba(255,255,255,0.85);
    padding: 28px 22px;
    border-radius: 26px;
    max-width: 340px;
    box-shadow: 0 10px 30px rgba(248,143,177,0.3);
  }
  
  .rose-text {
    font-size: 26px;
    line-height: 1.6;
    color: #7a1f3d;
    margin-bottom: 18px;
  }
  
  .rose-text.long {
    font-size: 25px;
  }
  
  .rose-text.highlight {
    color: #d6336c;
    font-weight: 600;
  }
  
  .rose {
    font-size: 64px;
    margin: 10px 0;
  }
  
  .rose.faded {
    opacity: 0.4;
  }
  
  .rose.fresh {
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
  }
  
  /* Convince area */
  .pleas-gif {
    width: 140px;
    margin: 16px auto;
  }
  
  .convince-text {
    font-size: 22px;
    color: #b85c7a;
    margin-bottom: 12px;
  }
  
  /* Gift section */
  .gift-row {
    display: flex;
    gap: 16px;
    margin-top: 30px;
  }
  
  .gift-card {
    background: white;
    border-radius: 20px;
    padding: 18px 12px;
    width: 90px;
    box-shadow: 0 8px 20px rgba(248,143,177,0.35);
    cursor: pointer;
  }
  
  .gift-card span {
    display: block;
    font-size: 14px;
    margin-top: 6px;
    color: #7a1f3d;
  }

  .gift-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 32px;
  }
  
  .gift-card.big {
    width: 100%;
    padding: 26px 20px;
    font-size: 28px;
    border-radius: 26px;
    background: white;
    box-shadow: 0 12px 30px rgba(248,143,177,0.35);
    cursor: pointer;
    animation: softGlow 3s infinite alternate;
  }
  
  .gift-card.big span {
    display: block;
    font-size: 18px;
    margin-top: 8px;
  }
  
  
  /* Buttons */
  .heart-btn {
    animation: heartbeat 1.6s infinite;
  }
  
  @keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
  }

  .petal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
  }
  
  .petal {
    background: url("petal.png") center/contain no-repeat;
    height: 100px;
    width: 100%;
    max-width: 110px;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    font-size: 14px;
    color: #7a1f3d;
    text-align: center;
    padding: 10px;
  
    cursor: pointer;
    position: relative;
  
    animation: floatPetal 3s ease-in-out infinite;
  }
  
  /* ✨ Click me text */
  .petal::before {
    content: attr(data-text);
    background: rgba(255, 245, 248, 0.85);
    border-radius: 12px;
    padding: 6px 8px;
  }

  .petal.opened::before {
    background: rgba(255, 255, 255, 0.97);
    font-size: 16px;          /* 👈 bigger */
    line-height: 1.6;         /* 👈 more readable */
    font-weight: 600;
    padding: 10px 12px;
    box-shadow: 0 8px 18px rgba(248,143,177,0.35);
  }
  
  
  
  .petal.opened {
    background: rgba(255, 245, 248, 0.9);
    border-radius: 14px;
    animation: none;
  }
  
  
  @keyframes floatPetal {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
  }
  
  .bouquet {
    margin-top: 30px;
    font-size: 60px;
    animation: fadeUp 1.2s ease forwards;
  }
  
  .bouquet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
  }
  
  .bouquet img {
    width: 200px;
    max-width: 80%;
  }
  
  .bouquet p {
    font-size: 22px;
    color: #7a1f3d;
  }


  .video-page {
    padding: 0;
    background: black;
    position: relative;
  }
  
  .video-page video {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
  }
  
  /* 🌹 Soft message on top of video */
  .video-overlay-text {
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    margin-top: 50px;
    font-size: 26px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  
    z-index: 3;
    pointer-events: none;
  }
  
  