/* MegaWatts World placeholder — 1999 presentation, local CSS only. */

body {
  min-width: 0;
  margin: 0;
  background-color: #3a3a3a;
  background-image:
    linear-gradient(45deg, #414141 25%, transparent 25%),
    linear-gradient(-45deg, #414141 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #303030 75%),
    linear-gradient(-45deg, transparent 75%, #303030 75%);
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
  background-size: 8px 8px;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
}

a:link,
a:visited,
a:hover,
a:focus {
  color: #000000;
}

.skip-link {
  position: absolute;
  top: -6rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.45rem 0.7rem;
  border: 2px outset #ffffff;
  background: #ffffcc;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-weight: bold;
}

.skip-link:focus {
  top: 0.5rem;
}

.page-shell {
  width: 96%;
  max-width: 60rem;
  margin-right: auto;
  margin-left: auto;
}

.banner-frame {
  width: 100%;
  max-width: 40rem;
  margin-top: 0.75rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.banner-frame td {
  background: transparent;
}

.site-banner {
  display: block;
  width: 100%;
  max-width: 40rem;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  mix-blend-mode: lighten;
}

.window {
  background: #c0c0c0;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #dfdfdf,
    inset -2px -2px #808080,
    inset 2px 2px #ffffff,
    0.55rem 0.55rem 0 #202020;
}

.title-bar,
.error-title-bar {
  table-layout: fixed;
  background-color: #000080;
  background-image: linear-gradient(90deg, #000080, #1084d0);
  color: #ffffff;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.9rem;
}

.title-bar > tbody > tr > td:last-child {
  width: 3.55rem;
}

.title-bar-text {
  overflow: hidden;
  padding-left: 0.2rem;
  color: #ffffff;
  font-weight: bold;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 0 #000000;
  white-space: nowrap;
}

.title-icon,
.heading-icon {
  display: inline-block;
  vertical-align: middle;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.title-icon {
  position: relative;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.2rem;
  border: 1px solid #ffffff;
  background: #c0c0c0;
  box-shadow: 1px 1px 0 #000000;
}

.title-icon::before {
  position: absolute;
  top: 0.12rem;
  right: 0.12rem;
  bottom: 0.12rem;
  left: 0.12rem;
  border-top: 0.18rem solid #00a8a8;
  border-bottom: 0.18rem solid #ffdf00;
  content: "";
}

.title-icon-document::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 0.34rem;
  height: 0.34rem;
  background: #ffffff;
  box-shadow: -1px -1px 0 #000080;
  content: "";
}

.heading-icon {
  position: relative;
  width: 1.05rem;
  height: 0.72rem;
  margin-right: 0.25rem;
  border: 1px solid #806000;
  background: #ffdf55;
  box-shadow: inset 1px 1px 0 #ffffcc;
}

.heading-icon::before {
  position: absolute;
  top: -0.28rem;
  left: -1px;
  width: 0.52rem;
  height: 0.26rem;
  border: 1px solid #806000;
  border-bottom: 0;
  background: #ffdf55;
  content: "";
}

.window-control {
  background: #c0c0c0;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.85rem;
  font-weight: bold;
  line-height: 0.8rem;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #ffffff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
}

.window-body {
  background: #c0c0c0;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
}

.window-body h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.5rem, 3.8vw, 2.25rem);
  line-height: 1.08;
}

.window-body p {
  max-width: 42rem;
  color: #000000;
  font-size: 1.05rem;
  line-height: 1.4;
}

.dialog-icon {
  display: inline-grid;
  place-items: center;
  margin-top: 0.25rem;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.warning-icon {
  width: 2.35rem;
  height: 2.1rem;
  padding-top: 0.35rem;
  background: #fff000;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter:
    drop-shadow(1px 0 0 #000000)
    drop-shadow(-1px 0 0 #000000)
    drop-shadow(0 1px 0 #000000);
  font-size: 1.35rem;
  line-height: 1;
}

.dialog-icon-large {
  margin-top: 0;
}

.question-icon {
  width: 2.6rem;
  height: 3rem;
  border: 1px solid #000000;
  background: #ffffff;
  color: #000080;
  font-size: 2rem;
  text-shadow: 1px 1px 0 #c0c0c0;
  box-shadow:
    inset -2px -2px #808080,
    inset 2px 2px #ffffff,
    0.2rem 0.2rem 0 #808080;
}

.window-body .error-code {
  margin: 0 0 0.2rem;
  color: #000080;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: bold;
  line-height: 0.88;
  text-shadow: 2px 2px 0 #ffffff;
}

.progress-well {
  min-height: 1.5rem;
  box-shadow:
    inset -1px -1px #ffffff,
    inset 1px 1px #808080,
    inset -2px -2px #dfdfdf,
    inset 2px 2px #0a0a0a;
}

.progress-blocks {
  min-width: 9rem;
}

.win-button {
  display: inline-block;
  min-width: 9rem;
  padding: 0.4rem 0.9rem;
  background: #c0c0c0;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.95rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  box-shadow:
    inset -1px -1px #0a0a0a,
    inset 1px 1px #ffffff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf;
}

.link-button:link,
.link-button:visited,
.link-button:hover,
.link-button:focus {
  color: #000000;
}

.link-button:hover,
.link-button:focus {
  outline: 2px dotted #000000;
  outline-offset: -0.28rem;
}

.link-button:active {
  padding-top: 0.46rem;
  padding-bottom: 0.34rem;
  box-shadow:
    inset -1px -1px #ffffff,
    inset 1px 1px #0a0a0a,
    inset -2px -2px #dfdfdf,
    inset 2px 2px #808080;
}

.status-bar {
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.82rem;
}

.status-field {
  padding: 0.2rem 0.35rem;
  color: #000000;
  box-shadow:
    inset -1px -1px #dfdfdf,
    inset 1px 1px #808080;
}

.notice-board {
  background: #c0c0c0;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  box-shadow:
    inset -1px -1px #202020,
    inset 1px 1px #ffffff,
    inset -2px -2px #808080,
    inset 2px 2px #dfdfdf,
    0.45rem 0.45rem 0 #202020;
}

.notice-heading {
  padding: 0.35rem 0.55rem;
  background-color: #c0c0c0;
  background-image: linear-gradient(90deg, #b5b5b5, #dfdfdf);
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #ffffff;
}

.notice-heading h2 {
  margin: 0;
  color: inherit;
  font: inherit;
}

.notice-copy {
  padding: 0.45rem 0.9rem;
  background: #c0c0c0;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.05rem;
  line-height: 1.4;
}

.badge {
  background: #dfdfdf;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.68rem;
  line-height: 0.8rem;
  text-shadow: 1px 1px 0 #ffffff;
  box-shadow:
    inset -1px -1px #202020,
    inset 1px 1px #ffffff,
    0.18rem 0.18rem 0 #000000;
}

.badge b {
  color: #000000;
  font-size: 0.8rem;
}

.badge-blue,
.badge-red,
.badge-green {
  background-image: linear-gradient(#dfdfdf, #a0a0a0);
}

.footer-table {
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.95rem;
}

.footer-table table {
  background: #c0c0c0;
  color: #000000;
  box-shadow:
    inset -1px -1px #202020,
    inset 1px 1px #ffffff;
}

@media (max-width: 42rem) {
  body {
    font-size: 0.9rem;
  }

  .page-shell {
    width: calc(100% - 0.75rem);
  }

  .window,
  .notice-board {
    width: calc(100% - 0.75rem);
  }

  .warning-cell {
    width: 46px;
  }

  .window-body h1 {
    font-size: clamp(1.35rem, 6.5vw, 1.7rem);
    overflow-wrap: anywhere;
  }

  .window-body p {
    font-size: 1rem;
    line-height: 1.35;
  }

  .error-window .warning-cell {
    width: 48px;
  }

  .window-body .error-code {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .link-button {
    box-sizing: border-box;
    max-width: calc(100vw - 3.5rem);
    padding: 0.55rem 0.8rem;
  }

  .status-field {
    display: table-cell;
    font-size: 0.72rem;
  }
}

@media (forced-colors: active) {
  .window,
  .notice-board,
  .banner-frame,
  .win-button {
    box-shadow: none;
  }

  .site-banner {
    mix-blend-mode: normal;
  }
}
