@font-face {
  font-family: 'Lovers Quarrel';
  src: url('../fonts/LoversQuarrel-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Malibu';
  src: url('../fonts/Malibu.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.rsvp-body {
    display: flex;
    flex-direction: column;
    background-image: url('/images/hero-img1.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: -90px center;
    /* background-color: #f9f4cf */
}

.rsvp-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    justify-content: center;
    text-align: center;
}

.rsvp-header {
    margin-top: 4.5rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-align: center;
    animation-name: slideUp;
    animation-duration: 1s; 
    animation-timing-function: ease-out; 
    animation-fill-mode: forwards; 
}

#rsvp-name h1 {
    font-family: "Malibu", cursive;
    font-size: 90px;
    font-weight: 200;
    color: #373762;
}

.rsvp-header #note {
    font-family: 'Libre Baskerville', serif;
    color: #373762;
    font-weight: 700;
    margin-top: -1rem;
}

#back {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    margin-top: 3rem;
    padding-bottom: 3rem;
    text-align: center;
}

#back:hover {
    transform: translateY(-3px);
}

#back a {
    color: #373762;
    text-decoration: none;
}

#back a:hover {
    color: #297689
}

.rsvp-form {
    display: flex;
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: 4rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
    justify-content: right;
}

#rsvpForm {
    padding: 2rem;
    text-align: left;
    margin-left: auto;
    margin-right: 4rem;
    /* border: dotted 5px #922e42; */
    border-radius: 10px;
    background-color:#f4ecef;
}

label {
    font-family: 'Libre Baskerville', serif;
}

input, select {
    width: 100%;
    height: 25px;
    background-color: #edeae4;
}

textarea {
    width: 100%;
    background-color: #edeae4;
    padding: .5rem;
}

button {
    display: block;
    margin: auto;
    text-align: center;
    padding: .5rem;
    border-radius: 5px;
    background-color: #922e42;
    color: #edeae4;
    font-family: 'Libre Baskerville', serif;
}

button:hover {
    transform: translateY(-3px);
    background-color: #c8558d;
}

.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease;
}

.popup-modal.show {
    opacity: 1;
    pointer-events: all;
}

.popup-content {
    background: #edeae4;
    padding: 20px 25px;
    border-radius: 10px;
    text-align: center;
    max-width: 300px;
    width: 80%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.popup-modal.show .popup-content {
    transform: scale(1);
}

.popup-btn {
    margin-top: 15px;
    padding: 6px 14px;
    background: #787b7f;
    border: none;
    color: #edeae4;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.popup-btn:hover {
    background: #1e2023;
}

/* Animation for the box */
@keyframes popFade {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}


@keyframes slideUp {
  from {
    transform: translateY(100%); /* Start 100% down from its original position */
    opacity: 0; /* Start invisible */
  }
  to {
    transform: translateY(0); /* End at its original position */
    opacity: 1; /* End fully visible */
  }
}

/* //////////////////////////////////// */

@media only screen and (min-width: 280px) and (max-width: 500px) {
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .rsvp-body {
        margin: 0;
        padding: 0;
        width: 100%;
        /* min-height: 100vh; */
        background-image: url('/images/mr-3.webp');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: 30% 70%;
    }

    .rsvp-content {
        display: grid;
        grid-template-columns: 1fr;
        width: 90%;
        height: 100%;
        margin-top: -.5rem;
        padding-right: auto;
        padding-left: auto;
    }

    .rsvp-header {
        margin-top: 5.5rem;
        margin-bottom: 0;
        margin-left: 1rem;
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
        animation-name: slideUp;
        animation-duration: 1s; 
        animation-timing-function: ease-out; 
        animation-fill-mode: forwards; 
    }

    #rsvp-name {
        margin-top: -1rem;
    }

    #rsvp-name h1 {
        font-family: 'Malibu', cursive !important;
        font-size: 55px;
        font-weight: 200;
        line-height: 3.5rem;
        color: #edeae4;
        margin-right: 1rem;
        margin-left: auto;
        margin-top: 18rem;
        margin-bottom: 0;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    .rsvp-header #note {
        font-family: 'Libre Baskerville', serif;
        color: #edeae4;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }

    .rsvp-header #back {
        font-family: 'Libre Baskerville', serif;
        font-weight: 300;
        padding-top: 1rem;
        margin-left: -.5rem;
        color: #373762;
    }

    .rsvp-form {
        display: flex;
        width: 100%;
        height: 100%;
        margin-top: 1rem;
        margin-left: 3rem;
        margin-right: auto;
        justify-content: center;
        text-align: center;
    }

    #rsvpForm {
        width: 80%;
        height: 85%;
        padding: 1rem;
        text-align: center;
        align-items: center;
        border-radius: 10px;
        background-color: #fdedf3;
    }

    label {
       font-family: 'Libre Baskerville', serif;
    }

    input, textarea {
        width: 100%;
        background-color: #edeae4;
    }

    button {
        display: block;
        margin: auto;
        text-align: center;
        padding: .5rem;
        border-radius: 5px;
        background-color: #922e42;
        color: #edeae4;
    }

    #back {
        margin-top: 0;
    }
}


/* //////////////////////////////////// */

@media only screen and (min-width: 600px) and (max-width: 899px) {


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.rsvp-body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-image: url('/images/hero-rsvp.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.rsvp-content {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    height: 100%;
    padding-right: 1.5rem;
    padding-left: auto;
}

.rsvp-header {
    margin-top: 4.5rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    animation-name: slideUp;
    animation-duration: 1s; 
    animation-timing-function: ease-out; 
    animation-fill-mode: forwards; 
}

#rsvp-name h1 {
    width: 100%;
    font-family: 'Water Brush', cursive;
    font-size: 50px !important;
    font-weight: 200;
    color: #5e3c20;
    margin-right: 1rem;
    margin-left: auto;
}

.rsvp-header #note {
    font-family: 'Libre Baskerville', serif;
    color: #5e3c20;
    margin-top: 1rem;
    font-weight: 500;
}

.rsvp-header #back {
    font-family: 'Libre Baskerville', serif;
    font-weight: 500;
    padding-top: 5rem;
}

.rsvp-form {
    display: flex;
    width: 90%;
    height: 100%;
    margin: auto;
    padding-top: 4rem;
    padding-bottom: 3rem;
    padding-left: 2.5rem;
    padding-right: auto;
    justify-content: center;
    text-align: center;
}

#rsvpForm {
    width: 100%;
    height: 100%;
    padding: 1rem;
    margin: 1.5rem;
    text-align: center;
    align-items: center;
    border: solid 5px #5e3c20;
    border-radius: 10px;
    background-color: #f9f4cf;
}

label {
   font-family: 'Libre Baskerville', serif;
}

input, textarea {
    width: 100%;
    background-color: #edeae4;
}

button {
    display: block;
    margin: auto;
    text-align: center;
    padding: .5rem;
    border-radius: 5px;
    background-color: #5e3c20;
    color: #edeae4;
}

button:hover {
    transform: translateY(-3px);
}
}