/* === Wikipedia-Style Dark Theme (Roblox 2016 Inspired) === */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600&amp;family=Georgia&amp;display=swap');

:root {
  --background: #121212;
  --main-bg: #1e1e1e;
  --text: #e0e0e0;
  --border: #2f2f2f;
  --header-bg: #8000ff;

  --link: #6ba4ff;
  --link-hover: #a5c5ff;
  --link-visited: #a78bfa;

  --table-bg: #1d1d1d;
  --table-header: #262626;
  --quote-bg: #222222;
}

/* === RESET (SAFE) === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

/* === BODY === */
body {
  background: var(--background);
  color: var(--text);
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  padding-top: 48px;
}

/* === HEADER / FOOTER === */


footer {
  background: #161616;
  border-top: 1px solid var(--border);
  color: #aaa;
  text-align: center;
  padding: 10px;
  margin-top: 40px;
}

/* === MAIN CONTENT WRAPPER === */
.wrapper {
  max-width: 1400px;
  margin: auto;
  padding: 25px 40px;
  background: var(--main-bg);
  border: 1px solid var(--border);
}

/* Wide screens */
@media (min-width: 1800px) {
  .wrapper {
    max-width: 1600px;
  }
}

/* === HEADINGS === */
h1, h2, h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  margin: 25px 0 10px;
}

h1 {
  font-size: 2rem;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 1.6rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.3rem;
  border-bottom: 1px solid var(--border);
}

/* === TEXT === */
p {
  margin: 10px 0 15px;
}

/* === LINKS === */
a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

a:visited {
  color: var(--link-visited);
}

/* === INFOBOX === */
.infotable {
  float: right;
  width: 280px;
  margin: 0 0 20px 20px;
  background: var(--table-bg);
  border: 1px solid var(--border);
  font-size: 14px;
}

.infotable th {
  background: var(--table-header);
  padding: 6px;
  font-weight: 600;
}

.infotable td {
  padding: 6px;
  border-top: 1px solid var(--border);
}

/* === QUOTES / REVEALS === */
.quotebox {
  background: var(--quote-bg);
  border-left: 3px solid var(--link);
  padding: 8px 12px;
  font-style: italic;
  margin: 12px 0;
}

.reveal {
  background: var(--quote-bg);
  border: 1px solid var(--border);
  padding: 8px;
  margin: 10px 0;
}

.revealsummary {
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
}

/* === GALLERY === */
.gallery-container {
  position: relative;
  margin: 15px 0;
}

.gallery-slide img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

/* Navigation arrows */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(128, 0, 255, 0.85);
  color: #fff;
  font-size: 24px;
  padding: 12px 18px;
  cursor: pointer;
  border: 1px solid var(--border);
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover,
.next:hover {
  background: rgba(128, 0, 255, 1);
}

/* === LIGHTBOX (ISOLATED & PROTECTED) === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
}

.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
}

.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }

/* === BREADCRUMBS === */
.breadcrumb {
  font-size: 13px;
  color: #bdbdbd;
  margin-bottom: 10px;
}

/* === MOBILE === */
@media (max-width: 768px) {
  .infotable {
    float: none;
    width: 100%;
    margin: 10px 0;
  }

  .wrapper {
    padding: 15px 20px;
  }
}
