@charset "UTF-8";
@font-face {
    font-family: 'work-sans';
    src: url(assets/fonts/WorkSans-VariableFont_wght.ttf);
}

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

body {
    overflow-x: hidden;
    width: 100vw;
    height: 100vh;
    background-image: url(assets/images/background-pattern-mobile.svg);
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    background-color: hsl(275, 100%, 97%);
}

main {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
h1 {
    color: hsl(292, 42%, 14%);
    padding-bottom: 10px;
    font-family: 'work-sans', sans-serif;
    text-shadow: 0px 1px 1px 1px rgba(0, 0, 0, 0.175);
}
h1 img {
    width: 20px;
    margin: 10px 15px 0px 10px;
}

div.perguntas {
    display: grid;
    grid-template: auto auto / 3fr 1fr;
    padding: 10px;
    border-bottom: 1px solid hsl(275, 100%, 96%);

}

.perguntas:hover {
    cursor: pointer;
}

h4 {
    font-family: 'work-sans', sans-serif;
    font-size: 16px;
    padding-bottom: 10px;
    text-shadow: 0px 1px 1px 1px rgba(0, 0, 0, 0.121);
}

img.mais {
    grid-row: 1/2;
    grid-column: 2/3;
    width: 25px;
    display: block;
    align-self: center;
    justify-self: center;
}

p {
    color: hsl(292, 16%, 49%);
    grid-row: 2/3;
    grid-column: 1/3;
}

p.bloco {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity .15s ease, max-height .15s ease;
}

p.bloco.vis {
    max-height: 500px;
    opacity: 1;
}

article {
    width: 330px;
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.364);
}

#atrib {
    font-family: 'work-sans', sans-serif;
    font-size: 14px;
    text-align: center;
    line-height: 18px;
    color: white;
    background-color: hsl(292, 42%, 14%);
    padding: 8px;
    margin-top: 20px;
    border-radius: 10px;
}

#atrib a {
    color: hsl(294, 26%, 72%);
    text-decoration: none;
}

.perguntas.selecionada {
  background-color: hsl(275, 100%, 98%);
  border-radius: 5px;
  border: 1px solid hsl(292, 42%, 14%);
}


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