/* GENERAL STYLES */

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

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

html,
body {
  height: 100%;
}

body {
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--purple-600);
  background-color: var(--purple-100);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

h1 {
  font-size: 50px;
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  color: var(--purple-950);
}

h2 {
  font-size: 18px;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.5;
  color: var(--purple-950);
}

.container {
  position: relative;
  flex: 1;
}

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

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 150px;
}

/* FAQ CARD */

.box-wrapper {
  background-color: var(--white);
  max-width: 600px;
  height: auto;
  padding: 40px 35px;
  border-radius: 15px;
  margin: 0 30px;
}

.title-wrapper {
  display: flex;
  gap: 30px;
  padding-bottom: 15px;
}

.general-list {
  list-style: none;
}

.question-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--purple-100);
}
.general-list .question-box:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.question-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}
.question-title:hover h2,
img {
  color: rgb(190, 38, 250);
}

.hidden {
  display: none;
}

/* FOOTER */

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

/* QUERIES */

@media (max-width: 650px) {
  .background {
    background-image: url(./assets/images/background-pattern-mobile.svg);
  }

  @media (max-width: 500px) {
    h1 {
      font-size: 40px;
    }

    .box-wrapper {
      padding: 30px 25px;
    }

    .question-box {
      gap: 15px;
      padding: 20px 0;
    }
  }
}
