@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

*{

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}
body{
    font-family: "Quicksand", serif;
    background: #1c1c1c;
    color:#fff;

}
section{
    min-height: 100vh;
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.title{
    font-size:3rem ;
    margin: 2rem 0rem;
}
.faq
{
    max-width: 700px;
    margin-top: 2rem;
    text-align: justify;
    padding-bottom:1rem ;
    border-bottom: 1px solid #fff;
    cursor: pointer;

}
.question{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question h3 {
    font-size: 1.2rem;

}
.answer p{
    padding-top: 1rem;
    line-height: 1.5;
    font-size: 1rem;
    font-weight: 300;
}
.answer{
    max-height: 0;
    overflow: hidden;
    transition: max-height 1.3s ease;
}
.faq.active .answer{
    max-height: 270px;
    animation: fade 1s ease-in-out;

}

.faq.active svg{
    transform: rotate(180deg);
}

svg{
    transition: transform 0.3s ease-in;
}

@keyframes fade {
    from{
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0px);
    }
    
}

@media(max-width:400px){

    .question h3 {
        font-size: 0.9rem;
    
    }
    .answer p{
        padding-top: 1rem;
        line-height: 1.5;
        font-size: 0.7rem;
        font-weight: 300;
    }
    .title{
        font-size:2.5rem ;
    }

}