/* PBS ONLINE -- Piker Broadcasting Service
   Layout is done with tables, like nature intended. This file only
   holds the bits that <font> and bgcolor can't do. */

body {
  margin: 8px;
  background-color: #c0c0c0;
  background-image:
    linear-gradient(45deg, #b4b4b4 25%, transparent 25%, transparent 75%, #b4b4b4 75%),
    linear-gradient(45deg, #b4b4b4 25%, transparent 25%, transparent 75%, #b4b4b4 75%);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
  color: #000000;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
}

a:link { color: #0000ee; }
a:visited { color: #551a8b; }
a:active { color: #ff0000; }
img { border: 0; }

table.page {
  width: 640px;
  max-width: 100%;
  background: #ffffff;
  border: 3px outset #dddddd;
}

td.masthead { background: #000000; padding: 6px 10px; }
td.masthead img { max-width: 100%; height: auto; }
.online {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-weight: bold;
  font-size: 30px;
  letter-spacing: 6px;
  color: #ffcc00;
}
.tagline { font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: #ffffff; }

td.ticker {
  background: #ff6633;
  border-top: 2px solid #ffcc00;
  border-bottom: 2px solid #ffcc00;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 14px;
  color: #000000;
  padding: 2px 0;
}

td.nav {
  width: 140px;
  background: #cc3333;
  vertical-align: top;
  padding: 8px 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #ffffff;
}
td.nav a.btn {
  display: block;
  margin: 0 0 5px 0;
  padding: 4px 6px;
  background: #c0c0c0;
  border: 2px outset #ffffff;
  color: #000000;
  font-weight: bold;
  text-decoration: none;
}
td.nav a.btn:active { border-style: inset; }
td.nav a.btn.here { background: #ffcc00; border-style: inset; }
td.nav hr { border: 0; border-top: 1px solid #660000; border-bottom: 1px solid #ff9999; }
td.nav small { font-size: 11px; }
td.nav a { color: #ffff66; }

td.main { vertical-align: top; padding: 10px 12px; }

h1 { font-size: 26px; margin: 0 0 6px 0; color: #cc3333; }
h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  margin: 16px 0 8px 0;
  padding: 3px 6px;
  background: #000000;
  color: #ffcc00;
  border-left: 12px solid #ff6633;
}
hr { border: 0; border-top: 2px groove #c0c0c0; height: 0; }

table.grid { border: 2px outset #c0c0c0; background: #c0c0c0; width: 100%; }
table.grid th {
  background: #000066;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  text-align: left;
  padding: 3px 5px;
}
table.grid td {
  background: #ffffff;
  border: 1px inset #c0c0c0;
  font-size: 14px;
  padding: 3px 5px;
  vertical-align: top;
}
table.grid td.time {
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  white-space: nowrap;
  background: #ffffcc;
}

.new {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: bold;
  color: #ffff00;
  background: #ff0000;
  padding: 0 3px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { visibility: hidden; } }

.box { border: 2px inset #c0c0c0; background: #ffffcc; padding: 6px 8px; font-size: 14px; }

.construction {
  border: 2px solid #000000;
  padding: 5px;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 13px;
  background: repeating-linear-gradient(45deg, #ffcc00 0 12px, #000000 12px 24px);
}
.construction span { background: #ffcc00; padding: 2px 8px; }

/* pledge drive thermometer */
table.therm { border: 2px inset #c0c0c0; background: #ffffff; width: 100%; height: 18px; }
table.therm td.full { background: #ff3333; }
table.therm td.empty { background: #ffffff; }

.counter {
  display: inline-block;
  background: #000000;
  color: #33ff33;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 4px;
  padding: 1px 2px 1px 6px;
  border: 2px inset #999999;
}

td.footer {
  background: #000000;
  color: #c0c0c0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  padding: 8px;
  text-align: center;
}
td.footer a { color: #ffcc00; }
.badge {
  display: inline-block;
  margin: 4px 2px;
  padding: 2px 6px;
  border: 2px outset #c0c0c0;
  background: #c0c0c0;
  color: #000000;
  font-size: 10px;
  font-weight: bold;
}

input, select, textarea { font-family: "Courier New", Courier, monospace; font-size: 13px; max-width: 100%; }

/* For visitors on a "palm-top computer" */
@media (max-width: 520px) {
  td.nav, td.main { display: block; width: auto; }
  td.nav a.btn { display: inline-block; margin-right: 3px; }
  td.nav .extras { display: none; }
  .online { font-size: 22px; letter-spacing: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .new { animation: none; }
}

/* P-Head in the sidebar sits on black, like the masthead */
td.nav .extras img { background: #000000; border: 2px inset #c0c0c0; padding: 4px; }
