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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Password Integrated in Countdown Page */
.password-integrated {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.password-prompt {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.password-content-countdown {
    background: white;
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 450px;
    width: 100%;
    animation: passwordFadeIn 0.5s ease-in-out;
}

.password-content {
    background: white;
    padding: 50px 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 450px;
    width: 100%;
    animation: passwordFadeIn 0.5s ease-in-out;
}

@keyframes passwordFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(10px);
    }
}

.password-title-countdown,
.password-title {
    font-size: 2.2rem;
    color: #ff1493;
    margin-bottom: 15px;
    font-weight: bold;
}

.password-subtitle-countdown,
.password-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.password-input-wrapper-integrated,
.password-input-wrapper-countdown,
.password-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.password-input-integrated,
.password-input-countdown,
.password-input {
    width: 100%;
    padding: 15px 18px;
    font-size: 1rem;
    border: 2px solid #ffb3d9;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.password-input-integrated:focus,
.password-input-countdown:focus,
.password-input:focus {
    border-color: #ff1493;
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.1);
}

.password-submit-btn-integrated,
.password-submit-btn-countdown,
.password-submit-btn {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.password-submit-btn-integrated:hover,
.password-submit-btn-countdown:hover,
.password-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 20, 147, 0.5);
}

.password-submit-btn-integrated:active,
.password-submit-btn-countdown:active,
.password-submit-btn:active {
    transform: translateY(-1px);
}

.password-error-integrated,
.password-error-countdown,
.password-error {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 10px;
    min-height: 20px;
    display: none;
}

.celebrate-btn-new {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 20, 147, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
    pointer-events: auto;
    user-select: none;
    position: relative;
    margin-top: 20px;
}

.celebrate-btn-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 20, 147, 0.5);
}

.page {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Page 1: Countdown Timer with Graffiti */
#page1 {
    background: linear-gradient(135deg, #ffeef0 0%, #fff5f5 100%);
    position: relative;
}

.countdown-page-bg {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.graffiti-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.graffiti {
    position: absolute;
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: 900;
    font-size: 4rem;
    color: rgba(255, 20, 147, 0.15);
    transform: rotate(-15deg);
    animation: graffitiAppear 3s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
}

.graffiti:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.graffiti:nth-child(2) {
    top: 60%;
    right: 10%;
    transform: rotate(15deg);
    animation-delay: 1s;
}

.graffiti:nth-child(3) {
    bottom: 15%;
    left: 15%;
    transform: rotate(-25deg);
    animation-delay: 2s;
}

.graffiti:nth-child(4) {
    top: 30%;
    right: 5%;
    transform: rotate(20deg);
    animation-delay: 0.5s;
}

@keyframes graffitiAppear {
    0%, 100% {
        opacity: 0.1;
        transform: scale(0.9) rotate(var(--rotate, -15deg));
    }
    50% {
        opacity: 0.2;
        transform: scale(1.1) rotate(var(--rotate, -15deg));
    }
}

.countdown-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 700px;
    width: 100%;
    opacity: 1;
}

.tagline-top {
    color: rgba(128, 128, 128, 0.9);
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.countdown-title-new {
    font-size: 2.8rem;
    color: #000;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.countdown-title-new .name {
    color: #ff1493;
    font-weight: 900;
}

.countdown-subtitle-new {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 50px;
}

.countdown-container-new {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.countdown-box-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.countdown-number-new {
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: bold;
    color: #ff0000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 20, 147, 0.1);
}

.countdown-label-new {
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.midnight-text-new {
    font-size: 1.3rem;
    color: #da70d6;
    margin: 40px 0 15px;
    font-weight: 500;
}

.magical-text {
    font-size: 1rem;
    color: #888;
    margin-bottom: 35px;
}

/* Page 2: Main Birthday Greeting */
#page2 {
    background: linear-gradient(135deg, #fff5f5 0%, #ffeef0 100%);
    position: relative;
}

.balloons-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.balloon {
    position: absolute;
    width: 55px;
    height: 75px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: balloonFloat 18s infinite ease-in-out;
    opacity: 0.75;
    bottom: -80px;
    left: 0;
}

.balloon::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 150px;
    background: linear-gradient(to bottom, #aaa 0%, transparent 100%);
    opacity: 0.5;
}

.balloon.pink {
    background: linear-gradient(135deg, #ffb3d9 0%, #ff99cc 100%);
    box-shadow: 0 4px 12px rgba(255, 153, 204, 0.35);
    border: 1px solid rgba(255, 182, 217, 0.4);
}

@keyframes balloonFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(-8deg);
        opacity: 0;
    }
    3% {
        opacity: 0.75;
    }
    25% {
        transform: translateY(-25vh) translateX(15px) rotate(5deg);
    }
    50% {
        transform: translateY(-50vh) translateX(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-75vh) translateX(20px) rotate(8deg);
    }
    97% {
        opacity: 0.75;
    }
    100% {
        transform: translateY(-100vh) translateX(-15px) rotate(-3deg);
        opacity: 0;
    }
}

#page2 .content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 600px;
}

.main-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000;
}

.main-title .name {
    color: #ff1493;
}

.subtitle {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 30px;
}

.colorful-text {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.colorful-text .orange {
    color: #ff8c00;
}

.colorful-text .green {
    color: #90ee90;
}

.colorful-text .purple {
    color: #da70d6;
}

.cta-text {
    margin: 30px 0;
}

.cta-text p {
    color: #333;
    margin: 10px 0;
}

.small-text {
    font-size: 0.9rem;
    color: #666;
}

.celebrate-btn {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 30px;
    box-shadow: 0 8px 20px rgba(255, 20, 147, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.celebrate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 20, 147, 0.5);
}

.celebrate-btn:active {
    transform: translateY(-1px);
}

/* Page 2: Interactive Celebration (Enhanced) */
#page2 {
    background: linear-gradient(135deg, #9370db 0%, #8a2be2 50%, #ba55d3 100%);
    position: relative;
    overflow: hidden;
}

.purple-bg-enhanced {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    animation: bgPulse 4s infinite ease-in-out;
}

@keyframes bgPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

.confetti-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd700;
    animation: confettiFall 3s infinite linear;
}

.confetti-piece:nth-child(odd) {
    background: #ff1493;
}

.confetti-piece:nth-child(3n) {
    background: #00ff00;
}

.confetti-piece:nth-child(4n) {
    background: #00bfff;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.purple-bg {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.overlay-text {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 10;
}

.banner {
    position: absolute;
    top: 15%;
    left: 5%;
    display: flex;
    transform: rotate(-15deg);
    gap: 5px;
    z-index: 5;
}

.banner-enhanced {
    position: absolute;
    top: 12%;
    left: 3%;
    display: flex;
    transform: rotate(-15deg);
    gap: 6px;
    z-index: 6;
    animation: bannerFloat 3s infinite ease-in-out;
}

@keyframes bannerFloat {
    0%, 100% {
        transform: rotate(-15deg) translateY(0);
    }
    50% {
        transform: rotate(-15deg) translateY(-15px);
    }
}

.flag {
    width: 50px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: #333;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    animation: wave 2s infinite ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.flag:hover {
    transform: scale(1.1) translateY(-5px);
}

.flag.blue {
    background: #87ceeb;
}

.flag.yellow {
    background: #ffd700;
}

.flag:nth-child(odd) {
    animation-delay: 0.1s;
}

.flag:nth-child(even) {
    animation-delay: 0.3s;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.lights-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.light {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    animation: arch 8s infinite ease-in-out;
    box-shadow: 0 0 20px currentColor;
}

.light.red {
    background: #ff4444;
    color: #ff4444;
}

.light.yellow {
    background: #ffd700;
    color: #ffd700;
}

.light.blue {
    background: #4da6ff;
    color: #4da6ff;
}

.light.green {
    background: #4caf50;
    color: #4caf50;
}

@keyframes arch {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(300px, 400px) scale(0.5);
        opacity: 0;
    }
}

.hearts-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

@keyframes floatHeart {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

.cake-container {
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 5;
}

.cake {
    width: 80px;
    height: 60px;
    background: white;
    border-radius: 10px 10px 0 0;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cake-enhanced {
    width: 100px;
    height: 80px;
    position: relative;
    animation: cakeBounce 2s infinite ease-in-out;
}

@keyframes cakeBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

.cake-layer {
    width: 100px;
    height: 30px;
    background: linear-gradient(135deg, #fff 0%, #ffe4e1 100%);
    border-radius: 10px 10px 0 0;
    position: absolute;
    bottom: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffb3d9;
}

.cake-layer.layer-2 {
    bottom: 30px;
    width: 90px;
    left: 5px;
    height: 25px;
    background: linear-gradient(135deg, #ffe4e1 0%, #ffb3d9 100%);
}

.candle {
    position: absolute;
    top: -25px;
    width: 4px;
    height: 20px;
    background: #ffa500;
    border-radius: 2px;
    animation: flicker 1.5s infinite ease-in-out;
}

.candle:nth-child(1) {
    left: 20px;
}

.candle:nth-child(2) {
    left: 38px;
}

.candle:nth-child(3) {
    left: 56px;
}

.candle::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 8px;
    background: #ff6b00;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 1.5s infinite ease-in-out;
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

.interactive-section {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    text-align: center;
    z-index: 10;
    color: white;
}

.interactive-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.interactive-section p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.interactive-section-enhanced {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    text-align: center;
    z-index: 100;
    color: white;
    animation: sectionPulse 2s infinite ease-in-out;
    pointer-events: none;
}

.interactive-section-enhanced > * {
    pointer-events: auto;
}

@keyframes sectionPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.02);
    }
}

.celebrate-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    animation: titleGlow 2s infinite ease-in-out;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.6);
    }
}

.decorate-text {
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.click-counter {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.fly-balloons-btn {
    background: #8a2be2;
    color: white;
    border: 2px solid white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.fly-balloons-btn:hover {
    background: white;
    color: #8a2be2;
    transform: scale(1.05);
}

.fly-balloons-btn-enhanced {
    background: linear-gradient(135deg, #8a2be2 0%, #9370db 100%);
    color: white;
    border: 3px solid white;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s infinite ease-in-out;
    z-index: 100;
    pointer-events: auto;
    user-select: none;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.6);
    }
}

.fly-balloons-btn-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: buttonShine 3s infinite;
}

@keyframes buttonShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.fly-balloons-btn-enhanced:hover {
    background: linear-gradient(135deg, white 0%, #f0f0f0 100%);
    color: #8a2be2;
    transform: scale(1.1);
    border-color: #8a2be2;
}

.btn-icon, .btn-sparkle, .btn-text {
    font-size: 1.5rem;
    pointer-events: none;
    user-select: none;
}

.btn-icon, .btn-sparkle {
    animation: iconBounce 1s infinite ease-in-out;
}

.btn-sparkle {
    animation-delay: 0.5s;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.2);
    }
}

.stars-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.star {
    position: absolute;
    font-size: 20px;
    color: #ffd700;
    animation: starTwinkle 2s infinite ease-in-out;
    text-shadow: 0 0 10px #ffd700;
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 3;
}

.floating-emoji {
    position: absolute;
    font-size: 3rem;
    animation: floatEmoji 8s infinite ease-in-out;
    opacity: 0.7;
}

.floating-emoji:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-emoji:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-emoji:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.floating-emoji:nth-child(4) {
    top: 40%;
    right: 30%;
    animation-delay: 6s;
}

@keyframes floatEmoji {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
    }
    50% {
        transform: translateY(-60px) translateX(-20px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) translateX(10px) rotate(270deg);
    }
}

@keyframes flyUp {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-50vh) scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) scale(0.5) rotate(360deg);
        opacity: 0;
    }
}

/* Page 3: Card with Let's Go */
#page3 {
    background: linear-gradient(135deg, #ffeef0 0%, #fff5f5 100%);
}

.pink-bg {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hearts-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.heart-bg {
    position: absolute;
    font-size: 30px;
    color: rgba(255, 182, 193, 0.3);
    animation: floatHeartBg 15s infinite ease-in-out;
}

@keyframes floatHeartBg {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.card-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 80px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: rotate(-5deg);
    animation: cardFloat 3s infinite ease-in-out;
}

@keyframes cardFloat {
    0%, 100% {
        transform: rotate(-5deg) translateY(0);
    }
    50% {
        transform: rotate(-5deg) translateY(-10px);
    }
}

.sparkles {
    position: absolute;
    top: 20px;
    right: 20px;
}

.sparkle {
    font-size: 2rem;
    display: inline-block;
    animation: sparkle 2s infinite ease-in-out;
}

.sparkle:nth-child(2) {
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

.card-text {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    transform: rotate(5deg);
    font-weight: 500;
}

.pagination {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffb3d9;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ff1493;
    transform: scale(1.3);
}

.lets-go-btn {
    background: linear-gradient(135deg, #ffb3d9 0%, #ff99cc 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 153, 204, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lets-go-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 153, 204, 0.5);
}

/* Page 4: Card with Let's Go (New Design) */
.white-pink-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #ffeef0 100%);
    position: relative;
    overflow: hidden;
}

.tagline-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.card-container-new {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.card-new {
    background: white;
    padding: 40px 60px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: rotate(-3deg);
    animation: cardFloatNew 3s infinite ease-in-out;
    max-width: 500px;
    width: 100%;
    overflow: visible;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: 20px;
}

@keyframes cardFloatNew {
    0%, 100% {
        transform: rotate(-3deg) translateY(0);
    }
    50% {
        transform: rotate(-3deg) translateY(-8px);
    }
}

.sparkles-new {
    position: absolute;
    top: 20px;
    right: 20px;
}

.sparkle-new {
    font-size: 1.8rem;
    display: inline-block;
    animation: sparkleNew 2s infinite ease-in-out;
    margin-left: 5px;
}

.sparkle-new:nth-child(2) {
    animation-delay: 0.7s;
}

.sparkle-new:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes sparkleNew {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.3) rotate(180deg);
    }
}

.card-text-container {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
    overflow: visible;
}

.card-text-new {
    font-size: 1.7rem;
    color: #222;
    margin: 0;
    font-weight: 700;
    text-align: center;
    display: block;
    line-height: 1.5;
    letter-spacing: 1.5px;
    white-space: nowrap;
    position: absolute;
    z-index: 100;
    transform: rotate(-90deg);
    transform-origin: center center;
    width: 300px;
    height: 30px;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -150px;
    opacity: 1;
    visibility: visible;
}

.pagination-new {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: flex-start;
}

.dot-new {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    transition: all 0.3s ease;
}

.dot-new.active {
    background: #ff1493;
    transform: scale(1.4);
}

.lets-go-btn-new {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    z-index: 100;
    pointer-events: auto;
    user-select: none;
    position: relative;
}

.lets-go-btn-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.5);
}

/* Video Player Styles */
.video-player-container {
    margin: 30px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 10;
}

.video-wrapper {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background: #000;
}

.birthday-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.video-caption {
    font-size: 1.1rem;
    color: #ff1493;
    font-weight: 600;
    text-align: center;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Romantic Lines */
.romantic-line-1,
.romantic-line-2,
.romantic-line-3 {
    font-size: 1.1rem;
    color: #ff69b4;
    text-align: center;
    margin: 15px 0;
    font-style: italic;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    animation: romanticPulse 3s infinite ease-in-out;
}

.romantic-line-1 {
    margin-top: 20px;
}

.romantic-line-2 {
    margin-top: 20px;
    margin-bottom: 20px;
}

.romantic-line-3 {
    margin: 15px 0 25px 0;
}

@keyframes romanticPulse {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Page 5: Yes/No Question */
.question-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.question-card {
    background: white;
    padding: 50px 60px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: rotate(2deg);
    animation: cardFloatNew 3s infinite ease-in-out;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.question-text {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 40px;
    transform: rotate(-5deg);
    font-weight: 600;
    line-height: 1.4;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.yes-btn {
    background: linear-gradient(135deg, #ff0000 0%, #ff4444 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    z-index: 100;
    pointer-events: auto;
    user-select: none;
    position: relative;
}

.yes-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
}

.no-btn {
    background: linear-gradient(135deg, #9370db 0%, #8a2be2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(147, 112, 219, 0.4);
    width: 100%;
    z-index: 100;
    pointer-events: auto;
    user-select: none;
    position: relative;
}

.yes-btn-excited {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    animation: excitedPulse 1s infinite ease-in-out;
}

@keyframes excitedPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(255, 20, 147, 0.6);
    }
}

.no-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(147, 112, 219, 0.5);
}

/* Page 6: Gift Selection MCQ */
.gift-selection-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
}

.gift-card {
    background: white;
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.gift-title {
    font-size: 2.2rem;
    color: #ff1493;
    margin-bottom: 10px;
    font-weight: bold;
}

.gift-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.gift-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}


/* Gift Popup Modal */
.gift-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

.gift-popup-content {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    text-align: center;
    animation: slideUp 0.3s ease-in-out;
}

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

.gift-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff1493;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.gift-popup-close:hover {
    background: #ff69b4;
    transform: scale(1.1);
}

.gift-popup-message {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.gift-popup-gif {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gift-popup-continue {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
    margin-top: 20px;
    z-index: 100;
    pointer-events: auto;
    user-select: none;
}

.gift-popup-continue:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.5);
}

.gift-option {
    background: linear-gradient(135deg, #fff5f5 0%, #ffeef0 100%);
    border: 2px solid #ffb3d9;
    padding: 25px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    z-index: 100;
    pointer-events: auto;
    user-select: none;
    position: relative;
}

.gift-option:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #ff1493;
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.3);
    background: linear-gradient(135deg, #ffeef0 0%, #ffb3d9 100%);
}

.gift-option.selected {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    color: white;
    border-color: #ff1493;
    transform: scale(1.05);
}

.gift-emoji {
    font-size: 2.5rem;
}

.gift-name {
    font-size: 0.95rem;
    line-height: 1.3;
    word-wrap: break-word;
    text-align: center;
}

.selected-gift {
    margin-top: 30px;
    padding: 20px;
    background: #f0f0f0;
    border-radius: 15px;
}

.selected-text {
    font-size: 1.3rem;
    color: #ff1493;
    margin-bottom: 20px;
    font-weight: bold;
}

.continue-btn {
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
    z-index: 100;
    pointer-events: auto;
    user-select: none;
    position: relative;
}

.continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.5);
}

/* Page 7: Handwritten Letter */
.letter-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 15px 50px 15px;
}

.tagline-overlay-letter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.letter-container {
    position: relative;
    z-index: 2;
    max-width: 520px;
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 10px;
}

/* Audio Player Styles */
.audio-player-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 400px;
    width: calc(100% - 40px);
}

.also-heading {
    text-align: center;
    font-size: 2rem;
    color: #ff1493;
    margin: 100px 0 20px 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 999;
}

.audio-player {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.95) 0%, rgba(255, 105, 180, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.audio-play-btn {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ff1493;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.audio-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.audio-play-btn:active {
    transform: scale(0.95);
}

.play-icon, .pause-icon {
    display: inline-block;
}

.audio-info {
    flex: 1;
    min-width: 0;
}

.audio-title {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.audio-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.audio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.audio-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.audio-time {
    color: white;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    opacity: 0.9;
}

.audio-volume {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.volume-icon {
    font-size: 1.2rem;
    color: white;
}

.volume-slider {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
}

.letter-paper {
    background: #fafafa;
    padding: 40px 35px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: rotate(-2deg);
    animation: letterFloat 4s infinite ease-in-out;
    border: 1px solid #e0e0e0;
    overflow: visible;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

@keyframes letterFloat {
    0%, 100% {
        transform: rotate(-2deg) translateY(0);
    }
    50% {
        transform: rotate(-2deg) translateY(-5px);
    }
}


.yellow-stylus {
    position: absolute;
    top: -20px;
    right: 35px;
    width: 3px;
    height: 140px;
    background: linear-gradient(180deg, #ffd700 0%, #ffa500 100%);
    transform: rotate(25deg);
    transform-origin: top center;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 0;
    pointer-events: none;
}

.yellow-stylus::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.letter-content {
    font-family: 'Dancing Script', 'Great Vibes', 'Allura', 'Pacifico', 'Satisfy', 'Kalam', 'Caveat', cursive;
    color: #333;
    line-height: 1.8;
    font-size: 1.15rem;
    position: relative;
    z-index: 2;
    padding: 0 8px;
    font-weight: 500;
    letter-spacing: 0.4px;
    max-width: 100%;
    word-wrap: break-word;
    text-align: left;
}

.letter-greeting {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.letter-text {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1.15rem;
    line-height: 1.8;
}


.countdown-bg {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.countdown-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.countdown-title .name {
    color: #ff1493;
}

.countdown-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

.countdown-container {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.countdown-number {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #ff1493;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: #ff1493;
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.2);
    animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.countdown-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.midnight-text {
    font-size: 1.2rem;
    color: #333;
    margin: 40px 0 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .countdown-title-new {
        font-size: 2.2rem;
    }
    
    .countdown-number-new {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .letter-paper {
        padding: 45px 35px;
    }
    
    .letter-content {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .colorful-text {
        font-size: 1.6rem;
        gap: 8px;
    }
    
    .countdown-title-new {
        font-size: 1.8rem;
        padding: 0 15px;
    }
    
    .countdown-subtitle-new {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .romantic-line-1 {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .countdown-number-new {
        width: 75px;
        height: 75px;
        font-size: 2rem;
    }
    
    .countdown-container-new {
        gap: 12px;
    }
    
    .countdown-label-new {
        font-size: 0.75rem;
    }
    
    .midnight-text-new {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .magical-text {
        font-size: 0.9rem;
        padding: 0 15px;
    }
    
    .graffiti {
        font-size: 2rem;
    }
    
    .celebrate-title {
        font-size: 2rem;
    }
    
    .decorate-text {
        font-size: 1rem;
    }
    
    .fly-balloons-btn-enhanced {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .card {
        padding: 40px 30px;
        margin: 20px;
    }
    
    .card-new {
        padding: 35px 25px;
        min-height: 400px;
    }
    
    .card-text-new {
        font-size: 1.3rem;
        height: 220px;
    }
    
    .card-text-container {
        width: 220px;
        height: 220px;
    }
    
    .video-player-container {
        margin: 20px 0;
    }
    
    .video-wrapper {
        max-width: 100%;
    }
    
    .video-caption {
        font-size: 1rem;
    }
    
    .romantic-line-1,
    .romantic-line-2 {
        font-size: 1rem;
        margin: 12px 0;
    }
    
    .question-text {
        font-size: 1.4rem;
    }
    
    .yes-btn, .yes-btn-excited {
        padding: 18px 30px;
        font-size: 1.2rem;
    }
    
    .gift-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gift-option {
        padding: 20px 15px;
    }
    
    .gift-title {
        font-size: 1.8rem;
    }
    
    .gift-subtitle {
        font-size: 1rem;
    }
    
    .gift-popup-content {
        padding: 30px 20px;
        max-width: 95%;
    }
    
    .gift-popup-message {
        font-size: 1.1rem;
    }
    
    .gift-popup-gif {
        max-width: 100%;
    }
    
    .letter-bg {
        padding: 80px 10px 30px 10px;
        align-items: flex-start;
    }
    
    .letter-container {
        padding: 5px;
        width: 95%;
        max-width: 100%;
    }
    
    .letter-paper {
        padding: 25px 20px;
        margin: 0 auto;
        min-height: auto;
        transform: rotate(-1deg);
    }
    
    .letter-content {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 3px;
    }
    
    .letter-greeting {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .letter-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    .yellow-stylus {
        top: -18px;
        right: 25px;
        height: 100px;
        width: 3px;
    }
    
    
    .audio-player-container {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100% - 20px);
    }
    
    .also-heading {
        font-size: 1.5rem;
        margin: 80px 0 15px 0;
    }
    
    .audio-player {
        padding: 12px;
        gap: 10px;
        flex-wrap: wrap;
        border-radius: 15px;
    }
    
    .audio-play-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .audio-title {
        font-size: 0.85rem;
    }
    
    .audio-time {
        font-size: 0.7rem;
    }
    
    .volume-slider {
        width: 50px;
    }
    
    .banner-enhanced {
        transform: rotate(-10deg) scale(0.6);
        top: 8%;
    }
    
    .interactive-section-enhanced {
        right: 20px;
        top: 45%;
    }
    
    .celebrate-title {
        font-size: 1.8rem;
    }
    
    .cake-enhanced {
        width: 70px;
        height: 60px;
    }
    
    .cake-layer {
        width: 70px;
        height: 25px;
    }
    
    .cake-layer.layer-2 {
        width: 65px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .countdown-title-new {
        font-size: 1.5rem;
    }
    
    .countdown-number-new {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .countdown-container-new {
        gap: 8px;
    }
    
    .card-new {
        padding: 25px 20px;
        min-height: 350px;
    }
    
    .card-text-container {
        width: 180px;
        height: 180px;
    }
    
    .card-text-new {
        font-size: 1.1rem;
        height: 180px;
    }
    
    .video-player-container {
        margin: 15px 0;
    }
    
    .video-wrapper {
        max-width: 100%;
        border-radius: 15px;
    }
    
    .video-caption {
        font-size: 0.9rem;
    }
    
    .romantic-line-1,
    .romantic-line-2 {
        font-size: 0.9rem;
        margin: 10px 0;
    }
    
    .letter-bg {
        padding: 60px 8px 80px 8px;
    }
    
    .letter-paper {
        padding: 20px 15px;
    }
    
    .letter-content {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .letter-greeting {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .letter-text {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    .yellow-stylus {
        top: -15px;
        right: 15px;
        height: 80px;
        width: 2.5px;
    }
    
    
    .audio-player {
        padding: 10px;
        flex-direction: column;
    }
    
    .audio-info {
        min-width: 0;
        width: 100%;
    }
    
    .audio-title {
        font-size: 0.8rem;
    }
    
    .audio-volume {
        width: 100%;
        justify-content: center;
    }
    
    .volume-slider {
        flex: 1;
        max-width: 100px;
    }
    
    .question-card {
        padding: 30px 20px;
    }
    
    .button-group {
        gap: 15px;
    }
    
    .gift-card {
        padding: 30px 20px;
    }
    
    .password-integrated {
        padding: 20px;
        margin: 20px 0;
    }
    
    .password-prompt {
        font-size: 0.9rem;
    }
    
    .password-input-integrated {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .password-submit-btn-integrated {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
    
    .password-content-countdown,
    .password-content {
        padding: 40px 30px;
        max-width: 90%;
    }
    
    .password-title-countdown,
    .password-title {
        font-size: 1.8rem;
    }
    
    .password-subtitle-countdown,
    .password-subtitle {
        font-size: 1rem;
    }
    
    .password-input-countdown,
    .password-input {
        padding: 15px 18px;
        font-size: 1rem;
    }
    
    .password-submit-btn-countdown,
    .password-submit-btn {
        padding: 15px 35px;
        font-size: 1rem;
    }
}

/* Page transition animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.page {
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.page.active {
    animation: slideIn 0.6s ease-in-out;
}