* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
}

header {
    background-image: url('./assets/images/background-pattern-mobile.svg');
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 200px;
}

header svg {
    width: 100%;
}

main {
    width: 100%;
    min-height: 100vh;
    background-color: hsl(275, 100%, 97%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.faq-container {
    width: 90%;
    max-width: 600px;
    margin: auto;
    margin-top: -100px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 3px 3px 50px 20px hsla(293, 16%, 49%, 0.171);
    background-color: hsl(0, 100%, 100%);
}

@font-face {
    font-family: "WorkSans";
    src: url('./assets/fonts/static/WorkSans-Bold.ttf') format("truetype");
    font-weight: bold;
}

.faq-container h1 {
    font-family: "WorkSans", sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: hsl(292, 42%, 14%);
}

@font-face {
    font-family: "WorkSans";
    src: url("./assets/fonts/static/WorkSans-SemiBold.ttf") format("truetype");
    font-weight: 950;
}

.faq-container h2 {
    font-family: "WorkSans", sans-serif;
    font-weight: bold;
    font-size: 1rem;
    color: hsl(292, 42%, 14%);
}

/* Responsive */
@media (min-width: 769px) {
    header {
        background-image: url('./assets/images/background-pattern-desktop.svg');
        background-repeat: no-repeat;
        background-size: cover;
        width: 100%;
        height: 300px;
    }
    .faq-container {
        padding: 30px;
    }
    .faq-container h1 {
        font-size: 3rem;
    }
    .faq-container h2 {
        font-size: 1.1rem;
    }
}

@font-face {
    font-family: "WorkSans";
    src: url("./assets/fonts/WorkSans-VariableFont_wght.ttf") format("truetype");
    font-weight: normal;
}

.faq-container p {
    font-family: "WorkSans", sans-serif;
    font-weight: normal;
    font-size: 1rem;
    color: hsl(292, 16%, 49%);
    margin-bottom: 20px;
}

.faq-heading {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.faq-item {
    border-bottom: 1px solid hsl(275, 100%, 97%);
    padding: 0 10px;
}

.faq-item:hover {
    background-color: hsl(275, 100%, 97%);
    transition: 0.2s ease;
    border-radius: 5px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 30px 0;
}

.faq-question:hover h2 {
    color: hsl(293, 60%, 60%);
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding-bottom 0.4s ease;
    padding-bottom: 0;
}

.faq-answer.show {
    max-height: 150px;
    opacity: 1;
    padding-bottom: 20px;
}

.faq-icons {
    display: flex;
    justify-content: flex-end;
}

.icon-minus {
    display: none;
}

.icon-plus {
    display: block;
}

.show {
    display: block;
}

.hide {
    display: none;
}

.attribution {
    padding: 1em;
    font-family: "WorkSans", sans-serif;
    font-weight: normal;
    font-size: 0.8rem;
    text-align: center;
    color: hsl(0, 100%, 100%);
    background-color: hsl(292, 42%, 14%);
}

.attribution a {
    color: hsl(0, 100%, 100%);
}

.attribution a:hover {
    color: hsl(293, 40%, 76%);
}