* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Work Sans', sans-serif;
}

body {
  display: grid;
  min-height: 100vh;
  place-content: center;
  background-color: hsl(275, 100%, 97%);
  padding-inline: 1.5em;
  padding-block: 4em;
}

.background {
  width: 100%;
  height: 35vh;
  position: absolute;
  top: 0;
  left: 0;
  background-image: url('./assets/images/background-pattern-mobile.svg');
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
}

.accordion {
  max-width: 37.5rem;
  min-height: 23rem;
  background-color: #fff;
  border-radius: 0.7em;
  color: hsl(292, 42%, 14%);
  padding: 3em 2em;
  box-shadow: 1px 1px 10px hsl(292, 16%, 49%);
}

.accordion-header {
  display: flex;
  gap: 20px;
  margin-bottom: 1em;
}

h1 {
  font-size: 2.8rem;
}

.faq {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid hsl(275, 100%, 97%);
}

.question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8em;
  gap: 30px;
  margin-top: 1em;
}

.question img {
  transition: transform 0.3s ease;
}

h2 {
  font-size: 0.9rem;
  color: hsl(292, 42%, 14%);
  opacity: 0.95;
}

h2:hover {
  color: rgb(174, 43, 230);
  cursor: pointer;
}

.answer {
  display: none;
  margin-bottom: 1em;
  color: hsl(292, 16%, 49%);
  transition: transform 0.3s ease-out;
  font-size: 0.8rem;
}

.answer.active {
  display: block;
}

.img:active {
  transition: all 0.3s;
}

footer {
  padding-top: 3em;
}

@media (min-width: 28.125em) {
  body {
    padding-block: 0em;
  }
  .background {
    background-image: url('./assets/images/background-pattern-desktop.svg');
  }

   h2 {
    font-size: 1.1rem;
  }
  
  .answer {
    font-size: 1rem;
  }
}
