:root {
    --white: hsl(0, 0%, 100%);
    --light-pink: hsl(275, 100%, 97%);
    --grayish-purple: hsl(292, 16%, 49%);
    --dark-purple: hsl(292, 42%, 14%);
}

@font-face {
    font-family: 'Work Sans';
    src: url('assets\\fonts\\WorkSans-VariableFont_wght.ttf');
    font-weight: 400 600 700;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    width: 100%;
    height: 100%;
    background-color: var(--light-pink);
    font-size: 16px;
    font-family: 'Work Sans', Helvetica, sans-serif;
}

main {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-img {
    background-image: url('assets\\images\\background-pattern-mobile.svg');
    width: 100%;
    height: 30%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.content {
    background-color: var(--white);
    margin: 1.5rem;
    padding: 1.5rem;
    border-radius: 10px;

    box-shadow: 0px 9px 50px 0px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0px 9px 50px 0px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0px 9px 50px 0px rgba(0, 0, 0, 0.3);
}

h1 {
    font-weight: 700;
    font-size: 2rem;
}

h1::before {
    background-image: url('assets\\images\\icon-star.svg');
    background-size: 0.7em;
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    content: "";
    margin-right: 2rem;
}

.question {
    border-top: 1px solid var(--light-pink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.question h2 {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-purple);
}

.question:first-child {
    border-top: none;
}

.question::after {
    content: url("assets\\images\\icon-plus.svg");
    font-size: 2em;
    text-align: center;
    margin-left: 1em;
}

.active::after {
    content: url("assets\\images\\icon-minus.svg");
    font-size: 2em;
    text-align: center;
    margin-left: 1em;
}

.question:hover {
    color: var(--black);
    cursor: pointer;
}

.answer {
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--black);

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}


@media only screen and (min-width: 1440px) {
    .content {
        
        padding: 2rem;
    }
}
