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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: 
        radial-gradient(ellipse at top, rgba(255, 182, 193, 0.3), transparent),
        radial-gradient(ellipse at bottom, rgba(255, 192, 203, 0.4), transparent),
        radial-gradient(circle at 20% 50%, rgba(255, 105, 180, 0.2), transparent),
        radial-gradient(circle at 80% 30%, rgba(255, 182, 193, 0.25), transparent),
        radial-gradient(circle at 40% 80%, rgba(255, 192, 203, 0.3), transparent),
        radial-gradient(circle at 70% 70%, rgba(255, 105, 180, 0.15), transparent),
        linear-gradient(135deg, #1a0a1f 0%, #2d1b3d 25%, #3d2952 50%, #4a2d5c 75%, #1a0a1f 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 192, 203, 0.8), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 182, 193, 0.6), transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(255, 192, 203, 0.7), transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(1px 1px at 15% 90%, rgba(255, 182, 193, 0.5), transparent);
    background-size: 200% 200%, 180% 180%, 220% 220%, 250% 250%, 190% 190%, 230% 230%, 210% 210%;
    background-position: 0% 0%, 40% 40%, 80% 20%, 20% 80%, 60% 60%, 90% 10%, 30% 70%;
    animation: twinkle 3s ease-in-out infinite, moveStars 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, white, transparent),
        radial-gradient(2px 2px at 70% 40%, rgba(255, 192, 203, 0.9), transparent),
        radial-gradient(1px 1px at 30% 60%, white, transparent),
        radial-gradient(1px 1px at 85% 80%, rgba(255, 182, 193, 0.7), transparent),
        radial-gradient(2px 2px at 45% 15%, white, transparent),
        radial-gradient(1px 1px at 65% 85%, rgba(255, 192, 203, 0.6), transparent),
        radial-gradient(1px 1px at 25% 45%, white, transparent),
        radial-gradient(2px 2px at 95% 35%, rgba(255, 182, 193, 0.8), transparent);
    background-size: 250% 250%, 200% 200%, 230% 230%, 180% 180%, 220% 220%, 240% 240%, 210% 210%, 190% 190%;
    background-position: 50% 50%, 20% 80%, 70% 30%, 40% 60%, 90% 20%, 15% 70%, 60% 90%, 80% 50%;
    animation: twinkleSlow 4s ease-in-out infinite 1s, moveStars 25s linear infinite reverse;
    pointer-events: none;
    z-index: 0;
}

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

@keyframes twinkleSlow {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(0.9);
    }
}

@keyframes moveStars {
    0% {
        background-position: 0% 0%, 40% 40%, 80% 20%, 20% 80%, 60% 60%, 90% 10%, 30% 70%;
    }
    100% {
        background-position: 100% 100%, 140% 140%, 180% 120%, 120% 180%, 160% 160%, 190% 110%, 130% 170%;
    }
}

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

.heart {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0;
    right: -100px;
    animation: floatHeart 12s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.5));
}

.heart:nth-child(1) {
    top: 10%;
    animation-delay: 0s;
    font-size: 2rem;
}

.heart:nth-child(2) {
    top: 25%;
    animation-delay: 2s;
    font-size: 3rem;
}

.heart:nth-child(3) {
    top: 40%;
    animation-delay: 4s;
    font-size: 2.5rem;
}

.heart:nth-child(4) {
    top: 55%;
    animation-delay: 6s;
    font-size: 2.8rem;
}

.heart:nth-child(5) {
    top: 70%;
    animation-delay: 8s;
    font-size: 2.2rem;
}

.heart:nth-child(6) {
    top: 85%;
    animation-delay: 10s;
    font-size: 3.2rem;
}

@keyframes floatHeart {
    0% {
        right: -100px;
        opacity: 0;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) rotate(15deg) scale(1.1);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        right: calc(100% + 100px);
        opacity: 0;
        transform: translateY(0) rotate(-15deg) scale(0.9);
    }
}

.page {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease-in;
    position: relative;
    z-index: 1;
}

.page.active {
    display: block;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.title {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cute-title {
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', cursive, sans-serif;
    font-weight: bold;
    color: white;
    text-shadow: 
        2px 2px 4px rgba(255, 105, 180, 0.8),
        0 0 10px rgba(255, 192, 203, 0.5);
    letter-spacing: 2px;
}

.cute-title .letter {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.cute-title .letter:nth-child(1) { animation-delay: 0s; }
.cute-title .letter:nth-child(2) { animation-delay: 0.1s; }
.cute-title .letter:nth-child(3) { animation-delay: 0.2s; }
.cute-title .letter:nth-child(4) { animation-delay: 0.3s; }
.cute-title .letter:nth-child(5) { animation-delay: 0.4s; }
.cute-title .letter:nth-child(6) { animation-delay: 0.5s; }
.cute-title .letter:nth-child(7) { animation-delay: 0.6s; }
.cute-title .letter:nth-child(8) { animation-delay: 0.7s; }
.cute-title .letter:nth-child(9) { animation-delay: 0.8s; }
.cute-title .letter:nth-child(10) { animation-delay: 0.9s; }
.cute-title .letter:nth-child(11) { animation-delay: 1s; }
.cute-title .letter:nth-child(12) { animation-delay: 1.1s; }
.cute-title .letter:nth-child(13) { animation-delay: 1.2s; }
.cute-title .letter:nth-child(14) { animation-delay: 1.3s; }
.cute-title .letter:nth-child(15) { animation-delay: 1.4s; }
.cute-title .letter:nth-child(16) { animation-delay: 1.5s; }
.cute-title .letter:nth-child(17) { animation-delay: 1.6s; }
.cute-title .letter:nth-child(18) { animation-delay: 1.7s; }
.cute-title .letter:nth-child(19) { animation-delay: 1.8s; }
.cute-title .letter:nth-child(20) { animation-delay: 1.9s; }

.cute-title .space {
    width: 0.5em;
}

.cute-title .heart-decoration {
    display: inline-block;
    animation: heartBeat 1.5s ease-in-out infinite;
    font-size: 1.2em;
    margin-left: 10px;
}

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

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 105, 180, 0.6),
            0 0 30px rgba(255, 192, 203, 0.4);
    }
    50% {
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 1),
            0 0 30px rgba(255, 105, 180, 0.8),
            0 0 40px rgba(255, 192, 203, 0.6),
            0 0 50px rgba(255, 182, 193, 0.4);
    }
}

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

/* Login Page Styles */
.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    margin: 0 auto;
}

.title-inside {
    text-align: center;
    color: #ff69b4;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 25px;
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', cursive, sans-serif;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #ff69b4;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ffb6c1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input::placeholder {
    font-size: 0.9rem;
}

.input-group input:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.password-hint {
    color: #ff69b4;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 15px;
    text-align: center;
}

.password-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff0f5;
    border-radius: 15px;
    margin-bottom: 20px;
    min-height: 60px;
}

.password-display .dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s;
}

.password-display .dot.filled {
    background: #ff69b4;
    transform: scale(1.2);
}

.pin-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.pin-button {
    aspect-ratio: 1;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc0cb, #ffb6c1);
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.pin-button:hover {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 105, 180, 0.4);
}

.pin-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(255, 105, 180, 0.3);
}

.pin-button.delete-btn,
.pin-button.clear-btn {
    background: linear-gradient(135deg, #ffb6c1, #ffc0cb);
    font-size: 1.3rem;
}

.pin-button.delete-btn:hover,
.pin-button.clear-btn:hover {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
}

.error-message {
    color: #ff1493;
    text-align: center;
    margin: 10px 0;
    font-weight: bold;
    min-height: 20px;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 20, 147, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Game Page Styles */
.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.game-info > div {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff69b4;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    aspect-ratio: 1;
    background: white;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffc0cb, #ffb6c1);
    border-radius: 15px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.card::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    opacity: 0;
    transition: all 0.3s;
}

.card[data-photo="1"]::after {
    background-image: url('images/photo1.jpg');
}

.card[data-photo="2"]::after {
    background-image: url('images/photo2.jpg');
}

.card[data-photo="3"]::after {
    background-image: url('images/photo3.jpg');
}

.card[data-photo="4"]::after {
    background-image: url('images/photo4.jpg');
}

.card[data-photo="5"]::after {
    background-image: url('images/photo5.jpg');
}

.card[data-photo="6"]::after {
    background-image: url('images/photo6.jpg');
}

.card.flipped::before {
    opacity: 0;
}

.card.flipped::after {
    opacity: 1;
}

.card.flipped,
.card.matched {
    background: white;
}

.card.matched {
    cursor: default;
    opacity: 0.7;
}

.card:hover:not(.matched) {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.game-result {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-result.show {
    display: flex;
    animation: fadeIn 0.5s ease-in;
}

.game-result-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 100%;
    animation: popUp 0.5s ease-out;
}

@keyframes popUp {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.game-result-content h2 {
    color: #ff69b4;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.game-result-content button {
    padding: 15px 40px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.3);
    margin-top: 20px;
    width: 100%;
}

.game-result-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 20, 147, 0.4);
}

/* Reward Page Styles */
.reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.reward-btn {
    background: white;
    padding: 40px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.reward-btn .icon {
    font-size: 4rem;
}

.reward-btn span:last-child {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff69b4;
}

.reward-btn:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    color: #ff69b4;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* Slideshow Styles */
.slideshow {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-in;
}

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

.placeholder-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #ffc0cb, #ffb6c1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-radius: 15px;
    margin-bottom: 10px;
}

/* Slide Media (Video/Image) Styles */
.slide-media {
    width: 100%;
    max-height: 500px;
    height: auto;
    border-radius: 15px;
    margin-bottom: 10px;
    object-fit: contain;
    background: #000;
}

video.slide-media {
    display: block;
}

img.slide-media {
    object-fit: cover;
}

/* Video Play Overlay for iOS */
.video-play-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-play-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.play-button {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border: none;
    padding: 30px 50px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.5);
    transition: all 0.3s;
    animation: pulse 2s ease-in-out infinite;
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.7);
}

.play-icon {
    font-size: 3rem;
}

.play-text {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', cursive, sans-serif;
}

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

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

.slide-btn {
    padding: 10px 25px;
    background: #ff69b4;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.slide-btn:hover {
    background: #ff1493;
}

.gallery-message {
    text-align: center;
    color: #ff1493;
    font-size: 1.1rem;
    line-height: 2;
    padding: 30px;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e9 50%, #fff0f5 100%);
    background-size: 200% 200%;
    border-radius: 20px;
    margin: 20px 0;
    border: 3px solid #ffb6c1;
    box-shadow: 
        0 8px 20px rgba(255, 105, 180, 0.3),
        inset 0 2px 10px rgba(255, 192, 203, 0.2);
    position: relative;
    overflow: hidden;
    animation: gentleGradient 8s ease infinite;
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', cursive, sans-serif;
}

.gallery-message::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 2rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.gallery-message::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    animation: heartBeat 1.5s ease-in-out infinite 0.75s;
}

@keyframes gentleGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Letter Book Styles */
.letter-book {
    margin: 20px 0;
}

.book-pages {
    position: relative;
    min-height: 300px;
}

.book-page {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.book-page.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease-in;
}

.book-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.book-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.3);
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 105, 180, 0.4);
}

.book-btn:active {
    transform: translateY(0);
}

.book-btn:disabled {
    background: linear-gradient(135deg, #ddd, #ccc);
    cursor: not-allowed;
    opacity: 0.5;
}

.page-indicator {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ff69b4;
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', cursive, sans-serif;
}

/* Music Styles */
.music-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.music-item {
    background: #fff0f5;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #ff69b4;
}

.music-item h3 {
    color: #ff69b4;
    margin-bottom: 10px;
}

.artist {
    color: #ff69b4;
    font-style: italic;
    margin-bottom: 15px;
}

.music-item audio {
    width: 100%;
    margin: 15px 0;
}

.music-desc {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Wishes Styles */
.wishes-instruction {
    text-align: center;
    color: #ff69b4;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', cursive, sans-serif;
    line-height: 1.6;
}

.gifts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 20px;
}

.gift-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff0f5, #ffe4e9);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.2);
}

.gift-box:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.4);
}

.gift-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: bounce 2s ease-in-out infinite;
}

.gift-box:hover .gift-image {
    animation: heartBeat 0.5s ease-in-out;
}

.gift-label {
    color: #ff69b4;
    font-weight: bold;
    font-size: 1rem;
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', cursive, sans-serif;
}

/* Wish Popup Styles */
.wish-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wish-popup.show {
    display: flex;
    opacity: 1;
}

.wish-popup-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: popUp 0.3s ease-out;
    text-align: center;
}

.wish-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff69b4;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wish-close-btn:hover {
    background: #ff1493;
    transform: rotate(90deg);
}

.wish-popup-content h3 {
    color: #ff69b4;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', cursive, sans-serif;
}

.wish-text {
    color: #666;
    font-size: 1.2rem;
    line-height: 1.8;
    padding: 20px;
    background: #fff0f5;
    border-radius: 15px;
    border: 2px solid #ffb6c1;
}

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

.wish-card {
    background: linear-gradient(135deg, #ffc0cb, #ffb6c1);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.wish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.wish-card p {
    color: white;
    text-align: center;
    line-height: 1.6;
    font-size: 1rem;
}

.btn-back {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 20, 147, 0.4);
}

/* Hint Popup Styles */
.hint-popup {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hint-popup.show {
    opacity: 1;
}

.hint-popup-content {
    background: white;
    padding: 40px;
    padding-top: 50px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: popUp 0.3s ease-out;
    text-align: center;
}

.hint-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff69b4;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hint-close-btn:hover {
    background: #ff1493;
    transform: rotate(90deg);
}

.hint-popup-content h3 {
    color: #ff69b4;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.hint-popup-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.hint-text {
    color: #ff69b4;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
    padding: 15px;
    background: #fff0f5;
    border-radius: 10px;
}

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

    .title-inside {
        font-size: 1.3rem;
    }

    .login-box {
        padding: 30px 20px;
    }

    .pin-pad {
        max-width: 240px;
        gap: 10px;
    }

    .pin-button {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
    }

    .game-board {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .card {
        font-size: 2rem;
    }

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

    .game-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .reward-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 25px 15px;
    }

    .placeholder-image {
        height: 250px;
        font-size: 2rem;
    }

    .slide-media {
        max-height: 300px;
    }

    .wishes-container {
        grid-template-columns: 1fr;
    }

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

    .gift-image {
        width: 60px;
        height: 60px;
    }

    .wishes-instruction {
        font-size: 1rem;
    }

    .play-button {
        padding: 20px 35px;
    }

    .play-icon {
        font-size: 2.5rem;
    }

    .play-text {
        font-size: 1rem;
    }

    .game-result-content {
        padding: 30px 20px;
    }

    .game-result-content h2 {
        font-size: 1.8rem;
    }

    .game-result-content button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .gallery-message {
        font-size: 0.95rem;
        padding: 25px;
        line-height: 1.8;
    }

    .book-pages {
        min-height: 250px;
    }

    .book-btn {
        padding: 8px 15px;
        font-size: 1.2rem;
    }

    .page-indicator {
        font-size: 1rem;
    }
}

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

    .title-inside {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .pin-pad {
        max-width: 180px;
        gap: 6px;
    }

    .pin-button {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .btn-primary {
        padding: 10px;
        font-size: 0.95rem;
    }

    .password-display {
        padding: 15px;
        gap: 10px;
    }

    .password-display .dot {
        width: 12px;
        height: 12px;
    }

    .input-group input::placeholder {
        font-size: 0.75rem;
    }

    .game-board {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .card {
        font-size: 1.5rem;
    }

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

    .reward-btn {
        padding: 30px;
    }

    .reward-btn .icon {
        font-size: 3rem;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .placeholder-image {
        height: 200px;
        font-size: 1.5rem;
    }

    .slide-media {
        max-height: 250px;
    }

    .hint-popup-content {
        padding: 30px 20px;
        padding-top: 45px;
        max-width: 320px;
    }

    .hint-popup-content h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .hint-popup-content p {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .hint-text {
        font-size: 0.95rem;
        padding: 12px;
        margin-top: 10px;
    }

    .hint-close-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .game-result-content {
        padding: 25px 15px;
    }

    .game-result-content h2 {
        font-size: 1.5rem;
    }

    .game-result-content button {
        padding: 10px 25px;
        font-size: 0.85rem;
    }

    .gallery-message {
        font-size: 0.85rem;
        padding: 20px;
        line-height: 1.6;
    }

    .gallery-message::before,
    .gallery-message::after {
        font-size: 1.5rem;
        top: 8px;
    }

    .book-pages {
        min-height: 220px;
    }

    .book-btn {
        padding: 6px 12px;
        font-size: 1rem;
    }

    .page-indicator {
        font-size: 0.9rem;
    }

    .book-navigation {
        gap: 15px;
    }

    .btn-back {
        padding: 10px;
        font-size: 0.9rem;
    }

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

    .gift-box {
        padding: 15px;
    }

    .gift-image {
        width: 50px;
        height: 50px;
    }

    .gift-label {
        font-size: 0.85rem;
    }

    .wishes-instruction {
        font-size: 0.9rem;
    }

    .wish-popup-content {
        padding: 30px 20px;
        max-width: 320px;
    }

    .wish-popup-content h3 {
        font-size: 1.3rem;
    }

    .wish-text {
        font-size: 1rem;
        padding: 15px;
    }

    .play-button {
        padding: 15px 25px;
    }

    .play-icon {
        font-size: 2rem;
    }

    .play-text {
        font-size: 0.9rem;
    }
}
