/* reset basics */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: black;
  font-family: Garamond, serif;
  color: white;
}

/* center the whole page content and match your top image width */
#page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

/* top and bottom images fill the page width (keeps them centered) */
#img img,
#img2 img {
  width: 100%;
  height: auto;
  display: block;
}

/* volume text */
#voltext {
  text-align: center;
  color: red;
  margin: 12px 0;
}

/* flex container: ComicCover + tableContext side-by-side */
#contentRow {
  display: flex;
  gap: 20px;
  align-items: flex-start; /* top-align both columns */
  justify-content: center;
  margin: 18px 0 24px;
  flex-wrap: wrap; /* allows stacking on small screens */
}

/* left column fixed-ish width for the cover */
#ComicCover {
  flex: 0 0 550px; /* don't shrink below 550 unless screen forces it */
  text-align: center;
}

#ComicCover img {
  width: 100%;
  height: auto;
  display: block;
}

/* right column: table / acts list — will grow to fill space */
#tableContext {
  flex: 1 1 300px; /* flexible, min about 300px */
  text-align: center;
  color: white;
  padding: 8px;
}

/* list styling inside tableContext */
#tableContext h3 {
  margin-bottom: 10px;
}

#tableContext ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 0;
}

#tableContext li a {
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  display: inline-block;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
}

/* style for the "selected" class */
#tableContext li a.selected {
  background: rgba(255,0,0,0.12);
  color: #ffdddd;
  font-weight: 600;
}



/* responsive: stack on smaller screens */
@media (max-width: 700px) {
  #contentRow {
    flex-direction: column;
    align-items: center;
  }
  #ComicCover, #tableContext {
    flex: none;
    width: 100%;
    max-width: 700px;
  }
  #ComicCover { margin-bottom: 12px; }
}