* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 16px;
  background: #c0c0c0;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
}

a {
  color: #0000ee;
}

a:visited {
  color: #551a8b;
}

a:hover {
  color: #ff0000;
}

.banner {
  text-align: center;
  background: #000080;
  color: #ffff00;
  padding: 12px 8px;
  border: 4px outset #808080;
  font-size: clamp(12px, 4vw, 28px);
  font-weight: bold;
  letter-spacing: clamp(0px, 0.35vw, 2px);
  line-height: 1.2;
  text-shadow: 2px 2px #000000;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.nav {
  text-align: center;
  margin: 12px 0;
  padding: 8px 4px;
  background: #d4d0c8;
  border: 2px inset #808080;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}

.nav a {
  margin: 0;
  font-weight: bold;
  text-decoration: underline;
}

.nav a.active {
  color: #000000;
  text-decoration: none;
  background: #ffffff;
  padding: 2px 6px;
  border: 1px inset #808080;
}

hr {
  border: none;
  height: 2px;
  background: #808080;
  margin: 16px 0;
}

.panel {
  background: #d4d0c8;
  border: 2px inset #808080;
  padding: 12px;
}

.panel-title {
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin: 0 0 12px 0;
  text-decoration: underline;
}

.live-feed {
  text-align: center;
  margin: 0 auto;
  max-width: 960px;
}

.live-feed img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 3px inset #808080;
  background: #000000;
}

.live-label {
  margin-top: 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: #008000;
}

.live-timestamp {
  margin: 4px 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  color: #404040;
}

.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

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

.content-table td {
  vertical-align: top;
  padding: 0 6px;
}

.graphs-panel {
  min-height: 280px;
}

.graph-placeholder {
  height: 200px;
  background: #000000;
  border: 2px inset #808080;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  margin-bottom: 12px;
}

.stats-panel {
  min-height: 280px;
}

.stat-block {
  text-align: center;
  margin-bottom: 16px;
  padding: 12px;
  background: #ffffff;
  border: 2px outset #808080;
}

.stat-value {
  font-size: 48px;
  font-weight: bold;
  font-family: "Courier New", Courier, monospace;
  color: #000080;
  line-height: 1;
}

.stat-value--ok {
  color: #008000;
}

.stat-value--bad {
  color: #cc0000;
}

#stat-status {
  font-size: 32px;
}

.stat-label {
  font-size: 14px;
  margin-top: 4px;
  text-transform: uppercase;
}

.placeholder-page {
  text-align: center;
  padding: 48px 16px;
}

.placeholder-page h2 {
  font-size: 24px;
}

.under-construction {
  font-size: 48px;
  margin: 24px 0;
}

.footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  font-family: "Courier New", Courier, monospace;
  color: #404040;
}

@media (max-width: 640px) {
  body {
    padding: 8px;
  }

  .banner {
    padding: 10px 6px;
    border-width: 3px;
  }

  .content-table,
  .content-table tbody,
  .content-table tr,
  .content-table td {
    display: block;
    width: 100% !important;
  }

  .content-table td {
    padding: 0;
  }

  .content-table td + td {
    margin-top: 12px;
  }

  .stat-value {
    font-size: 36px;
  }

  #stat-status {
    font-size: 24px;
  }

  .panel {
    padding: 10px;
  }
}
