:root{
    --White: hsl(0, 100%, 100%);
    --Purple100: hsl(275, 100%, 97%);
    --Purple600: hsl(292, 16%, 49%);
    --Purple950: hsl(292, 42%, 14%);
}

*{
    margin: 0;
    padding: 0;
    
}

body{
    position: relative;
    height: 100vh;
    box-sizing: border-box;
    font-family: 'Work Sans',monospace;
}

.backgroundScreen{
    position: absolute;
    width: 23.4375em;
    height: 50.75em;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    flex-direction: column;

}

.pattern{
    content: url('../assets/images/background-pattern-mobile.svg');
    width: 100%;
    height: 28.32%;
}

.colorBack{
    background-color: var(--Purple100);
    width: 100%;
    height: calc(100% - 28.32%);
}

main{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    height: 33.125em;
    width: 20.625em;
    background-color: var(--White);
    border-radius: 0.5em;
}

article{
    padding: 1.56em;
}

header{
    display: flex;
    justify-items: center;
    align-items: center;
    gap: 1.875em;
}

header .star{
    width: 1.875em;
    height: 1.875em;
}

header .head{
    font-size: 3.125em;
    font-weight: 700;
}

header .head:focus{
    outline: 2px solid var(--Purple950);
}

.section{
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--Purple100);
    padding-top: 1.2em;
    padding-bottom: 1.2em;    
}


nav .section:last-child{
    border-bottom: none;
}

.section .question-icon{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1.20em;
}

.question{
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
}

.question:focus{
    outline: 2px solid var(--Purple950);
}

.icon{
    content: url('../assets/images/icon-plus.svg');
    cursor: pointer;
}

.icon:focus{
    outline: 2px solid var(--Purple950);
}

.answer{
    font-size: .9em;
    font-weight: 400;
    line-height: 1.5;
    color: var(--Purple600);
    cursor: pointer;
}




/* --- RESPONSIVE DESIGN ---*/

@media (min-width:48em){
    .backgroundScreen{
        width: 90em;

    }

    .pattern{
        content: url('../assets/images/background-pattern-desktop.svg');
        object-fit: cover;
    }

    .colorBack{
        width: 90em;
    }

    main{
        height: 35em;
        width: 37.5em;
    }

    article{
        padding: 3.43em 2.81em 2.81em 2.5em;
    }

    .section .question-icon{
        gap: 0;
    }

    nav{
        padding-top: 1.31em;
    }

    .answer{
        font-size: 1em; 
    }
}