@font-face {
    font-family: 'Caveat';
    src: url('caveat.ttf') format('truetype');
}

body {
    font-family: 'Caveat', cursive;
    text-align: center;
    margin: 0;
}

#hero-banner {
    width: min(900px, 100vw);
}

@media (min-width: 900px) {
    #footer,
    #hero-banner {
        border-radius: 10px !important;
    }
}

#hearts {
    width: 80px;
    margin: auto;
    display: block;
}
p {
    font-size: 40px;
}

#rsvp-launch {
    position: absolute;
    right: 10%;
    top: 20%;
    background-color: white;
    border: none;
    border-radius: 15px;
    padding: 10px;
    padding-left: 40px;
    padding-right: 40px;
    box-shadow: 3px 7px 4px 0px rgba(0,0,0,0.25);
    font-family: 'Caveat', cursive;
    color: #262626;
    font-size: 40px;
    cursor: pointer;
}

#hero-container {
    position: relative;
    width: fit-content;
    margin-inline: auto;
}

@media (max-width: 600px) {
    #rsvp-launch {
        bottom: 20%;
        top: unset;
        right: unset;
        left: 10%;
    }

}

#rsvp-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-in, visibility 0.2s;
}

#rsvp-background.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.rsvp-modal {
    width: min(700px, 90%);
    height: min(700px, 90%);
    background-color: RGBA(255,255,255,0.9);
    border-radius: 15px;
    display: none;
    flex-direction: column;
    padding: 10px;
    box-shadow: 3px 7px 4px 0px rgba(0,0,0,0.25);
    position: relative;
}

#rsvp-modal-body {
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    overflow: scroll;
}

#rsvp-modal-body p {
    font-size: 20px;
    padding: unset;
    margin-bottom: 7px;
    font-weight: normal;
}

#rsvp-modal-body div {
    width: 100%;
    display: flex;
    align-items: center;
}

#rsvp-modal-guest-names {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#rsvp-modal-body textarea,
#rsvp-modal-body input[type=text] {
    font-size: 18px;
    padding: 10px;
    border-radius: 10px;
    border: 3px solid #E3E3E3;
    flex-grow: 1;
}

#rsvp-modal-body textarea {
    resize: vertical;
}

#footer {
    display: inline-block;
    background-color: #e3e3e3;
    padding: 20px;
    border-radius: 0px;
}

.x-icon {
    margin-left: 10px;
    height: 80%;
    cursor: pointer;
}

#rsvp-add-guest {
    cursor: pointer;
    color: #2A5B8A;
}

#rsvp-submit {
    border: none;
    background-color: #273951;
    color: white;
    font-weight: bold;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.checkbox {
    margin-top: 5px;
    margin-bottom: 5px;
    user-select: none;
}

.checkbox input[type=checkbox] {
    height: 20px;
    width: 20px;
    margin-right: 10px;
    pointer-events: none; /*prevent double event since the entire div is attached to this*/
    box-sizing: content-box;
    flex-shrink: 0;
}

#rsvp-date {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    font-weight: bold;
}

#confirmation {
    display: none;
}

/*BEGIN LOADER*/
.loader {
    width: 30px;
    height: 30px;
    border: 5px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/*END LOADER*/

.close-modal {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}
