/* Header styling */
header {
  background-color: var(--white);
  border-bottom: 1px solid var(--off-white);
  padding: 40px 0;
  text-align: center;
  box-shadow: 0 1px 10px var(--transparent-black);
}

h1 {
  font-size: 2.2rem;
  font-weight: 500;
  margin: 0;
  color: var(--black);
  font-family: "Roboto Mono", monospace;
}

/* Documentation Section */
.documentation {
  max-width: 800px;
  margin: 50px auto;
  padding: 0 20px;
}

h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #555;
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: 1px;
  font-family: "Roboto Mono", monospace;
}

h3 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--black);
  margin: 30px;
  text-align: center;
  letter-spacing: 1px;
  font-family: "Roboto Mono", monospace;
}

p {
  font-family: "Roboto Mono", monospace;
  font-size: 1rem;
}

ul {
  margin-left: 1rem;

  li {
    list-style: circle;
  }
}

img {
  max-width: 80%;
  margin: 0 auto;
}

/* Doc-item styling */
.doc-item {
  border-radius: 8px;
  box-shadow: 0 1px 2px var(--transparent-black);
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.1s ease;
}

.collapsible {
  background-color: var(--off-white);
  color: var(--black);
  cursor: pointer;
  padding: 20px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease, color 0.1s ease;
}

.collapsible:hover {
  background-color: var(--off-white);
}

/* Caret SVG styling */
.caret {
  fill: var(--default-link-color);
  transition: transform 0.3s ease, fill 0.3s ease;
  width: 20px;
  height: 20px;
}

.content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  background-color: var(--off-white);
  border-top: 1px solid var(--darker-off-white);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  transition: max-height 0.2s ease-out, padding 0.1s ease;
}

.content p {
  margin: 20px 0 0;
}

/* Rotate SVG caret when active */
.collapsible.active .caret {
  transform: rotate(90deg);
  fill: var(--accent-color); /* Changes color when active */
}

/* Expand the content smoothly */
.collapsible.active + .content {
  max-height: 500px; /* Set to a value large enough to fit your content */
  padding-bottom: 20px; /* Add padding to the content when it's opened */
}
