.content-wrapper {
  margin: 0 auto;
  max-width: 900px;
  padding: 2rem;
  padding-top: 4rem;
  animation: fadeInUp 0.5s ease-out;
}

.toc {
  border: 1px solid var(--bg-secondary);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.toc h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.toc ul {
  list-style: none;
  margin-left: 0;
  line-height: 1.6rem;
}

.toc > ul {
  margin-left: 0;
}

.toc ul ul {
  margin-left: 1.25rem;
  margin-top: 0.25rem;
}

.toc li {
  margin: 0.25rem 0;
}

.toc a {
  text-decoration: none;
  border-bottom: none;
}

.toc a:hover {
  text-decoration: underline;
  border-bottom: none;
}

h2 {
  font-size: 2rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(52, 152, 219, 0.3);
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

p {
  line-height: 1.5rem;
  margin-left: 0.5rem;
}

hr {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 1rem;
}

strong {
  font-weight: 600;
}

code {
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--text-tertiary);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: "IBM Plex Mono", monospace;
}

pre {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: 0.9rem;
}

/* cyberdream theme for hljs */
.hljs {
  background: #2c3e50;
}

.hljs-string,
.hljs-section,
.hljs-selector-class,
.hljs-template-variable,
.hljs-deletion {
  color: #008b0c;
}

.hljs-built_in {
  color: #d17c00;
}

.hljs-comment {
  color: #7b8496;
}

ul,
ol {
  margin-left: 2rem;
  line-height: 2rem;

  li {
    color: var(--text-secondary);
  }
  li:first-child {
    margin-top: 0.5rem;
  }

  li:last-child {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    padding: 0rem 1.5rem 2rem 1.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .toc {
    padding: 0.75rem 1rem;
  }

  pre {
    font-size: 0.85rem;
    padding: 0.75rem;
  }

  ul,
  ol {
    margin-left: 1rem;
  }
}
