@charset "UTF-8";

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

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    background: #541B29;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
}

/* OPENING SCREEN */

#intro-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #541B29;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;

    opacity: 1;
    visibility: visible;
    transition: opacity 1.5s ease-in-out,
                visibility 1.5s ease-in-out;
}

#opening-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #541B29;
	object-position: center;
}

#open-button {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.7);
    padding: 14px 30px;
    font-size: 12px;
    letter-spacing: 3px;
    cursor: pointer;
    z-index: 2;
}

#intro-screen.playing #open-button {
    display: none;
}

#intro-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* MAIN WEBSITE */

#main-website {
    width: 100%;
    background: #541B29;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

#main-website[hidden] {
    display: none;
}

#main-website.show-website {
    opacity: 1;
}

/* INVITATION PAGES */

.invitation-pages {
    width: 100%;
    line-height: 0;
}

.invitation-pages img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

/* RSVP SECTION */

#rsvp-section {
    background: #f7f0e9;
    color: #51232b;
    padding: 60px 20px;
    text-align: center;
}

.rsvp-heading {
    max-width: 500px;
    margin: 0 auto 30px;
}

.rsvp-small {
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.rsvp-heading h1 {
    font-family: Georgia, serif;
    font-size: 38px;
    font-weight: normal;
    margin-bottom: 15px;
}

.rsvp-heading p {
    line-height: 1.7;
}

#google-form-placeholder {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 15px;
}


/* CUSTOM WEDDING RSVP FORM */

#rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-group > label:first-child {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    letter-spacing: 1px;
}

#rsvp-form input[type="text"],
#rsvp-form select,
#rsvp-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbb9b1;
    background: transparent;
    color: #51232b;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border-radius: 0;
}

#rsvp-form textarea {
    resize: vertical;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    font-size: 14px;
}

#rsvp-form input[type="radio"] {
    accent-color: #51232b;
}

#submit-rsvp {
    display: block;
    width: 100%;
    padding: 16px;
    background: #541B29;
    color: #fff;
    border: none;
    font-size: 12px;
    letter-spacing: 3px;
    cursor: pointer;
}

#rsvp-status {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

/* RSVP CONFIRMATION */

#rsvp-confirmation {
    max-width: 500px;
    margin: 30px auto 0;
    padding: 35px 20px;
    background: #541B29;
    color: #f7f0e9;
    text-align: center;
}

#rsvp-confirmation[hidden] {
    display: none;
}

.confirmation-inner {
    border: 1px solid rgba(247,240,233,0.4);
    padding: 30px 15px;
}

.confirmation-divider {
    font-size: 20px;
    margin: 15px 0;
}

.confirmation-small {
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.confirmation-inner h2 {
    font-family: Georgia, serif;
    font-size: 42px;
    font-weight: normal;
    margin-bottom: 15px;
}

.confirmation-inner p {
    line-height: 1.8;
    font-size: 14px;
}

/* ELEGANT RSVP CONFIRMATION ANIMATION */

#rsvp-confirmation {
    animation: confirmationFadeIn 1.2s ease-out forwards;
    transform-origin: center;
}

@keyframes confirmationFadeIn {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* OPENING POSTER IMAGE FOR MOBILE */

#opening-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#intro-screen.playing #opening-poster {
    opacity: 0;
}

