/* Amiget website: a MagicWB Workbench screen, 640x400.
 *
 * Only the 8 MagicWB colours are used. They are written out (no CSS
 * variables) so that older Amiga browsers get them too:
 *   0 #959595 grey        1 #000000 black      2 #ffffff white
 *   3 #3b67a2 blue        4 #7b7b7b dark grey  5 #afafaf light grey
 *   6 #aa907c beige       7 #ffa997 pink
 *
 * The pages are complete without this file. Everything here is look
 * and feel; nothing needs JavaScript.
 */

body, h1, h2, h3, p, li, dt, dd, th, td, pre, code, kbd, samp {
  font-family: "Topaz", "Topaz New", "Amiga Topaz", "Topaz a1200",
               "DejaVu Sans Mono", "Menlo", "Consolas", monospace;
}

body {
  margin: 0;
  padding: 0;
  background: #7b7b7b url(img/backdrop.png);
  color: #000000;
  font-size: 14px;
  line-height: 1.35;
}

* { box-sizing: border-box; }

.screen {
  /* A 640 pixel screen in a big browser window. Browsers that do not
     know min() (Velox, NetSurf, AWeb) use the whole window, which on
     an Amiga is the 640 pixel screen anyway. */
  max-width: min(640px, 100%);
  margin: 0 auto;
  padding: 0 0 8px 0;
}

/* --- Screen title bar ------------------------------------------------ */

.screenbar {
  margin: 0;
  padding: 1px 6px;
  background: #ffffff;
  color: #000000;
  border-bottom: 2px solid #000000;
  white-space: nowrap;
  overflow: hidden;
}
.screenbar strong { margin-right: 10px; }
.screenbar .mem { color: #000000; }

/* --- Desktop icons (the site navigation) ------------------------------ */

.drawers {
  margin: 6px 4px 2px 4px;
  padding: 0;
  list-style: none;
}
.drawers li {
  display: inline-block;
  width: 84px;
  margin: 0 2px;
  text-align: center;
  vertical-align: top;
}
.drawers a {
  display: block;
  padding: 2px 0;
  color: #000000;
  text-decoration: none;
}
.drawers img {
  display: block;
  margin: 0 auto 2px auto;
  border: 0;
}
.drawers span {
  padding: 0 3px;
  background: #959595;
}
.drawers .here span,
.drawers a:hover span,
.drawers a:focus span {
  background: #3b67a2;
  color: #ffffff;
}

/* --- Windows --------------------------------------------------------- */

.window {
  margin: 6px 6px 10px 6px;
  background: #959595;
  border: 2px solid #000000;
  border-color: #ffffff #000000 #000000 #ffffff;
}

.titlebar {
  margin: 0;
  padding: 1px 6px 2px 6px;
  background: #3b67a2;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.35;
  border-bottom: 2px solid #000000;
}
/* close gadget on the left, depth gadget on the right */
.titlebar::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 10px 0 0;
  vertical-align: middle;
  background: #959595;
  border: 2px solid #000000;
}
.titlebar::after {
  content: "";
  float: right;
  width: 14px;
  height: 11px;
  margin-top: 3px;
  background: #afafaf;
  border: 2px solid #000000;
}

.content {
  padding: 4px 12px 10px 12px;
}

/* --- Text ------------------------------------------------------------ */

p { margin: 0 0 9px 0; }

a { color: #000000; text-decoration: underline; }
a:hover, a:focus {
  background: #3b67a2;
  color: #ffffff;
  text-decoration: none;
}
a img { border: 0; }

h2 {
  margin: 18px 0 8px 0;
  padding: 2px 6px;
  background: #afafaf;
  color: #000000;
  font-size: 17px;
  font-weight: bold;
}
h3 {
  margin: 12px 0 4px 0;
  font-size: 14px;
  font-weight: bold;
}

.lead { margin-top: 6px; }
.lead p { margin-bottom: 4px; }
.lead img {
  float: left;
  margin: 2px 12px 4px 0;
}
br[clear] { clear: both; }

.note {
  margin: 0 0 9px 0;
  padding: 4px 8px;
  background: #ffa997;
  color: #000000;
  border: 2px solid #000000;
}

code, kbd, pre, samp { font-size: 14px; }
code, kbd {
  padding: 0 2px;
  background: #afafaf;
}

ul { margin: 0 0 9px 0; padding-left: 22px; }
li { margin: 0 0 3px 0; }

/* Features: a list of terms and their descriptions */
dl.features { margin: 0 0 9px 0; }
dl.features dt {
  margin: 8px 0 1px 0;
  font-weight: bold;
}
dl.features dt::before {
  content: "\00bb  ";
  color: #ffffff;
}
dl.features dd { margin: 0 0 0 18px; }

/* --- An AmigaShell window inside the page ----------------------------- */

.shell {
  margin: 8px 0 12px 0;
  background: #959595;
  border: 2px solid #000000;
  border-color: #ffffff #000000 #000000 #ffffff;
}
.shell .titlebar { font-weight: normal; }
.shell pre {
  margin: 0;
  padding: 6px 8px;
  overflow: auto;
  background: #000000;
  color: #ffffff;
  line-height: 1.3;
}
.shell pre b { color: #ffa997; font-weight: normal; }
.shell pre i { color: #afafaf; font-style: normal; }

/* --- Tables ---------------------------------------------------------- */

table {
  border-collapse: collapse;
  margin: 0 0 10px 0;
  width: 100%;
}
th, td {
  padding: 2px 6px;
  border: 1px solid #000000;
  text-align: left;
  vertical-align: top;
}
th { background: #afafaf; }
td { background: #959595; }
td kbd { background: #aa907c; }

/* --- Pictures -------------------------------------------------------- */

.shot {
  margin: 6px 0 12px 0;
  text-align: center;
}
.shot img {
  max-width: 100%;
  height: auto;
  border: 2px solid #000000;
}
.shot p { margin: 2px 0 0 0; }

/* --- Buttons ---------------------------------------------------------- */

.button {
  display: inline-block;
  padding: 2px 10px;
  margin: 0 6px 6px 0;
  background: #afafaf;
  color: #000000;
  text-decoration: none;
  border: 2px solid #000000;
  border-color: #ffffff #000000 #000000 #ffffff;
}
.button:hover, .button:focus {
  background: #3b67a2;
  color: #ffffff;
  border-color: #000000 #ffffff #ffffff #000000;
}

/* --- Download button ---------------------------------------------------
 * One for each program, centred: a raised Workbench gadget with the disk
 * icon down its left side, the name on the first line and the file on
 * the second, and a plain link to the source below.
 *   <p class="downloads" align="center"><a class="download"
 *    href="download/X.lha"><img src="img/download.png" width="48"
 *    height="48" alt="" align="middle" hspace="4"><strong>Download
 *    X</strong><br><span>0.1, LhA, 100&nbsp;KB</span></a><br>
 *   <a class="source" href="...">Source on GitHub</a></p>
 * Without CSS it is a centred link with the icon beside it. */

.downloads {
  margin: 10px 0 12px 0;
  text-align: center;
}
a.download {
  display: inline-block;
  margin: 0 0 6px 0;
  padding: 0 18px 0 4px;
  background: #afafaf;
  color: #000000;
  text-align: left;
  text-decoration: none;
  border: 2px solid #000000;
  border-color: #ffffff #000000 #000000 #ffffff;
}
a.download img {
  float: left;
  margin: 0 12px 0 0;
}
a.download strong,
a.download span {
  display: block;
  margin-left: 60px;
  line-height: 24px;
  white-space: nowrap;
}
a.download strong { font-size: 17px; }
a.download span { font-size: 15px; }
a.download br { display: none; }
a.download:hover, a.download:focus {
  background: #ffffff;
  color: #000000;
}
a.download:active {
  background: #959595;
  border-color: #000000 #ffffff #ffffff #000000;
}

/* --- Footer ---------------------------------------------------------- */

/* --- A system requester (the 404 page) -------------------------------- */

.requester {
  max-width: 420px;
  margin: 24px auto 16px auto;
}
.request {
  margin: 0 0 6px 0;
  text-align: center;
}
.gadgets {
  margin: 14px 0 0 0;
  text-align: center;
}
.gadgets .button { margin: 0 12px; }

.footer {
  margin: 0 6px;
  padding: 3px 8px;
  background: #959595;
  border: 2px solid #000000;
  border-color: #ffffff #000000 #000000 #ffffff;
}
.footer p { margin: 0; }
.footer img { vertical-align: middle; margin-right: 8px; }

/* Hidden when styled, shown when not (rules between sections) */
hr.plain { display: none; }

/* Narrow screens: phones */
@media (max-width: 479px) {
  .screenbar .mem { display: none; }
  .drawers li { width: 72px; }
  .content { padding: 4px 8px 8px 8px; }
  .lead img { margin-right: 8px; }
}

.badge { float: right; margin: 0 0 4px 10px; }
