:root {
    --primary-color: #1DB954; /* Spotify green */
    --secondary-color: #1ED760; /* Spotify light green */
    --background-color: #121212; /* Spotify dark background */
    --text-color: #FFFFFF;
    --gradient-start: #1E1E1E;
    --gradient-end: #2D2D2D;
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.15);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow: hidden;
}

.container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.slide-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    background: linear-gradient(135deg, rgba(30,30,30,0.78), rgba(45,45,45,0.78));
    color: var(--text-color);
    will-change: transform;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(2.5px);
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

.title {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
    color: rgba(255, 255, 255, 0.8);
}

.start-btn, .nav-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-btn:hover, .nav-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(29, 185, 84, 0.3);
}

.navigation-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    pointer-events: none;
    z-index: 100;
}

.nav-btn {
    min-width: 120px;
    pointer-events: auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.nav-btn:hover {
    background: var(--card-hover);
}

.nav-btn.prev {
    margin-right: auto;
}

.nav-btn.next {
    margin-left: auto;
}

/* Add visual indicators for navigation */
.nav-btn::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    margin-right: 8px;
    transform: rotate(-135deg);
    transition: transform 0.3s ease;
}

.nav-btn.next::before {
    margin-right: 0;
    margin-left: 8px;
    transform: rotate(45deg);
}

.nav-btn:hover::before {
    transform: rotate(-135deg) translateX(-3px);
}

.nav-btn.next:hover::before {
    transform: rotate(45deg) translateX(3px);
}

/* Hide navigation buttons when they're not needed */
.nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
}

.nav-btn.prev.hidden {
    transform: translateX(-20px);
}

/* Add touch-friendly hit areas for mobile */
@media (max-width: 768px) {
    .navigation-buttons {
        padding: 1rem 0.5rem;
    }

    .nav-btn {
        min-width: 100px;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Add larger touch targets for mobile */
    .nav-btn::after {
        content: '';
        position: absolute;
        top: -10px;
        bottom: -10px;
        left: -10px;
        right: -10px;
    }
}

/* Add keyboard navigation indicator */
.nav-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Add loading state for buttons */
.nav-btn.loading {
    position: relative;
    pointer-events: none;
}

.nav-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: button-loading 0.8s infinite linear;
}

@keyframes button-loading {
    to {
        transform: rotate(360deg);
    }
}

.moments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    width: 100%;
}

.moment-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.moment-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
}

.timeline {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 32px auto;
    padding: 32px 0;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.timeline::after {
    content: '';
    position: fixed;
    width: 2px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    z-index: 1;
    height: 100vh;
}

/* Customize scrollbar for better visibility */
.timeline::-webkit-scrollbar {
    width: 8px;
}

.timeline::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.timeline::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.timeline::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.timeline-item {
    padding: 16px 40px;
    position: relative;
    width: 50%;
    left: 0;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease;
    margin-bottom: 32px;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(even) {
    left: 50%;
    transform: translateX(50px);
}

.timeline-item:nth-child(even).visible {
    transform: translateX(0);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 15px;
    right: -10px;
    z-index: 2;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 24px;
    background: var(--card-bg);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.fun-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    padding: 32px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.fact-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

.fact-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.fact-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
}

.fact-card h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.fact-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

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

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

/* Mobile optimizations */
@media (max-width: 768px) {
    .slide {
        padding: 16px;
        padding-top: 32px;
        justify-content: flex-start;
    }

    .title {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }
    
    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 24px;
    }

    .image-content {
        padding: 16px;
        margin-top: 16px;
    }

    .slide-image {
        height: 250px;
        margin-bottom: 24px;
    }

    .slide-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .slide-description {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    .timeline {
        max-height: 60vh;
        padding: 16px 0;
        margin-top: 16px;
    }

    .timeline::after {
        left: 31px;
        position: fixed;
        height: 100vh;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 16px;
        margin-bottom: 24px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: -10px;
    }

    .timeline-content {
        padding: 16px;
    }

    .timeline-date {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .timeline-content p {
        font-size: 0.95rem;
    }

    .fun-facts {
        padding: 16px;
        margin-top: 16px;
    }

    .fact-card {
        padding: 24px;
    }
}

/* Swipe navigation styles */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-color);
    will-change: transform;
    touch-action: pan-y pinch-zoom;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

/* Swipe indicator */
.swipe-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swipe-indicator.visible {
    opacity: 1;
}

.swipe-indicator::before,
.swipe-indicator::after {
    content: '';
    width: 20px;
    height: 20px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.swipe-indicator::before {
    transform: rotate(-135deg);
}

.swipe-indicator::after {
    transform: rotate(45deg);
}

/* Swipe progress indicator */
.swipe-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swipe-progress.visible {
    opacity: 1;
}

.swipe-progress-bar {
    height: 100%;
    background: white;
    width: 0;
    transition: width 0.1s linear;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .swipe-indicator {
        bottom: 1rem;
    }
}

/* Image Slide Styles */
.image-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    width: 100%;
    padding: 32px;
    text-align: center;
    margin-top: 32px;
    height: 500px; /* Ensure consistent card height */
    justify-content: center;
}

.slide-image {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain; /* Ensure full image or video is visible */
    border-radius: 15px;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: block;
}

.slide-image video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #000;
}

.slide-image:hover {
    transform: scale(1.02);
}

.slide-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.slide-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Gift Wrapping Styles */
.gift-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--background-color);
    z-index: 1000;
}

.gift-box {
    position: relative;
    width: 200px;
    height: 200px;
    background: url('bee.png') no-repeat center center;
    background-size: contain;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

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

.gift-tag {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-color);
    font-size: 1.2rem;
    white-space: nowrap;
    animation: pulse 2s infinite;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    text-align: center;
    width: 100%;
}

.gift-message {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-color);
    font-size: 1.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Honey splash animation */
.honey-particle {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #FFB700;
    border-radius: 50%;
    pointer-events: none;
    animation: honeySplash 0.8s ease-out forwards;
    box-shadow: 0 0 10px rgba(255, 183, 0, 0.5);
}

@keyframes honeySplash {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Bee shake animation */
@keyframes beeShake {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(0.95) rotate(-5deg); }
    50% { transform: scale(0.9) rotate(5deg); }
    75% { transform: scale(0.85) rotate(-5deg); }
    100% { transform: scale(0.8) rotate(5deg); }
}

/* Animations */
@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
    100% { transform: translateX(-50%) scale(1); }
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Hide navigation buttons on mobile/tablet */
@media (max-width: 1024px) {
    .navigation-buttons {
        display: none;
    }
}

/* Hide swipe indicator on desktop */
@media (min-width: 1025px) {
    .swipe-indicator,
    .swipe-progress {
        display: none !important;
    }
}

/* Remove book styles and add bee fart message styles */
.bee-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-color);
    font-size: 2.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.bee-message.visible {
    opacity: 1;
}

/* Remove all book-related styles */
.book-container,
.book,
.book-cover,
.book-title,
.book-pages {
    display: none;
}

/* Ensure clickable elements still show pointer cursor */
a, button, .gift-box, .nav-btn, .start-btn {
    cursor: pointer;
}

/* Ensure text elements show text cursor */
input, textarea {
    cursor: text;
}

/* Ensure disabled elements show not-allowed cursor */
button:disabled, .nav-btn:disabled {
    cursor: not-allowed;
}

/* Music control button */
.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(10px);
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.music-control.visible {
    opacity: 1;
}

.music-control:hover {
    transform: scale(1.1);
    background: var(--card-hover);
}

.music-control::before {
    content: '♪';
    color: var(--text-color);
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.music-control.paused::before {
    content: '♫';
}

/* Add animation for the music note */
@keyframes musicNote {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

.music-control:not(.paused)::before {
    animation: musicNote 2s infinite;
}

/* Mobile adjustments for music control */
@media (max-width: 768px) {
    .music-control {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .music-control::before {
        font-size: 1.75rem;
    }
} 

#lantern-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    pointer-events: none;
    display: block;
    background: transparent;
    filter: blur(1.5px);
} 

.container, .slide-container {
    position: relative;
    background: transparent !important;
} 