* {
  margin: 0;
  font-size: 1rem;
}
:root {
  --close-time: 200ms;
}
body {
  width: 90vw;
  margin: 10px auto 70px auto;
}

h1 {
  font-size: 2rem;
  padding: 12px;
}

#introduction {
  padding: 12px;
}

/* FAQ style */
#faq-main {
  border: 1px solid #dedee0;
  border-radius: 7px;
  overflow: hidden;
}

/* FAQ question */
.faq-q {
  background-color: #f8ede0;
  font-size: 0.875rem;
  font-weight: bold;
  padding: 12px 56px 12px 12px;
  line-height: 1.4;
  cursor: pointer;
  position: relative;
  border-bottom: 1px solid #dedee0;
  border-right: 1px solid #dedee0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.faq-q:after {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  width: 56px;
  text-align: center;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  font-weight: bold;
  color: #000;
  font-size: 20px;
}
.faq-q-open {
  background-color: #f3ddd7;
}
.faq-q-open:after {
  font-family: sans-serif;
  content: "-";
}

/* FAQ answer */
.faq-a {
  padding: 0 12px;
  background-color: #fffbf4;
  line-height: 1.4;
  border-bottom: 1px solid #dedee0;
  max-height: 0;
  height: fit-content;
  overflow: hidden;
  transition:
    padding var(--close-time) ease-in-out,
    max-height var(--close-time) ease-in-out;
}
.faq-a-open {
  padding: 12px;
  max-height: 100px;
  /* max-height estimated based on actual height */
}
.faq-a-closed {
  /* this class is enabled after the closing animation finishes */
  display: none;
}
.faq-a-container {
  background-color: palegreen;
}

/* @media only screen and (min-width: 768px) {
  body {
    width: 90vw;
    margin: 0 0 0 2vw;
  }
} */
