body {
    font-family: system-ui, sans-serif;
    margin: 0;
    background: #f6f6f6;
}

.topbar {
    background: #202122;
    color: white;
    padding: 12px 20px;
}

.content {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

h1 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

.mw-body {
    line-height: 1.65;
    font-size: 16px;
}

.mw-heading {
    border-bottom: 1px solid #a2a9b1;
    margin-top: 1.6em;
    padding-bottom: 4px;
}

.mw-link {
    color: #0645ad;
    text-decoration: none;
}

.mw-link:hover {
    text-decoration: underline;
}

.mw-extlink::after {
    content: " ↗";
    font-size: 0.85em;
}

ul, ol {
    margin-left: 1.5em;
}

code {
    background: #f6f6f6;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
}

.wikitable {
    border-collapse: collapse;
    margin: 1em 0;
    width: 100%;
    font-size: 0.95em;
}

.wikitable th,
.wikitable td {
    border: 1px solid #a2a9b1;
    padding: 8px 10px;
}

.wikitable th {
    background: #eaecf0;
    text-align: left;
    font-weight: 600;
}

.wikitable tr:nth-child(even) {
    background: #f8f9fa;
}

.mw-userlink {
    color: #3366cc;
    font-weight: 500;
}

.mw-image {
    max-width: 100%;
}

.mw-thumb {
    border: 1px solid #a2a9b1;
    background: #f8f9fa;
    padding: 6px;
    width: fit-content;
    margin: 1em 0;
}

.mw-thumb img {
    display: block;
    max-width: 300px;
}

.mw-thumb figcaption {
    font-size: 0.85em;
    color: #54595d;
    margin-top: 4px;
}

.mw-categories {
    border-top: 1px solid #a2a9b1;
    margin-top: 2em;
    padding-top: 8px;
    font-size: 0.9em;
}

.mw-extlink {
    color: #0645ad;
    text-decoration: none;
}

.mw-extlink:hover {
    text-decoration: underline;
}

.mw-extlink::after {
    content: " ↗";
    font-size: 0.85em;
}
.wiki-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2d2d2d;
  color: #fff;
  padding: 0.5rem 1rem;
  font-family: sans-serif;
}

.wiki-header .logo a {
  color: #f9f9f9;
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
}

.wiki-header .main-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wiki-header .main-nav a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
}

.wiki-header .main-nav a:hover {
  text-decoration: underline;
}

.wiki-header .search-box input {
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  border: none;
  font-size: 1.1rem;
}

.wiki-header .search-box button {
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  border: none;
  background-color: #70e2ff;
  color: black;
  font-weight: bold;
  cursor: pointer;
}

.search-box {
    position: relative; /* container for absolute positioning */
    display: inline-block;
    width: 300px; /* adjust as needed */
}

.search-results {
    position: absolute;
    top: 100%;       /* start just below the input */
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;   /* float above other content */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* optional shadow */
    display: none;
}

.search-results li {
    padding: 0.25rem 0.5rem;
}

.search-results li a {
    text-decoration: none;
    color: #333;
    display: block;
}

.search-results li:hover {
    background-color: #f0f0f0;
}

.wiki-footer {
    background-color: #2d2d2d;
    color: #f0f0f0;
    text-align: center;
    padding: 0.1rem 0;
    border-top: 1px solid #444;
}

.wiki-footer p {
    font-weight: 600;
}

.wiki-footer a {
    color: #ff9800;
    text-decoration: none;
}

.wiki-footer a:hover {
    text-decoration: underline;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1; /* fills available space */
    background: url(/static/mcbackground.webp);
}

.wiki-footer {
    flex-shrink: 0;
}