/* --- 1. General Styles & Background --- */
body {
    /* Fun, modern, sans-serif font */
    font-family: 'Arial', 'Helvetica Neue', sans-serif; 
    margin: 0;
    padding: 0;
    /* Bright, lively background gradient */
    background: linear-gradient(135deg, #ffdde1 0%, #a4e4ff 100%); 
    color: #333; 
    line-height: 1.6;
    /* Removed overflow: hidden; to enable scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* --- Balloon Animation (Background Effect) --- */
.container:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    /* Create a repeating pattern of colored circles/balloons */
    background: 
        radial-gradient(circle at 10% 20%, #ff6f61 5px, transparent 6px), 
        radial-gradient(circle at 30% 50%, #4bc0c8 7px, transparent 8px),
        radial-gradient(circle at 60% 80%, #f9f871 4px, transparent 5px),
        radial-gradient(circle at 80% 30%, #a361c4 8px, transparent 9px),
        radial-gradient(circle at 45% 10%, #ff9a8b 5px, transparent 6px);
    background-size: 400px 400px;
    animation: balloonFloat 30s linear infinite;
}

@keyframes balloonFloat {
    from {
        background-position: 0% 0%;
        transform: translateY(0);
    }
    to {
        background-position: 100% 100%;
        transform: translateY(-500px); /* Simulate floating up */
    }
}


/* --- 2. Container and Headers --- */
.container {
    max-width: 500px;
    width: 90%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); 
    border-radius: 20px;
    text-align: center;
    border: 3px dashed #ff6f61; /* Festive dashed border */
    /* Bounce in animation */
    animation: bounceIn 1s ease-out; 
    /* Allow content in the container to scroll if body doesn't fit in viewport */
    margin: 40px 0; 
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.8); }
    60% { opacity: 1; transform: scale(1.05); }
    100% { transform: scale(1); }
}

.announcement {
    font-size: 1.2em;
    color: #a361c4; /* Purple accent */
    font-weight: bold;
    margin-bottom: 5px;
}

h1 {
    font-family: 'Comic Sans MS', cursive, sans-serif; /* Playful header font */
    color: #ff6f61; /* Bright Coral */
    font-size: 3.2em;
    margin-bottom: 5px;
    text-shadow: 2px 2px #f9f871; /* Yellow outline shadow */
    animation: colorShift 5s infinite alternate; /* Header color animation */
}

@keyframes colorShift {
    0% { color: #ff6f61; }
    50% { color: #4bc0c8; }
    100% { color: #a361c4; }
}

.age {
    font-size: 1.1em;
    font-style: italic;
    color: #4bc0c8; /* Teal accent */
}

h2 {
    color: #6c757d;
    font-size: 1.2em;
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 25px;
}

/* --- 3. Event Details --- */
.details p {
    margin: 8px 0;
    color: #555;
    font-size: 1em;
}

.dress-code {
    font-weight: bold;
    color: #a361c4; 
    margin-top: 15px;
    padding: 5px 0;
    border-bottom: 1px dotted #a361c4;
}

.separator {
    border: none;
    border-top: 5px solid #f9f871; /* Thick yellow separator */
    width: 70%;
    margin: 30px auto;
    border-radius: 5px;
}

/* --- 4. Form and Inputs --- */
.rsvp-section h3 {
    color: #ff6f61;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    background-color: #fff;
    border: 2px solid #4bc0c8; /* Teal border */
    color: #333;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: #ff6f61; /* Coral focus border */
    box-shadow: 0 0 5px rgba(255, 111, 97, 0.6); 
    outline: none;
}

/* --- 5. Radio Buttons (Attendance) --- */
.attendance {
    padding-bottom: 15px;
}

.radio-group {
    display: inline-block;
    margin-right: 20px;
}

.attendance label {
    font-weight: normal;
    cursor: pointer;
    color: #555;
    display: inline;
    margin-left: 5px;
}

/* --- 6. Button Styling --- */
button[type="submit"] {
    background: linear-gradient(90deg, #ff6f61 0%, #a361c4 100%); /* Pink to Purple Gradient */
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    width: 100%;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

button[type="submit"]:hover {
    transform: scale(1.03); 
    box-shadow: 0 0 15px rgba(163, 97, 196, 0.8); /* Purple glow */
}

/* --- 7. Footer --- */
footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    color: #a361c4;
    font-style: italic;
}


/* --- 8. Watermark Styling (SAMPLE overlay) --- */
#watermark {
    position: fixed; 
    top: 50%;
    left: 50%;
    
    /* Center and rotate for diagonal watermark effect */
    transform: translate(-50%, -50%) rotate(-35deg); 
    
    /* Text styling - Lighter, higher opacity to stand out on the light background */
    font-size: 8em; 
    font-weight: 900;
    color: rgba(255, 111, 97, 0.2); /* Coral with moderate opacity */
    pointer-events: none; 
    
    z-index: 9999; 
    text-transform: uppercase;
    letter-spacing: 10px;
}

/* --- 9. Basic Responsiveness --- */
@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 2.5em;
    }
    
    #watermark {
        font-size: 4em;
    }
}