/* Reset & basic styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

anchor {
   font-family: 'Segoe UI', sans-serif;
}

header {
  background: #1e1e2f;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 {
  font-size: 1.8rem;
}
nav button {
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  margin-left: 1rem;
  cursor: pointer;
  transition: color 0.3s;
}
nav button:hover {
  color: #00c0ff;
}
main {
  flex: 1;
  padding: 2rem;
}

pre {
  background: #f0f0f0;
  padding: 0.75rem;
  border-radius: 4px;
  overflow-x: auto;
}
.page {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}
.page.active {
  display: block;
}
.download-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
  background-color: #00c0ff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}
.download-btn:hover {
  background-color: #0088cc;
}
footer {
  background: #1e1e2f;
  color: white;
  text-align: center;
  padding: 1rem;
}
/* --- Layout for container, aside and main --- */
.container {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 160px);
  padding: 1rem 2rem;
  gap: 2rem;
}

aside {
  width: 250px;
  background: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 1rem;
}

aside input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  outline: none;
}

/* --- Sidebar navigation --- */
aside ul {
  list-style: none;
}

aside li {
  margin: 0.5rem 0;
}

aside a {
  text-decoration: none;
  color: #1e1e2f;
  font-weight: 500;
  transition: color 0.2s;
}

aside a:hover {
  color: #00c0ff;
}

/* --- Main documentation styling --- */
main#docs {
  flex: 1;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

main section {
  margin-bottom: 2rem;
}

main section h2 {
  margin-bottom: 0.5rem;
}

.hidden {
  display: none;
}

pre code {
  background: #f0f0f0;
  display: block;
  padding: 1rem;
  border-radius: 6px;
  font-family: "Consolas", monospace;
  font-size: 0.95rem;
  color: #333;
  border-left: 4px solid #00c0ff;
  overflow-x: auto;
}

code {
  background: #eaeaea;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-family: "Consolas", monospace;
  font-size: 0.9rem;
}

a {
  font-family: 'Segoe UI', sans-serif;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  background: #00c0ff;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, transform 0.1s;
  display: inline-block;
}

nav a:hover {
  background: #0088cc;
}

nav a:active {
  transform: scale(0.97);
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  aside {
    width: 100%;
    position: static;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
