/* The hidden guestbook. Deliberately 1998. */
html { background: #000016; }
body {
  margin: 0; padding: 16px; color: #fff; background: #000016;
  font: 16px/1.4 "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive;
}
.gb-stars {
  position: fixed; inset: 0; z-index: -1;
  background-color: #000016;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 120px, #ffd 50%, transparent 51%),
    radial-gradient(2px 2px at 150px 60px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 200px 170px, #aaf 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 190px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 230px 15px, #ffa 50%, transparent 51%);
  background-size: 250px 210px;
}
a { color: #00ffff; }
a:visited { color: #ff66ff; }
a:hover { color: #ffff00; }
center { display: block; }
.gb-frame {
  width: 100%; max-width: 720px; margin: 0 auto; text-align: center;
  background: #000080; border: 6px ridge #c0c0c0;
}
.gb-frame > tbody > tr > td { padding: 12px; }
.gb-title {
  margin: .2em 0 .4em; font-size: clamp(1.4rem, 5vw, 2.2rem); font-family: "Times New Roman", Times, serif; font-style: italic;
  background: linear-gradient(90deg, #f00, #f80, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gb-rainbow 4s linear infinite; text-shadow: none;
}
.gb-title span { color: #ff0; -webkit-text-fill-color: #ff0; }
@keyframes gb-rainbow { to { background-position: 200% 0; } }
.gb-marquee { display: block; color: #ff0; background: #000; border: 2px inset #c0c0c0; padding: 4px 0; font-family: "Courier New", monospace; font-weight: bold; }
.gb-top { width: 100%; margin: 12px 0; border-collapse: separate; border-spacing: 6px; }
.gb-top td { width: 33%; vertical-align: middle; background: #000040; border: 3px outset #c0c0c0; padding: 8px 4px; font-size: .9rem; }
.gb-blink { color: #ff0; font-weight: bold; font-size: .75rem; animation: gb-blink 1s steps(1) infinite; }
@keyframes gb-blink { 50% { visibility: hidden; } }
.gb-counter { display: inline-flex; gap: 2px; margin: 4px 0; padding: 3px; background: #333; border: 2px inset #888; }
.gb-counter span { display: inline-block; width: 1.1em; background: #000; color: #0f0; font: bold 1.2rem/1.4 "Courier New", monospace; text-shadow: 0 0 4px #0f0; }
.gb-small { font-size: .78rem; color: #c0c0ff; }
.gb-button {
  font: bold 14px "MS Sans Serif", Tahoma, Arial, sans-serif; color: #000; background: #c0c0c0;
  border: 2px outset #fff; padding: 3px 12px; cursor: pointer; margin-top: 4px;
}
.gb-button:active { border-style: inset; }
.gb-secret { color: #0f0; font-family: "Courier New", monospace; font-weight: bold; }
.gb-flash { background: #ff0; color: #000; font-weight: bold; border: 3px dashed #f00; padding: 6px; }
.gb-flash.err { background: #f00; color: #fff; border-color: #ff0; }
.gb-rainbow { height: 6px; border: 0; margin: 18px 0; background: linear-gradient(90deg, #f00, #f80, #ff0, #0f0, #0ff, #00f, #f0f); }
.gb-heading { font-family: "Times New Roman", Times, serif; color: #ff0; font-size: 1.6rem; margin: .3em 0; }
.gb-heading img { vertical-align: middle; }
.gb-form table { margin: 0 auto; text-align: left; background: #c0c0c0; color: #000; border: 3px outset #fff; font-family: Arial, Helvetica, sans-serif; font-size: .92rem; width: 100%; max-width: 560px; }
.gb-form td:first-child { white-space: nowrap; font-weight: bold; }
.gb-form .gb-top-align { vertical-align: top; }
.gb-form input, .gb-form select, .gb-form textarea { width: 100%; box-sizing: border-box; font: 14px "Courier New", monospace; border: 2px inset #fff; background: #fff; color: #000; padding: 2px 4px; }
.gb-form .gb-small { color: #000080; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.gb-empty { color: #ff0; }
.gb-new { color: #f00; background: #ff0; font-weight: bold; padding: 0 4px; animation: gb-blink 1s steps(1) infinite; }
.gb-entry { width: 100%; margin: 0 0 14px; text-align: left; border: 3px ridge #c0c0c0; background: #fffbe6; color: #000; font-family: "Times New Roman", Times, serif; }
.gb-entry.alt { background: #e6f0ff; }
.gb-entry a { color: #00e; }
.gb-entry a:visited { color: #551a8b; }
.gb-entry-head { background: #008080; color: #fff; }
.gb-entry-head a { color: #ff0; }
.gb-entry-head a:visited { color: #fc9; }
.gb-entry-head .gb-small { color: #dff; }
.gb-entry-body { font-size: 1.05rem; overflow-wrap: anywhere; }
.gb-entry-tools { text-align: right; }
.gb-link-button { background: none; border: 0; color: #c00; cursor: pointer; font: inherit; font-size: .8rem; text-decoration: underline; }
.smiley { font-style: normal; }
.gb-pager span { color: #888; }
.gb-webring { font-family: "Courier New", monospace; font-weight: bold; }
.gb-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gb-badge { display: inline-block; width: 88px; height: 31px; box-sizing: border-box; font: 9px/1.2 Verdana, Arial, sans-serif; color: #fff; border: 1px solid #fff; padding: 2px; text-align: center; }
.gb-badge b { font-size: 10px; }
.gb-badge.b1 { background: linear-gradient(#336, #003); }
.gb-badge.b2 { background: linear-gradient(#77b, #449); }
.gb-badge.b3 { background: linear-gradient(#060, #030); color: #ff0; }
.gb-badge.b4 { background: linear-gradient(#a00, #500); }
.gb-exit { font-size: .9rem; }
.gb-sparkle { position: fixed; pointer-events: none; z-index: 10; font-size: 14px; color: #ff0; animation: gb-sparkle .8s ease-out forwards; }
@keyframes gb-sparkle { to { transform: translateY(18px) scale(.3); opacity: 0; } }
@media (max-width: 560px) {
  body { padding: 6px; }
  .gb-top, .gb-top tbody, .gb-top tr, .gb-top td { display: block; width: auto; }
  .gb-form table, .gb-form tbody, .gb-form tr, .gb-form td { display: block; }
  .gb-form td:first-child { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .gb-title, .gb-blink, .gb-new { animation: none; }
}
