:root {
  --white: hsl(0, 0%, 100%);
  --purple-100: hsl(275, 100%, 97%);
  --purple-600: hsl(292, 16%, 49%);
  --purple-950: hsl(292, 42%, 14%);
}

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

body {
  font-family: "Work Sans", sans-serif;
  background: var(--purple-100);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: start;
  padding: 2rem;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  display: block;
  width: 100%;
  height: 30%;
  background: url("assets/images/background-pattern-desktop.svg") no-repeat top
    center;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.container {
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  margin-top: 140px;
  z-index: 1;
  position: relative;
}

.accordion-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.accordion-header h1 {
  font-size: 3rem;
  color: var(--purple-950);
}

.accordion-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--purple-950);
  padding: 1rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-question:hover,
.accordion-question:focus {
  color: var(--purple-600);
  outline: none;
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s ease, opacity 0.8s ease;
  opacity: 0;
}

.accordion-answer.show {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 1rem;
}

.icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 600px) {
  body::before {
    background-image: url("assets/images/background-pattern-mobile.svg");
    height: 25%;
  }

  .container {
    margin-top: 120px;
  }
}
