:root {
    --pink-light: #FFF0F5;
    --pink-medium: #FFD4E5;
    --pink-dark: #FFB3D9;
    --red-light: #FF9EC8;
    --red-medium: #D81B60;
    --purple-light: #F3E5F5;
    --white: #FFFFFF;
    --text-dark: #2C2C2C;
    --shadow: rgba(0, 0, 0, 0.15);
    --card-bg: rgba(255, 255, 255, 0.92);
    --card-border: rgba(255, 192, 203, 0.4);
}

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

body {
    font-family: 'Poppins', sans-serif;
    /* Background image (your photo collage) */
    background-image: url('collage.jpg');
    background-size: 100% auto;
    background-position: top center;
    background-attachment: scroll;
    background-repeat: repeat-y;
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    touch-action: manipulation; /* Improve touch responsiveness */
}

/* Optional: Add a semi-transparent overlay to ensure text is readable */
/* Removed - collage shows through without pink hue */

/* Love Question Overlay */
.love-question-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.98), rgba(255, 105, 180, 0.98));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
    backdrop-filter: blur(10px);
}

.love-question-overlay.hidden {
    animation: fadeOut 0.8s ease forwards;
    pointer-events: none;
}

.love-question-content {
    text-align: center;
    color: white;
    padding: 50px;
    max-width: 600px;
    width: 90%;
}

.love-question-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 50px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: heartBeat 1.5s infinite;
}

.slider-container {
    position: relative;
    margin: 40px 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.love-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.love-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 50px;
    height: 50px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.love-slider::-moz-range-thumb {
    width: 50px;
    height: 50px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.love-slider::-webkit-slider-thumb:hover,
.love-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.slider-fill {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.9));
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s ease;
    pointer-events: none;
    z-index: 1;
}

.slider-message {
    margin-top: 30px;
    font-size: 1.5rem;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    min-height: 40px;
    transition: all 0.3s ease;
}

.slider-message.celebrating {
    font-size: 2rem;
    animation: pulse 0.5s ease;
}

/* Proof of Love Game Overlay */
.proof-game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.98), rgba(230, 184, 245, 0.98));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    animation: fadeIn 0.5s ease;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
}

.proof-game-overlay.show {
    opacity: 1;
    visibility: visible;
}

.proof-game-overlay.hidden {
    animation: fadeOut 0.8s ease forwards;
    pointer-events: none;
}

.proof-game-content {
    text-align: center;
    color: white;
    padding: 40px 20px;
    max-width: 700px;
    width: 95%;
}

.proof-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.proof-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.proof-game-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.proof-game-stats .stat {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.proof-memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 750px;
    margin: 0 auto 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.proof-memory-grid .memory-card {
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 229, 236, 0.9));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    transform-style: preserve-3d;
}

.proof-memory-grid .memory-card:hover {
    transform: translateY(-5px) scale(1.05);
}

.proof-memory-grid .memory-card.flipped {
    background: linear-gradient(135deg, white, var(--pink-light));
    transform: rotateY(180deg);
}

.proof-memory-grid .memory-card.matched {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    animation: matchPulse 0.5s ease;
    cursor: default;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.proof-message {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    min-height: 50px;
    margin-top: 20px;
}

/* Welcome Overlay - Hidden (not used) */
.welcome-overlay {
    display: none;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Music Player */
.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.music-toggle {
    background: var(--card-bg);
    border: 2px solid var(--pink-dark);
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    box-shadow: 0 5px 15px var(--shadow);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: var(--red-medium);
    font-weight: 600;
    min-width: 130px;
    min-height: 44px; /* iOS recommended tap target size */
}

.music-toggle:hover, .music-toggle:active {
    transform: scale(1.05);
    background: var(--pink-light);
}

.music-toggle.playing {
    background: linear-gradient(135deg, var(--pink-light), var(--pink-dark));
    animation: musicPulse 2s infinite;
}

@keyframes musicPulse {
    0%, 100% {
        box-shadow: 0 5px 15px var(--shadow);
    }
    50% {
        box-shadow: 0 5px 25px var(--red-medium);
    }
}

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

.hearts-background::before,
.hearts-background::after {
    content: '💕';
    position: absolute;
    font-size: 30px;
    animation: floatHearts 15s infinite;
    opacity: 0.3;
}

.hearts-background::before {
    left: 10%;
    animation-delay: 0s;
}

.hearts-background::after {
    content: '💖';
    left: 80%;
    animation-delay: 7s;
}

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

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInDown 1s ease;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--red-medium);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1),
                 0 0 20px rgba(255, 255, 255, 1),
                 0 0 30px rgba(255, 255, 255, 1),
                 0 0 40px rgba(255, 255, 255, 0.9),
                 0 0 60px rgba(255, 255, 255, 0.8),
                 0 0 80px rgba(255, 255, 255, 0.7),
                 2px 2px 8px rgba(255, 255, 255, 1),
                 -2px -2px 8px rgba(255, 255, 255, 1),
                 0 0 25px rgba(216, 27, 96, 0.4);
}

.subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: var(--red-medium);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1),
                 0 0 20px rgba(255, 255, 255, 1),
                 0 0 30px rgba(255, 255, 255, 1),
                 0 0 40px rgba(255, 255, 255, 0.9),
                 0 0 60px rgba(255, 255, 255, 0.8),
                 0 0 80px rgba(255, 255, 255, 0.7),
                 2px 2px 8px rgba(255, 255, 255, 1),
                 -2px -2px 8px rgba(255, 255, 255, 1),
                 0 0 25px rgba(216, 27, 96, 0.4);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 1.5s ease;
}

.heart-pulse {
    font-size: 100px;
    animation: pulse 2s infinite;
    display: inline-block;
    margin-bottom: 20px;
}

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

.hero h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--red-medium);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1),
                 0 0 20px rgba(255, 255, 255, 1),
                 0 0 30px rgba(255, 255, 255, 1),
                 0 0 40px rgba(255, 255, 255, 0.9),
                 0 0 60px rgba(255, 255, 255, 0.8),
                 0 0 80px rgba(255, 255, 255, 0.7),
                 2px 2px 8px rgba(255, 255, 255, 1),
                 -2px -2px 8px rgba(255, 255, 255, 1),
                 0 0 25px rgba(216, 27, 96, 0.4);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 10px 30px var(--shadow);
    backdrop-filter: blur(15px);
    border: 2px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease;
}

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

.pink-card {
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.95), rgba(255, 228, 240, 0.95));
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--red-medium);
    margin-bottom: 20px;
    text-align: center;
}

.card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Dental Love Notes */
.love-notes {
    display: grid;
    gap: 15px;
}

.love-notes p {
    font-size: 1.2rem;
    padding: 15px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    border-left: 4px solid var(--pink-dark);
    transition: all 0.3s ease;
}

.love-notes p:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.95);
}

.love-notes strong {
    color: var(--red-medium);
    font-weight: 600;
}

/* Reasons Section */
.reasons-section {
    padding: 40px 0;
}

.reasons-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--red-medium);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1),
                 0 0 20px rgba(255, 255, 255, 1),
                 0 0 30px rgba(255, 255, 255, 1),
                 0 0 40px rgba(255, 255, 255, 0.9),
                 0 0 60px rgba(255, 255, 255, 0.8),
                 0 0 80px rgba(255, 255, 255, 0.7),
                 2px 2px 8px rgba(255, 255, 255, 1),
                 -2px -2px 8px rgba(255, 255, 255, 1),
                 0 0 25px rgba(216, 27, 96, 0.4);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.reason-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    backdrop-filter: blur(12px);
    border: 2px solid var(--card-border);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease;
}

.reason-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 10px 30px var(--shadow);
}

.reason-card .emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.reason-card p {
    font-size: 1rem;
    color: var(--text-dark);
}

/* Countdown Section */
.countdown-section {
    margin: 40px 0;
}

.countdown input[type="date"] {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    border: 2px solid var(--pink-dark);
    border-radius: 15px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 600;
    color: var(--red-medium);
    text-align: center;
    margin-top: 20px;
    font-family: 'Playfair Display', serif;
}

/* Love Letter */
.letter-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 250, 0.95));
    border: 3px solid var(--pink-dark);
}

.letter-content {
    text-align: left;
}

.letter-content p {
    margin-bottom: 20px;
    font-size: 1.15rem;
    line-height: 2;
}

.letter-content p:first-of-type {
    font-style: italic;
    color: var(--red-medium);
}

.signature {
    text-align: right;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--red-medium);
    font-weight: 700;
    margin-top: 30px;
}

/* Interactive Section */
.interactive-section {
    text-align: center;
}

.love-button {
    background: linear-gradient(135deg, var(--red-medium), var(--red-light));
    border: none;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    font-size: 5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--shadow);
    margin: 20px 0;
}

.love-button:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 40px var(--shadow);
}

.love-button:active {
    transform: scale(0.95);
}

.heart-icon {
    color: white;
    display: block;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(0.9);
    }
}

.love-message {
    font-size: 1.5rem;
    color: var(--red-medium);
    margin-top: 20px;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    min-height: 40px;
    animation: fadeIn 0.5s ease;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer p {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: var(--red-medium);
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1),
                 0 0 20px rgba(255, 255, 255, 1),
                 0 0 30px rgba(255, 255, 255, 1),
                 0 0 40px rgba(255, 255, 255, 0.9),
                 0 0 60px rgba(255, 255, 255, 0.8),
                 0 0 80px rgba(255, 255, 255, 0.7),
                 2px 2px 8px rgba(255, 255, 255, 1),
                 -2px -2px 8px rgba(255, 255, 255, 1),
                 0 0 25px rgba(216, 27, 96, 0.4);
}

.footer-note {
    font-size: 1rem;
    opacity: 0.8;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    body {
        /* On mobile, use scroll instead of fixed to prevent issues */
        background-attachment: scroll;
    }

    .container {
        padding: 15px;
    }

    .main-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .hero h2 {
        font-size: 1.8rem;
        padding: 0 10px;
    }

    .card {
        padding: 25px 20px;
        margin: 20px 0;
    }

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

    .card p {
        font-size: 1rem;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .reason-card {
        padding: 25px;
    }

    .heart-pulse {
        font-size: 70px;
    }

    .love-button {
        width: 120px;
        height: 120px;
        font-size: 4rem;
        min-height: 120px; /* Ensure tap target */
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .letter-content p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .love-notes p {
        font-size: 1rem;
        padding: 12px;
    }

    /* Music player mobile */
    .music-player {
        top: 10px;
        right: 10px;
    }

    .music-toggle {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 120px;
    }

    /* Love question mobile */
    .love-question-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .slider-labels {
        font-size: 1rem;
    }

    .slider-message {
        font-size: 1.3rem;
    }

    .love-slider::-webkit-slider-thumb {
        width: 40px;
        height: 40px;
    }

    .love-slider::-moz-range-thumb {
        width: 40px;
        height: 40px;
    }

    /* Proof game mobile */
    .proof-title {
        font-size: 2.5rem;
    }

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

    .proof-memory-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .proof-memory-grid .memory-card {
        font-size: 2.5rem;
    }

    .proof-message {
        font-size: 1.5rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

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

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

    .card h3 {
        font-size: 1.3rem;
    }

    /* Make touch targets larger on small screens */
    button, .memory-card, .jar {
        min-width: 44px;
        min-height: 44px;
    }

    /* Love question extra small */
    .love-question-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .love-question-content {
        padding: 30px 20px;
    }

    .slider-labels {
        font-size: 0.9rem;
    }

    .slider-message {
        font-size: 1.1rem;
    }

    /* Proof game extra small */
    .proof-title {
        font-size: 2rem;
    }

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

    .proof-game-content {
        padding: 30px 15px;
    }

    .proof-memory-grid {
        gap: 8px;
        padding: 10px;
    }

    .proof-memory-grid .memory-card {
        font-size: 2rem;
    }

    .proof-message {
        font-size: 1.3rem;
    }
}

/* Add some sparkle */
@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.message-card .card:hover {
    animation: sparkle 2s infinite;
}

/* Game Instructions */
.game-instructions {
    text-align: center;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Love Jar Styles */
.love-jar-section {
    margin: 40px 0;
}

.jar-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.jar {
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: center;
}

.jar:hover {
    transform: scale(1.05);
}

.jar:active {
    transform: scale(0.95);
}

.jar-lid {
    width: 120px;
    height: 30px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50% 50% 0 0;
    margin: 0 auto;
    border: 3px solid #DAA520;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.jar-body {
    width: 150px;
    height: 180px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 250, 0.95));
    border-radius: 20px;
    margin: -5px auto 0;
    border: 4px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px var(--shadow), inset 0 4px 10px rgba(255, 192, 203, 0.2);
    backdrop-filter: blur(8px);
    overflow: hidden;
    position: relative;
}

.jar-hearts {
    font-size: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: jarFloat 3s infinite ease-in-out;
}

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

.jar-label {
    margin-top: 10px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    color: var(--red-medium);
    font-weight: 700;
}

.jar-message {
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.95), rgba(255, 212, 229, 0.95));
    border-radius: 15px;
    padding: 25px;
    margin: 20px auto;
    max-width: 600px;
    font-size: 1.2rem;
    color: var(--text-dark);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    backdrop-filter: blur(10px);
    border: 2px solid var(--card-border);
    font-weight: 500;
    line-height: 1.6;
}

.jar-counter {
    text-align: center;
    font-size: 1rem;
    color: var(--pink-dark);
    margin-top: 15px;
    font-weight: 600;
}

/* Memory Game Styles */
.memory-game-section {
    margin: 40px 0;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.stat {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--red-medium);
}

.reset-button, .start-button {
    background: linear-gradient(135deg, var(--red-medium), var(--red-light));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
    font-family: 'Poppins', sans-serif;
}

.reset-button:hover, .start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
}

.reset-button:active, .start-button:active {
    transform: translateY(0);
}

.memory-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.memory-card {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--pink-light), var(--pink-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
    position: relative;
    transform-style: preserve-3d;
}

.memory-card:hover {
    transform: translateY(-5px);
}

.memory-card.flipped {
    background: linear-gradient(135deg, white, var(--pink-light));
    transform: rotateY(180deg);
}

.memory-card.matched {
    background: linear-gradient(135deg, var(--purple-light), var(--pink-dark));
    animation: matchPulse 0.5s ease;
    cursor: default;
    box-shadow: 0 0 25px rgba(243, 229, 245, 0.6);
}

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

.memory-card-back, .memory-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    border-radius: 15px;
}

.memory-card-back {
    background: linear-gradient(135deg, var(--pink-dark), var(--red-light));
}

.memory-card-front {
    transform: rotateY(180deg);
}

.memory-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.game-win-message {
    text-align: center;
    font-size: 1.8rem;
    color: var(--red-medium);
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    margin-top: 20px;
    min-height: 40px;
}

/* Responsive adjustments for games */
@media (max-width: 768px) {
    .memory-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .memory-card {
        font-size: 2rem;
    }

    .jar-body {
        width: 120px;
        height: 150px;
    }

    .jar-lid {
        width: 100px;
        height: 25px;
    }

    .game-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================
   VIRTUAL KISS COUNTER
   ============================================ */

.kiss-counter-section {
    margin: 40px 0;
}

.kiss-button {
    background: linear-gradient(135deg, #FF1493, #FF69B4);
    border: none;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    font-size: 6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--shadow);
    margin: 20px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.kiss-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(255, 20, 147, 0.4);
}

.kiss-button:active {
    transform: scale(0.95);
}

.kiss-counter-display {
    margin-top: 30px;
    text-align: center;
}

.kiss-count {
    font-size: 1.5rem;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    color: var(--red-medium);
}

.floating-kiss {
    position: fixed;
    font-size: 2.5rem;
    pointer-events: none;
    z-index: 9999;
    animation: floatUpKiss 2s ease-out forwards;
}

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

/* ============================================
   RELATIONSHIP TIMELINE
   ============================================ */

.timeline-section {
    margin: 40px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--pink-dark), var(--purple-light));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 40px 0;
    transition: all 0.3s ease;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--red-medium), var(--pink-dark));
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--card-bg), 0 0 20px rgba(255, 20, 147, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 6px var(--card-bg), 0 0 30px rgba(255, 20, 147, 0.7);
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.95), rgba(255, 228, 240, 0.95));
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    border: 2px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-date {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--red-medium);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--red-medium);
    margin-bottom: 10px;
}

.timeline-description {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-top: 10px;
}

.timeline-emoji {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* Mobile timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px !important;
        margin-right: 0;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .kiss-button {
        width: 150px;
        height: 150px;
        font-size: 5rem;
    }

    .timeline-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .kiss-button {
        width: 130px;
        height: 130px;
        font-size: 4rem;
    }
}
