html, body { height: 100%; }

body {
  margin: 0;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #000;
  background: #ddd url("/images/background2.jpg") repeat;
}

/* BACKGROUND OVERLAY */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
  z-index: 0;
}

a { color: #004400; text-decoration: none; }
a:hover { color: #000; text-decoration: underline; }

.page {
  width: 1100px;
  margin: 0 auto;
  padding: 16px 0 90px;
  position: relative;
  z-index: 1;
}

/* Accessibility helpers */
.skipLink {
  position: absolute;
  left: -9999px;
  top: 10px;
  padding: 8px 10px;
  background: #fff;
  color: #000;
  border: 1px solid #777;
  border-top-color: #FFF;
  border-left-color: #FFF;
  z-index: 2000;
}
.skipLink:focus { left: 10px; }

.panelHeading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

/* Panels */
.panel {
  background: #F5F5F5;
  border: 1px solid #777;
  border-top-color: #FFF;
  border-left-color: #FFF;
}

.titlebar {
  background: #D6E3F0;
  border: 1px solid #6A7A89;
  border-top-color: #FFF;
  border-left-color: #FFF;
  padding: 6px 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.desktopHeader { display: block; }

.headerImage {
  display: block;
  margin: 0 auto;
  padding: 20px 0 12px;
  max-width: 500px;
  width: 100%;
}

.spacer { height: 16px; }
.sectionSpacer { height: 12px; }

.content { padding: 14px; }
.contentCenter { padding: 14px; text-align: center; }

/* Constrain images */
.content img,
.contentCenter img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px auto 0;
}

.coolImage,
.pikachu { image-rendering: pixelated; }

/* Divider */
.hr {
  height: 1px;
  background: #AAA;
  border-bottom: 1px solid #FFF;
  margin: 10px 0;
}

/* Sidebar nav */
.navInline { padding: 8px; }
.navInline a {
  display: block;
  padding: 5px 8px;
  margin: 3px 0;
  font-size: 13px;
  background: #E0E0E0;
  border: 1px solid #777;
  border-top-color: #FFF;
  border-left-color: #FFF;
  color: #000;
}
.navInline a:hover {
  background: #D0D0D0;
  text-decoration: none;
}

/* Counter */
.counterBox { text-align: center; padding: 8px 6px 10px; }
.counterLabel { font-size: 11px; font-weight: bold; margin-bottom: 6px; letter-spacing: 0.5px; }
.counterBox img { image-rendering: pixelated; }

/* Button bar */
.buttonBar { padding: 8px 10px 12px; }
.buttonBar img {
  display: block;
  width: 88px;
  height: 31px;
  margin: 6px auto;
  image-rendering: pixelated;
  border: 1px solid #666;
  border-top-color: #FFF;
  border-left-color: #FFF;
  background: #000;
}

/* Individual update boxes */
.updateItem {
  margin-bottom: 18px;
  padding: 12px 12px 16px;
  background: #E0E0E0;
  border: 1px solid #777;
  border-top-color: #FFF;
  border-left-color: #FFF;
}

.updateDate {
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 8px;
  font-family: Arial, Helvetica, sans-serif;
}

/* Tweet feed */
.tweetFeed {
  display: grid;
  gap: 10px;
}

.tweetItem {
  padding: 10px;
  background: #F5F5F5;
  border: 1px solid #777;
  border-top-color: #FFF;
  border-left-color: #FFF;
}

.tweetMeta {
  font-size: 11px;
  font-family: Arial, Helvetica, sans-serif;
  opacity: 0.85;
  margin-bottom: 6px;
}

.tweetBody {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

.tweetBody a { word-break: break-word; }

.tweetActions {
  margin-top: 8px;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
}

/* Donate button */
.donateLink {
  display: block;
  margin: 18px auto 0;
  padding: 14px 10px;
  max-width: 520px;
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif !important;
  background: #ffeb3b;
  border-top: 2px solid #7aa7ff;
  border-left: 2px solid #7aa7ff;
  border-right: 2px solid #2c3f6f;
  border-bottom: 2px solid #2c3f6f;
  animation: donateRedGreen 1.2s steps(1, end) infinite;
}
@keyframes donateRedGreen {
  0% { color: red; }
  50% { color: green; }
  100% { color: red; }
}

/* Status bar */
#status {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #E0E0E0;
  border-top: 1px solid #777;
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  padding: 8px 12px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  z-index: 1000;
}

/* MOBILE HEADER: hidden by default on desktop */
.mobileHeader { display: none; }

/* Responsive */
@media (max-width: 760px) {

  .page {
    width: auto;
    max-width: 100%;
    padding: 0 10px calc(90px + env(safe-area-inset-bottom));
  }

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

  .leftNavCell,
  .gutterCell,
  .desktopHeader { display: none !important; }

  body { font-size: 18px; }
  .spacer { height: 8px; }

  .mobileHeader {
    display: block;
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 10px 8px 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
    transition: padding 200ms ease;
  }

  .mobileLogoLink {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    margin-bottom: 8px;
    transition: margin-bottom 200ms ease, opacity 200ms ease, max-height 200ms ease;
  }

  .mobileLogo {
    width: 100%;
    max-width: 340px;
    height: auto;
    display: block;
  }

  .mobileNav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
    margin-top: 0;
  }

  .mobileNav a {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0px;
    flex: 1 1 0px;
    min-width: 0;
    text-align: center;
    padding: 9px 6px;
    font-size: 14px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    background: #E0E0E0;
    border: 1px solid #777;
    border-top-color: #FFF;
    border-left-color: #FFF;
    color: #000;
    text-decoration: none;
    box-sizing: border-box;
  }

  .mobileNav a + a { margin-left: 8px; }

  .mobileHeader.shrink { padding: 6px 8px 8px; }

  .mobileHeader.shrink .mobileLogoLink {
    opacity: 0;
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .donateLink {
    max-width: 100%;
    font-size: 26px;
    padding: 16px 10px;
  }

  @media (prefers-reduced-motion: reduce) {
    .mobileHeader,
    .mobileLogoLink {
      transition: none;
    }
  }
}

