@font-face {
    font-family: "WorkSans";
    src: url(./assets/fonts/WorkSans-VariableFont_wght.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: "WorkSans", sans-serif;
    font-size: 16px;
}

:root {
    --white: hsl(0, 0%, 100%);
    --light_pink: hsl(275, 100%, 97%);
    --grayish_purple: hsl(292, 16%, 49%);
    --dark_purple: hsl(292, 42%, 14%);
    --pink: #AD28EB
}

main {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background-color: var(--light_pink);
    position: relative;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background {
    background-image: url(./assets/images/background-pattern-desktop.svg);
    background-position: top;
    background-size: cover;
    background-repeat: repeat;
    position: absolute;
    z-index: 1;
    height: 30vh;
    width: 100%;
    top: 0;
    left: 0;
}

.card {
    position: relative;
    z-index: 2;
    background-color: var(--white);
    width: 100%;
    max-width: 42vw;
    max-width: 40rem;
    padding: 2.5rem;
    display: flex;
    flex-flow: column nowrap;
    gap: 2rem;
    border-radius: 1rem;
}

.title {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.title h1 {
    color: var(--dark_purple);
    font-size: 3.5rem;
    font-weight: 700;
}

.title img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
}

.faqs {
    display: flex;
    flex-flow: column nowrap;
    gap: 3rem;
}

.faq {
    display: flex;
    flex-flow: column nowrap;
    gap: 1.5rem;
}


.faq h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: .5rem;
    font-size: 1.125rem;
}

.faq .desc {
    display: none;
    color: var(--grayish_purple);
    line-height: 150%;
}

.faq[explode] .desc {
    display: block;
}

.faq h2:hover {
    color: var(--pink);
}

.faq .img_box {
    min-width: 2.5rem;
    max-width: 2.5rem;;
    height: 2.5rem;
    background-image: url(./assets/images/icon-plus.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.faq[explode] .img_box {
    background-image: url(./assets/images/icon-minus.svg);
}

@media (max-width:1024px) {

    html,
    body {
        font-size: 14px;
    }

    .card {
        max-width: 75vw;
    }
}

@media (max-width:767px) {

    html,
    body {
        font-size: 12px;
    }

    .card {
        max-width: 90vw;
    }
}

@media (max-width:375px) {

    html,
    body {
        font-size: 10px;
    }
}