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

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    font-family: 'Cormorant Garamond', serif;
    padding: 2rem;
    border: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.attire-text{
font-size:1.2em;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
    max-width: 656px;
    padding-bottom: 2rem;
    position: relative;
    overflow: visible;
}

/* Invitation Styles */
.invitation-container {
    width: 100%;
    aspect-ratio: 656/927;
    position: relative;
    overflow: visible;
    margin-bottom: 6rem;
    will-change: transform; /* Optimize performance */
    transform-style: preserve-3d;
    perspective: 1000px;
}

.envelope-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.back-envelope {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: scale(1.6);
}

.back-envelope img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card {
    position: absolute;
    width: 86%;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.front-envelope {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    transform: scale(0.9);
}

.front-envelope img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* RSVP Styles */
.rsvp-container {
    width: 100%;
    background: white;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: relative;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.rsvp-section {
    padding: 2.5rem;
}

.rsvp-section h2 {
    text-align: center;
    color: #B5997D;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #E5DCD6;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: #666;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #FECAC5;
    color: brown;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #grey;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .container {
        gap: 2rem;
    }
    
    .rsvp-section {
        padding: 1.5rem;
    }
}

/* Animation keyframes */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(0%);
    }
    100% {
        opacity: 1;
        transform: translateY(-70%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sparkle animation */
.sparkles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffd700 0%, rgba(255,215,0,0) 70%);
    border-radius: 50%;
}

/* Update the radio group styles */
.radio-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.radio-group label {
    margin: 0;
    color: #666;
}

.radio-options {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.radio-options label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0;
    flex-direction: row;
}

.radio-options input[type="radio"] {
    margin: 0;
    width: auto;
}

.form-group.radio-group input {
    width: auto;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Border separator styles */
.border-separator {
    width: 100%;
    height: 40px;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.border-separator img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Update mute button styles */
.mute-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #E5DCD6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.mute-button svg {
    fill: #B5997D;
    position: relative;
}

.mute-slash {
    position: absolute;
    transform: rotate(-45deg);
    transform-origin: center;
    transition: all 0.3s ease;
}

.mute-button.muted .speaker-icon {
    opacity: 0.5;
}

.mute-button:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Add location details styles */
.location-details {
    text-align: center;
    margin: 2rem 0;
    color: #D5BA85; /* Gold color */
    font-family: 'Cormorant Garamond', serif;
}

.location-details h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.location-details p {
    margin: 0.5rem 0;
}

.location-details .date {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.location-details .venue {
    font-size: 1.3rem;
    font-weight: 500;
}

.location-details .address {
    font-size: 1.2rem;
    color: #C0A875; /* Slightly darker gold for better readability */
}

/* Footer image styles */
.footer-image {
    width: 100%;
    max-width: 300px; /* Adjust based on your needs */
    margin: 3rem auto 1rem;
    text-align: center;
}

.footer-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Add these styles to enable smooth scrolling */
html {
    scroll-behavior: smooth;
} 