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

h1 {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  color: #000080;
}

a { color: #0000ee; }
a:visited { color: #551a8b; }

hr {
  border: 0;
  border-top: 2px groove #ffffff;
}

marquee {
  background: #000080;
  color: #ffff00;
  padding: 2px;
}

.cam-frame {
  background: #ffffff;
  width: 100%;
  max-width: 660px;
}

.cam-title {
  background: #000080;
  color: #ffffff;
  font-family: "Courier New", Courier, monospace;
  text-align: left;
}

#camera-feed {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000000;
  overflow: hidden;
}

#camera-feed img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cam-overlay {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffff00;
  font: 12px "Courier New", Courier, monospace;
  padding: 1px 4px;
}

blink {
  color: #ff0000;
  animation: blink 1s step-start infinite;
}

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

.info {
  background: #ffffff;
}

.counter {
  background: #000000;
  color: #00ff00;
  font-family: "Courier New", Courier, monospace;
  padding: 0 4px;
  letter-spacing: 2px;
}

/* ---- full-width pixel scene (wall, goat, pad with the site name) ---- */
.goat-strip {
  position: relative;
  margin: 6px -8px;          /* cancel the body margin so it spans the page */
  border-top: 2px solid #808080;
  border-bottom: 2px solid #ffffff;
  line-height: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#goat-cam {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.goat-bubble {
  position: absolute;
  transform: translate(-50%, -100%);
  background: #ffffe0;
  border: 1px solid #000000;
  padding: 1px 4px;
  font: bold 11px "Comic Sans MS", "Comic Sans", cursive;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.goat-bubble[hidden] { display: none; }

/* ---- info table extras ---- */
.clock {                         /* Windows 95 taskbar clock */
  background: #c0c0c0;
  color: #000000;
  border: 2px inset #ffffff;
  font: 13px "MS Sans Serif", Tahoma, Geneva, Verdana, sans-serif;
  padding: 1px 6px;
}

/* ---- meet the goats ---- */
.section-title {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  color: #800080;
}

.gotd {
  display: inline-block;
  background: #ffff00;
  border: 2px outset #ffffff;
  padding: 2px 8px;
  font-weight: bold;
}

.goat-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 8px 0;
}

.goat-card {
  width: 300px;
  max-width: 100%;
  background: #fffff0;
  text-align: left;
  font-size: 14px;
}

.goat-card th {
  background: #800080;
  color: #ffff00;
  font: bold 18px "Comic Sans MS", "Comic Sans", cursive;
}

.goat-card.winner th::after { content: " \1F451"; }   /* crown on today's winner */
.goat-card.winner { border-color: #ffd700; }

.goat-card .portrait { text-align: center; background: #e8e8e8; }

.goat-portrait {
  width: 128px;
  height: 88px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 2px inset #ffffff;
}

/* ---- status line (posted from Slack) ---- */
.new-badge {
  background: #ff0000;
  color: #ffff00;
  font: bold 11px "Courier New", Courier, monospace;
  padding: 1px 4px;
  animation: blink 1s step-start infinite;
}
.new-badge[hidden] { display: none; }

/* each goat's card header in her own colours */
.goat-card[data-goat-card="brown"] th { background: #9a5a2a; color: #fff3d6; }   /* Dannii */
.goat-card[data-goat-card="white"] th { background: #d9a066; color: #3a2410; }   /* Kylie */

/* ---- guestbook ---- */
.gb-form { display: inline-block; text-align: left; }
.gb-form input[type=text], .gb-form input:not([type]), .gb-form textarea {
  font: 14px "Courier New", Courier, monospace;
  border: 2px inset #ffffff;
  width: 280px;
  max-width: 60vw;
}
.gb-form input[type=submit] {
  font: bold 14px "MS Sans Serif", Tahoma, Geneva, Verdana, sans-serif;
  background: #c0c0c0;
  border: 2px outset #ffffff;
  padding: 3px 10px;
  cursor: pointer;
}
.gb-form input[type=submit]:active { border-style: inset; }
.gb-trap { position: absolute; left: -9999px; }   /* spam trap, see index.html */
.gb-note { font-weight: bold; color: #006000; }
.gb-note.bad { color: #c00000; }
.gb-entries { max-width: 600px; margin: 12px auto; text-align: left; }
.gb-entry {
  background: #ffffe0;
  border: 2px ridge #ffffff;
  padding: 6px 8px;
  margin: 8px 0;
}
.gb-head b { color: #000080; font-family: "Comic Sans MS", "Comic Sans", cursive; }
.gb-text { margin-top: 3px; overflow-wrap: anywhere; }
.gb-nav { font: bold 14px "Comic Sans MS", "Comic Sans", cursive; }

/* ---- under construction sign ---- */
#construction {
  width: 192px;
  height: 68px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
