*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.5;
  font-family: system-ui, sans-serif;
}

.wrapper-contents {
  display: grid;
  place-items: center;
  gap: 1rem;
}

h2 {
  font-size: 3rem;
  font-weight: 600;
}

.faq-contents {
  width: min(100% - 1rem, 30rem);
  background-color: #121212;
  color: #ffffff;
  padding: 1em;
  border-radius: .5rem;
}

.faq {
  border: 2px solid #ffffff;
  border-radius: .5rem;
  cursor: pointer;
}

.faq:not(:last-child) {
  margin-bottom: 1em;
}

.question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1em;
  margin-inline: 1em;
}

.question p {
  font-weight: 500;
}

.question .arrow {
  transition: all 200ms ease-in-out;
}

.answer {
  max-height: 0;
  overflow: hidden;
  transition: all 250ms ease-in-out;
}

.answer p {
  padding: 1em;
  padding-top: 0;
  opacity: 0.8;
}

.faq.active>.answer {
  max-height: 30rem;
}

.faq.active>.question .arrow {
  transform: rotate(180deg);
}