@import url("https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

/* 
- White: #ffffff
- Purple 100: #f9f0ff
- Purple 600: #8c6991
- Purple 950: #2f1533

- Weights: 400, 600, 700
 */

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

html {
  background-color: #f9f0ff;
}

body {
  position: relative;
  font-family: "Work Sans", sans-serif;
  font-weight: 400;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(../assets/images/background-pattern-desktop.svg);
  background-repeat: no-repeat;
  background-size: contain;
}

h1 {
  font-size: 3.25rem;
  font-weight: 700;
  color: #2f1533;
}

h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #2f1533;
  transition: color 0.3s ease-in-out;
}

p {
  color: #8c6991;
  line-height: 1.5;
  animation: fadeIn 0.4s ease-out forwards;
}

.faq-card {
  background: #ffffff;
  display: flex;
  gap: 2rem;
  width: 600px;
  flex-direction: column;
  padding: 2rem;
  border-radius: 0.5rem;
}

.faq-card header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.faq-card header img {
  width: 2rem;
}

.faq-items-container {
display: flex;
gap: 3rem;
flex-direction: column;
}

.faq-items-container article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  cursor: pointer;
}

.faq-item-header:hover h2 {
  color: #8c6991;
}

.hidden {
  display: none;
}

/* Attribution */
.attribution {
  position: absolute;
  width: 100%;
  bottom: 5px;
  font-size: 11px;
  text-align: center;
}

.attribution a {
  color: #3e52a3;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 645px) {
  body {
    background-image: url(../assets/images/background-pattern-mobile.svg);
    padding: 0 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 0.9rem;
  }

  .faq-card header img {
    width: 1.5rem;
  }
  
}