@font-face {
    font-family: 'PlayfairDisplay';
    src: url('fonts/PlayfairDisplay-MediumItalic.ttf') format('truetype');
}
body{
    background:
            radial-gradient(
                    circle at 15% 10%,
                    rgba(255, 227, 129, 0.25),
                    transparent 28%
            ),
            radial-gradient(
                    circle at 85% 35%,
                    rgba(112, 201, 244, 0.15),
                    transparent 25%
            ),
            radial-gradient(
                    circle at 50% 90%,
                    rgba(255, 159, 178, 0.15),
                    transparent 30%
            ),
            #ebe9dd;
}
#rsvp-button {
    width: 220px;
    height: auto;
    display: block;
    margin: -100px auto;
    cursor: pointer;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.2));
}
#rsvp-button:hover {
    content: url("save-assets/rsvp-button-hover.png");
    transform: scale(1.05);
}
h3 {
    font-size: 30px;
    font-family: 'PlayfairDisplay', sans-serif;

}
h4 {
    font-size: 23px;
    font-family: 'PlayfairDisplay', sans-serif;
}

p {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 25px;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: #0c46a6;
}

a:hover {
    text-decoration: underline;
}
body {
    position: relative;
    overflow-x: hidden;
}

.decoration {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

header,
main,
footer {
    position: relative;
    z-index: 1;
}
.shine-1 {
    width: 190px;
    top: 70px;
    right: 7%;
    transform: rotate(12deg);
}

.star-1 {
    width: 250px;
    top: 420px;
    left: 6%;
    transform: rotate(-15deg);
}

.heart-1 {
    width: 125px;
    top: 760px;
    right: 8%;
    transform: rotate(14deg);
}
@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(var(--rotation));
    }

    50% {
        transform: translate(8px, -22px) rotate(var(--rotation));
    }
}
.shine-1 {
    --rotation: 12deg;
    animation: float 3.2s ease-in-out infinite;
    filter: brightness(0) saturate(100%)
    invert(79%) sepia(64%) saturate(500%)
    hue-rotate(350deg) brightness(105%);
}

.star-1 {
    --rotation: -15deg;
    animation: float 4.5s ease-in-out infinite;
    filter: brightness(0) saturate(100%)
    invert(77%) sepia(40%) saturate(900%)
    hue-rotate(165deg) brightness(100%);
}

.heart-1 {
    --rotation: 14deg;
    animation: float 3.8s ease-in-out infinite;
    filter: brightness(0) saturate(100%)
    invert(75%) sepia(20%) saturate(1200%)
    hue-rotate(310deg) brightness(105%);
}

#rsvp-link {
    display: block;
    width: 220px;
    margin: 40px auto;
}
#rsvp-link:hover {
    text-decoration: none;
}
#ysys{
    text-align: center;
    margin: 20px auto;
}
.card {
    animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
header{
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}
main {
    max-width: 800px;
    margin: 10px auto;
    padding: 20px;
}
#save-logo{
    width: clamp(300px, 85vw, 600px);
    height: auto;
    display: block;
    margin: 80px auto;
}
mark {
    background-color: #ffe381;
    color: #d63031;
    padding: 2px 6px;
    border-radius: 4px;
}
#save-introduction {
    width: 120%;
    max-width: 800px;
    aspect-ratio: 2 / 1;
    background-image: url("save-assets/save-introduction.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    margin: 10px auto;
    animation: none;
    transform: translate(0, -80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#save-introduction p {
    width: 80%;
    text-align: center;
}
#how-it-works{
    border: 5px solid #FF5665;
    border-radius: 50px;
    background-color: #fff3f4;
    margin: 150px auto;
    padding: 20px 60px;
    max-width: 800px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
#how-it-works h3{
    font-size: 35px;
}
#how-it-works details {
    border-top: 2px solid rgba(225, 55, 78, 0.25);
}
#how-it-works details:last-child {
    border-bottom: 2px solid rgba(225, 55, 78, 0.25);
}
#how-it-works summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 5px;

    cursor: pointer;

    font-size: 23px;
    font-weight: bold;

    list-style: none;

    transition: color 0.2s ease;
}
#how-it-works summary::-webkit-details-marker {
    display: none;
}
#how-it-works .arrow {
    font-size: 28px;
    font-weight: normal;

    transition: transform 0.25s ease;
}
#how-it-works summary:hover {
    color: #FF5665;
}
#how-it-works details[open] .arrow {
    transform: rotate(45deg);
}
#how-it-works details p {
    margin: 0;
    padding: 0 45px 25px 5px;

    font-size: 19px;
    line-height: 1.6;
}
#faq {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    display: flex;
    flex-direction: column;
}
#faq h3 {
    font-size: 35px;
    text-align: center;
}
.faq-question img,
.faq-answer img {
    width: min(800px, 42vw);
    height: auto;
    display: block;
}
.faq-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.faq-question {
    align-self: flex-start;
    margin-left: 4vw;
    position: relative;
}
.faq-question span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: clamp(16px, 3.4vw, 40px);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    text-align: center;
    width: 65%;
}
.faq-answer {
    align-self: flex-end;
    margin-right: 2vw;
    position: relative;
}
.faq-answer span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font-size: clamp(8px, 1.7vw, 20px);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    text-align: center;
    width: 65%;
}
@media (max-width: 600px) {
    h3 {
        font-size: 25px;
    }
    p {
        font-size: 20px;
    }
    #rsvp-button {
        margin: 0px auto;
    }
    #how-it-works {
        margin: 250px auto;
    }
    #how-it-works h3{
        font-size: 30px;
        text-align: center;
    }
    .shine-1 {
        width: 65px;
        top: 80px;
        right: 3%;
        top: -20px;
    }

    .star-1 {
        width: 55px;
        top: 430px;
        left: 5%;
        top: 200px;
    }

    .heart-1 {
        width: 50px;
        top: 700px;
        right: 3%;
    }

    .faq-question img,
    .faq-answer img {
        width: 80vw;
    }

    .faq-item {
        flex-direction: column;
        align-items: center;
    }

    .faq-question {
        align-self: center;
        margin-left: 0;
    }

    .faq-answer {
        align-self: center;
        margin-right: 0;
    }

    #save-introduction {
        width: 100%;
        max-width: 800px;
        aspect-ratio: 2 / 1;
        background-image: url("save-assets/save-introduction.png");
        background-size: 100% 100%;
        margin: 20px auto;
        transform: translate(0px, 10px);
    }

    #save-introduction p {
        width: 80%;
        font-size: 13px;
        text-align: center;
    }

}
