@import url('https://fonts.googleapis.com/css2?family=Overpass:ital,wght@0,100..900;1,100..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root{

    /* Colors */
    --White: hsl(0, 0%, 100%);
    --Light-pink: hsl(275, 100%, 97%);
    --Grayish-purple: hsl(292, 16%, 49%);
    --Dark-purple: hsl(292, 42%, 14%);
    
    /* Fonts */
    --font-Work-Sans:'Work Sans'
}

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

* {
    margin: 0;
}
  
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
  
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}
  
input, button, textarea, select {
    font: inherit;
}
  
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}
  
#root, #__next {
    isolation: isolate;
}
/* end of CSS Reset */

/* mobile size style start */
body{
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: url(../images/background-pattern-mobile.svg);
    background-repeat: no-repeat;
    background-position: top;
    background-color: var(--Light-pink);
    font-family: var(--font-Work-Sans);
}

.faqs-card{
    width: 20.4375rem;
    background-color: var(--White);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 8.875rem;
    box-shadow: rgba(101, 20, 122, 0.1) 0px 25px 35px -5px;
}

.faqs-card-header{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.faqs-card-header-icon{
    width: 1.375rem;
    height: 1.3125rem;
    margin-right: 1.4rem;
}

.faqs-card-header-text{
    font-weight: 700;
    font-size: 2rem;
    color: var(--Dark-purple);
}

ul{
    list-style: none;
    padding-left: 0rem;
}

.faqs-list-item{
    padding: 1.5rem 0rem;
    border-bottom: 2px solid var(--Light-pink);
}

.faqs-list-item:last-child{
    border-bottom: none;
}

.item-question{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.question-text{
    width: 14rem;
    border: none;
    background: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--Dark-purple);
    transition: all 0.2s;
}

.question-text-active{
    color: #9E36CB;
    transition: all 0.2s;

}

.item-button{
    border: none;
    background: none;
    padding: 0rem;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 50%;
    background: url(../images/icon-plus.svg);
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.2s;
    
}

.minus-icon{
    background: url(../images/icon-minus.svg);
    background-position: center;
    background-repeat: no-repeat;
}

.item-answer{
    opacity: 0;
    visibility: hidden;
    height: 0px;
    max-height: fit-content !important;
    transition: all .3s;
}

.item-answer-active{
    opacity: 1;
    visibility: visible !important;
    max-height: fit-content !important;
    height: 9.375rem ;
}

.answer-text{
    font-weight: 400;
    font-size: 0.875rem;
    padding-top: 1.5rem;
    color: var(--Grayish-purple);
}

footer{
    margin-top: 1rem;
}
/* mobile size style end */

/* desktop size style start */

@media only screen and (min-width:23.5rem) {
    body{
        background: url(../images/background-pattern-desktop.svg);
        background-position: top;
        background-repeat: repeat-x;
        background-color: var(--Light-pink);
    }
}

@media only screen and (min-width:48rem) {

    .faqs-card{
        width: 37.5rem;
        padding: 2rem 2.375rem 1rem 2.375rem;
        border-radius: 1rem;
        margin-top: 10.4375rem;
    }

    .faqs-card-header{
        margin-bottom: 0.2rem;
    }

    .faqs-card-header-icon{
        width: 2.5rem;
        height: 2.5625rem;
    }

    .faqs-card-header-text{
        font-size: 3.375rem;
    }

    .faqs-list-item{
        padding: 1.5625rem 0rem;
    }

    .question-text{
        width: fit-content;
        font-size: 18px;
        cursor: pointer;
    }

    .question-text:hover{
        color: #9E36CB;
    }

    .item-button:hover{
        cursor: pointer;
    }

    .item-answer-active{
        height: 7.5rem ;
    }
    .answer-text{
        font-size: 1rem;
    }
    
}

/* desktop size style end */

