/* ===============================
 Gray background + white text
 =============================== */
 body, .wrapper, .inner {
  background-color: #2e2e2e !important; /* dark gray */
  color: #fff !important;
}

.main_content_wrap {
  background-color: #2e2e2e !important;
}

#main_content_wrap {
  background:#2e2e2e !important; 
}

.inner {
  max-width: 1080px;
}

/* Make all headers white */
h1, h2, h3, h4, h5, h6 {
  color: #fff !important;
}

/* Links readable on gray */
a, a:visited {
  color: #80c0ff;
}
a:hover, a:focus {
  color: #80c0ff !important;
  background: none !important;
  text-decoration: underline;
}

/* ===============================
 Table styling
 =============================== */
table {
  width: 100%;
  border-collapse: collapse;
}
table th, table td {
  vertical-align: top !important;
  white-space: normal;
  overflow: visible !important;
  padding: 10px;
}

/* ===============================
 Table images side by side
 =============================== */
.img-row {
  display: flex;        /* important: keeps columns side by side */
  flex-wrap: nowrap;    /* prevent wrapping */
  gap: 12px;            /* spacing between columns */
  justify-content: flex-start;
  align-items: flex-start;
}

.img-row > div {
  flex: 1;              /* each column takes equal width */
  text-align: center;
}

.img-row img {
  max-width: 100%;      /* fill column width */
  height: auto;         /* preserve aspect ratio */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  object-fit: contain;
  margin: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
  position: relative;
}

.img-row img:hover {
  transform: scale(1.5);
  z-index: 1000;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  cursor: zoom-in;
}

/* Ensure td containing .img-row is tall */
table td:has(.img-row) {
  min-height: 600px;
}

/* ===============================
 Automatic flex for Markdown table cells with multiple images
 =============================== */
table td:has(img + img):not(.img-row) {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: flex-start;
}

table td:has(img + img):not(.img-row) img {
  display: block;
  height: 400px;
  max-height: 600px;
  width: auto;
  /* aspect-ratio: 16/9; */
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  object-fit: contain;
  margin: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

/* Make rows tall only if images exist in automatic cells */
table td:has(img + img):not(.img-row) {
  min-height: 600px;
}

/* ===============================
 Optional hover-to-zoom/lightbox for images
 =============================== */
table td img:hover {
  transform: scale(1.5);
  z-index: 10;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  cursor: zoom-in;
}

/* Only this table */
.scale3-hover td img:hover {
  transform: scale(3);
  z-index: 10;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  cursor: zoom-in;
}

/* ===============================
 Game entry container
 =============================== */
.game-entry {
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e1e4e8;
  position: relative; /* helps with z-index on hover images */
}

/* clearfix for floated image */
.game-entry::after {
  content: "";
  display: table;
  clear: both;
}

/* ===============================
 Box art image
 =============================== */
.game-entry img.game-boxart {
  float: left;
  height: 200px;       /* fixed height */
  width: auto;         /* proportional width */
  margin: 0 1rem 0.5rem 0;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  object-fit: contain;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: zoom-in;
  position: relative;  /* allow it to layer above text */
  z-index: 10;
}

/* Hover zoom */
.game-entry img.game-boxart:hover {
  transform: scale(1.5);
  z-index: 1000;
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
}

/* Responsive for mobile */
@media (max-width: 600px) {
  .game-entry img.game-boxart {
    float: none;
    display: block;
    margin: 0 auto 1rem auto;
    height: 150px;
    width: auto;
  }
}

/* ===============================
 Game title above content
 =============================== */
.game-title {
  display: block;  /* ensures title is above content */
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #4a90e2, #9013fe);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 3px 7px rgba(0,0,0,0.15);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.game-title small {
  font-size: 0.8em;
  opacity: 0.85;
  margin-left: 0.4rem;
  font-weight: 400;
}
