/* Tips Styles */
.tips {
    position: fixed;
    margin-top: -150px;    
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 25px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.1);
    z-index: 9999;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    border: 1px solid rgba(255, 107, 107, 0.2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.tips p {
    margin: 5px 0;
    color: #ff6b6b;
    font-size: 1.1em;
    font-weight: bold;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-in-out 3s forwards;
}

.loading-content {
    text-align: center;
}

.loading-hearts {
    font-size: 4em;
    margin-bottom: 20px;
    animation: heartBeat 1s infinite;
}

.loading-text {
    color: white;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    opacity: 0;
    animation: slideIn 0.5s ease-out 0.5s forwards;
}

.loading-subtext {
    color: white;
    font-size: 1.2em;
    opacity: 0;
    animation: slideIn 0.5s ease-out 1s forwards;
}

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

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

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

/* Book Container Initial State */
.book-container {
    opacity: 0;
    animation: bookReveal 1s ease-in-out 3.5s forwards;
}

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

/* Start Screen Styles */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.start-content {
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.start-heart {
    font-size: 5em;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.start-title {
    color: white;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.start-button {
    padding: 15px 30px;
    font-size: 1.2em;
    background: white;
    border: none;
    border-radius: 25px;
    color: #ff6b6b;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.start-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #fff5f5;
}

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

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

.book-container {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
}

.book-container.visible {
    opacity: 1;
    pointer-events: all;
    animation: fadeIn 1s ease-in-out;
}

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

/* Tips Styles */
.tips {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: left;
    animation: tipsFadeIn 1s ease-out;
}

.tips p {
    margin: 5px 0;
    color: #ff6b6b;
    font-size: 1.1em;
    font-weight: bold;
}

@keyframes tipsFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ===== Reset and Base Styles ===== */
/* FanArt Modal Styles */
/* ===== FanArt Gallery Styles ===== */
.fanart-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    max-width: 1200px;
    margin: -10px auto 0;
}

.fanart-page h2 {
    text-align: center;
    color: #ff6b6b;
    margin: 15px 0;
    font-size: 1.8em;
    text-shadow: 2px 2px 4px rgba(255, 107, 107, 0.2);
    letter-spacing: 1px;
}

.fanart-item {
    flex: 0 1 300px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fanart-img-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.4s ease;
    z-index: 5;
}

.fanart-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    pointer-events: none;
    filter: brightness(0.95);
}

.fanart-img-container:hover {
    transform: translateY(-8px);
}

.fanart-img-container:hover .fanart-img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.artist-overlay {
    position: absolute;
    left: 0;
    bottom: -100%;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    font-size: 1.1em;
    padding: 35px 15px 15px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}

.fanart-img-container:hover .artist-overlay {
    bottom: 0;
}

/* ===== Modal Styles ===== */
.fanart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.fanart-modal.show {
    display: flex;
    animation: modalFadeIn 0.3s ease-out;
}

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

.fanart-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 95%;
    max-height: 95vh;
    margin: auto;
    cursor: default;
}

.fanart-modal-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    object-fit: contain;
    animation: imageZoomIn 0.3s ease-out;
}

@keyframes imageZoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.fanart-modal-artist {
    color: #fff;
    text-align: center;
    font-size: 1.5em;
    margin-top: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: textFadeIn 0.4s ease-out;
}

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

.fanart-modal-close {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 2em;
    line-height: 32px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: background 0.2s;
}

.fanart-modal-close:hover {
    background: #ff4f4f;
}
/* ===== Global Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Base Layout ===== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    padding-top: 60px;
}

.tips {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 25px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
    z-index: 9999;
    text-align: center;
    animation: tipsFadeIn 1s ease-out;
    border: 2px solid rgba(255, 107, 107, 0.2);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    width: auto;
    white-space: nowrap;
}

/* Disable default browser zoom on ctrl + scroll */
@media screen and (min-width: 0px) {
    html {
        -webkit-text-size-adjust: none;
        text-size-adjust: none;
        /* text-size-adjust added for browsers that support the standard property */
    }
}

.book-container {
    perspective: 2000px;
    margin: auto;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book {
    position: relative;
    width: min(350px, 90vw);
    height: min(500px, 80vh);
    transform-style: preserve-3d;
    transform: rotateX(10deg);
    transition: transform 0.3s ease;
    margin: 0;
    perspective: 2000px;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1), 
                box-shadow 0.6s ease,
                opacity 0.6s ease;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
    border-radius: 0 5px 5px 0;
    transform-style: preserve-3d;
}

.page.fade {
    opacity: 0.4;
    pointer-events: none;
}

.page:hover {
    box-shadow: 5px 5px 30px rgba(0,0,0,0.2);
}

.cover {
    border-radius: 5px;
    box-shadow: 0 0 40px rgba(0,0,0,0.2);
    overflow: hidden;
    padding: 0;
}

.back-cover {
    position: relative;
    z-index: 0;
}

.cover .cover-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page1 { z-index: 22; }
.page2 { z-index: 21; }
.page3 { z-index: 20; }
.page4 { z-index: 19; }
.page5 { z-index: 18; }
.page6 { z-index: 17; }
.page7 { z-index: 16; }
.page8 { z-index: 15; }
.page9 { z-index: 14; }
.page10 { z-index: 13; }
.page11 { z-index: 12; }
.page12 { z-index: 11; }
.page13 { z-index: 10; }
.page14 { z-index: 9; }
.page15 { z-index: 8; }
.page16 { z-index: 7; }
.page17 { z-index: 6; }
.page18 { z-index: 5; }
.page19 { z-index: 4; }
.page20 { z-index: 3; }
.page21 { z-index: 2; }
.page22 { z-index: 1; }

.back-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-height: 80%;
    padding: 20px;
    background: rgba(255, 255, 255, 0);
    border-radius: 10px;
    overflow-y: auto;
    z-index: 2;
}

.back-content h2 {
    color: #ff6b6b;
    text-decoration: underline;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0);
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
    text-align: center;
    width: 100%;
    font-size: 1.4em;
}

.back-content p {
    font-size: 1.1em;
    color: #444;
    margin: 10px 0;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0);
    padding: 15px;
    transition: transform 0.3s ease;
}

.back-content .heart {
    font-size: 2em;
    color: #ff6b6b;
    margin: 15px 0;
    text-align: center;
    animation: heartbeat 1.5s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(255,107,107,0.5);
}

.back-content .year {
    font-size: 1.5em;
    font-weight: bold;
    color: #ff6b6b;
    text-align: center;
    margin-top: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

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

.back-content .heart {
    color: #ff6b6b;
    font-size: 1.5em;
    margin: 15px 0;
    text-align: center;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.back-content .year {
    color: #ff6b6b;
    font-size: 1.2em;
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
}

.back-content::-webkit-scrollbar {
    width: 8px;
}

.back-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.back-content::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.5);
    border-radius: 10px;
}

.back-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 107, 0.8);
}

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


.page.turn {
    transform: translateX(-10%) rotateY(-180deg);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.cover-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    color: rgba(255, 255, 255, 0);
    text-align: center;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
}

.cover-content h1 {
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite alternate;
}

.cover-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    transform: translateZ(30px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cover-img:hover {
    transform: translateZ(40px);
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ff6b6b, 0 0 20px #ff6b6b;
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ff6b6b, 0 0 40px #ff6b6b;
    }
}

.cover-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-content {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    max-height: 100%;
    overflow: hidden;
}

.fullpage-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0);
    overflow-y: auto;
    opacity: 1;
}

/* Use scrollbar-color only when supported; fall back to WebKit rules provided elsewhere */
@supports (scrollbar-color: auto) {
    .content-wrapper {
        scrollbar-color: rgba(255, 107, 107, 0.5) rgba(255, 255, 255, 0.1);
    }
}

/* Apply scrollbar-width only in browsers that support it (Firefox) */
@supports (scrollbar-width: thin) {
    .content-wrapper {
        scrollbar-width: thin;
    }
}

.message-section {
    padding: 20px;
    margin-top: 300px;
}

.friends-wishes {
    background: rgba(255, 255, 255, 0);
    padding: 10px;
    border-radius: 10px;
    margin-top: 5px;
}

.friend-wish {
    background: rgba(255, 255, 255, 0);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
} 

 .section-title {
    color: #ff6b6b;
    text-decoration: underline;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 1px;
    background: rgba(255, 255, 255, 0);
    padding: 10px 20px;
    border-radius: 20px;
    display: inline-block;
}

.content-overlay {
    opacity: 1;
}

.photo-section {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateZ(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-section:hover {
    transform: translateZ(30px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.page-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.page-photo:hover {
    transform: scale(1.05);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}

.memory-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.memory-photo:hover {
    transform: scale(1.05);
}

/* Family Page Styles */
.family-page, .friends-page, .colleagues-page {
    padding: 20px;
}

.section-title {
    text-align: center;
    color: #ff6b6b;
    margin-bottom: 5px;
    font-size: 1.4em;
    width: 100%;
    box-sizing: border-box;
}

.wish-container, .friends-wishes, .colleagues-wishes {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.author-photo, .colleague-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffd93d;
}

.author-name {
    font-weight: bold;
    color: #666;
}

.wish-text {
    font-size: 1.1em;
    color: #444;
    margin: 10px 0;
    line-height: 1.5;
}

.memory-photo-container {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 100%;
}

.friend-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

.friend-memory {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.friend-memory:hover {
    transform: scale(1.05);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(234, 124, 21, 0.5);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 153, 9, 0.8);
}

/* FanArt Gallery Styles */
/* ===== FanArt Gallery Layout ===== */
.fanart-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    max-width: 1200px;
    margin: 0 auto;
}

/* FanArt Card Styles */
.fanart-item {
    flex: 0 1 300px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
}

.fanart-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* FanArt Image Styles */
.fanart-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fanart-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    cursor: pointer;
}

.fanart-item:hover .fanart-img {
    transform: scale(1.05);
}

.artist-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 1.1em;
    padding: 20px 10px 10px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fanart-item:hover .artist-overlay {
    opacity: 1;
}

.fanart-info {
    display: none;
}

.wish-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.colleague-wish {
    text-align: center;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.group-photo {
    margin-top: 20px;
    text-align: center;
}

.full-width-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.photo-caption {
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

/* Memory Collection Styles */
.memory-collection {
    padding: 20px;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
}

.memory-item {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.memory-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.memory-img:hover {
    transform: scale(1.05);
}

.memory-caption {
    margin-top: 10px;
    font-weight: bold;
    color: #444;
}

.memory-date {
    color: #666;
    font-size: 0.9em;
}

/* Video Messages Styles */
.video-messages {
    padding: 20px;
}

.video-grid {
    display: grid;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.video-message {
    position: relative;
}

.video-placeholder {
    position: relative;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-placeholder:hover .play-button {
    opacity: 1;
}

.video-author {
    margin-top: 10px;
    text-align: center;
    color: #666;
}

/* Distance Messages Styles */
.distance-messages {
    padding: 20px;
}

.message-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sender-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.sender-location {
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 5px;
}

.distance-wish {
    font-style: italic;
    color: #444;
    margin: 10px 0;
}

.location-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
}

/* Party Memories Styles */
.party-memories {
    padding: 20px;
}

.party-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.party-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.party-photo:hover {
    transform: scale(1.05);
}

/* Wishes Wall Styles */
.wishes-wall {
    padding: 20px;
}

.wishes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.wish-post-it {
    background: #ffd93d;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.wish-post-it:nth-child(1) { transform: rotate(-3deg); }
.wish-post-it:nth-child(2) { transform: rotate(2deg); }
.wish-post-it:nth-child(3) { transform: rotate(-2deg); }

.mini-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-top: 10px;
}

/* Year Review Styles */
.year-review {
    padding: 20px;
}

.timeline-photos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-event {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.event-date {
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

/* Special Messages Styles */
.special-messages {
    padding: 20px;
}

.special-message {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.message-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #ffd93d;
}

.quote {
    font-style: italic;
    color: #444;
    margin-bottom: 5px;
}

.author {
    color: #666;
    font-size: 0.9em;
}

.final-group-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 20px;
}

.group-message {
    text-align: center;
    margin-top: 10px;
    font-size: 1.2em;
    color: #ff6b6b;
}

/* Quote Page Styles */
.quote-page {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fff6e5, #ffecd2);
}

.quote {
    text-align: center;
    font-size: 1.5em;
    color: #666;
    position: relative;
}

.quote-mark {
    font-size: 4em;
    color: #ffd93d;
    position: absolute;
    top: -0.5em;
    left: -0.3em;
}

.decorative-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd93d, transparent);
    margin: 20px auto;
}

/* Timeline Page Styles */
.timeline-page {
    padding: 20px;
}

.timeline {
    margin-top: 20px;
}

.timeline-item {
    display: flex;
    margin: 20px 0;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 70px;
    height: 100%;
    width: 2px;
    background: #ffd93d;
}

.date {
    width: 60px;
    font-weight: bold;
    color: #ff6b6b;
}

.event {
    margin-left: 30px;
    padding: 0 10px;
}

/* Wish Bubbles Styles */
.wish-page {
    text-align: center;
}

.wish-bubbles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.wish-bubble {
    padding: 10px 20px;
    background: #ff6b6b;
    color: white;
    border-radius: 20px;
    animation: float 3s ease-in-out infinite;
}

/* Music Page Styles */
.music-page {
    text-align: center;
}

.music-notes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.music-note {
    font-size: 2em;
    color: #ff6b6b;
    animation: bounce 1s ease-in-out infinite;
}

.playlist {
    margin-top: 20px;
}

.song {
    padding: 10px;
    margin: 10px 0;
    background: #f8f8f8;
    border-radius: 5px;
}

/* Facts Page Styles */
.facts-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.fact {
    padding: 15px;
    background: #f8f8f8;
    border-left: 4px solid #ffd93d;
    border-radius: 0 5px 5px 0;
}

/* Message Board Styles */
.message-board {
    padding: 20px;
}

.messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.message-note {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
}

.message-note:nth-child(even) {
    transform: rotate(2deg);
}

/* Game Page Styles */
.game-page {
    text-align: center;
}

.balloon-game {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.game-balloon {
    padding: 20px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s;
}

.game-balloon:hover {
    transform: scale(1.1);
}

/* Photo Collage Styles */
.photo-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
}

.collage-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.collage-photo:hover {
    transform: scale(1.05);
}

/* Final Page Styles */
.final-page {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.final-message {
    color: #333;
}

.signature {
    margin-top: 20px;
    font-style: italic;
    color: #ff6b6b;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* ===== Birthday Cake Animation ===== */
/* ===== Birthday Cake Styles ===== */
.cake-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.cake {
    position: relative;
    width: 200px;
    height: 160px;
    background: linear-gradient(to right, #ff9a9e, #fad0c4);
    border-radius: 15px 15px 5px 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin: 50px auto;
}

.cake::before {
    content: '';
    position: absolute;
    top: -25px;
    left: -10px;
    right: -10px;
    height: 25px;
    background: linear-gradient(135deg, #fad0c4 0%, #ff9a9e 100%);
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cake::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -15px;
    right: -15px;
    height: 15px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Candle and Flame Effects */
.candle {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 35px;
    background: linear-gradient(to right, #fff9ec, #ffffff);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.candle::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: -4px;
    right: -4px;
    height: 6px;
    background: #ffecd2;
    border-radius: 50%;
}

.flame {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 25px;
    background: linear-gradient(to bottom, #ffef9e, #ff9900);
    border-radius: 50% 50% 20% 20%;
    box-shadow: 0 0 15px #ff9900, 0 0 30px #ff9900, 0 0 45px rgba(255, 153, 0, 0.3);
    animation: flicker 0.6s ease-in-out infinite alternate;
}

/* Decorations */
.cake-decorations {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 15px;
    display: flex;
    justify-content: space-around;
}

.decoration {
    width: 12px;
    height: 12px;
    background: #ffecd2;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: float 2s ease-in-out infinite;
}

.decoration:nth-child(2n) {
    animation-delay: 0.5s;
    background: #fcb69f;
}

.decoration:nth-child(3n) {
    animation-delay: 1s;
    background: #ff9a9e;
}

/* ===== Cake Animations ===== */
@keyframes flicker {
    0% { transform: translateX(-50%) scale(1); filter: brightness(100%); }
    25% { transform: translateX(-52%) scale(1.1); filter: brightness(130%); }
    50% { transform: translateX(-50%) scale(1.15); filter: brightness(150%); }
    75% { transform: translateX(-48%) scale(1.1); filter: brightness(130%); }
    100% { transform: translateX(-50%) scale(1); filter: brightness(100%); }
}

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

.content {
    position: relative;
    padding: 20px;
    text-align: center;
}

.title {
    color: #333;
    font-size: 1.8em;
    font-weight: 600;
    margin: 15px 0;
    animation: colorChange 4s infinite;
}

@keyframes colorChange {
    0% { color: #333; }
    25% { color: #f15bb5; }
    50% { color: #ff9900; }
    75% { color: #4CAF50; }
    100% { color: #333; }
}

.message {
    color: #666;
    font-size: 1.2em;
    line-height: 1.5;
    margin-bottom: 20px;
}

.balloon {
    position: absolute;
    width: 30px;
    height: 40px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
}

.balloon1 { left: 20%; top: 20%; animation-delay: 0s; background: #ff6b6b; }
.balloon2 { left: 50%; top: 10%; animation-delay: 1s; background: #4CAF50; }
.balloon3 { right: 20%; top: 30%; animation-delay: 2s; background: #2196F3; }

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

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 1s infinite;
}

.star:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.star:nth-child(2) { left: 30%; top: 40%; animation-delay: 0.3s; }
.star:nth-child(3) { left: 50%; top: 30%; animation-delay: 0.6s; }
.star:nth-child(4) { left: 70%; top: 50%; animation-delay: 0.9s; }
.star:nth-child(5) { left: 90%; top: 25%; animation-delay: 1.2s; }

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

/* ===== Interactive Elements ===== */
/* Surprise Button */
.surprise-btn {
    padding: 10px 20px;
    background: #f15bb5;
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    margin-left: 85px;
    margin-top: 350px;
}

.surprise-btn:hover {
    transform: scale(1.1);
    background: #ff9cda;
}

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd700;
    top: -20px;
    opacity: 0;
}

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