/* VJAG HOME PAGE STYLE SHEET v1.0  (c) THE WEBMASTER
   hand typed. no frameworks were harmed. */

@font-face {
  font-family: "Press Start 2P";
  src: url("fonts/press-start-2p-latin-400-normal.woff2") format("woff2");
}

body {
  background: #0d0000 url("img/spots.png");
  color: #ffffff;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  margin: 8px;
  cursor: crosshair;
}
body.stars { background: #000 url("img/stars.png"); }

a:link    { color: #ffff00; }
a:visited { color: #ff66ff; }
a:hover   { color: #000000; background: #ffff00; }
a:active  { color: #ff0000; }

h1, h2, h3 { font-family: "Press Start 2P", "Courier New", monospace; font-weight: normal; }
h2 {
  font-size: 18px;
  color: #ffd700;
  text-shadow: 2px 2px 0 #c00000, 4px 4px 0 #400000;
  margin: 18px 0 10px 0;
}
h3 { font-size: 12px; color: #ff4040; text-shadow: 2px 2px 0 #000; }

/* THE LOGO. extruded like a 1996 cereal box */
.logo {
  font-family: "Press Start 2P", Impact, sans-serif;
  font-size: 64px;
  color: #ff2020;
  letter-spacing: 6px;
  text-shadow:
    1px 1px 0 #ffd700, 2px 2px 0 #c09000, 3px 3px 0 #a07000, 4px 4px 0 #805000,
    5px 5px 0 #603000, 6px 6px 0 #401000, 7px 7px 0 #200000, 10px 10px 6px #000;
  line-height: 1.1;
}
.wordart {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 34px;
  color: #ffd700;
  text-shadow: 2px 2px 0 #ff0000, 4px 4px 0 #880000, 6px 6px 0 #000;
  letter-spacing: 2px;
}
.wavy span { display: inline-block; animation: wave 1.2s ease-in-out infinite; }
@keyframes wave { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.comic { font-family: "Comic Sans MS", "Comic Sans", cursive; }
.mono, code, pre, kbd { font-family: "Courier New", Courier, monospace; }
.pixel { font-family: "Press Start 2P", monospace; font-size: 10px; line-height: 1.8; }
.small { font-size: 12px; }
.tiny { font-size: 10px; }
.gold { color: #ffd700; }
.red { color: #ff3030; }
.lime { color: #33ff33; }
.cyan { color: #00ffff; }
.grey { color: #a0a0a0; }

.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { visibility: hidden; } }
.rainbow { animation: rainbow 2s linear infinite; font-weight: bold; }
@keyframes rainbow {
  0% { color: #ff0000; } 17% { color: #ff9900; } 33% { color: #ffff00; }
  50% { color: #00ff00; } 67% { color: #00ffff; } 83% { color: #ff00ff; } 100% { color: #ff0000; }
}

/* the big frame around everything */
table.page {
  background: #000000;
  border: 6px ridge #b00000;
}
td.nav {
  background: #1a0000 url("img/spots.png");
  border: 3px inset #600000;
  vertical-align: top;
}
td.content {
  background: #000000;
  border: 3px inset #400000;
  vertical-align: top;
  padding: 14px;
  line-height: 1.4;
}

/* nav buttons: real 3D, the way god intended */
a.navbtn {
  display: block;
  margin: 0 0 5px 0;
  padding: 5px 6px;
  background: #c0c0c0;
  color: #000000;
  border: 3px outset #ffffff;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  text-decoration: none;
  white-space: nowrap;
}
a.navbtn:hover { background: #ffd700; color: #000; }
a.navbtn:active { border-style: inset; }
a.navbtn.here { background: #c00000; color: #ffff00; border: 3px inset #ff8080; }

/* boxes with bevels. every side gets a border. every. side. */
.box {
  border: 4px outset #808080;
  background: #202020;
  padding: 10px;
  margin: 10px 0;
}
.box.red { border-color: #ff4040; background: #300000; color: #fff; }
.box.gold { border-color: #ffd700; background: #2a2000; color: #fff; }
.box.blue { border-color: #6060ff; background: #000040; color: #fff; }
.box.term { border: 4px inset #606060; background: #000; color: #33ff33; font-family: "Courier New", monospace; }

pre {
  background: #000000;
  color: #33ff33;
  border: 4px inset #808080;
  padding: 10px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.3;
}
pre .c { color: #808080; }
pre .k { color: #ffff00; }
pre .s { color: #ff66ff; }
code { color: #00ffff; }
kbd {
  background: #c0c0c0; color: #000; border: 2px outset #fff; padding: 0 4px; font-size: 13px;
}

table.data { border: 3px outset #808080; background: #101010; }
table.data th {
  background: #800000; color: #ffd700; border: 2px outset #ff6060;
  font-family: "Press Start 2P", monospace; font-size: 9px; padding: 6px;
}
table.data td { border: 1px inset #606060; padding: 4px 8px; vertical-align: top; }
table.data tr:nth-child(odd) td { background: #1c1c1c; }

marquee { font-family: "Press Start 2P", monospace; font-size: 11px; }

.tv {
  border: 10px ridge #505050;
  background: #000;
  image-rendering: pixelated;
}
.pix { image-rendering: pixelated; }
.btn88 { margin: 2px; vertical-align: middle; image-rendering: pixelated; }

/* hit counter */
.odometer {
  display: inline-block; background: #000; border: 3px inset #808080; padding: 2px;
}
.odometer span {
  display: inline-block; width: 16px; margin: 0 1px; text-align: center;
  background: #202020; color: #33ff33; border: 1px solid #404040;
  font-family: "Press Start 2P", monospace; font-size: 14px; padding: 4px 0;
}

hr.groove { border: 3px groove #c00000; }
.sparkle { position: fixed; pointer-events: none; font-size: 14px; z-index: 999; }

.guest {
  border: 3px ridge #808080; background: #101030; padding: 8px; margin: 8px 0;
}
.guest .who { font-family: "Press Start 2P", monospace; font-size: 10px; color: #ffd700; }

input, textarea, select, button {
  font-family: "Courier New", monospace; font-size: 14px;
  background: #ffffff; color: #000; border: 2px inset #808080;
}
button, input[type=submit] {
  background: #c0c0c0; border: 3px outset #fff; font-family: Tahoma, Verdana, sans-serif; font-weight: bold; cursor: pointer;
}
button:active { border-style: inset; }

.center { text-align: center; }

/* THE EXPLODING V */
a.vlink, a.vlink:visited {
  color: #8fb4e8; font-weight: bold; text-decoration: underline dotted;
  text-shadow: 0 0 6px #5d87bf, 0 0 12px #5d87bf;
  display: inline-block;
}
a.vlink:hover { background: none; color: #ffffff; }
.vshake { animation: vshake 0.08s linear 6; }
@keyframes vshake {
  0% { transform: translate(0,0) scale(1.6); } 25% { transform: translate(-2px,1px) scale(1.6); }
  50% { transform: translate(2px,-1px) scale(1.6); } 75% { transform: translate(-1px,-2px) scale(1.6); } 100% { transform: translate(0,0) scale(1); }
}
.vbit {
  position: fixed; pointer-events: none; z-index: 1000;
  font-family: "Press Start 2P", monospace; text-shadow: 0 0 4px #000;
}
.vring {
  position: fixed; pointer-events: none; z-index: 999;
  width: 40px; height: 40px; border: 4px solid #8fb4e8; border-radius: 50%;
}
.vlogo {
  position: fixed; pointer-events: none; z-index: 1001;
  width: 180px; height: 172px; padding: 10px 10px 34px 10px;
  background: #ffffff; border: 5px outset #8fb4e8;
  box-shadow: 6px 6px 0 #000;
}
.vlogo .vcap {
  font-family: "Press Start 2P", monospace; font-size: 8px; color: #000080;
  text-align: center; line-height: 1.6; margin-top: 2px;
}

/* THE PLAYER BAR: a jaguar console stretched into a strip. art: img/player/, generated in the style of the emulator's shell */
body.playing { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
#playerbar {
  --h: 56px;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
  display: flex; height: var(--h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #000;
}
.pb-seg { position: relative; height: var(--h); flex: none; background-size: 100% 100%; background-repeat: no-repeat; }
.pb-stretch { flex: 1 1 0; min-width: 0; }
.pb-a { width: calc(var(--h) * 513 / 134); background-image: url("img/player/a.png"); }
.pb-b { background-image: url("img/player/b.png"); }
.pb-c { width: calc(var(--h) * 462 / 134); background-image: url("img/player/c.png"); }
.pb-d { background-image: url("img/player/d.png"); }
.pb-e { width: calc(var(--h) * 22 / 134); background-image: url("img/player/e.png"); }
.pb-f { flex-grow: 4; min-width: 120px; background-image: url("img/player/f.png"); }
.pb-g { width: calc(var(--h) * 186 / 134); background-image: url("img/player/g.png"); }

.pb-btn {
  position: absolute; top: 36.6%; width: 9%; height: 34.3%; padding: 0;
  background: transparent; border: none; border-radius: 50%; cursor: pointer;
}
.pb-btn i {
  font-style: normal; font-family: "Press Start 2P", monospace; font-size: 6px; color: #3a0000;
  text-shadow: 0 1px 0 rgba(255,140,140,0.6);
}
.pb-btn:hover { box-shadow: 0 0 8px 2px rgba(255,60,40,0.8); }
.pb-btn:active, .pb-btn.on { background: rgba(0,0,0,0.35); box-shadow: inset 0 2px 4px rgba(0,0,0,0.8); }

.pb-eye {
  position: absolute; top: 41%; width: 26%; height: 22%; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255,90,60,1) 0%, rgba(255,0,0,0.6) 35%, rgba(255,0,0,0) 70%);
  mix-blend-mode: screen; opacity: 0.15; pointer-events: none;
}

.pb-lcd {
  position: absolute; left: 0; right: 0; top: 41%; height: 30%;
  display: flex; align-items: center; gap: 6px; padding: 0 4px;
  font-family: "Press Start 2P", monospace; font-size: 7px; color: #b8e04a;
  text-shadow: 0 0 4px rgba(184,224,74,0.7);
}
.pb-title { flex: 1 1 50%; min-width: 0; overflow: hidden; white-space: nowrap; }
.pb-title span { display: inline-block; padding-left: 100%; animation: pbscroll 14s linear infinite; }
@keyframes pbscroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.pb-seek { flex: 1 1 35%; min-width: 40px; height: 6px; border: 1px solid #5a7020; cursor: pointer; touch-action: none; }
#pb-fill { height: 100%; width: 0; background: repeating-linear-gradient(to right, #b8e04a 0 3px, transparent 3px 4px); }
.pb-time { flex: none; }
@media (max-width: 700px) { #playerbar { --h: 48px; } .pb-c, .pb-d { display: none; } .pb-g { width: calc(var(--h) * 60 / 134); background-position: left; background-size: auto 100%; } }
