html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 25px;
    flex: 1; /* makes content expand to fill available space */
}

.header {
    height: 200px;
    background: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav {
    background: #444;
}

.nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.nav li {
    position: relative;
}

.nav a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
}

.nav a:hover {
    background: #555;
}

.content {
    padding: 20px;
    min-height: 400px;
}

.footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 10px 0;
    margin-top: auto; /* pins footer to the bottom */
}

h1 {
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

code {
  color: #0066ff;     /* blue */
  font-weight: bold;  /* strong */
}



/* Only scale article / page content images */
.header-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Article & content images */
.content-img {
  max-width: 95%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

#toTopBtn {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 999;
  background-color: #c00;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#toTopBtn:hover {
  background-color: #900;
}


table {
  width: 100%;
  border-collapse: collapse;
  border-top: 3px solid #444;     /* thick top border */
  border-bottom: 3px solid #444;  /* thick bottom border */
  border-left: 1px solid #aaa;    /* thin left border */
  border-right: 1px solid #aaa;   /* thin right border */
}

th, td {
  border-left: 1px solid #ddd;    /* subtle column divider */
  border-right: 1px solid #ddd;
  padding: .55rem .6rem;
  vertical-align: top;
}

thead th {
  border-bottom: 2px solid #666;  /* visually separate header row */
}

.note-box {
  border: 1px solid #bbb;
  background: #bbb8b8;
  padding: 12px 15px;
  border-radius: 5px;
  margin: 15px 0;
}

.note-box .note-label {
  font-weight: bold;
  color: #cc0000;     /* red only for the label */
  margin-right: 6px;
}

/* Custom code block with a 4-character indent */
.codeblock {
  color:#0066ff;
  display: block;
  white-space: pre;          /* behave like <pre> */
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: none;          /* no shading unless you want it */
  margin: 0 0 1rem 0;        /* no left margin */
  padding-left: 4ch;         /* 4-character indent */
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  line-height: 1.35;
}

.cmd-block {
      background:#111;
      color:#eee;
      padding:.6rem .75rem;
      border-radius:4px;
      margin:.35rem 0 .75rem;
      font-size:.95em;
      overflow-x:auto;
    }


