@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@100..900&display=swap');
:root{
    /* colors */
    --White: hsl(0, 100%, 100%);
    --hover-color: #9b35ca;
    --Purple-100: hsl(275, 100%, 97%);
    --Purple-600: hsl(292, 16%, 49%);
    --Purple-950: hsl(292, 42%, 14%);
    --faq-color: hsl(294, 40%, 10%);
    --question-color: hsl(295, 12%, 22%);
} 
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Work Sans', sans-serif;
}
body{
    background-color: var(--Purple-100); 
}
.desktop-bg .desktop{
    display: block;
}
.mobile-bg .mobile{
    display: none;
}
.desktop{
    width: 100%;
}
.container{
    width: 500px;
    margin: 0 auto;
    justify-self: center;
    padding: 10px 30px;
    background-color: var(--White);
    color: black;
    border-radius: 15px;
    position: relative;
    bottom: 110px;
    line-height: 1.2;
    box-shadow: -11px 15px 92px -11px hsl(292deg 16% 49% / 30%), 0px 10px 23px 4px #9f94c145
}

.faq-header{
    display: flex;
    margin: 6px;
    font-size: 21px;
    color: var(--faq-color);
    gap: 26px;
}
.faq-header img{
    width: 30px;
}
.faq-header img:hover{
    cursor: pointer;
}
.faq-item{
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid hsl(0, 0%, 98%);
}
.faq-item:last-child{
    border-bottom: none;
}

.faq-question{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-question h2{
    font-size: 14px;
    font-weight: bold;
    color: var(--question-color);
}
.faq-question h2:hover{
    cursor: pointer;
    color: var(--hover-color);
}
.faq-answer{
    margin-top: 10px;
    font-size: smaller;
    font-weight: 400;
    color: var(--Purple-600);
    line-height: 1.5;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
}
.faq-question.active + .faq-answer {
    max-height: 500px;
}

.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }

@media (max-width: 600px) {
  .container {
    width: 85%;
    padding: 10px;
    border-radius: 10px;
  }
  
    .desktop-bg .desktop {
        display: none;
    }
    .mobile-bg .mobile {
        display: block;
        width: 100%;
    }
    .faq-question{
        gap: 45px;
    }
}