/* Girls, Guns and Ghouls - shared stylesheet (replaces ov.css, ggg.css, ggghome.css and the frameset) */

:root {
  --sand: #cdbb8f;
  --paper: rgba(255, 251, 238, 0.86);
  --ink: #1d1a14;
  --dark: #353535;
  --darker: #232323;
  --green: #00cc00;
  --green-deep: #008040;
  --purple: #993399;
  --link: #000066;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Verdana, Geneva, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand) url(sand1.gif);
}

/* ---------- left-hand navigation (replaces the old left frame) ---------- */
.layout {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 74rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 1rem;
  background: var(--dark);
  border: 2px solid #111;
  outline: 1px solid #777;
  outline-offset: -5px;
  padding: 1rem 0.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.sidebar .btn { display: block; width: 60px; height: 20px; margin: 0 auto 0.55rem; position: relative; background: none; }
.sidebar .btn img { position: absolute; left: 0; top: 0; width: 60px; height: 20px; border: 0; }
.sidebar .btn img.on { opacity: 0; }
.sidebar .btn:hover img.on, .sidebar .btn:focus-visible img.on { opacity: 1; }
.sidebar .btn:hover, .sidebar .btn:focus-visible { background: none; outline: 1px solid var(--green); }

.site-search { margin: 0.9rem 0 0.9rem; }
.site-search label { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); margin-bottom: 0.25rem; }
.site-search input[type="search"] {
  width: 100%; font: inherit; font-size: 0.85rem; padding: 0.3rem 0.4rem;
  background: #fffdf5; color: #111; border: 1px solid #888; border-radius: 0;
}
.site-search button {
  width: 100%; margin-top: 0.3rem; font: inherit; font-size: 0.8rem; padding: 0.3rem;
  background: var(--darker); color: var(--green); border: 1px solid var(--green-deep); cursor: pointer;
}
.site-search button:hover { background: var(--purple); }

.sidebar .feature { display: block; margin: 0.8rem auto 0; width: 108px; background: none; }
.sidebar .feature img { display: block; width: 108px; height: auto; border: 0; }
.sidebar .feature:hover { background: none; outline: 1px solid var(--green); }

.content { min-width: 0; }

/* ---------- page body ---------- */
.page {
  margin: 0;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
  background: var(--paper);
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  overflow: hidden; /* contain floated images */
}

.page p, .page td, .page li { font-size: 1em; }
.page p { margin: 0 0 1.05em; }

.page img { max-width: 100%; height: auto; }
.page img[align="left"], .page img.left { float: left; margin: 0.3em 1.2em 0.8em 0; max-width: 45%; }
.page img[align="right"], .page img.right { float: right; margin: 0.3em 0 0.8em 1.2em; max-width: 45%; }
.page div[align="center"] img,
.page center > img { display: block; margin: 0 auto 1rem; }

.page h1, .page h2, .page h3, .page h4 { line-height: 1.25; }

a:link { color: var(--link); }
a:visited { color: #3b2a4d; }
a:hover, a:focus-visible { background: #d9d2c0; color: #000; }

/* the dark "marquee" boxes used on the home page, author page, etc. */
.page table[bgcolor="#353535"],
.page table[bgcolor="#353535"] td {
  background: var(--dark);
}
.page table[bgcolor="#353535"] { max-width: 100%; border-radius: 2px; }
.page table[bgcolor="#353535"] a:link,
.page table[bgcolor="#353535"] a:visited,
.page td.quote a:link,
.page td.quote a:visited { color: var(--green); text-decoration: none; }
.page table[bgcolor="#353535"] a:hover,
.page td.quote a:hover { background: var(--purple); color: var(--green); }

/* link boxes on links.html */
.page table[border] { border-collapse: collapse; max-width: 100%; margin: 0 0 0.4rem; background: rgba(255,255,255,0.45); }
.page table[border] td { padding: 0.7rem 0.9rem; border: 1px solid #555; }

/* the A-Z film list */
.page a[name] { scroll-margin-top: 1rem; }

/* contact form */
input[type="text"], textarea {
  width: 100%;
  max-width: 28rem;
  font: inherit;
  padding: 0.45rem;
  border: 1px solid #555;
  background: #fffdf5;
}
input[type="submit"] {
  font: inherit;
  padding: 0.5rem 1.2rem;
  background: var(--dark);
  color: var(--green);
  border: 1px solid var(--green-deep);
  cursor: pointer;
}
input[type="submit"]:hover { background: var(--purple); }

address { font-size: 0.9rem; margin-top: 1rem; clear: both; }

/* ---------- footer ---------- */
.site-footer {
  margin: 1rem 0 0;
  padding: 0 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #3a3426;
}
.site-footer a { color: inherit; }

/* ---------- search results ---------- */
.results { list-style: none; padding: 0; margin: 1rem 0; }
.results li { margin: 0 0 1.1rem; }
.results .r-title { font-weight: bold; font-size: 1.05em; }
.results .r-snip { display: block; font-size: 0.92em; color: #3b362a; }
.results mark { background: #f4e27a; padding: 0 1px; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .layout { display: block; padding: 0; }
  .sidebar { position: static; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem 0.9rem; padding: 0.7rem 0.5rem; }
  .sidebar .btn { margin: 0; }
  .site-search { flex: 1 1 100%; margin: 0; display: flex; gap: 0.3rem; }
  .site-search label { display: none; }
  .site-search input[type="search"] { flex: 1; }
  .site-search button { width: auto; margin: 0; padding: 0.3rem 0.8rem; }
  .sidebar .feature { display: none; }
  .page { border-left: 0; border-right: 0; }
  .page img[align="left"], .page img[align="right"],
  .page img.left, .page img.right { float: none; display: block; margin: 0.5em auto; max-width: 100%; }
  .page table { display: block; overflow-x: auto; }
}
