/* The 1996-style skin shared by the Atari home page, the story chapters, the game notes, the listings,
   the Stan Ockers pages and the ACE newsletter pages. Source: tools/retro/retro.css (copied to retro/
   by build_retro.py). It follows Dale's 1996 home page: speckled yellow wallpaper, browser-default serif
   type, navy links that turn maroon, GIF dividers and bullets. The only modern parts are the capped
   column width and images that shrink on a phone. */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;padding:14px 16px 40px;
  background:#fbe9a4 url(wallpaper.png);
  color:#000;
  font-family:"Times New Roman",Times,serif;
  font-size:18px;line-height:1.45;
}
a{color:#000080}
a:visited{color:#800000}
a:hover{color:#c00000}
img{max-width:100%;height:auto}
.page{max-width:780px;margin:0 auto}
.page.wide{max-width:980px}

/* ---------- the little house, top right: back to Dale's Home Page ---------- */
.page{position:relative}
.homelink{position:absolute;top:0;right:0;width:64px;text-align:center;font-size:12px;line-height:1.1;text-decoration:none}
.homelink img{display:block;margin:0 auto 3px;image-rendering:pixelated}
.homelink span{text-decoration:underline}
@media (max-width:760px){
  .homelink{position:static;display:flex;width:auto;justify-content:flex-end;align-items:center;gap:6px;margin:-6px 0 4px}
  .homelink img{margin:0;width:26px;height:auto}
}

/* ---------- the top of every page ---------- */
.banner{text-align:center;margin:6px 0 2px}
.banner img{image-rendering:pixelated}
.sub{text-align:center;font-size:15px;margin:0 0 8px}
.rule{display:block;margin:14px auto;width:582px;max-width:100%;height:9px}
.walk{text-align:center;font-size:16px;margin:10px 0}
.walk b{white-space:nowrap}
.where{text-align:center;font-size:14px;margin:4px 0 0;letter-spacing:.04em}
h1{font-size:30px;line-height:1.15;margin:18px 0 6px;text-align:center}
h1 small{display:block;font-size:15px;font-weight:normal;font-style:italic;margin-bottom:4px}
h2{font-size:24px;line-height:1.2;margin:26px 0 10px}
h2 small{display:block;font-size:15px;font-weight:normal;font-style:italic}
h3{font-size:20px;margin:22px 0 6px}
p{margin:0 0 1em}
.note,.crumbs,.when,.sub2{font-size:15px}
.soon{font-style:italic}
code,kbd{font-family:"Courier New",Courier,monospace;font-size:.92em}
kbd{border:1px solid #000;background:#fff;padding:0 4px}
.clear{clear:both}

/* ---------- lists with the green bullet ---------- */
ul.bul{list-style:none;padding:0;margin:0 0 1em}
ul.bul>li{background:url(bul-grn.gif) no-repeat 4px .42em;padding-left:26px;margin:0 0 .7em}
ul.bul .when{display:block}

/* ---------- the games on the home page ---------- */
.gamerow{display:flex;gap:16px;align-items:flex-start;margin:0 0 20px}
.gamerow .shot{flex:none;width:168px}
.gamerow .shot img.plain{border:1px solid #000}
.gamerow .shot img,.bigshot img{display:block;border:3px ridge #b0a070;background:#000}
.gamerow h3{margin:0 0 2px;font-size:21px}
.gamerow h3 small{font-size:15px;font-weight:normal;font-style:italic;margin-left:6px}
.gamerow p{margin:0 0 .35em}
.links{font-size:16px}
@media (max-width:480px){.gamerow .shot{width:108px}.gamerow{gap:12px}}

/* ---------- chapter index ---------- */
ol.chapters{padding-left:1.6em;margin:0 0 1em}
ol.chapters li{margin:0 0 .65em}
ol.chapters small{font-size:15px;font-style:italic}

/* ---------- pictures beside the text ---------- */
.pics{float:right;width:300px;margin:4px 0 12px 24px}
.pics figure,.scans figure{margin:0 0 16px}
.pics img,.scans img{display:block;border:1px solid #000;background:#fff}
figcaption{font-size:14px;font-style:italic;line-height:1.3;margin-top:5px}
@media (max-width:700px){
  .pics{float:none;width:auto;margin:0 0 12px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .pics figure{margin:0}
  .chap{display:flex;flex-direction:column}      /* on a phone the story comes first, then its pictures */
  .chap .pics{order:9;margin-top:6px}
  .chap br.clear{display:none}
}
.photo{float:right;width:340px;max-width:46%;margin:4px 0 12px 22px}
.photo img{display:block;border:1px solid #000}
@media (max-width:560px){.photo{float:none;width:auto;max-width:none;margin:0 0 14px}}
.bigshot{margin:14px auto;max-width:440px}
.scans{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:18px;margin:14px 0 22px}
.scans figure{margin:0}

/* ---------- a strip of printer paper for REM lines and listings ---------- */
pre{font-family:"Courier New",Courier,monospace;font-size:14px;line-height:1.4}
.printout,pre.paper,.page pre{
  background:#fffef6 repeating-linear-gradient(180deg,transparent 0 20px,rgba(60,150,90,.13) 20px 40px);
  border:1px solid #8a8a70;padding:10px 14px;line-height:20px;overflow-x:auto;white-space:pre;margin:0 0 1em;
}
.page pre.wrap{white-space:pre-wrap;overflow-wrap:anywhere}
pre.tbl{background:#fffef6;border:1px solid #8a8a70}
details pre{max-height:60vh;overflow:auto}

/* ---------- notes, play links and boxes ---------- */
.note2026{border-left:4px double #008060;padding:2px 0 2px 12px}
.playline{font-size:19px;margin:14px 0}
.playline a,a.play{font-weight:bold}
a.play{display:inline-block;margin:6px 0 14px;font-size:19px}
.writeup{border-left:4px double #008060;padding:2px 0 2px 14px;margin:14px 0}
.writeup p{margin:0 0 .8em}
.writeup h3{font-size:18px;margin:1em 0 .3em}
.thanks{border:2px ridge #b0a070;background:rgba(255,255,255,.45);padding:2px 20px 8px;margin:20px 0}
.howto{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:4px 26px}
.howto h4{margin:0;font-size:17px}
.howto p{font-size:16px}
footer{font-size:14px;text-align:center;margin-top:8px}

/* ---------- ACE newsletter pages ---------- */
.who{display:inline-block;font:bold 11px/1.5 Arial,Helvetica,sans-serif;letter-spacing:.04em;text-transform:uppercase;padding:0 6px;border:1px solid #000;margin:0 2px;vertical-align:2px}
.who.dale{background:#ffd24a}.who.stan{background:#9fe0a8}.who.marc{background:#a9c8ff}
.issues,.games{list-style:none;padding:0}
.issues li{margin-bottom:.7em}.games li{margin:0 0 .7em}
ul.issues>li,ul.games>li{background:url(bul-grn.gif) no-repeat 4px .42em;padding-left:26px}
.filter button{font:inherit;font-size:15px;margin:0 6px 6px 0;padding:2px 12px;border:2px outset #ddd;background:#d8d4c8;color:#000;cursor:pointer}
.filter button.on{border-style:inset;background:#fff;font-weight:bold}
figure.wide{margin:18px 0;max-width:640px}
figure.wide img{display:block;width:100%;border:1px solid #000;background:#fff}

/* ---------- Stan Ockers and ACE pages (folder pages built by build_ace.py and build_stan.py) ---------- */
.ace pre{white-space:pre-wrap;overflow-wrap:anywhere}
.ace pre.tbl{white-space:pre;overflow-x:auto}
.ace>figure{margin:20px 0;max-width:640px}
.ace>figure img{display:block;width:100%;border:1px solid #000;background:#fff}
.ace h1{text-align:left}
.draft{color:#a03000;font-size:14px}

/* ---------- a picture shown over the page (the Thriller sketch); Esc closes it ---------- */
dialog.viewer{border:3px ridge #b0a070;background:#fffef6;padding:10px;max-width:96vw;max-height:96vh;overflow:auto;cursor:pointer}
dialog.viewer::backdrop{background:rgba(0,0,0,.75)}
dialog.viewer img{display:block;max-width:100%;max-height:calc(96vh - 70px);margin:0 auto}
dialog.viewer p{margin:6px 0 0;text-align:center;font-size:14px;font-style:italic}
