* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Comic Sans MS", "Comic Sans", cursive, sans-serif;
  color: #000;
  background-color: #0a0014;
  background-image:
    linear-gradient(#1a0030 1px, transparent 1px),
    linear-gradient(90deg, #1a0030 1px, transparent 1px),
    radial-gradient(circle, #00ff99 1.5px, transparent 1.5px);
  background-size: 32px 32px, 32px 32px, 64px 64px;
  background-position: 0 0, 0 0, 16px 16px;
}

.topmarquee, .bottommarquee {
  background: #000;
  color: #0f0;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 16px;
  padding: 4px 0;
  border-top: 2px solid #0f0;
  border-bottom: 2px solid #0f0;
}

.mainlayout {
  width: min(94vw, 720px);
  margin: 18px auto;
  background: #d4d0c8;
  border: 3px outset #eee;
  box-shadow: 6px 6px 0 #000, 0 0 30px rgba(0, 255, 153, 0.25);
}

.mainlayout td {
  padding: 0;
}

.titlebar {
  background: linear-gradient(90deg, #004d40, #00bfa5);
  color: #fff;
  font-family: Tahoma, Arial, sans-serif;
  font-weight: bold;
  font-size: 13px;
  padding: 4px 8px;
}

.mainlayout > tbody > tr > td {
  background: #f5f5f0;
  padding: 20px 16px 26px;
}

h1.rainbow {
  font-size: clamp(1.3rem, 5vw, 2.1rem);
  margin: 6px 0 14px;
  letter-spacing: 1px;
  animation: rainbow 3s linear infinite;
  text-shadow: 2px 2px 0 #000;
}

@keyframes rainbow {
  0%   { color: #ff0000; }
  16%  { color: #ff9900; }
  33%  { color: #ffee00; }
  50%  { color: #33ff00; }
  66%  { color: #0099ff; }
  83%  { color: #cc00ff; }
  100% { color: #ff0000; }
}

.constr {
  display: block;
  margin: 14px auto;
  width: min(100%, 400px);
  height: 20px;
  image-rendering: pixelated;
}

.blinktext {
  color: #ff0000;
  font-weight: bold;
  font-size: 1.1rem;
  animation: blink 1s steps(1) infinite;
}

.blinktext2 {
  color: #ff0000;
  animation: blink 0.6s steps(1) infinite;
}

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

.guestbook {
  width: min(100%, 460px);
  margin: 18px auto;
  border: 3px inset #888;
  background: #000;
}

.gbhead {
  background: #00695c;
  color: #fff;
  font-family: Tahoma, Arial, sans-serif;
  font-weight: bold;
  font-size: 13px;
  padding: 5px 8px;
  text-align: left;
}

.gbbody {
  background: #001a00;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: 14px;
  text-align: left;
  padding: 12px 14px;
  line-height: 1.6;
}

.gbbody.sprueche {
  font-size: 13px;
  line-height: 1.8;
}

.green {
  color: #ffff00;
  font-weight: bold;
}

.joke {
  font-size: 0.9rem;
  font-style: italic;
  color: #333;
  max-width: 480px;
  margin: 14px auto;
}

.counter {
  margin: 16px auto;
  border: 2px solid #000;
}

.counterlabel {
  background: #ffff00;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 6px;
  text-align: center;
}

.counternum {
  background: #000;
  color: #ff0000;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 1.6rem;
  letter-spacing: 4px;
  padding: 6px 10px;
  text-align: center;
}

.award {
  font-size: 0.85rem;
  font-weight: bold;
  margin: 16px auto 10px;
  max-width: 480px;
}

.btn95 {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  background: #c0c0c0;
  border: 3px outset #eee;
  padding: 8px 14px;
  cursor: pointer;
  color: #000;
}

.btn95:active {
  border-style: inset;
}

#soundbtn {
  margin-top: 14px;
}

.webring {
  width: min(94vw, 720px);
  margin: 0 auto;
  background: #000;
  border: 2px solid #00ff99;
}

.webring-cell {
  color: #00ff99;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
  padding: 8px 10px;
}

.webring-mid {
  border-left: 1px dashed #00ff99;
  border-right: 1px dashed #00ff99;
}

.webring-mid small {
  color: #888;
  font-weight: normal;
}

.impressum-btn {
  position: fixed;
  bottom: 10px;
  right: 14px;
  color: #000;
  background: rgba(255, 255, 255, 0.75);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
  padding: 2px 6px;
  text-decoration: none;
  z-index: 200;
}

.impressum-btn:hover {
  text-decoration: underline;
}
