html {
  background: #003399;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

body {
  margin: 0;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

a {
  color: #0000ee;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px dotted #ff0000;
  outline-offset: 2px;
}

button,
input,
textarea {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

button {
  background: #d4d0c8;
  border: 2px outset #ffffff;
  color: #000000;
  cursor: pointer;
  padding: 3px 10px;
}

button:active {
  border-style: inset;
}

button:disabled {
  color: #666666;
  cursor: wait;
}

.page-shell {
  width: 760px;
  margin: 12px auto;
  background: #ffffcc;
  border: 4px ridge #ffcc00;
  box-shadow: 8px 8px 0 #001a66;
}

.top-strip {
  background: #ffcc00;
  color: #000000;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  padding: 3px 6px;
  border-bottom: 2px solid #000000;
}

.header {
  background: #ffffff;
  padding: 6px 8px;
  border-bottom: 2px solid #000000;
}

.logo-table {
  width: 100%;
  border-collapse: collapse;
}

.logo-cell {
  width: 66px;
  text-align: center;
  vertical-align: middle;
}

.logo-mark {
  display: inline-block;
  width: 54px;
  height: 54px;
  background: #000080;
  border: 3px outset #c0c0c0;
  color: #ffffff;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  font-weight: bold;
  line-height: 1;
  padding-top: 7px;
}

.site-title {
  margin: 0;
  color: #cc0000;
  font-family: "Times New Roman", Times, serif;
  font-size: 38px;
  letter-spacing: 0;
  text-shadow: 2px 2px #cccccc;
}

.tagline {
  margin: 2px 0 0;
  color: #000080;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  font-weight: bold;
}

.badge-row {
  margin: 5px 0 0;
  font-size: 12px;
}

.blink {
  animation: blink 0.8s steps(2, start) infinite;
  background: #ff0000;
  border: 2px solid #ffff00;
  color: #ffffff;
  display: inline-block;
  font-weight: bold;
  padding: 2px 5px;
}

@keyframes blink {
  50% {
    visibility: hidden;
  }
}

.layout-table {
  width: 100%;
  border-collapse: collapse;
}

.side-nav {
  width: 154px;
  vertical-align: top;
  background: #ccffff;
  border-right: 2px solid #000000;
  padding: 8px;
}

.side-nav h2 {
  margin: 0 0 6px;
  background: #000080;
  color: #ffffff;
  font-size: 13px;
  padding: 3px;
  text-align: center;
}

.side-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-nav li {
  margin: 0 0 5px;
}

.nav-button {
  display: block;
  background: #eeeeee;
  border: 2px outset #ffffff;
  padding: 3px 4px;
}

.nav-button.is-active {
  background: #ffff99;
  color: #000080;
  font-weight: bold;
}

.nav-button.is-active::before {
  content: ">> ";
}

.cta-row {
  margin: 8px 0 0;
}

.primary-cta {
  display: inline-block;
  background: #ffff00;
  border: 3px outset #ffffff;
  color: #cc0000;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 8px;
  text-decoration: underline;
}

.primary-cta:visited {
  color: #cc0000;
}

.content {
  vertical-align: top;
  background: #ffffcc;
  padding: 10px;
}

.right-rail {
  width: 154px;
  vertical-align: top;
  background: #eeeeee;
  border-left: 2px solid #000000;
  padding: 8px;
}

.box {
  background: #ffffff;
  border: 2px groove #999999;
  margin-bottom: 10px;
  padding: 7px;
}

.box h2,
.box h3 {
  margin: -7px -7px 7px;
  background: #000080;
  color: #ffffff;
  font-size: 15px;
  padding: 4px 6px;
}

.box h3 {
  background: #800080;
  font-size: 13px;
}

.micro {
  font-size: 11px;
}

.mono {
  font-family: "Courier New", Courier, monospace;
}

.feature-list,
.download-list,
.faq-list,
.testimonials {
  margin: 0;
  padding-left: 18px;
}

.feature-list li,
.download-list li,
.faq-list li,
.testimonials li {
  margin-bottom: 6px;
}

.price-table,
.records-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.price-table th,
.price-table td,
.records-table th,
.records-table td {
  border: 1px solid #000000;
  padding: 5px;
  vertical-align: top;
}

.price-table th,
.records-table th {
  background: #ffcc00;
}

.principle-table th:first-child,
.principle-table td:first-child {
  width: 28%;
}

.old-alert {
  background: #ff99cc;
  border: 2px dashed #cc0000;
  font-weight: bold;
  padding: 6px;
  text-align: center;
}

.fake-counter {
  display: inline-block;
  background: #000000;
  border: 2px inset #666666;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  font-size: 18px;
  letter-spacing: 2px;
  padding: 2px 5px;
}

.small-counter {
  font-size: 15px;
  letter-spacing: 1px;
}

.ascii-seal,
.mood-meter {
  background: #000000;
  border: 2px inset #666666;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  margin: 6px 0;
  padding: 5px;
  text-align: center;
}

.mood-meter {
  color: #ffff00;
  font-size: 12px;
}

.side-gag ul {
  margin: 0;
  padding-left: 16px;
}

.side-gag li {
  margin-bottom: 5px;
}

.asset-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.asset-line img {
  flex: 0 0 auto;
}

.validator-panel {
  background: #e5e5e5;
  border: 3px inset #ffffff;
  padding: 10px;
}

.progress-list {
  min-height: 112px;
  margin: 10px 0;
  padding-left: 20px;
}

.result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.result-badge {
  display: inline-block;
  background: #ffff00;
  border: 2px solid #000000;
  color: #000000;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  padding: 4px 6px;
}

.hidden {
  display: none;
}

.guestbook textarea {
  box-sizing: border-box;
  display: block;
  height: 72px;
  margin: 4px 0 8px;
  width: 100%;
}

.guestbook input {
  box-sizing: border-box;
  margin: 4px 0 8px;
  width: 100%;
}

.guestbook-entry {
  background: #ffffff;
  border: 1px solid #000000;
  margin: 7px 0;
  padding: 5px;
}

.footer {
  background: #000000;
  color: #ffffff;
  font-size: 11px;
  padding: 8px;
  text-align: center;
}

.footer a {
  color: #99ccff;
}

.webring {
  text-align: center;
}

.webring img,
.rail-image,
.download-icon {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.download-link {
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
}

.download-status {
  background: #ccffff;
  border: 1px solid #000000;
  font-family: "Courier New", Courier, monospace;
  margin: 8px 0;
  padding: 5px;
}

.status-ok {
  color: #008000;
  font-weight: bold;
}

.status-warn {
  color: #cc0000;
  font-weight: bold;
}

@media (max-width: 800px) {
  .page-shell {
    width: calc(100% - 16px);
    margin: 8px;
  }

  .layout-table,
  .layout-table tbody,
  .layout-table tr,
  .layout-table td {
    display: block;
    width: auto;
  }

  .side-nav,
  .right-rail {
    border: 0;
    border-bottom: 2px solid #000000;
  }

  .site-title {
    font-size: 32px;
  }

  .primary-cta {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .blink {
    animation: none;
  }
}
