/* GameTorch API Docs styles */

body {
  font-family: "Karla", sans-serif;
  background: #fafafa;
  color: #222;
}

.DocsPage {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem 4rem;
  line-height: 1.6;
}

.DocsPage h1 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.DocsPage h2 {
  margin-top: 2rem;
  font-size: 1.6rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.4rem;
}

.DocsPage h3 {
  margin-top: 1.6rem;
  font-size: 1.25rem;
}

.DocsPage ul {
  list-style: disc inside;
}

.DocsPage code {
    background: #272822;
  color: white;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-family: "SFMono-Regular", Menlo, monospace;
  font-size: 0.95rem;
}

.DocsPage pre {
  background: #272822;
  color: white;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.9rem;
  width: 100%;
  max-width: 100%;
  margin: 0.4rem 0;
  box-sizing: border-box;
}

.DocsPage li {
  margin-bottom: 0.4rem;
}

@media (max-width: 700px) {
  .DocsPage {
    margin: 1rem auto;
    padding: 0 0.75rem 3rem;
  }

  .DocsPage h1 {
    font-size: 1.7rem;
  }

  .DocsPage h2 {
    font-size: 1.35rem;
  }

  .DocsPage h3 {
    font-size: 1.1rem;
  }

  /* Make sure long inline code snippets wrap and blocks scale down */
  .DocsPage code {
    font-size: 0.9rem;
    word-break: break-word;
  }

  .DocsPage pre {
    font-size: 0.85rem;
    white-space: pre-wrap; /* allow wrapping on small screens */
  }

  .DocsPage ul {
    padding-left: 1.1rem; /* default list indent */
  }
} 