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

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    min-height: 100vh;
   background-color: white;
   font-family: 'my font', sans-serif;
   background-color: hsl(275, 100%, 97%);
}
.background-container{
    width: 100%;
    height: 200px;
   
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 2px solid violet; */

}
.background-container picture img{
    width: 100%;
    object-fit: cover;
    object-position: center;
    top: 0;
    left: 0;
    position: absolute;
    max-height: 200px;
}
.faq-accordion{
    position: absolute;
    top: 65%;
    width: 95%;
    max-width: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    overflow: hidden;
    padding: 20px;
    /* display: none; */

}
.faq-answer{
    /* display: none; */
    line-height: 20px;
    padding-bottom: 15px;
    font-size: 0.8rem;
    color: hsl(292, 16%, 49%);
}
.faq-question{
    font-size: 0.3rem;
    color: hsl(292, 42%, 14%);


}
.faq-accordion .flex{
    display: flex;
    align-items: center;
    gap: 20px;
    padding:15px 0;
    img{
        width: 20px;
    }
    h1{
        font-weight: bold;
        color: hsl(292, 42%, 14%);
    }
}
.faq-item{
    margin: 12px 0;
    border-bottom: rgb(237, 235, 235) 0.5px solid;
}
.faq-accordion .flex-2{
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* gap: 10px; */
    img{
        width: 25px;
        cursor: pointer;
        margin-bottom: 10px;
        position: sticky;
    }
  
    h2{
        font-size: 0.9rem;
        color: hsl(292, 42%, 14%);
        font-weight: bold;
        margin-bottom: 15px;
        /* width: 360px; */
    }
  
}

.none{
    border: none;
}

.accordion-container{
    height: 0;
    overflow: hidden;
    transition: height 5s ease-out;
}
.accordion-container.active{
    height: auto;
    transition: height 0.5s ease-in-out;
}

@media screen and (min-width: 768px){
    .faq-accordion{
        width: 90%;
        max-width: 60%;
    }
    
    .background-container picture img{
        min-height: 15rem;
    }
    .faq-accordion .flex-2 h2{
        font-size: 0.8rem;
    }
    .faq-answer{
        font-size: 0.9rem;
        line-height: 25px;
        max-width: 90%;
    }
    .faq-accordion .flex-2 h2{
        font-size: 1.2rem;
    }
    .faq-item{
        margin: 40px 5px;
    }
    
}
