* {
  box-sizing: border-box;
}

/* Design System Variables */
        :root {
            --color-primary: #FF6B9D;
            --color-secondary: #FFD700;
            --color-accent: #9B59B6;
            --color-bg-light: #FFF5F7;
            --color-bg-gradient-start: #fa81ea;
            --color-bg-gradient-end: #FFF0F5;
            --color-text-dark: #2C1810;
            --color-text-light: #FFFFFF;
            --color-text-muted: #666666;
            --color-heart: #FF1744;
            --shadow-soft: 0 10px 30px rgba(255, 107, 157, 0.15);
            --shadow-medium: 0 15px 40px rgba(255, 107, 157, 0.25);
            --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, var(--color-bg-gradient-start) 0%, var(--color-bg-gradient-end) 100%);
            color: var(--color-text-dark);
            line-height: 1.6;
            overflow-x: hidden;
            min-height: 100vh;
        }

        /* Floating Hearts Background Animation */
        .hearts-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
            overflow: hidden;
        }

        .heart {
            position: absolute;
            font-size: 20px;
            opacity: 0;
            animation: floatHeart 8s ease-in-out infinite;
        }

        .heart:nth-child(1) { left: 10%; animation-delay: 0s; }
        .heart:nth-child(2) { left: 25%; animation-delay: 2s; }
        .heart:nth-child(3) { left: 40%; animation-delay: 4s; }
        .heart:nth-child(4) { left: 55%; animation-delay: 1s; }
        .heart:nth-child(5) { left: 70%; animation-delay: 3s; }
        .heart:nth-child(6) { left: 85%; animation-delay: 5s; }

        @keyframes floatHeart {
            0% {
                bottom: -50px;
                opacity: 0;
                transform: translateX(0) rotate(0deg) scale(0.5);
            }
            10% {
                opacity: 0.6;
            }
            50% {
                opacity: 0.4;
                transform: translateX(20px) rotate(180deg) scale(1);
            }
            100% {
                bottom: 100%;
                opacity: 0;
                transform: translateX(-20px) rotate(360deg) scale(0.5);
            }
        }

        /* Container */
        .container {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            position: relative;
            z-index: 2;
        }

        /* Hero Section */
        .hero-section {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 40px 20px;
            opacity: 0;
            animation: fadeInUp 1s ease-out 0.3s forwards;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero-title {
            font-size: 3rem;
            font-weight: 700;
            color: var(--color-primary);
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
            animation: scaleIn 0.8s ease-out 0.8s backwards;
        }

        @keyframes scaleIn {
            from {
                transform: scale(0.8);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .hero-subtitle {
            font-size: 1.5rem;
            color: var(--color-accent);
            margin-bottom: 15px;
            font-weight: 500;
            animation: fadeIn 0.8s ease-out 1.2s backwards;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .hero-name {
            font-size: 2rem;
            color: var(--color-text-dark);
            font-weight: 600;
            margin-bottom: 30px;
            animation: fadeIn 0.8s ease-out 1.5s backwards;
        }

        .big-heart {
            font-size: 4rem;
            color: var(--color-heart);
            margin: 20px 0;
            animation: heartbeat 1.5s ease-in-out infinite;
        }

        @keyframes heartbeat {
            0%, 100% {
                transform: scale(1);
            }
            25% {
                transform: scale(1.1);
            }
            50% {
                transform: scale(1);
            }
        }

        /* Content Cards */
        .content-section {
            margin: 60px 0;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.8s var(--transition-smooth);
        }

        .content-section.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 40px;
            margin: 30px 0;
            box-shadow: var(--shadow-soft);
            transition: all 0.4s var(--transition-smooth);
        }

        .card:hover {
            box-shadow: var(--shadow-medium);
            transform: translateY(-5px);
        }

        .card-title {
            font-size: 1.8rem;
            color: var(--color-primary);
            margin-bottom: 20px;
            font-weight: 600;
            text-align: center;
        }

        .date-display {
            text-align: center;
            margin: 30px 0;
        }

        .date-label {
            font-size: 1rem;
            color: var(--color-text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 10px;
        }

        .date-value {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--color-accent);
            margin: 10px 0;
        }

        .age-display {
            display: inline-block;
            background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
            color: var(--color-text-light);
            padding: 20px 40px;
            border-radius: 50px;
            font-size: 2rem;
            font-weight: 700;
            margin: 20px 0;
            box-shadow: var(--shadow-soft);
        }

        .message-text {
            font-size: 1.125rem;
            line-height: 1.8;
            color: var(--color-text-dark);
            margin: 20px 0;
            text-align: justify;
        }

        .message-text p {
            margin-bottom: 20px;
        }

        .highlight {
            color: var(--color-primary);
            font-weight: 600;
        }

        /* Decorative Elements */
        .sparkles {
            display: inline-block;
            margin: 0 5px;
            animation: sparkle 1.5s ease-in-out infinite;
        }

        @keyframes sparkle {
            0%, 100% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0.5;
                transform: scale(1.2);
            }
        }

        .divider {
            width: 100px;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
            margin: 40px auto;
        }

        /* Footer */
        .footer {
            text-align: center;
            padding: 40px 20px;
            color: var(--color-text-muted);
            font-size: 0.9rem;
        }

        .footer-heart {
            color: var(--color-heart);
            display: inline-block;
            animation: heartbeat 1.5s ease-in-out infinite;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2rem;
            }

            .hero-subtitle {
                font-size: 1.2rem;
            }

            .hero-name {
                font-size: 1.5rem;
            }

            .big-heart {
                font-size: 3rem;
            }

            .card {
                padding: 25px;
                border-radius: 15px;
            }

            .card-title {
                font-size: 1.5rem;
            }

            .date-value {
                font-size: 2rem;
            }

            .age-display {
                font-size: 1.5rem;
                padding: 15px 30px;
            }

            .message-text {
                font-size: 1rem;
                text-align: left;
            }
        }

        @media (max-width: 480px) {
            .hero-title {
                font-size: 1.75rem;
            }

            .hero-subtitle {
                font-size: 1rem;
            }

            .hero-name {
                font-size: 1.25rem;
            }

            .card {
                padding: 20px;
            }

            .date-value {
                font-size: 1.75rem;
            }

            .age-display {
                font-size: 1.25rem;
                padding: 12px 25px;
            }
        }

        /* Scroll Indicator */
        .scroll-indicator {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            animation: bounce 2s infinite;
            cursor: pointer;
        }

        .scroll-indicator svg {
            width: 30px;
            height: 30px;
            fill: var(--color-primary);
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateX(-50%) translateY(0);
            }
            40% {
                transform: translateX(-50%) translateY(-10px);
            }
            60% {
                transform: translateX(-50%) translateY(-5px);
            }
        }
/* Gift Box Screen */
        #messageScreen.active {
            opacity: 1;
            pointer-events: all;
        }
        #messageScreen {
            /* position: fixed; */
            /* top: 0;
            left: 0;
            width: 100%;
            height: 100vh; */
            /* background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); */
            display: flex;
            /* flex-direction: column; */
            justify-content: center;
            align-items: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.5s ease;
            /* padding: 20px; */
        }
        #giftScreen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 10;
            transition: opacity 0.5s ease;
        }

        #giftScreen.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .gift-container {
            position: relative;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .gift-container:hover {
            transform: scale(1.05);
        }

        .gift-box {
            width: 200px;
            height: 200px;
            background: linear-gradient(145deg, #ff6b9d, #e91e63);
            border-radius: 10px;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            transition: transform 0.5s ease;
        }

        .gift-box.opening {
            animation: shake 0.5s ease;
        }

        .gift-lid {
            position: absolute;
            top: -10px;
            left: 0;
            width: 100%;
            height: 40px;
            background: linear-gradient(145deg, #ff8fb3, #ff6b9d);
            border-radius: 10px 10px 0 0;
            transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            transform-origin: bottom;
            z-index: 2;
        }

        .gift-box.opening .gift-lid {
            transform: rotateX(-120deg) translateY(-50px);
            opacity: 0;
        }

        .ribbon-v {
            position: absolute;
            width: 20px;
            height: 100%;
            background: linear-gradient(to right, #ffd700, #ffed4e);
            left: 50%;
            transform: translateX(-50%);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .ribbon-h {
            position: absolute;
            width: 100%;
            height: 20px;
            background: linear-gradient(to bottom, #ffd700, #ffed4e);
            top: 50%;
            transform: translateY(-50%);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .bow {
            position: absolute;
            top: -40px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 40px;
        }

        .bow::before,
        .bow::after {
            content: '';
            position: absolute;
            width: 30px;
            height: 30px;
            background: linear-gradient(145deg, #ffd700, #ffed4e);
            border-radius: 50% 50% 0 50%;
            top: 5px;
        }

        .bow::before {
            left: 0;
            transform: rotate(-45deg);
        }

        .bow::after {
            right: 0;
            transform: rotate(45deg);
        }

        .click-instruction {
            margin-top: 40px;
            color: rgb(0, 0, 0);
            font-size: 20px;
            font-weight: 600;
            text-align: center;
            animation: pulse 2s infinite;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }
        /* Confetti */
        .confetti {
            position: fixed;
            width: 10px;
            height: 10px;
            background: var(--color);
            animation: fall 3s ease-out forwards;
            pointer-events: none;
            z-index: 100;
        }

        /* Animations */
        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
                opacity: 1;
            }
            50% {
                transform: scale(1.05);
                opacity: 0.8;
            }
        }

        @keyframes shake {
            0%, 100% { transform: rotate(0deg); }
            25% { transform: rotate(-5deg); }
            75% { transform: rotate(5deg); }
        }

        @keyframes float-heart {
            0% {
                transform: translateY(0) scale(0);
                opacity: 1;
            }
            50% {
                transform: translateY(-100px) scale(1);
                opacity: 0.8;
            }
            100% {
                transform: translateY(-200px) scale(0);
                opacity: 0;
            }
        }

        @keyframes fall {
            to {
                transform: translateY(100vh) rotate(360deg);
                opacity: 0;
            }
        }

        @keyframes rotate-badge {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }



/* Login page styles */
.login_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
}

.login_form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 400px;
  height: 300px;
  border: 1px solid #ccc;
  border-radius: 20px;
}

input[type="text"],
input[type="password"] {
  width: 300px;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  padding-left: 10px;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border: 2px solid #000;
}

button[type="submit"] {
  width: 300px;
  height: 40px;
  border: none;
  border-radius: 5px;
  background-color: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #fff;
  color: #000;
  border: 2px solid #000;
}

.login_description {
  font-size: 14px;
  color: #ccc;
  margin: 10px 0;
  padding: 0 10px;
  text-align: center;
}

/* Birtday page styles */
.song {
  visibility: hidden;
}

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

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

.one {
  font-size: 4.5rem;
}

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

.three {
  font-size: 3rem;
}

.four .text-box {
  border: 2px solid #ccc;
  border-radius: 20px;
  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: 5px;
  bottom: -50px;
  right: 5px;
  position: absolute;
  color: #fff;
  padding: 0.5rem 1rem;
}

.five p {
  font-size: 2rem;
  position: absolute;
  left: 0;
  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: 300px;
  max-width: 100%;
  border-radius: 14px;
}

.six .hat {
  position: absolute;
  left: 41.5%;
  top: -35%;
  width: 60px;
  rotate: 14deg;
}

.ballons img {
  display: inline-block;
  position: absolute;
}

.ballons img:nth-child(even) {
  left: -10%;
}

.ballons img:nth-child(odd) {
  right: -10%;
}

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

.seven .eight {
  height: 100vh;
  position: relative;
  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;
}

/* 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) {
  .login_form{
    width: 350px;
    height: 250px;
  }

  .container {
    width: 100%;
    padding: 0 10px;
  }

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

  .text-box .fake-btn {
    bottom: -50px;
    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: .8rem;
  }

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