/* INTTERNET.ORG - leiska3.css
   Same spirit as leiska2: blue screen, silver text, monospace font.

   Colors:
     navy     window
     #000058  backdrop around the window
     silver   text, buttons
     white    emphasis
     #ffff55  hover, focus and selection (bright DOS yellow)
     #000030  shadows
*/

html {
  background: #000058;
}

/* --- Window: double-line frame and shadow, centered on the screen --- */

body {
  box-sizing: border-box;
  width: calc(100% - 1.5rem);
  max-width: 46.5rem;
  margin: 1.5rem auto 3rem;
  padding: 1.75rem 2rem 1.5rem;
  border: 3px double silver;
  background: navy;
  box-shadow: 10px 10px 0 #000030;
  color: silver;
  font-family: "Fixedsys", "Fixed", "Cascadia Mono", "Consolas", "Menlo",
    "DejaVu Sans Mono", "Liberation Mono", "Courier 10 Pitch", "Courier New",
    monospace;
  line-height: 1.5;
  overflow-wrap: break-word;
}

::selection {
  background: #ffff55;
  color: navy;
}

/* --- Content --- */

h1 {
  margin: 0 0 1.5rem;
}

h1,
h2,
h3 {
  color: white;
  font-family: "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  font-weight: normal;
}

img {
  max-width: 100%;
  height: auto;
}

h1 img {
  display: block;
}

hr {
  height: 0;
  margin: 2rem 0 1.25rem;
  border: 0;
  border-top: 1px solid silver;
}

a {
  color: white;
}

a:hover {
  color: #ffff55;
}

a:focus-visible {
  outline: 2px solid #ffff55;
  outline-offset: 2px;
}

/* --- Link lists: button grid --- */

ul,
ol {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15em, 100%), 1fr));
  gap: 0.9em 1em;
  margin: 0 0 1.75rem;
  padding: 0;
  font-size: 0.875rem;
  list-style: none;
}

/* item and its link: one cell, text centered, long names may wrap */
li,
li a {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

/* an item without a link shows in gray, as before */
li {
  min-height: 2.4em;
  color: #404040;
  cursor: default;
}

/* the link fills the whole button */
li a {
  align-self: stretch;
  padding: 0.3em 0.5em;
}

/* --- Footer: Ubuntu button and validator badge side by side --- */

a.b,
a.badge {
  display: inline-block;
  margin: 0 0.75rem 0.5rem 0;
  vertical-align: middle;
}

a.b {
  padding: 0.55em 1.25em;
  font-size: 0.875rem;
}

/* the image comes from shields.io and shows the validator.nu result */
a.badge img {
  display: block;
}

a.badge:hover {
  outline: 2px solid #ffff55;
  outline-offset: 2px;
}

/* --- Button look: list items and the footer button --- */

li,
a.b {
  border: 2px solid;
  border-color: white #808080 #808080 white;
  background: silver;
  box-shadow: 4px 4px 0 #000030;
  font-weight: bold;
  line-height: 1.3;
  text-align: center;
}

/* pressed button */
li:active,
a.b:active {
  border-color: #808080 white white #808080;
  box-shadow: none;
}

li a,
a.b {
  color: navy;
  text-decoration: none;
}

li a:hover,
a.b:hover {
  background: #ffff55;
  color: black;
}

li a:focus-visible,
a.b:focus-visible {
  background: #ffff55;
  color: black;
}

/* --- Narrow screens --- */

@media (max-width: 48em) {
  body {
    margin: 0.75rem auto 2rem;
    padding: 1.25rem 1rem 1rem;
    box-shadow: 6px 6px 0 #000030;
  }
}

