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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff6b6b;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

header {
    text-align: center;
    padding: 2rem 1rem 1rem;
    position: relative;
}

.banner {
    position: relative;
    display: inline-block;
}

.banner-svg {
    width: 300px;
    height: 80px;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.invitation-title {
    font-size: 3rem;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
}

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

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.party-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 100%;
    max-width: 600px;
    overflow: visible;
}

.house-icon {
    text-align: center;
    margin-bottom: 2rem;
    animation: bounce 3s ease-in-out infinite;
}

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

.names {
    text-align: center;
    margin-bottom: 2rem;
}

.names h2 {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.names h3 {
    font-size: 1.8rem;
    color: #764ba2;
    font-weight: normal;
}

.party-details {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.detail-text strong {
    display: block;
    color: #764ba2;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.detail-text p {
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
}

.special-note {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff5f5;
    border-radius: 15px;
    border: 2px dashed #ff6b6b;
}

.special-note svg {
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

.gift-message {
    font-size: 1.3rem;
    color: #ff6b6b;
    margin: 1rem 0 0.5rem;
    font-weight: bold;
}

.sub-message {
    color: #666;
    font-size: 0.95rem;
}

.floating-balloons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: visible;
}

.balloon {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.balloon1 {
    top: -100px;
    left: -30px;
    animation-delay: 0s;
}

.balloon2 {
    top: -120px;
    right: -30px;
    animation-delay: 1.5s;
}

.balloon3 {
    bottom: -100px;
    left: 20px;
    animation-delay: 3s;
}

.balloon4 {
    bottom: -110px;
    right: 20px;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-25px) rotate(3deg);
    }
}

footer {
    text-align: center;
    padding: 2rem;
    color: white;
}

footer p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-decoration {
    display: flex;
    justify-content: center;
}

.footer-decoration svg circle {
    animation: twinkle 2s ease-in-out infinite;
}

.footer-decoration svg circle:nth-child(even) {
    animation-delay: 1s;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@media (max-width: 768px) {
    .invitation-title {
        font-size: 2rem;
    }
    
    .names h2 {
        font-size: 2rem;
    }
    
    .names h3 {
        font-size: 1.5rem;
    }
    
    .party-card {
        padding: 2rem 1.5rem;
    }
    
    .banner-svg {
        width: 250px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .invitation-title {
        font-size: 1.8rem;
    }
    
    .names h2 {
        font-size: 1.8rem;
    }
    
    .names h3 {
        font-size: 1.3rem;
    }
    
    .gift-message {
        font-size: 1.1rem;
    }
    
    .party-card {
        padding: 1.5rem 1rem;
    }
}