@import url('https://fonts.cdnfonts.com/css/melinda-2');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.rsvp-body {
    background-image: url('/images/hero-img - Copy.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.rsvp-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 80%;
    height: 100%;
    padding-left: 2rem;
}

.rsvp-header {
    margin-top: 5.5rem;
    margin-left: 2rem;;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: right;
    animation-name: slideUp;
    animation-duration: 1s; /* The animation will take 1 second to complete */
    animation-timing-function: ease-out; /* Controls the speed curve of the animation */
    animation-fill-mode: forwards; /* The element retains the styles from the last keyframe when the animation ends */
}

h1 {
    font-family: 'Melinda', sans-serif;
    font-size: 70px;
    font-weight: 200;
    color: #2a5b61;
}

.rsvp-header #note {
    font-family: 'Source Sans 3', sans-serif;
    color: #2a5b61;
    margin-top: -1rem;
}

.rsvp-header #back {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    padding-top: 5rem;
}

.rsvp-form {
    display: flex;
    width: 100%;
    height: 100%;
    margin: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
    justify-content: end;
}

#rsvpForm {
    margin-top: 1rem;
    padding: 2rem;
    text-align: left;
    align-items: end;
    border: solid 5px #2a5b61;
    border-radius: 10px;
    background-color: #f9f4ed;
}

label {
    font-family: 'Source Sans 3', sans-serif;
}

input, textarea {
    width: 100%;
    background-color: #f9f4ed;
}

button {
    display: block;
    margin: auto;
    text-align: center;
    padding: .5rem;
    border-radius: 5px;
    background-color: #2a5b61;
    color: #d8eeef;
}


@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/hero-img - Copy.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.rsvp-content {
    display: grid;
    grid-template-columns: 1fr;
    width: 90%;
    height: 100%;
    padding-right: 2rem;
    padding-left: auto;
}

.rsvp-header {
    margin-top: 5.5rem;
    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 h1 {
    font-family: 'Melinda', sans-serif !important;
    font-size: 50px;
    font-weight: 200;
    color: #2a5b61;
    margin-right: 1rem;
    margin-left: auto;
}

.rsvp-header #note {
    font-family: 'Source Sans 3', sans-serif;
    color: #2a5b61;
    margin-top: 1rem;
}

.rsvp-header #back {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
    padding-top: 4rem;
    margin-left: -.5rem;
}

.rsvp-form {
    display: flex;
    width: 100%;
    height: 100%;
    margin: auto;
    padding-top: 1.5rem;
    padding-bottom: 4rem;
    padding-left: 2.5rem;
    padding-right: auto;
    justify-content: center;
    text-align: center;
}

#rsvpForm {
    padding: 1rem;
    text-align: center;
    align-items: center;
    border: solid 5px #2a5b61;
    border-radius: 10px;
    background-color: #f9f4ed;
}

label {
    font-family: 'Source Sans 3', sans-serif;
}

input, textarea {
    width: 100%;
    background-color: #f9f4ed;
}

button {
    display: block;
    margin: auto;
    text-align: center;
    padding: .5rem;
    border-radius: 5px;
    background-color: #2a5b61;
    color: #d8eeef;
}
}


/* //////////////////////////////////// */

@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-img - Copy.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.rsvp-content {
    display: grid;
    grid-template-columns: repeat(2,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: 'Melinda', sans-serif;
    font-size: 50px !important;
    font-weight: 200;
    color: #2a5b61;
    margin-right: 1rem;
    margin-left: auto;
}

.rsvp-header #note {
    font-family: 'Source Sans 3', sans-serif;
    color: #2a5b61;
    margin-top: 1rem;
}

.rsvp-header #back {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
    padding-top: 5rem;
}

.rsvp-form {
    display: flex;
    width: 100%;
    height: 100%;
    margin: auto;
    padding-top: 4rem;
    padding-bottom: 3rem;
    padding-left: 1.5rem;
    padding-right: auto;
    justify-content: right;
    text-align: center;
}

#rsvpForm {
    width: 100%;
    height: 100%;
    padding: 1rem;
    margin: 1.5rem;
    text-align: center;
    align-items: center;
    border: solid 5px #2a5b61;
    border-radius: 10px;
    background-color: #f9f4ed;
}

label {
    font-family: 'Source Sans 3', sans-serif;
}

input, textarea {
    width: 100%;
    background-color: #f9f4ed;
}

button {
    display: block;
    margin: auto;
    text-align: center;
    padding: .5rem;
    border-radius: 5px;
    background-color: #2a5b61;
    color: #d8eeef;
}
}