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

:root{
    --White: hsl(0, 0%, 100%);
    --Lightpink: hsl(275, 100%, 97%);
    --Grayishpurple: hsl(292, 16%, 49%);
    --Darkpurple: hsl(292, 92%, 45%);
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Work Sans", serif;
    font-size: 16px;
}

#pattern{
    background-image: url(images/background-pattern-desktop.svg);
    background-repeat: no-repeat;
    background-size: contain;
    max-width: 100vw;
    min-height: 100vh;
}

#main{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    
}

#card{
    background-color: var(--White);
    border-radius: 1rem;
    width: 550px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 11rem;
    height: fit-content;
}

#top{
    display: flex;
    gap: 1rem;
    align-items: center;
}

#toptext{
    font-size: 3rem;
    font-weight: 600;
}

.qacontainer{
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.questions{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.qtext{
    font-weight: 600;
}

.answers{
    display: none;
    color: var(--Grayishpurple);
}

.qtext:hover{
    color: var(--Darkpurple);
}

.questions:hover{
    cursor: pointer;
}


@media (max-width:900px){
    #pattern{
        background-image: url(images/background-pattern-mobile.svg);
        background-position: 0px -200px;
    }
}

@media (max-width:600px){
    #pattern{
        background-image: url(images/background-pattern-mobile.svg);
        background-position: 0px 0px;
    }

    #card{
        width: 90%;
    }

    #toptext{
        font-size: 2rem;
    }
}