:root {
    --button-bg: #EDF1EB;
    --button-text: #4F7739;
    --title-color: #4F7739;
}

/* Font Families */
@font-face {
    font-family: 'MyFont1';
    src: url('BrittanySignature.ttf') format('truetype');
}

@font-face {
    font-family: 'MyFont2';
    src: url('GlacialIndifference-Regular.otf') format('opentype');
}

/* Base Styles */
body {
    margin: 0;
    font-family: 'MyFont2', sans-serif;
    background-color: #fff;
}

.container {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

.static-home {
    width: 50%;
    background-image: url('home_back.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scrollable {
    width: 50%;
    overflow-y: scroll;
    padding: 3rem 2rem;
}

section {
    margin-bottom: 150px;
    text-align: center;
}

section img {
    max-width: 100%;
    height: auto;
}

#section-5-1,
#section-5-2 {
    display: none;
    margin-top: 200px;
    margin-bottom: 200px;
}

/* Typography */
.font1 {
    font-family: 'MyFont1', cursive;
    font-weight: 100;
    color: var(--title-color);
}

.font2 {
    font-family: 'MyFont2', sans-serif;
    font-size: 24px;
}

.font2.reduced-top-margin {
    font-size: 20px;
    margin-top: calc(1rem - 20px);
    margin-bottom: 0.66rem;
}

.font2.reduced-top-margin.final-line {
    font-size: 20px;
    margin-top: calc(1rem - 20px);
    margin-bottom: calc(0.66rem - 10px);
}

#Date-1 {
    font-size: 3.5em;
    margin-top: -0.3em;
    margin-bottom: -0.4em;
    color: black;
}

/* Titles */
#Title-0 {
    max-width: 45%;
    font-size: 45px;
    color: white;
    text-align: center;
    margin: 1rem auto;
}

#Title-1 {
    font-size: 3.5em;
    margin-bottom: 0.3em;
}

#Title-3,
#Title-4,
#Title-5,
#Title-6,
#Title-7 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 2rem;
}

/* Title-9 same as Title-5 */
#Title-9 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--title-color);
}

/* Text Blocks */
#LocationText1,
#LocationText2,
#WhereToSleep,
#FormText,
#InviteAnswer {
    font-size: 20px;
    text-align: center;
}

.story-text {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Images */
#HomeFrontImage {
    max-width: 45%;
    display: block;
    margin: 0 auto;
}

#TopRightImage {
    width: 200px;
    margin-top: -50px;
    margin-left: auto;
    margin-right: 7%;
    display: block;
}

#TopRightImage2 {
    display: block;
    margin-bottom: -50px;
    margin-left: 40%;
    transform: rotate(180deg);
    width: 200px;
}

#giestal-image {
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#MapImage {
    width: 100%;
    max-width: 600px;
    margin: 1.5rem auto;
    display: block;
    border-radius: 50px;
}

/* Hotel List */
#hotel-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.hotel-card {
    width: 100%;
    max-width: 500px;
    text-align: center;
    font-family: 'MyFont2', sans-serif;
}

.hotel-image {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.hotel-name {
    font-size: 1.4em;
    margin-bottom: 0.5rem;
}

.hotel-label {
    font-size: 1em;
    color: #555;
    margin-bottom: 0.75rem;
}

.hotel-link {
    font-size: 0.95em;
    color: var(--button-text);
    text-decoration: underline;
}

/* RSVP Buttons */
.button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 999px;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

/* Default RSVP button */
.rsvp-buttons .button {
    display: block;
    width: 85%;
    margin: 1rem auto;
    border-radius: 999px;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
}

/* Selected state (persistent darker green) */
.rsvp-buttons .button.selected {
    background-color: #4F7739;
    /* darker green */
    color: #fff;
}

/* RSVP Shine Effect */
#RSVP-Button {
    width: 30%;
    margin: 1rem auto;
    display: block;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 999px;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#RSVP-Button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
    transform: skewX(-20deg);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}

/* Down Arrow Bounce */
#DownArrow {
    width: 40px;
    height: auto;
    margin: 2rem auto 1rem auto;
    /* top, horizontal, bottom */
    display: block;
    animation: bounce 1.5s infinite;

}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* FAQ Section */
#section-6 {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    margin-bottom: 0px;
    margin-top: 200px;
}

#Title-8 {
    font-size: 2.5em;
    max-width: 800px;
    width: 100%;
    text-align: left;
}

#Title-2 {
    font-size: 2.5em;
    max-width: 800px;
    width: 100%;
}

.faq-item {
    max-width: 800px;
    width: 100%;
    margin-bottom: 2rem;
    text-align: left;
}

.faq-question {
    font-family: 'MyFont2', sans-serif;
    color: black;
    font-size: 1.2em;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.faq-answer {
    font-family: 'MyFont2', sans-serif;
    font-size: 1em;
    margin-bottom: 1.5rem;
}

.mobile-break {
    display: none;
}

.pc-break {
    display: inline;
}

@media (min-width: 769px) {
    #DownArrowHome {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .mobile-break {
        display: inline;
    }

    .pc-break {
        display: none;
    }

    .scrollable {
        width: 100%;
        height: auto;
    }

    .font2 {
        font-size: 18px;
    }

    .button,
    #RSVP-Button {
        width: 90%;
        font-size: 1.1rem;
        margin-top: 75px;
    }

    .input-box,
    .textarea-box {
        width: 95%;
        font-size: 1rem;
    }

    .hotel-card {
        max-width: 100%;
    }

    .hotel-info {
        flex-direction: row;
        /* keep them side by side */
        justify-content: center;
        align-items: center;
        gap: 2rem;
        /* same spacing as PC */
    }


    .info-item {
        justify-content: center;
    }

    #DownArrow {
        display: none;
    }

    .static-home {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 100vh;
        padding: 0rem 2rem 4rem 2rem;
        margin: 0;
        background-size: cover;
        background-position: center;
    }

    #HomeFrontImage {
        max-width: 80%;
        margin-bottom: 1rem;
        object-fit: contain;
    }

    #Title-0 {
        font-size: 32px;
        white-space: nowrap;
        text-align: center;
        margin: 0;
    }

    #Title-1 {
        margin-bottom: 35px;
    }

    #Date-1 {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    #DownArrowHome {
        width: 40px;
        height: auto;
        margin-top: 1rem;
        animation: bounce 1.5s infinite;
        display: block;
    }


    .font2.reduced-top-margin,
    .font2.reduced-top-margin.final-line {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    .scrollable {
        width: 100%;
        padding: 2rem 1rem;
    }
}

/* Section spacing */
#section-4-1 {
    margin-top: -100px;
    margin-bottom: 50px;
}

#section-4-2,
#section-4-3 {
    margin-bottom: 50px;
}


/* Input and Textarea Styling */
.input-box,
.textarea-box {
    width: 85%;
    /* unified width for inputs and textareas */
    margin: 0.5rem auto 1.5rem auto;
    display: block;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-family: 'MyFont2', sans-serif;
    text-align: left;
}

.textarea-box {
    min-height: 6rem;
    /* about 3 lines of text */
    resize: vertical;
}

/* Invitee subsections */
.invitee-subsection {
    margin-bottom: 2rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Add Invitee Button aligned left */
#addInviteeBtn {
    margin-top: 1rem;
    align-self: flex-start;
}

/* Labels alignment */
#FoodLabel,
#MessageLabel {
    text-align: left;
    margin: 0.5rem auto 1rem auto;
    display: block;
    width: 85%;
}

/* Button active/darker state */
.button:active {
    background-color: #4F7739;
    /* darker green */
    color: #fff;
}

.hotel-info {
    display: flex;
    justify-content: center;
    /* center horizontally */
    align-items: center;
    /* align vertically */
    gap: 2rem;
    /* space between car and clock items */
    margin: 1rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    /* icon + label aligned vertically */
    font-family: 'MyFont2', sans-serif;
    font-size: 1em;
    color: #555;
}

.info-item .icon {
    margin-right: 0.5rem;
    width: 24px;
    height: 24px;
    stroke: #4F7739;
    /* outline color */
}

.info-item .label {
    text-align: left;
}

.invitee-title {
    margin-bottom: 1rem;
    font-size: 0.75em;
    color: var(--button-text);
    /* same green tone as RSVP buttons */
    text-align: left;
}

#submitResponseBtn {
    margin-top: 1rem;
    align-self: flex-start;
    /* align left like addInviteeBtn */
}