:root {
  --face: #c0c0c0;
  --light: #ffffff;
  --shade: #808080;
  --ink: #000000;
  --title: #000080;
  --link: #0000ee;
  --visited: #551a8b;
  --hot: #ff0000;
  --mark: #ffff00;
  --chrome: "MS Sans Serif", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  background: #ffffff;
  color: var(--ink);
}

body {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 12px 40px;
  font: 17px/1.45 "Times New Roman", Times, serif;
}

a {
  color: var(--link);
}

a:visited {
  color: var(--visited);
}

a:hover {
  color: var(--hot);
}

img {
  image-rendering: pixelated;
}

h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin: 34px 0 6px;
  font-size: 26px;
}

p {
  margin: 0 0 12px;
}

code,
textarea {
  font: 14px/1.4 "Courier New", Courier, monospace;
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 18px;
  padding-bottom: 10px;
  border-bottom: 3px double var(--ink);
}

.masthead p {
  margin: 0;
  font-style: italic;
}

.nav {
  margin: 10px 0 0;
  font-family: var(--chrome);
  font-size: 14px;
}

.nav a {
  margin-right: 10px;
}

.counter {
  margin: 22px 0 8px;
}

.odometer {
  display: inline-block;
  padding: 2px 4px;
  font: bold 22px/1 "Courier New", Courier, monospace;
  letter-spacing: 0.4ch;
  color: #ffffff;
  background:
    repeating-linear-gradient(90deg, #000000 0 1.3ch, #3a3a3a 1.3ch 1.4ch),
    #000000;
  border: 2px inset var(--face);
  vertical-align: -3px;
}

.odometer.hot {
  color: var(--hot);
}

.river {
  overflow: hidden;
  margin: 16px 0 0;
  padding: 4px 0;
  border: 3px groove var(--face);
}

.river div {
  display: flex;
  gap: 4px;
  width: max-content;
  animation: river 120s linear infinite;
}

.river:hover div {
  animation-play-state: paused;
}

.river a,
.wall a {
  display: block;
  position: relative;
  width: 88px;
  height: 31px;
  background-color: #e8e8e8;
  image-rendering: pixelated;
}

.sheet {
  display: contents;
}

.sheet a:nth-child(10n + 2) {
  background-position-x: -88px;
}

.sheet a:nth-child(10n + 3) {
  background-position-x: -176px;
}

.sheet a:nth-child(10n + 4) {
  background-position-x: -264px;
}

.sheet a:nth-child(10n + 5) {
  background-position-x: -352px;
}

.sheet a:nth-child(10n + 6) {
  background-position-x: -440px;
}

.sheet a:nth-child(10n + 7) {
  background-position-x: -528px;
}

.sheet a:nth-child(10n + 8) {
  background-position-x: -616px;
}

.sheet a:nth-child(10n + 9) {
  background-position-x: -704px;
}

.sheet a:nth-child(10n + 10) {
  background-position-x: -792px;
}

.sheet a:nth-child(n + 11) {
  background-position-y: -31px;
}

.sheet a:nth-child(n + 21) {
  background-position-y: -62px;
}

.sheet a:nth-child(n + 31) {
  background-position-y: -93px;
}

.sheet a:nth-child(n + 41) {
  background-position-y: -124px;
}

.sheet a:nth-child(n + 51) {
  background-position-y: -155px;
}

.sheet a:nth-child(n + 61) {
  background-position-y: -186px;
}

.sheet a:nth-child(n + 71) {
  background-position-y: -217px;
}

.sheet a:nth-child(n + 81) {
  background-position-y: -248px;
}

.sheet a:nth-child(n + 91) {
  background-position-y: -279px;
}

.sheet a:nth-child(n + 101) {
  background-position-y: -310px;
}

.sheet a:nth-child(n + 111) {
  background-position-y: -341px;
}

.sheet a:nth-child(n + 121) {
  background-position-y: -372px;
}

.sheet a:nth-child(n + 131) {
  background-position-y: -403px;
}

.sheet a:nth-child(n + 141) {
  background-position-y: -434px;
}

.sheet a:nth-child(n + 151) {
  background-position-y: -465px;
}

.sheet a:nth-child(n + 161) {
  background-position-y: -496px;
}

.sheet a:nth-child(n + 171) {
  background-position-y: -527px;
}

.sheet a:nth-child(n + 181) {
  background-position-y: -558px;
}

.sheet a:nth-child(n + 191) {
  background-position-y: -589px;
}

.river a img,
.wall a img {
  position: absolute;
  inset: 0;
}

@keyframes river {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .river div {
    flex-wrap: wrap;
    width: auto;
    animation: none;
  }

  .river .echo {
    display: none;
  }
}

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, 88px);
  justify-content: center;
  gap: 3px;
  padding: 6px;
  border: 3px ridge var(--face);
}


.window {
  background: var(--face);
  border: 2px outset var(--face);
  box-shadow: 1px 1px 0 var(--ink);
  font-family: var(--chrome);
  font-size: 13px;
}

.window > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 3px 2px 5px;
  color: #ffffff;
  background: var(--title);
  font-weight: bold;
}

.window > header button {
  width: 18px;
  height: 16px;
  padding: 0;
  font: bold 12px/1 var(--chrome);
}

.window .body {
  padding: 8px;
}

button,
input[type="submit"] {
  padding: 3px 12px;
  color: var(--ink);
  background: var(--face);
  border: 2px outset var(--face);
  border-radius: 0;
  font: 13px var(--chrome);
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
  background: #d4d4d4;
}

button:active,
input[type="submit"]:active {
  border-style: inset;
}

input[type="search"],
textarea {
  padding: 3px 4px;
  background: #ffffff;
  border: 2px inset var(--face);
  border-radius: 0;
}

input[type="search"] {
  font: 13px var(--chrome);
}

textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}

.linkus {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 8px;
}

footer {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 3px double var(--ink);
  font-size: 15px;
}

.buttons-list {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.hosts-list {
  columns: 220px;
  margin: 0;
  padding-left: 20px;
}

.empty {
  color: var(--shade);
  font-style: italic;
}

mark {
  background: var(--mark);
}

.echo {
  display: contents;
}
