.container {
    position: relative; /* Essential for positioning the curtains */
    overflow: hidden; /* Hides the parts of the curtains that are off-screen */
}

.container::before,
.container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: #1a1a1a; /* Matches the body background color */
    z-index: 10;
    animation: openCurtains 2s forwards;
}

.container::before {
    left: 0;
    animation-delay: 0.5s; /* Delays the start of the animation */
}

.container::after {
    right: 0;
    animation-delay: 0.5s;
}

@keyframes openCurtains {
    from {
        width: 50%;
    }
    to {
        width: 0;
    }
}

body {
    color: #f1e3e3;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: url('./kpop.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}

.container {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(204, 0, 255, 0.5);
    width: 90%;
    max-width: 500px;
    text-align: center;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(to right, rgb(237, 138, 229), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* For browsers that support it */
    color: transparent;    /* fallback */
    /* text-shadow: 1px 1px 15px #90baea; */
    font-size: 2.5em;
    margin-bottom: 20px;
}

h2 {
    font-family: "Kong Japanese";
    font-size: 3rem;
    background: linear-gradient(to right, rgb(237, 138, 229), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* For browsers that support it */
    color: transparent;    /* fallback */
    /* text-shadow: 1px 1px 15px #90baea; */
    font-size: 2.0em;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
    background: linear-gradient(to right, rgb(237, 138, 229), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* For browsers that support it */
    color: transparent;    /* fallback */
    /* text-shadow: 1px 1px 15px #90baea; */
}

label {
    display: block;
    margin-bottom: 10px;
    color: #e0e0e09c;
    font-weight: bold;
}

input[type="tel"],
input[type="text"],
input[type="password"],
input[type="number"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
}

input[type="checkbox"] {
    margin-right: 10px;
}

button {
    background-color: #ff3333;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    background: linear-gradient(to bottom, rgb(237, 138, 229), rgba(145, 5, 245, 0.182));
}

button:hover {
    background-color: #e60000;
    transform: scale(1.05);
}

.hidden {
    display: none;
}

.footer {
    margin-top: 30px;
    font-size: 0.8em;
    color: #999;
}

/* New CSS for the Centered Loading Overlay */

#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Dark, slightly transparent background */
    z-index: 20; /* Ensure it covers everything else */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ff3333;
    font-size: 1.2em;
    border-radius: 10px; /* Matches the container border radius */
}

/* Spinner Animation */
.spinner {
    border: 8px solid #444; /* Light grey border */
    border-top: 8px solid #c533ff; /* Red spinning color */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Helper Class to hide/show elements */
.hidden {
    display: none !important;
}

/* Ensure #rsvp-section is relative for the overlay positioning */
#rsvp-section {
    position: relative;
    /* You can add a minimum height here to prevent layout shift */
    min-height: 400px; 
}

/* Remove any previous CSS related to #loading-bar or .loading-active button */