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

* {
    margin : 0;
    padding : 0;
    box-sizing: border-box;
}

:root {
    --white: hsl(0, 100%, 100%);
    --purple-100: hsl(275, 100%, 97%);
    --purple-600: hsl(292, 16%, 49%);
    --purple-950: hsl(292, 42%, 14%);
}

body {
    display: flex;
    justify-content: center;
    align-items: center;

    background-image: url(./assets/images/background-pattern-mobile.svg);
    background-repeat: repeat-x;
    background-color: var(--purple-100);

    height : 100vh;

    font-family: 'Work Sans',sans-serif;
}

main {
    width: 100%;
    background-color: var(--white);
    border-radius: 0.5rem;

    padding : 1.75rem;
    margin : 0 1rem;
}

header {
    display : flex;
    gap : 1.5rem;

    color : var(--purple-950);
    margin-top: 1rem;
}

header img {
    width: 1.75rem;
}

.question-box {
    display : flex;
    justify-content: space-between;
    align-items: center;

    padding : 1.225rem 0;

    border-top : 1px solid var(--purple-100);
}

.item:nth-of-type(1) .question-box{
    border-top: none;
}

.question-box h1 {
    font-size: 1.125rem;
    color : var(--purple-950);
    padding-right: 20px;
}

.answer-box {
    height: 0;
    overflow: hidden;
    transition : height 0.3s ease;
}
.answer {
    font-size: 16px;
    color : var(--purple-600);
    padding : 0 .1rem;
    margin-bottom: 1.5rem;
}

/* utility class */



@media (min-width: 800px) {
    body {
        background-image: url('assets/images/background-pattern-desktop.svg');
    }

    main {
        max-width: 600px;
    }

    header h1 {
        font-size: 3.5rem;
    }

    header img {
        width: 2.5rem;
    }
}