/* ==========================================================
   PARKER'S HOMEPAGE  -  retro.css   (the AMATEUR-2000 edition)
   Dense, clashing, no margins: rainbow stripes, snowy sky,
   starfield, marble; navy / red / gray columns; WordArt
   headlines; tiny blue link lists; banners; default gray
   buttons. Gloriously bad on purpose. Columns stack on phones.
   ========================================================== */

:root {
  --black: #000000; --white: #FFFFFF;
  --red: #FF0000; --blue: #0000FF; --yellow: #FFFF00; --green: #00FF00;
  --cyan: #00FFFF; --magenta: #FF00FF; --navy: #000080; --gray: #C0C0C0;
  --gray-lo: #808080; --purple: #800080; --lime: #00FF00; --cream: #FFFFCC;
  --orange: #FF8040; --link: #0000EE; --visited: #551A8B;
  --impact: Impact, Anton, "Arial Black", sans-serif;
  --comic: "Comic Neue", "Comic Sans MS", cursive;
  --times: "Times New Roman", Times, "Liberation Serif", serif;
  --pixel: "Courier New", Courier, "Liberation Mono", monospace;
  --courier: "Courier New", Courier, "Liberation Mono", monospace;
  --arial: Arial, Helvetica, "Liberation Sans", sans-serif;
  --pop: 3px 3px 0 var(--black);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0; padding: 0;
  color: var(--black);
  font-family: var(--times);
  font-size: 16px; line-height: 1.3;
  text-align: center;
  overflow-x: hidden;
  background: #FF00FF;   /* clashes with everything, only visible on very wide screens */
}

/* ---- per-page wallpapers, on the center column ---- */
.page { --wa: linear-gradient(180deg,#fff 0 18%,#f4f4f4 30%,#7a7a7a 49%,#101010 51%,#9a9a9a 68%,#fff 100%); --stroke: #000080; --shadow1: #FF0000; background-color: #FF0000; }
/* home: rainbow vertical spectrum */
body.home .page, .page { background-image: linear-gradient(90deg,#f00 0,#f80 14%,#ff0 28%,#0f0 42%,#0ff 57%,#00f 71%,#80f 85%,#f0f 100%); }
/* captcha: starfield */
body.tile-checker .page { background-color: #000033; --wa: linear-gradient(180deg,#fff 0,#ff0 35%,#f60 50%,#c00 52%,#ff0 80%,#fff 100%); --shadow1: #00F;
  background-image: radial-gradient(1.5px 1.5px at 12px 18px,#fff 50%,transparent 51%), radial-gradient(2px 2px at 58px 44px,#ff0 50%,transparent 51%), radial-gradient(1px 1px at 86px 14px,#fff 50%,transparent 51%), radial-gradient(1.5px 1.5px at 32px 74px,#0ff 50%,transparent 51%), radial-gradient(1px 1px at 80px 88px,#f0f 50%,transparent 51%);
  background-size: 100px 100px; }
/* game + train: marble */
body.tile-lava .page { background-color: #d9d9e6; --wa: linear-gradient(180deg,#cff 0,#06f 45%,#003 52%,#6cf 75%,#fff 100%); --stroke:#000; --shadow1:#F0F;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='0.008 0.03' numOctaves='5' seed='8'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncR type='linear' slope='2.4' intercept='-0.55'/><feFuncG type='linear' slope='2.4' intercept='-0.55'/><feFuncB type='linear' slope='2.4' intercept='-0.4'/></feComponentTransfer></filter><rect width='260' height='260' filter='url(%23m)'/></svg>"); background-size: 260px 260px; }
/* blog: blue snowy sky */
body.tile-graph .page { background-color: #2f6fd0; --wa: linear-gradient(180deg,#fff 0,#f0f 40%,#609 52%,#f9f 80%,#fff 100%); --shadow1:#000;
  background-image: radial-gradient(2px 2px at 14px 20px,#fff 50%,transparent 51%), radial-gradient(3px 3px at 70px 60px,#fff 50%,transparent 51%), radial-gradient(1.5px 1.5px at 40px 95px,#fff 50%,transparent 51%), radial-gradient(2px 2px at 105px 12px,#cde 50%,transparent 51%), linear-gradient(#1c54b8,#5f9de4 60%,#a9cff2); background-size: 120px 120px, 120px 120px, 120px 120px, 120px 120px, auto; }
/* post: solid saturated red with a dither */
body.tile-caution .page { background-color: #D00000; --wa: linear-gradient(180deg,#fff 0,#0f0 40%,#060 52%,#9f9 80%,#fff 100%); --shadow1:#00F;
  background-image: conic-gradient(#ff0 25%, transparent 0 50%, #ff0 0 75%, transparent 0); background-size: 3px 3px; }
body.tile-checker { background: #00FFFF; }
body.tile-lava { background: #FF8000; }
body.tile-graph { background: #FFFF00; }
body.tile-caution { background: #0000FF; }

/* ---- links: default blue and purple, always underlined ---- */
a { color: var(--link); text-decoration: underline; }
a:visited { color: var(--visited); }
a:hover { color: var(--red); background: var(--yellow); }
:focus-visible { outline: 3px dashed var(--red); outline-offset: 2px; }

/* ---- the three-column shell (built by retro.js): tiny links | page | banners ---- */
.shell { display: grid; grid-template-columns: 152px minmax(0, 1fr) 176px; align-items: stretch; max-width: 1280px; margin: 0 auto; }
.page { min-width: 0; padding: 0 0 4px; border-left: 3px solid #000; border-right: 3px solid #000; }

.side { font-family: var(--arial); font-size: 12px; line-height: 1.25; text-align: left; padding: 6px 6px 10px; min-width: 0; overflow-wrap: anywhere; }
.side.left { background: #000080; color: #fff; }
.side.left h4 { margin: 8px 0 2px; font-family: var(--impact); font-weight: normal; font-size: 14px; color: #FFFF00; letter-spacing: 1px; }
.side.left h4:first-child { margin-top: 0; }
.side.left ul { list-style: square; margin: 0; padding-left: 14px; }
.side.left li { margin: 1px 0; font-size: 11px; }
.side.left a { color: #7FB5FF; }
.side.left a:visited { color: #D9A0FF; }
.side.left a:hover { color: #000; background: #FFFF00; }
.side.left .tiny { font-size: 9px; color: #9AA; margin: 8px 0 0; }
.side.right { background: #C0C0C0; text-align: center; border-left: 3px solid #000; }
.side.right > * { margin: 0 auto 8px; }
.ban { display: block; border: 2px solid #000; padding: 4px; font-family: var(--arial); font-weight: bold; font-size: 13px; text-decoration: none; line-height: 1.15; }
.ban svg { display: block; margin: 0 auto 2px; max-width: 100%; }
.ban.free { background: #FFFF00; color: #F00; border-style: dashed; }
.ban.mail { background: #00A000; color: #fff; font-family: "Times New Roman", serif; font-style: italic; font-size: 17px; }
.ban.warn { background: #FFFF00; color: #000; border: 3px solid #000; border-style: dashed solid; background-image: repeating-linear-gradient(45deg, #000 0 6px, #FF0 6px 12px); }
.ban.warn span { display: block; background: #FFFF00; color: #000; padding: 2px; }
.ban.plain { background: #fff; color: #00f; font-weight: normal; }
.ban:visited { color: inherit; }
.ban:hover { background-color: #fff; color: #f00; }
.side.right .guest { font-size: 11px; }

@media (max-width: 899px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side.left { order: 1; padding: 6px; }
  .side.left h4 { display: none; }
  .side.left ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
  .side.left li { margin: 0; font-size: 13px; }
  .side.left li a { display: inline-block; padding: 4px 2px; }
  .side.left .tiny { display: none; }
  .page { order: 2; border-left: 0; border-right: 0; border-top: 3px solid #000; border-bottom: 3px solid #000; }
  .side.right { order: 3; border-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; align-items: start; }
  .side.right > * { margin: 0; }
}

/* ---- panels: rigid boxes, mismatched colors, almost no margin ---- */
.panel {
  background: #fff; border: 3px ridge #808080; padding: 8px 8px; margin: 6px 4px; text-align: center;
  font-family: var(--times); font-size: 16px;
}
.panel:nth-of-type(3n+1) { background: #FFFFCC; }
.panel:nth-of-type(3n+2) { background: #CCFFFF; border-color: #00A; }
.panel.cream { background: #FFFFCC; }
.panel.dark { background: #000080; color: #fff; border: 4px ridge #FF0000; }
.panel.dark a { color: #9CCBFF; }
.panel.dark a:visited { color: #E0A8FF; }
.panel.dark a:hover { color: #000; background: #FFFF00; }
.panel p { margin: 0.5em auto; max-width: 64ch; }
.left { text-align: left; }

/* ---- WordArt ---- */
.title {
  font-family: var(--impact); font-weight: normal; font-style: italic;
  font-size: clamp(34px, 10.5vw, 92px); line-height: 1; letter-spacing: -1px;
  margin: 18px 14px 12px; padding: 0 2px;
  color: transparent;
  background: var(--wa); -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 3px var(--stroke);
  filter: drop-shadow(3px 3px 0 var(--shadow1)) drop-shadow(6px 6px 0 #000);
  transform: scaleY(1.25) skewX(-6deg); transform-origin: 50% 70%;
  overflow-wrap: anywhere; text-align: center;
}
.title .newburst { -webkit-text-stroke: 0; }
h2 { font-family: var(--impact); font-weight: normal; font-size: 30px; line-height: 1.05; margin: 2px 0 6px; color: #F00; text-shadow: 2px 2px 0 #000080; overflow-wrap: anywhere; }
.panel:nth-of-type(even) h2 { font-family: var(--times); font-style: italic; font-weight: bold; font-size: 28px; color: #00F; text-shadow: 2px 2px 0 #FF0; }
.panel.dark h2 { color: #FF0; text-shadow: 2px 2px 0 #F00; }
h3 { font-family: var(--comic); font-weight: bold; font-size: 20px; margin: 6px 0; color: #C00; }
.comic { font-family: var(--comic); }
.courier { font-family: var(--courier); }
.wordart2 {
  font-family: var(--impact); font-size: 42px; line-height: 1; white-space: nowrap; overflow: hidden; margin: 0 0 6px; padding: 2px 0;
  background: #000; color: #0ff; letter-spacing: 1px; text-shadow: 3px 3px 0 #F0F; border-top: 3px solid #fff; border-bottom: 3px solid #fff;
}
.wordart2 span { display: inline-block; transform: translateX(-30px); }
.wordart-lob { font-family: "Lobster", "Brush Script MT", cursive; font-size: 36px; color: #F0F; text-shadow: 2px 2px 0 #00F; }

/* ---- ticker ---- */
.marquee { overflow: hidden; white-space: nowrap; background: #FFFF00; color: #FF0000; border-bottom: 3px solid #000; font-family: var(--courier); font-weight: bold; font-size: 16px; padding: 2px 0; margin: 0; }
.marquee > span { display: inline-block; padding-left: 100%; animation: marquee 70s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }

.blink { animation: blink 1s steps(1, end) infinite; }
@keyframes blink { 50% { visibility: hidden; } }
.rainbow-text { font-family: var(--impact); font-size: 28px; color: #F0F; text-shadow: 2px 2px 0 #FF0; margin: 6px 0; }

hr { border: 0; border-top: 2px solid #808080; border-bottom: 2px solid #fff; height: 0; margin: 8px 0; }
hr.rainbow { height: 8px; border: 0; margin: 8px 0; background: linear-gradient(90deg,#f00,#f80,#ff0,#0f0,#0ff,#00f,#f0f); }

/* ---- plain gray Windows buttons ---- */
.btn, button, select, input[type="submit"] {
  display: inline-block; font-family: var(--arial); font-size: 15px; font-weight: bold; color: #000; background: #C0C0C0;
  border: 2px outset #fff; border-radius: 0; padding: 5px 12px; margin: 3px; cursor: pointer; text-decoration: none; line-height: 1.2; min-height: 32px;
}
select { background: #fff; border: 2px inset #808080; font-weight: normal; padding: 3px 4px; min-height: 0; }
.btn:visited { color: #000; }
.btn:hover, button:hover { color: #000; background: #FFFF00; }
.btn:active, button:active { border-style: inset; }
.btn.hot { background: #FF0000; color: #FFFF00; border-color: #ff9a9a; }
.btn.hot:visited { color: #FFFF00; }
.btn.hot:hover { background: #FFFF00; color: #F00; }
.btn.go { background: #00FF00; border-color: #b6ffb6; }
button:disabled, .btn:disabled, .btn.go:disabled, .btn.hot:disabled { color: #808080; background: #C0C0C0; cursor: not-allowed; border-style: outset; border-color: #eee; }

/* the .layout wrapper on home/blog/post is now just a block */
.layout { display: block; }
.main { min-width: 0; }

/* ---- under construction ---- */
.construction { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  background: repeating-linear-gradient(45deg, #000 0 14px, #FF0 14px 28px); border: 3px solid #000; padding: 6px; margin: 6px 4px; }
.construction .sign-text { background: #FFFF00; border: 3px solid #000; font-family: var(--impact); font-size: 22px; padding: 2px 8px; color: #000; }
.digger .arm { transform-origin: 46px 44px; animation: dig 0.6s steps(3, end) infinite alternate; }
@keyframes dig { from { transform: rotate(-8deg); } to { transform: rotate(18deg); } }
@media (max-width: 640px) { .construction { flex-wrap: nowrap; gap: 6px; } .construction .sign-text { font-size: 15px; padding: 2px 5px; } .construction > :last-child { display: none; } }

.newburst { display: inline-block; vertical-align: middle; width: 74px; height: 74px; animation: pulse 0.8s steps(2, end) infinite alternate; }
@keyframes pulse { from { transform: scale(0.9) rotate(-8deg); } to { transform: scale(1.08) rotate(8deg); } }

.doodles { display: block; width: 100%; height: 44px; margin: 6px 0; }
.doodles .tw { animation: twinkle 0.8s steps(2, end) infinite alternate; }
.doodles .tw2 { animation-delay: -0.4s; }
@keyframes twinkle { from { opacity: 0; } to { opacity: 1; } }

/* ---- the ENTER splash: giant glowing chrome text and a door ---- */
.splash { background: #000 !important; border: 4px ridge #00FFFF; padding: 10px 6px; }
.enter { display: flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; }
.enter:hover { background: transparent; }
.enter .word {
  font-family: "Lobster", "Brush Script MT", cursive; font-style: italic; font-size: clamp(56px, 16vw, 120px); line-height: 1; color: transparent;
  background: linear-gradient(180deg,#fff 0,#dff 30%,#69a 50%,#012 52%,#8cf 75%,#fff 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 1.5px #0ff;
  filter: drop-shadow(0 0 4px #0ff) drop-shadow(0 0 12px #0ff);
}
.enter .door { width: 64px; height: 100px; flex: 0 0 auto; }
.splash .loading { font-family: var(--courier); font-size: 13px; color: #0f0; margin: 4px 0; }
.splash a.skip { color: #9CCBFF; font-size: 13px; }
.loadbar { height: 16px; max-width: 280px; margin: 6px auto; border: 2px inset #808080; background: #fff; overflow: hidden; }
.loadbar > div { height: 100%; width: 100%; background: repeating-linear-gradient(90deg, #00f 0 10px, #fff 10px 12px); animation: load 3s steps(14, end) 1; }
@keyframes load { from { width: 0; } }

/* ---- hit counter + Y2K counter ---- */
.counter { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 1px; background: #000; border: 3px inset #808080; padding: 3px; max-width: 100%; }
.counter span { font-family: var(--courier); font-weight: bold; font-size: 20px; width: 19px; background: #111; color: #F00; border: 1px solid #444; line-height: 1.3; }
.counter.big span { font-size: 28px; width: 28px; color: #0F0; }

/* ---- fake video player ---- */
.player { max-width: 380px; margin: 6px auto; border: 3px ridge #808080; background: #C0C0C0; text-align: left; }
.player .screen { background: #000; color: #0f0; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--courier); font-size: 13px; text-align: center; padding: 4px; }
.player .screen svg { width: 56px; height: 56px; }
.player .ctl { display: flex; align-items: center; gap: 6px; padding: 3px 4px; font-family: var(--arial); font-size: 11px; }
.player .ctl button { min-height: 0; padding: 1px 8px; margin: 0; font-size: 13px; }
.player .prog { flex: 1; height: 8px; background: #fff; border: 1px inset #808080; }
.player .prog i { display: block; height: 100%; width: 0; background: #00f; }

/* ---- Y2K survival center ---- */
.cert { background: #FFFFCC; border: 6px double #800000; padding: 8px 10px; margin: 10px auto; max-width: 440px; color: #000; }
.cert .seal { width: 70px; height: 70px; display: block; margin: 0 auto 4px; }
.cert .big { font-family: var(--times); font-weight: bold; font-style: italic; font-size: 20px; margin: 2px 0; color: #800000; }
.cert p { margin: 4px auto; font-size: 15px; }
.cert .sig { font-family: "Lobster", "Brush Script MT", cursive; font-size: 24px; color: #00F; margin: 2px 0 0; }
.checklist { list-style: none; padding: 0; margin: 8px auto; max-width: 440px; text-align: left; }
.checklist label { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0; font-family: var(--times); font-weight: normal; font-size: 17px; }
.checklist input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.verdict { font-family: var(--impact); font-size: 22px; min-height: 1.5em; color: #FF0; }

table.top5 { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 2px; font-size: 14px; }
table.top5 td, table.top5 th { border: 2px solid #000; padding: 3px 4px; overflow-wrap: anywhere; vertical-align: top; }
table.top5 th { background: #00F; color: #FFF; font-family: var(--arial); }
table.top5 td:nth-child(1) { background: #FF0; width: 14%; text-align: center; }
table.top5 td:nth-child(2) { background: #0FF; text-align: left; }
table.top5 td:nth-child(3) { background: #F9F; width: 30%; }

.banners { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 6px 0; }
.banners .ban { flex: 0 1 140px; }

/* ---- envelope + footer ---- */
.mailto { display: inline-flex; align-items: center; gap: 8px; font-family: var(--impact); font-size: 26px; flex-wrap: wrap; justify-content: center; }
.envelope { width: 56px; height: 40px; animation: spin 2.2s steps(8, end) infinite; }
@keyframes spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.webring { background: #000; color: #fff; border: 4px double #FFFF00; padding: 8px; font-family: var(--comic); font-size: 16px; margin: 6px 4px; }
.webring a { color: #7FDBFF; } .webring a:visited { color: #F0A0FF; }
.webring a:hover { color: #000; background: #7FDBFF; }
.webring .ringname { color: #FFFF00; font-weight: bold; display: block; margin: 4px 0; }
.footer-small { font-family: var(--courier); font-size: 13px; margin: 8px 4px 0; background: #fff; padding: 2px 4px; }
.badge { display: inline-block; font-family: var(--courier); font-size: 11px; font-weight: bold; border: 2px outset #fff; background: #C0C0C0; padding: 0; margin: 3px; text-align: left; overflow: hidden; }
.badge b { display: inline-block; background: #000080; color: #fff; padding: 2px 5px; }
.badge i { display: inline-block; font-style: normal; color: #000; padding: 2px 5px; }

/* ---- forms ---- */
input[type="text"], input[type="password"], textarea { font-family: var(--courier); font-size: 16px; border: 2px inset #808080; border-radius: 0; background: #fff; padding: 5px 6px; width: 100%; max-width: 460px; }
textarea { min-height: 160px; resize: vertical; }
input:disabled, textarea:disabled { background: #C0C0C0; }
label { font-family: var(--comic); font-weight: bold; display: block; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee { white-space: normal; } .marquee > span { padding-left: 0; }
}
