body {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  background-color: #008080;
  background-image: url("tile.svg");
  cursor: url("cursor.svg"), auto;
  padding-bottom: 60px;
}
a { color: #0000ee; }
a:visited { color: #551a8b; }
a:hover { background: yellow; color: red; }

.flash { animation: blink 0.6s steps(1) infinite; }
.blink-bg { animation: bgflash 0.4s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }
@keyframes bgflash { 0% { background: #ff0000; } 33% { background: #ffff00; } 66% { background: #00ff00; } }

.rainbow {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 56px; margin: 8px 0;
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, magenta, red);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rainbow 1s linear infinite;
  text-shadow: none;
}
@keyframes rainbow { to { background-position: 200% 0; } }

.banner {
  text-align: center; padding: 8px; font: bold 18px "Comic Sans MS", cursive;
  border: 4px outset #fff; cursor: pointer;
}
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #ffff00; color: #000;
}
.fakeclose { float: right; cursor: pointer; }

.side { font-family: "Comic Sans MS", cursive; }
.nav { padding-left: 18px; }
.nav li { margin: 6px 0; list-style-image: url("bullet.svg"); }

.ad { cursor: pointer; }
.skyscraper {
  border: 3px ridge #888; background: #ff0; text-align: center;
  margin: 10px 0; padding: 10px 4px; font: 14px "Comic Sans MS", cursive;
  animation: wobble 2s ease-in-out infinite;
}
.skyscraper:nth-child(odd) { animation-duration: 1.3s; }
@keyframes wobble { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) scale(1.03); } }

.punch {
  position: relative; height: 90px; overflow: hidden;
  background: repeating-linear-gradient(45deg, #ff0 0 20px, #f00 20px 40px);
  border: 4px outset #fff; text-align: center; font: bold 20px Impact, sans-serif;
}
.monkey { position: absolute; top: 34px; left: 0; font-size: 40px; animation: monkey 1.4s ease-in-out infinite alternate; }
@keyframes monkey { to { left: calc(100% - 50px); } }

.counter {
  display: inline-block; background: #000; color: #0f0;
  font: bold 32px "Courier New", monospace; letter-spacing: 6px;
  padding: 4px 10px; border: 4px inset #888;
}

/* ---- Windows 95 dialogs ---- */
.win {
  position: fixed; z-index: 1000; width: 340px;
  background: #c0c0c0; border: 2px solid; border-color: #fff #000 #000 #fff;
  box-shadow: 1px 1px 0 #000, inset -1px -1px #808080, inset 1px 1px #dfdfdf;
  font: 12px "MS Sans Serif", Tahoma, Geneva, sans-serif; color: #000;
  user-select: none; cursor: default;
}
.win .title {
  background: linear-gradient(90deg, #000080, #1084d0); color: #fff;
  font-weight: bold; padding: 3px 4px; display: flex; justify-content: space-between; align-items: center;
  cursor: move;
}
.tbtns b {
  display: inline-block; width: 16px; height: 14px; line-height: 12px; margin-left: 2px;
  background: #c0c0c0; color: #000; text-align: center; font-size: 11px;
  border: 1px solid; border-color: #fff #000 #000 #fff; cursor: pointer;
}
.win .body { display: flex; gap: 14px; padding: 14px 12px; align-items: flex-start; }
.icon {
  flex: 0 0 32px; height: 32px; border-radius: 50%; color: #fff;
  font: bold 22px/32px Arial, sans-serif; text-align: center;
}
.icon.err { background: #f00; }
.icon.err::before { content: "\2716"; font-size: 18px; }
.icon.warn { background: none; color: #000; width: 0; height: 0; border-radius: 0;
  border-left: 18px solid transparent; border-right: 18px solid transparent; border-bottom: 32px solid #ff0; position: relative; flex-basis: 0; }
.icon.warn::after { content: "!"; position: absolute; left: -4px; top: 8px; font-size: 20px; line-height: 20px; }
.icon.info { background: #00f; font-family: Georgia, serif; font-style: italic; }
.win .btns { text-align: center; padding: 0 0 12px; }
.win button, #sound-gate button {
  min-width: 75px; margin: 0 4px; padding: 4px 8px;
  font: 12px "MS Sans Serif", Tahoma, sans-serif; background: #c0c0c0;
  border: 2px solid; border-color: #fff #000 #000 #fff; box-shadow: inset -1px -1px #808080;
}
.win button:active { border-color: #000 #fff #fff #000; }

#sound-gate {
  position: fixed; inset: 0; z-index: 3000; background: #008080;
  display: flex; align-items: center; justify-content: center;
}

.bsod {
  position: fixed; inset: 0; z-index: 5000; background: #0000aa; color: #fff;
  font: 20px/1.5 "Courier New", monospace; display: flex; align-items: center; justify-content: center;
  text-align: center; cursor: none;
}
.bsod .hdr { background: #aaa; color: #0000aa; padding: 0 8px; }

.trail { position: fixed; pointer-events: none; z-index: 4000; font-size: 18px; animation: fade 0.8s forwards; }
@keyframes fade { to { opacity: 0; transform: translateY(20px) rotate(90deg); } }

.shake { animation: shake 0.3s; }
@keyframes shake { 25% { transform: translate(-6px, 3px); } 50% { transform: translate(6px, -3px); } 75% { transform: translate(-3px, -6px); } }

.webring { font: bold 16px "Comic Sans MS", cursive; }

/* browser-window ad popups */
.win.browser { box-shadow: 2px 2px 0 #000, 4px 4px 12px rgba(0,0,0,.5); }
.win.browser .title { font-size: 11px; }
.win.browser .title span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win .addr { font-size: 11px; padding: 2px 4px; border-bottom: 1px solid #808080; white-space: nowrap; overflow: hidden; }
.win .addr span { background: #fff; border: 1px inset #888; padding: 0 4px; margin-left: 4px; }
.win .page { overflow: hidden; border: 2px inset #fff; margin: 2px; cursor: pointer; color: #000; }
.tbtns { flex: 0 0 auto; white-space: nowrap; }
.icon.info::before { content: "i"; }
