:root {
  --panel-color: #624e6d;
  --menu-item-color: #12125b;
  --menu-hover-color: #1c1a95;

  --header-gradient-start: #1f1a9b;
}
@font-face {
  font-family: 'DS9Title';
  src: url('DS9_Title.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background-image: url("../images/blue_bg.jpg");
  background-repeat: repeat;
  background-position: top left;
  color: #d0d0d0;
  font-family: Arial, Helvetica, sans-serif;
}

.logo-wrapper {
  width: 100%;
  text-align: center;
  padding-top: 30px;
  margin-bottom: 40px;
}

.logo {
  width: min(400px, 80vw);
  height: auto;
  display: inline-block;
}

.main-layout {
  position: relative;
  width: 100%;
  min-height: 400px;
}

.left-column {
  position: absolute;
  left: 50px;
  top: 0;
  width: 250px;
}

.center-column {
  width: 900px;
  margin: 0 auto;
}

.panel-frame {
  padding: 12px;
  background: var(--panel-color);
  border: 2px solid #000000;
  border-radius: 18px;
  box-sizing: border-box;
}

.panel-inner {
  background: #000000;
  border-radius: 10px;
  padding: 24px;
  min-height: 120px;
  color: #d0d0d0;
  font-size: 16px;
  line-height: 1.6;
}

.menu-frame {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.menu-header {
  background: #000000;
  border-top-right-radius: 10px;
  padding: 12px 12px 8px 12px;
  text-align: center;
  border-bottom: 1px solid #222222;
}

.menu-header img {
  width: 140px;
  height: auto;
  display: inline-block;
}

.faction-row {
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #222222;
}

.faction-row img {
  width: 36px;
  height: auto;
  display: block;
  transition: filter 0.2s ease;
  cursor: pointer;
}

.faction-row img:hover {
  filter: brightness(1.2) drop-shadow(0 0 4px #1c1a95);
}

.menu-divider {
  height: 18px;
  background: var(--panel-color);
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
}

.menu-inner {
  background: #000000;
  border-radius: 10px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: 14px;
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.menu-row:last-child {
  margin-bottom: 0;
}

.menu-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 24px;
}

.menu-item {
  display: block;
  flex: 1;
  background: var(--menu-item-color);
  color: #ffffff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 0;
  border: 1px solid #000000;
  font-size: 18px;
  font-family: 'DS9Title', Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
  box-sizing: border-box;
  text-transform: uppercase;
}

.menu-row:hover .menu-item {
  background: var(--menu-hover-color);
}

.menu-row:hover .menu-icon {
  filter: brightness(1.25) drop-shadow(0 0 4px #1c1a95);
}

h1 {
  margin-top: 0;
  color: #ffffff;
  font-size: 34px;
  border-bottom: 1px solid #333333;
  padding-bottom: 10px;
}

h2 {
  color: #ffffff;
  margin-top: 35px;
}

.story-image {
  width: 100%;
  border: 2px solid #333333;
  margin: 20px 0;
  display: block;
}

.faction-block {
  margin-top: 22px;
  background: #000000;
}

.faction-block-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: linear-gradient(
    to right,
    var(--header-gradient-start),
    #000000
  );
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
}

.faction-block-header img {
  width: 36px;
  height: auto;
  display: block;
}

.faction-block-body {
  padding: 14px 16px;
}

.faction-block-body p {
  margin: 0;
}
.briefing-block {
  margin-top: 28px;
}

.briefing-block:first-of-type {
  margin-top: 0;
}

.briefing-image {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 0 auto 16px auto;
  border: 2px solid #333333;
}
.site-footer {
  margin-top: 40px;
  margin-bottom: 20px;
  color: #d0d0d0;
  font-size: 14px;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-brand {
  color: var(--panel-color);
}
.menu-image-frame {
  margin-top: 18px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.menu-image-inner {
  background: #000000;
  border-radius: 10px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  overflow: hidden;
  padding: 10px;
}

.menu-image-inner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.download-list {
  margin: 12px 0 0 0;
  padding-left: 22px;
}

.download-list li {
  margin-bottom: 8px;
}

.download-list a {
  color: #8eb8ff;
  text-decoration: none;
}

.download-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.content-link {
  color: #8eb8ff;
  text-decoration: none;
}

.content-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.download-entry {
  margin-top: 18px;
}

.download-description {
  color: #b8b8b8;
  font-size: 14px;
}
.download-link {
  margin-top: 4px;
  margin-left: 18px;
}

.download-link,
.download-link:visited {
  color: #8eb8ff;
  text-decoration: none;
}

.download-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.about-preview {
  width: 220px;
  height: auto;
  display: block;
  margin-top: 14px;
  border: 2px solid var(--panel-color);
  cursor: pointer;
}

.image-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  text-align: center;
  padding: 30px;
  box-sizing: border-box;
}

.image-lightbox:target {
  display: block;
}

.image-lightbox img {
  max-width: 95%;
  max-height: 90vh;
  border: 2px solid var(--panel-color);
}

.image-lightbox-close {
  position: fixed;
  top: 15px;
  right: 25px;
  color: #ffffff;
  font-size: 40px;
  text-decoration: none;
}
.faction-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 40px;
  margin: 20px 0 35px 0;
}

.faction-select-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.faction-select-item:hover {
  transform: scale(1.08);
}

.faction-select-icon {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faction-select-icon img {
  width: 72px;
  height: auto;
  display: block;
  transition: filter 0.2s ease;
}

.faction-select-item:hover img {
  filter: brightness(1.25)
    drop-shadow(0 0 5px var(--header-gradient-start));
}

.faction-select-label {
  margin-top: 8px;
  min-height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;

  font-family: 'DS9Title', Arial, Helvetica, sans-serif;
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1.2;
}
.faction-detail {
  display: none;
}

.faction-detail.active {
  display: block;
}

.officer-section-title {
  margin-top: 18px;
  margin-bottom: 10px;

  padding: 6px 10px;

  background: linear-gradient(
    to right,
    var(--header-gradient-start),
    #000000
  );

  font-size: 20px;
  font-weight: bold;
  color: #ffffff;

  border-left: 3px solid #ffffff;
}

.officer-entry {
  display: flex;
  align-items: center;

  gap: 16px;

  margin-bottom: 14px;
  padding: 8px 6px;
}

.officer-entry img {
  width: 64px;
  height: 64px;

  object-fit: cover;

  border: 2px solid var(--panel-color);
}

.officer-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.officer-name {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
}

.officer-role {
  margin-top: 4px;

  color: #b8b8b8;
  font-size: 14px;
}