/* Basic Reset / Normalize */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
  padding-bottom: 60px; /* Footer height */
  position: relative;
  min-height: 100vh;
}

header {
  background-color: #333;
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

header .tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: #ccc;
  margin-bottom: 1rem;
}

nav {
  margin-top: 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav a:hover,
nav a:focus {
  background-color: #555;
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  background-color: #fff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #333;
  margin-bottom: 1rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

h3 {
  color: #555;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

h4 {
  color: #666;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

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

li {
  margin-bottom: 0.5rem;
}

code {
  background-color: #eee;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

pre {
  background-color: #2d2d2d; /* Dark background for code blocks */
  color: #f0f0f0; /* Light text */
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto; /* Handle long lines */
  margin-bottom: 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  line-height: 1.4;
}

/* Style for code inside pre, if not using a highlighter */
pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  color: inherit; /* Inherit color from pre */
  font-size: inherit; /* Inherit font size */
}

/* Optional: Add specific styles if using highlight.js or Prism */
/* Example for highlight.js comments */
.hljs-comment {
  color: #999;
  font-style: italic;
}
/* Example for highlight.js keywords */
.hljs-keyword {
  color: #c678dd; /* Example color */
}
/* Example for highlight.js strings */
.hljs-string {
  color: #98c379; /* Example color */
}
/* Add more styles as needed based on the highlighter's classes */

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  background-color: #333;
  color: #ccc;
  text-align: center;
  padding: 1rem 0;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px; /* Footer height */
}

.hover-pointer:hover {
  cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  nav a {
    display: block;
    margin: 0.5rem 0;
  }
}
