/* Base styles */
body {
  margin: 0;
  display: flex;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #202123; /* dark mode bg */
  color: #d4d4d8; /* light grey text */
}

/* Navigation on the left */
nav {
  width: 260px;
  background-color: #26292f;
  color: #e6e6e6; /* slightly softer white */
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  border-right: 1px solid #3e3e42; /* subtle border */
}

a {
  color: #10a37f; /* leafy green */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #d4d4d8; /* light grey/white */
}

/* Content to the right of nav */
main {
  margin-left: 260px;
  padding: 20px;
  flex: 1;
}

/* Highlight all <code> elements */
code {
  background-color: #343538; /* muted dark grey */
  color: #10a37f; /* leafy green */
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95em;
}

/* Media query: on small screens, nav becomes top bar */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }
  nav {
    width: 100%;
    height: auto;
    position: relative;
    padding: 15px 20px;
    border-right: none;
    border-bottom: 1px solid #3e3e42;
  }
  main {
    margin-left: 0;
  }
}
