#viewers {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: auto;
  padding: 50px;
}

#primary {
  padding: 100px;

  h2 {
    border-left: solid 4px var(--primary);
    padding-left: .3em;
  }
}

#config,
h4 {
  margin-top: .5rem;
}

#examples {
  .container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin: auto;
    padding-top: 1rem;

    label {
      margin: auto 0;
    }
  }
}

#citations {
  >div {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 3px;
    border: solid 1px #d9d9d9;
    overflow: hidden;
    margin-top: 2em;
  }

  >div p {
    padding: 1em 2em;
    border-bottom: solid 1px #eee;
  }

  >div p:hover {
    background-color: #fcfcfc;
  }

  >div p:last-of-type {
    border-bottom: none;
  }
}

#faq {
  margin-top: 40px;
  padding: 30px 20px;
  border-radius: 8px;
  border: solid 1px var(--accent);
  background-color: var(--background);
  transition: border-color .3s, transform .3s;

  h4 {
    font-size: 20px;
    margin-top: .4em;
    padding-right: 20px;
  }

  ul.accordion {
    list-style: none;
    padding: 0;
    margin: 0;

    li i:before,
    li i:after,
    p {
      transition: all 0.25s ease-in-out;
    }

    li {
      animation: flipdown 0.5s ease both;
      position: relative;
      padding: 0;
      margin: 0;
      padding-bottom: 4px;
      padding-top: 18px;
      border-top: 1px dotted var(--accent);

      i {
        position: absolute;
        transform: translate(-6px, 0);
        margin-top: 16px;
        right: 0;
      }

      i:before,
      i:after {
        content: "";
        position: absolute;
        background-color: var(--primary);
        width: 3px;
        height: 9px;
      }

      i:before {
        transform: translate(-2px, 0) rotate(45deg);
      }

      i:after {
        transform: translate(2px, 0) rotate(-45deg);
      }

      input[type=checkbox] {
        position: absolute;
        cursor: pointer;
        width: 100%;
        height: 100%;
        z-index: 1;
        opacity: 0;
      }

      input[type=checkbox]:checked~p {
        margin-top: 0;
        max-height: 0;
        opacity: 0;
        transform: translate(0, 50%);
      }

      input[type=checkbox]:checked~i:before {
        transform: translate(2px, 0) rotate(45deg);
      }

      input[type=checkbox]:checked~i:after {
        transform: translate(-2px, 0) rotate(-45deg);
      }
    }

    li:last-of-type {
      padding-bottom: 0;
    }

    p {
      color: var(--on-surface);
      font-size: 17px;
      line-height: 26px;
      letter-spacing: 1px;
      position: relative;
      overflow: hidden;
      max-height: 800px;
      opacity: 1;
      transform: translate(0, 0);
      margin-top: 14px;
      z-index: 2;
    }
  }
}