*,
::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
@font-face {
  font-family: 'WorkSans';
  src: url('../assets/fonts/WorkSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}
@font-face {
  font-family: 'WorkSans';
  src: url('../assets/fonts/WorkSans-Italic-VariableFont_wght.ttf')
    format('truetype');
  font-weight: 100 900;
  font-style: italic;
}
html,
body {
  width: 100%;
  overflow-y: auto;
  font-size: 16px;
  font-family: 'WorkSans';
}
:root {
  --white: hsl(0, 100%, 100%);
  --purple-100: hsl(275, 100%, 97%);
  --purple-600: hsl(292, 16%, 49%);
  --purple-950: hsl(292, 42%, 14%);
  --violet-600: hsl(281, 83%, 54%);
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--purple-100);
  background-image: url('../assets/images/background-pattern-mobile.svg');
  background-repeat: no-repeat;
  background-size: auto 14.5rem;
  padding: 0 1.5rem;
}
.main-container {
  max-width: 20.4rem;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 8.1rem;
}
.title-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  img {
    width: 1.5rem;
    height: 1.5rem;
  }

  h1 {
    font-size: 2rem;
    color: var(--purple-950);
  }
}
.question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
  p {
    font-size: 1rem;
    color: var(--purple-950);
    font-weight: 600;
  }
  img {
    width: 1.8rem;
    height: 1.8rem;
  }
  .minus-icon {
    display: none;
  }
  p:hover {
    cursor: pointer;
    color: var(--violet-600);
  }
  img:hover {
    cursor: pointer;
  }
}
.answer {
  font-size: 0.875rem;
  color: var(--purple-600);
  line-height: 150%;
  display: none;
}
hr {
  margin: 1.5rem 0;
}

.attribution {
  font-size: 11px;
  text-align: center;
  margin: 1rem 0;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media only screen and (min-width: 25rem) {
  body {
    background-image: url('../assets/images/background-pattern-desktop.svg');
    background-size: contain;
  }
  .main-container {
    max-width: 37.5rem;
    padding: 2.5rem;
    margin-top: 10.43rem;
  }
  .title-container {
    margin-bottom: 2rem;
    img {
      width: 2.5rem;
      height: 2.5rem;
    }
    h1 {
      font-size: 3.5rem;
    }
  }
  .question {
    p {
      font-size: 1.125rem;
    }
  }
  .answer {
    font-size: 1rem;
  }
}
