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

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.ocean-background {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(to bottom, #87CEEB 0%, #4682B4 50%, #191970 100%);
    overflow: hidden;
}

.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23ffffff" fill-opacity="0.3"/></svg>') repeat-x;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% { background-position-x: 0; }
    100% { background-position-x: 1200px; }
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 60px 20px 20px;
    position: relative;
    z-index: 10;
}

.initial-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.6s ease;
    max-width: 400px;
    width: 100%;
}

.initial-card.hidden {
    opacity: 0;
    transform: translateY(-50px) scale(0.8);
    pointer-events: none;
}

.card-content h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #4682B4;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.card-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.open-btn {
    background: linear-gradient(45deg, #4682B4, #87CEEB);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(70, 130, 180, 0.3);
}

.open-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(70, 130, 180, 0.4);
}

.envelope-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s ease;
}

.envelope-container.visible {
    opacity: 1;
    pointer-events: all;
}

.envelope-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(139, 69, 19, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 40% 40%, rgba(101, 67, 33, 0.1) 1px, transparent 1px);
    background-size: 30px 30px, 25px 25px, 15px 15px;
    pointer-events: none;
    z-index: -1;
}

.envelope {
    position: relative;
    width: 300px;
    height: 200px;
    margin: 0 auto;
    perspective: 1000px;
}

.envelope-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, 
        #d4b896 0%, 
        #c8a882 25%, 
        #b89968 50%, 
        #a68a54 75%, 
        #947a40 100%);
    border: 2px solid #8b6914;
    border-radius: 8px;
    position: relative;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Add aging spots and texture */
.envelope-body:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(101, 67, 33, 0.2) 3px, transparent 3px),
        radial-gradient(circle at 85% 15%, rgba(139, 69, 19, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 25% 85%, rgba(101, 67, 33, 0.25) 4px, transparent 4px),
        radial-gradient(circle at 75% 65%, rgba(139, 69, 19, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 45% 35%, rgba(101, 67, 33, 0.18) 3px, transparent 3px);
    background-size: 40px 40px, 30px 30px, 50px 50px, 25px 25px, 35px 35px;
    pointer-events: none;
}

/* Add postal lines */
.envelope-body:after {
    content: 'INVITATION';
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    color: rgba(139, 69, 19, 0.6);
    letter-spacing: 3px;
    border: 2px solid rgba(139, 69, 19, 0.4);
    padding: 8px 16px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.envelope-flap {
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: 120px;
    background: linear-gradient(145deg, 
        #e8c5a0 0%, 
        #dab98a 25%, 
        #c8a882 50%, 
        #b89968 75%, 
        #a68a54 100%);
    border: 2px solid #8b6914;
    border-radius: 8px 8px 0 0;
    transform-origin: top center;
    transition: transform 1s ease;
    z-index: 2;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 85% 85%, 50% 100%, 15% 85%);
}

.envelope-flap::before {
    content: '🏴‍☠️';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.envelope-flap::after {
    content: '⚓';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, 
        #dc143c 0%, 
        #b22222 30%, 
        #8b0000 60%, 
        #654321 80%);
    border-radius: 50%;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border: 2px solid #4a1a1a;
}

.envelope-flap.open {
    transform: rotateX(180deg);
}

/* Invitation Card Animation */
.invitation-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 350px;
    height: 580px;
    max-width: 95vw; /* Ensure it doesn't exceed viewport width */
    max-height: 90vh; /* Ensure it doesn't exceed viewport height */
    max-height: 90dvh; /* Use dynamic viewport height for mobile */
    transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 4;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    /* Ensure the card stays centered */
    margin-left: auto;
    margin-right: auto;
}

.invitation-card.slide-out {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

/* Invitation Scroll Styling */
.invitation-scroll {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #f4f1e8 0%, #fff8dc 50%, #f4f1e8 100%);
    border: 3px solid #8b4513;
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Ensure content stays centered */
    margin: 0 auto;
    /* Mobile scroll handling */
    overscroll-behavior: contain;
}

.invitation-scroll::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(139, 69, 19, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(139, 69, 19, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.3;
}

.invitation-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #2c1810;
    font-family: 'Poppins', sans-serif;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.invitation-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: #4682B4;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.invitation-content h2::before {
    content: '🌊';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.invitation-content h2::after {
    content: '🌊';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.party-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    color: #20b2aa;
    margin-bottom: 15px;
    font-style: italic;
}

/* Updated styles for user's party details structure */
.party-details {
    margin: 15px 0;
}

.party-details h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: #20b2aa;
    margin: 10px 0 15px 0;
    font-weight: 400;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px dotted rgba(70, 130, 180, 0.3);
}

.detail-label {
    font-weight: 600;
    color: #4682B4;
    font-size: 0.9rem;
    min-width: 80px;
}

.detail-value {
    color: #2c1810;
    font-size: 0.9rem;
    text-align: right;
    flex: 1;
    margin-left: 10px;
}

.event-details {
    margin: 15px 0;
    line-height: 1.6;
}

.event-details p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: #2c1810;
}

.special-note {
    background: linear-gradient(135deg, rgba(70, 130, 180, 0.1), rgba(32, 178, 170, 0.1));
    border: 2px dashed #4682B4;
    border-radius: 10px;
    padding: 12px;
    margin: 15px 0;
}

.special-note p {
    margin: 5px 0;
    font-size: 0.85rem;
    color: #2c1810;
}

.dress-code {
    margin: 12px 0;
    font-size: 0.85rem;
    color: #2c1810;
}

.dress-code p {
    margin: 5px 0;
}

.rsvp-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.rsvp-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.accept-btn {
    background: linear-gradient(145deg, #4682B4, #5a9fd4);
    color: white;
    box-shadow: 0 4px 15px rgba(70, 130, 180, 0.3);
}

.accept-btn:hover {
    background: linear-gradient(145deg, #5a9fd4, #4682B4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 130, 180, 0.4);
}

.decline-btn {
    background: linear-gradient(145deg, #dc3545, #e74c3c);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.decline-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

/* Gentle floating animation for the scroll */
@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Ensure invitation card maintains centering */
.invitation-card,
.invitation-card.slide-out {
    /* Force centering with multiple methods for stability */
    top: 50% !important;
    left: 50% !important;
    margin-left: auto;
    margin-right: auto;
}

.invitation-card {
    transform: translate(-50%, -50%) scale(0) !important;
}

.invitation-card.slide-out {
    transform: translate(-50%, -50%) scale(1) !important;
}
.invitation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(218, 185, 138, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(200, 168, 130, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 40% 70%, rgba(184, 153, 104, 0.25) 3px, transparent 3px),
        radial-gradient(circle at 90% 80%, rgba(218, 185, 138, 0.15) 2px, transparent 2px);
    background-size: 30px 30px, 20px 20px, 40px 40px, 25px 25px;
    pointer-events: none;
}

/* Decorative border inside card */
.invitation-card::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 10px;
    pointer-events: none;
}



.invitation-scroll {
    background: linear-gradient(145deg, #f9f7e8, #f0ebe0);
    border: 2px solid #d4af37;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.2),
        0 5px 10px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    transform-origin: left center;
    margin-top: 0;
    max-width: 100%;
}

.invitation-scroll::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 15px;
    width: 3px;
    background: repeating-linear-gradient(
        to bottom,
        #d4af37 0px,
        #d4af37 2px,
        transparent 2px,
        transparent 8px
    );
    border-radius: 2px;
}

.invitation-scroll::after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: 15px;
    width: 3px;
    background: repeating-linear-gradient(
        to bottom,
        #d4af37 0px,
        #d4af37 2px,
        transparent 2px,
        transparent 8px
    );
    border-radius: 2px;
}

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

.invitation-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: #4682B4;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.invitation-content h2::after {
    content: '✨';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: sparkleRotate 2s linear infinite;
}

.invitation-content h2::before {
    content: '✨';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: sparkleRotate 2s linear infinite reverse;
}

@keyframes sparkleRotate {
    0% { transform: translateY(-50%) rotate(0deg) scale(1); }
    50% { transform: translateY(-50%) rotate(180deg) scale(1.2); }
    100% { transform: translateY(-50%) rotate(360deg) scale(1); }
}

.party-details h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: #2c5282;
    text-align: center;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail-label {
    font-weight: 600;
    color: #4682B4;
}

.detail-value {
    color: #333;
    text-align: right;
}

.rsvp-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.rsvp-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.accept-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.decline-btn {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    color: white;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.decline-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px 15px;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile */
    }
    
    .initial-card {
        padding: 25px 20px;
        margin: 10px;
        max-width: 90vw;
    }
    
    .card-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .card-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .envelope {
        width: 250px;
        height: 170px;
    }
    
    .envelope-flap::before {
        font-size: 24px;
        top: 15px;
    }
    
    .envelope-flap::after {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 12px;
    }
    
    .envelope-body::after {
        font-size: 12px;
        padding: 6px 12px;
        letter-spacing: 2px;
    }
    
    .invitation-card {
        width: 320px;
        height: 520px;
        max-width: 90vw;
        max-height: 85vh;
        max-height: 85dvh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
    }
    
    .invitation-card.slide-out {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .invitation-scroll {
        padding: 20px 18px;
        overflow-y: auto;
    }
    
    .invitation-content h2 {
        font-size: 1.8rem;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    
    /* Keep wave emojis on mobile */
    .invitation-content h2::before,
    .invitation-content h2::after {
        font-size: 1.2rem;
        left: -30px;
        right: -30px;
    }
    
    .party-details h3 {
        font-size: 1.1rem;
        margin: 8px 0 12px 0;
        line-height: 1.2;
    }
    
    /* Keep desktop layout for detail items */
    .detail-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 6px 0;
        padding: 4px 0;
        flex-direction: row;
        gap: 10px;
    }
    
    .detail-label {
        font-size: 0.85rem;
        min-width: 80px;
        font-weight: 600;
    }
    
    .detail-value {
        text-align: right;
        font-size: 0.85rem;
        margin-left: 10px;
        flex: 1;
    }
    
    /* Keep buttons side by side */
    .rsvp-buttons {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        margin-top: 15px;
    }
    
    .rsvp-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        flex: 1;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 10px 10px;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .initial-card {
        padding: 20px 15px;
        margin: 5px;
        max-width: 95vw;
    }
    
    .card-content h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .card-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .open-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .invitation-card {
        width: 300px;
        height: 490px;
        max-width: 95vw;
        max-height: 90vh;
        max-height: 90dvh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
    }
    
    .invitation-card.slide-out {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .invitation-scroll {
        padding: 15px 12px;
        overflow-y: auto;
    }
    
    .invitation-content h2 {
        font-size: 1.6rem;
        margin-bottom: 6px;
        line-height: 1.1;
    }
    
    /* Keep wave emojis on small screens too */
    .invitation-content h2::before,
    .invitation-content h2::after {
        font-size: 1rem;
        left: -25px;
        right: -25px;
    }
    
    .party-details h3 {
        font-size: 1rem;
        margin: 6px 0 10px 0;
        line-height: 1.2;
    }
    
    /* Maintain desktop layout for detail items */
    .detail-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 4px 0;
        padding: 3px 0;
        flex-direction: row;
        gap: 8px;
    }
    
    .detail-label {
        font-size: 0.8rem;
        font-weight: 700;
        min-width: 70px;
    }
    
    .detail-value {
        font-size: 0.8rem;
        text-align: right;
        margin-left: 8px;
        flex: 1;
        word-wrap: break-word;
    }
    
    /* Keep buttons side by side */
    .rsvp-buttons {
        display: flex;
        flex-direction: row;
        gap: 8px;
        justify-content: center;
        margin-top: 10px;
    }
    
    .rsvp-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
        border-radius: 15px;
        flex: 1;
        max-width: 110px;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .container {
        padding: 10px 5px 5px;
    }
    
    .initial-card {
        padding: 15px 10px;
        margin: 2px;
    }
    
    .card-content h1 {
        font-size: 1.4rem;
    }
    
    .card-content p {
        font-size: 0.85rem;
    }
    
    .invitation-card {
        width: 280px;
        height: 460px;
        max-width: 98vw;
        max-height: 95vh;
        max-height: 95dvh;
    }
    
    .invitation-scroll {
        padding: 12px 8px;
    }
    
    .invitation-content h2 {
        font-size: 1.4rem;
    }
    
    /* Keep wave emojis even on extra small screens */
    .invitation-content h2::before,
    .invitation-content h2::after {
        font-size: 0.9rem;
        left: -20px;
        right: -20px;
    }
    
    .party-details h3 {
        font-size: 0.9rem;
    }
    
    /* Maintain desktop layout */
    .detail-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        gap: 5px;
    }
    
    .detail-label {
        font-size: 0.75rem;
        min-width: 60px;
        font-weight: 600;
    }
    
    .detail-value {
        font-size: 0.75rem;
        text-align: right;
        flex: 1;
        margin-left: 5px;
    }
    
    /* Keep buttons side by side */
    .rsvp-buttons {
        display: flex;
        flex-direction: row;
        gap: 6px;
        justify-content: center;
    }
    
    .rsvp-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        flex: 1;
        max-width: 100px;
    }
}

/* Animation Classes */
.float {
    animation: float 3s ease-in-out infinite;
}

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

.sparkle {
    position: relative;
    overflow: hidden;
}

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

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

/* Magical particles for genie effect */
.magical-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ffd700, #d4af37);
    border-radius: 50%;
    animation: particleFloat 3s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) scale(1) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-200px) scale(0) rotate(360deg);
        opacity: 0;
    }
}

.smoke-effect {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 100px;
    background: radial-gradient(ellipse at bottom, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(135, 206, 235, 0.2) 40%, 
        transparent 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: smokeRise 2s ease-out forwards;
    pointer-events: none;
}

@keyframes smokeRise {
    0% {
        transform: translateX(-50%) translateY(0) scale(0.5);
        opacity: 0.8;
    }
    50% {
        transform: translateX(-50%) translateY(-50px) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translateX(-50%) translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

/* Admin Access Styles */
.admin-access {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.admin-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

/* Admin Modal Styles */
.admin-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.admin-modal-content {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

@keyframes modalShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.admin-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
}

.admin-close:hover {
    color: #000;
}

.admin-modal-content h3 {
    color: #4682B4;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
}

.admin-modal-content input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

.admin-modal-content input:focus {
    outline: none;
    border-color: #4682B4;
    box-shadow: 0 0 5px rgba(70, 130, 180, 0.3);
}

.admin-modal-content button {
    width: 100%;
    background: linear-gradient(45deg, #4682B4, #87CEEB);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.admin-modal-content button:hover {
    background: linear-gradient(45deg, #5a9fd4, #4682B4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(70, 130, 180, 0.3);
}

.admin-error {
    color: #dc3545;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    min-height: 20px;
}

@media (max-width: 480px) {
    .admin-access {
        top: 15px;
        right: 15px;
    }
    
    .admin-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .admin-modal-content {
        width: 280px;
        margin: 20% auto;
        padding: 20px;
    }
}
