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

body {
    margin: 0;
    min-height: 100vh;
    background: url('background.gif');
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    font-family: 'Pacifico', cursive;
    cursor: url('wand.png'), auto;
    color: #ff1493;
}

.sparkle {
    position: absolute;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #fff, #ffc2e1);
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleAnim 1s forwards;
}

@keyframes sparkleAnim {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(180deg);
        opacity: 0;
    }
}

#container {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.invitation-card {
    background: radial-gradient(
        circle at 50% 50%,
        hsl(330, 100%, 95%) 0%,
        hsl(330, 100%, 85%) 50%,
        hsl(330, 100%, 75%) 100%
    );
    border: 10px solid #ffb6c1;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 20px;
    box-shadow: 0 0 20px rgba(255, 182, 193, 0.5);
    animation: float 3s infinite ease-in-out;
    transition: background 0.3s ease;
}

h1 {
    font-family: 'Princess Sofia', cursive;
    color: #ff69b4;
    font-size: 3em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

h2 {
    font-family: 'Pacifico', cursive;
    color: #ff1493;
    margin: 10px 0;
}

.princess-divider {
    margin: 20px 0;
    font-size: 24px;
    letter-spacing: 10px;
}

.details {
    margin: 30px 0;
    font-size: 1.2em;
}

.name {
    font-family: 'Princess Sofia', cursive;
    font-size: 2.5em;
    color: #ff69b4;
    margin: 10px 0;
}

.activities {
    font-family: 'Pacifico', cursive;
    color: #ff1493;
    font-size: 1.8em;
    margin: 10px 0;
}

.event-info {
    background: #fff0f5;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border: 3px dashed #ffb6c1;
}

.geocities-gif {
    max-width: 100px;
    margin: 10px;
}

.floating-cake {
    position: fixed;
    font-size: 50px;
    animation: floatAround 20s infinite linear;
}

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

@keyframes floatAround {
    0% { 
        left: -50px;
        top: 10%;
    }
    25% {
        left: 100%;
        top: 40%;
    }
    50% {
        left: -50px;
        top: 60%;
    }
    75% {
        left: 100%;
        top: 80%;
    }
    100% {
        left: -50px;
        top: 10%;
    }
} 

.rsvp-container {
    margin-top: 20px;
    color: #ff1493;
    font-size: 1.4em;
    background: #fff0f5;
    padding: 15px;
    border-radius: 15px;
    border: 2px dashed #ffb6c1;
    font-family: 'Quicksand', 'Open Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

a,
a:visited,
a:hover,
a:active {
    color: #ff1493 !important;
    text-decoration: underline #ff1493 !important;
}

.rsvp-container img {
    width: 100px;
    transition: transform 0.3s ease;
    animation: pulse 2s infinite ease-in-out;
}

.rsvp-container img:hover {
    transform: scale(1.1);
}

.details-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.katy-image {
    width: 100px;
    height: auto;
    border-radius: 10px;
    animation: wiggle 2s ease-in-out infinite;
    margin-top: -40px;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.text-content {
    flex: 1;
}

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

.audio-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#musicToggle {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

#musicToggle:hover {
    transform: scale(1.1);
}

.image-carousel {
    text-align: center;
    width: 250px;
    height: 300px;
    margin: 40px 0 60px;
    position: relative;
    left: -100px;
    flex-direction: column;

    @media (max-width: 768px) {
        margin-bottom: 0;
        width: 200px;
        height: 250px;
    }
}

.image-carousel::after {
    content: '';
    position: absolute;
    top: -50px;
    display: block;
    background: url('tv.png') no-repeat center center;
    background-size: contain;
    width: 600px;
    height: 450px;
    left: -100px;

    @media (max-width: 768px) {
        width: 400px;
        height: 300px;
        left: 0;
    }
}

.carousel-image {
    position: absolute;
    top: 50px;
    left: -20px;
    height: 250px;
    width: 350px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);

    @media (max-width: 768px) {
        width: 250px;
        height: 200px;
        top: 0;
        left: 50px;
    }
}

.emoji-particle {
    position: fixed;
    pointer-events: none;
    font-size: 24px;
    animation: explode 1s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: translate(0, 0) scale(.5) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(
            calc(cos(var(--angle)) * var(--velocity) * 10),
            calc(sin(var(--angle)) * var(--velocity) * 10)
        ) scale(3) rotate(360deg);
        opacity: 0;
    }
}

.built-by {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
    margin-top: 2rem;
    font-family: 'Quicksand', sans-serif;
}

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

.floating {
    animation: float 4s ease-in-out infinite;
}