/* ============================================================
   ~*~ JULIE'S CAULDRON ~*~  stylesheet
   best viewed in netscape navigator 4.0 @ 800x600  lol
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Press+Start+2P&family=VT323&display=swap');

:root {
  --orange: #ff7518;
  --orange-hot: #ffae42;
  --purple: #9b30ff;
  --purple-dark: #3d0066;
  --purple-deep: #1a0029;
  --black: #000000;
  --slime: #39ff14;
  --blood: #c00000;
}

/* ---------- the page ---------- */
html { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28'><rect x='12' y='1' width='4' height='7' fill='%232e7d32'/><ellipse cx='14' cy='17' rx='12' ry='10' fill='%23ff7518' stroke='%23000' stroke-width='1.5'/><polygon points='8,14 12,14 10,10' fill='%23000'/><polygon points='16,14 20,14 18,10' fill='%23000'/><path d='M8 19 Q14 25 20 19 Z' fill='%23000'/></svg>") 4 4, auto; }

body {
  margin: 0;
  padding: 0;
  color: #ffd9b3;
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  font-size: 15px;
  background-color: #0b0011;
  /* tiled bats + stars + moons, like a real 2003 bg.gif */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><text x='6' y='40' font-size='13' font-family='monospace' fill='%239b30ff' opacity='.7'>/\^.^/\</text><text x='95' y='70' font-size='10' fill='%23ffae42'>✦</text><text x='40' y='120' font-size='12' fill='%23ff7518' opacity='.7'>★</text><text x='110' y='145' font-size='20' fill='%23ffae42' opacity='.55'>☾</text><text x='70' y='25' font-size='8' fill='%23ffffff'>·</text><text x='135' y='20' font-size='9' fill='%239b30ff'>✧</text></svg>"),
    radial-gradient(ellipse at top, #2a0045 0%, #0b0011 60%);
  background-attachment: fixed;
}

a { color: var(--orange); font-weight: bold; }
a:visited { color: var(--purple); }
a:hover {
  color: var(--slime);
  text-shadow: 0 0 6px var(--slime);
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28'><g fill='%239b30ff' stroke='%23fff' stroke-width='1'><ellipse cx='14' cy='19' rx='7' ry='6'/><circle cx='6' cy='11' r='3'/><circle cx='11' cy='6' r='3'/><circle cx='17' cy='6' r='3'/><circle cx='22' cy='11' r='3'/></g></svg>") 4 4, pointer;
}

::selection { background: var(--orange); color: #000; }

/* tacky scrollbar (webkit) */
::-webkit-scrollbar { width: 16px; }
::-webkit-scrollbar-track { background: var(--purple-deep); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--orange), var(--purple)); border: 3px ridge var(--orange-hot); }

/* ---------- layout: the classic table-ish frame ---------- */
#wrapper {
  width: 960px;
  max-width: calc(100% - 16px);
  margin: 10px auto 40px;
  border: 6px ridge var(--orange);
  background: rgba(10, 0, 18, 0.92);
  box-shadow: 0 0 25px var(--purple), inset 0 0 40px #000;
}

#header {
  text-align: center;
  padding: 14px 10px 6px;
  border-bottom: 4px double var(--purple);
  background:
    repeating-linear-gradient(45deg, rgba(255,117,24,.08) 0 12px, transparent 12px 24px),
    linear-gradient(#1a0029, #000);
}

#header .title {
  font-family: "Creepster", "Papyrus", fantasy;
  font-size: 64px;
  line-height: 1;
  margin: 0;
  color: var(--orange);
  letter-spacing: 3px;
  text-shadow:
    0 0 4px #fff,
    0 0 10px var(--orange-hot),
    0 0 20px var(--orange),
    0 0 40px var(--blood),
    4px 4px 0 var(--purple);
  animation: flicker 3s infinite;
}

#header .subtitle {
  font-family: "Papyrus", "Comic Sans MS", fantasy;
  color: var(--purple);
  font-size: 16px;
  text-shadow: 0 0 6px #fff;
  margin: 4px 0;
}

.header-gifs { display: flex; justify-content: center; align-items: flex-end; gap: 12px; flex-wrap: wrap; }

#layout { display: flex; align-items: flex-start; }

#sidebar {
  width: 200px;
  flex-shrink: 0;
  padding: 10px;
  border-right: 3px dashed var(--purple);
  background: linear-gradient(180deg, rgba(61,0,102,.6), rgba(0,0,0,.6));
}

#content {
  flex: 1;
  padding: 14px 18px;
  min-width: 0;
}

/* ---------- sidebar bits ---------- */
.nav-title, .box-title {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  background: var(--orange);
  color: #000;
  padding: 5px;
  text-align: center;
  border: 2px outset var(--orange-hot);
  margin-bottom: 6px;
}

#nav { list-style: none; padding: 0; margin: 0 0 14px; }
#nav li { margin: 3px 0; }
#nav a {
  display: block;
  padding: 5px 6px;
  text-decoration: none;
  color: var(--orange-hot);
  background: #12001f;
  border: 2px outset var(--purple);
  font-size: 14px;
}
#nav a::before { content: ":3 "; color: var(--purple); }
#nav a:hover { background: var(--purple); color: #fff; border-style: inset; }
#nav a:hover::before { content: "x_x "; color: #fff; }
#nav a.here { background: var(--purple-dark); color: var(--slime); }
#nav a.here::before { content: "-> "; color: var(--slime); }

.side-box {
  border: 3px groove var(--purple);
  background: #000;
  padding: 6px;
  margin-bottom: 12px;
  font-size: 12px;
  text-align: center;
}

/* ---------- headings ---------- */
h1, h2, h3 { font-family: "Creepster", "Papyrus", fantasy; font-weight: normal; letter-spacing: 1px; }
h1 { font-size: 42px; color: var(--orange); text-shadow: 3px 3px 0 var(--purple), 0 0 15px var(--orange); margin: 6px 0 10px; text-align: center; }
h2 { font-size: 30px; color: var(--purple); text-shadow: 2px 2px 0 #000, 0 0 10px var(--purple); margin: 18px 0 8px; }
h3 { font-size: 22px; color: var(--orange-hot); margin: 12px 0 6px; }

.rainbow {
  background: linear-gradient(90deg, #ff7518, #ffae42, #39ff14, #9b30ff, #ff00cc, #ff7518);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow 4s linear infinite;
  font-weight: bold;
}

.glow-green { color: var(--slime); text-shadow: 0 0 8px var(--slime); }
.glow-purple { color: #d9a6ff; text-shadow: 0 0 8px var(--purple); }
.glow-orange { color: var(--orange-hot); text-shadow: 0 0 8px var(--orange); }

.center { text-align: center; }
.small { font-size: 11px; }
.tiny { font-size: 9px; }
.pixel { font-family: "Press Start 2P", monospace; font-size: 10px; line-height: 1.7; }
.terminal { font-family: "VT323", monospace; font-size: 20px; }
.papyrus { font-family: "Papyrus", fantasy; }
.times { font-family: "Times New Roman", serif; }

/* ---------- classic effects ---------- */
.blink { animation: blink 1s steps(1) infinite; }
.wobble { display: inline-block; animation: wobble 1.2s ease-in-out infinite; }
.spin { display: inline-block; animation: spin 3s linear infinite; }
.float { animation: float 3s ease-in-out infinite; }
.shake:hover { animation: shake .3s infinite; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes rainbow { to { background-position: 300% 0; } }
@keyframes wobble { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shake { 0% { transform: translate(1px,1px); } 25% { transform: translate(-2px,0); } 50% { transform: translate(2px,-1px); } 75% { transform: translate(-1px,2px); } }
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: .55; }
}

/* ---------- marquee strip ---------- */
.marquee-strip {
  background: #000;
  color: var(--slime);
  border-top: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  font-family: "VT323", monospace;
  font-size: 20px;
  padding: 2px 0;
}

/* ---------- boxes & frames ---------- */
.panel {
  border: 4px ridge var(--purple);
  background: rgba(26, 0, 41, 0.85);
  padding: 10px 14px;
  margin: 12px 0;
}
.panel.orange { border-color: var(--orange); }
.panel.dashed { border: 3px dashed var(--orange); }

.sticker {
  background: #fff;
  border: 4px outset var(--orange);
  padding: 3px;
  box-shadow: 4px 4px 0 var(--purple);
  vertical-align: middle;
}

.frame-gold {
  border: 8px ridge #d4a017;
  box-shadow: 0 0 15px #ffae42;
  background: #000;
}

hr.spooky {
  border: 0;
  height: 6px;
  margin: 16px 0;
  background: linear-gradient(90deg, transparent, var(--orange), var(--purple), var(--orange), transparent);
  box-shadow: 0 0 8px var(--orange);
}

.divider-img { display: block; margin: 12px auto; max-width: 100%; }

.gif-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 10px 0; }
.gif-row img { max-height: 120px; }

/* the classic two-column "about me" table */
table.myspace {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 14px;
}
table.myspace td, table.myspace th { border: 2px solid var(--purple); padding: 6px 8px; vertical-align: top; }
table.myspace th { background: var(--orange); color: #000; font-family: "Press Start 2P", monospace; font-size: 9px; text-align: left; width: 34%; }
table.myspace tr:nth-child(even) td { background: rgba(155, 48, 255, .12); }

/* ---------- counter ---------- */
.counter {
  display: inline-flex;
  gap: 2px;
  background: #000;
  padding: 3px;
  border: 2px inset #555;
}
.counter span {
  display: inline-block;
  width: 16px;
  font-family: "VT323", monospace;
  font-size: 24px;
  line-height: 26px;
  color: var(--slime);
  background: linear-gradient(#111, #222 50%, #000 50%, #111);
  text-align: center;
  text-shadow: 0 0 5px var(--slime);
}

/* ---------- buttons ---------- */
.btn {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  background: linear-gradient(var(--orange-hot), var(--orange));
  color: #000;
  border: 3px outset var(--orange-hot);
  padding: 8px 10px;
  cursor: pointer;
}
.btn:active { border-style: inset; }
.btn.purple { background: linear-gradient(#c58bff, var(--purple)); border-color: #c58bff; color: #fff; }

/* fake 88x31 buttons made with css (always the right size!) */
.b88 {
  display: inline-flex;
  width: 88px;
  height: 31px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Press Start 2P", monospace;
  font-size: 6px;
  line-height: 1.3;
  text-decoration: none;
  border: 2px outset #999;
  overflow: hidden;
  vertical-align: middle;
  margin: 2px;
}
a.b88:hover { text-shadow: none; filter: brightness(1.3) hue-rotate(30deg); }
.b88.b-orange { background: linear-gradient(#ffae42, #ff7518); color: #000; }
.b88.b-purple { background: linear-gradient(#9b30ff, #3d0066); color: #fff; }
.b88.b-black  { background: #000; color: var(--slime); border-color: var(--slime); }
.b88.b-blue   { background: linear-gradient(#0047ab, #001a40); color: #fff; }
.b88.b-white  { background: #fff; color: #000; }
.b88.b-red    { background: linear-gradient(#ff3b3b, #600); color: #fff; }
.b88.b-pink   { background: linear-gradient(#ff9de2, #ff3fa4); color: #fff; }
.b88.b-lain   { background: #000; color: #ff3fa4; border-color: #ff3fa4; font-family: "VT323", monospace; font-size: 13px; }

/* ---------- footer ---------- */
#footer {
  border-top: 4px double var(--purple);
  text-align: center;
  padding: 10px;
  font-size: 11px;
  background: #000;
}

/* ---------- music player ---------- */
#music-box .btn { width: 100%; }
#now-playing { font-family: "VT323", monospace; font-size: 16px; color: var(--slime); margin-top: 4px; }

/* ---------- cursor trail ---------- */
.trail {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-family: "VT323", monospace;
  font-size: 18px;
  white-space: nowrap;
  text-shadow: 0 0 4px currentColor;
  animation: trail-fade 0.9s forwards;
}
@keyframes trail-fade {
  to { opacity: 0; transform: translateY(18px) scale(.4) rotate(40deg); }
}

/* ---------- enter page ---------- */
body.enter-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.enter-box {
  border: 8px ridge var(--orange);
  padding: 30px 40px;
  background: rgba(0,0,0,.9);
  box-shadow: 0 0 60px var(--purple);
  max-width: 620px;
  margin: 20px;
}
.enter-box .title {
  font-family: "Creepster", fantasy;
  font-size: 72px;
  line-height: 1;
  color: var(--orange);
  text-shadow: 0 0 10px var(--orange-hot), 0 0 30px var(--blood), 5px 5px 0 var(--purple);
  margin: 10px 0;
  animation: flicker 2.5s infinite;
}
.enter-link {
  display: inline-block;
  font-family: "Creepster", fantasy;
  font-size: 40px;
  color: var(--slime) !important;
  text-decoration: none;
  margin: 12px 0;
  text-shadow: 0 0 10px var(--slime);
  animation: float 2s ease-in-out infinite;
}
.warning {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  color: #ff3b3b;
  line-height: 1.8;
  border: 2px dashed #ff3b3b;
  padding: 8px;
  margin: 12px 0;
}

/* ---------- cryptid dossiers ---------- */
.dossier {
  position: relative;
  background: #e8d9b5;
  color: #222;
  font-family: "Courier New", monospace;
  font-size: 14px;
  border: 1px solid #8b7d5b;
  padding: 18px 20px;
  margin: 22px 6px;
  box-shadow: 6px 6px 0 #000, 0 0 25px rgba(155,48,255,.4);
  transform: rotate(-0.6deg);
}
.dossier:nth-of-type(even) { transform: rotate(0.7deg); }
.dossier h3 { font-family: "Courier New", monospace; font-weight: bold; color: #000; font-size: 22px; margin: 0 0 6px; text-transform: uppercase; }
.dossier .stamp {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: "Impact", sans-serif;
  font-size: 26px;
  color: #c00000;
  border: 4px solid #c00000;
  padding: 2px 8px;
  transform: rotate(12deg);
  opacity: .8;
  letter-spacing: 2px;
}
.dossier .photo { float: right; margin: 40px 0 10px 14px; background: #fff; padding: 6px 6px 22px; box-shadow: 2px 2px 6px #000; transform: rotate(3deg); max-width: 45%; }
.dossier .photo img { display: block; max-width: 100%; filter: sepia(.4) contrast(1.2); }
.dossier .photo figcaption { font-family: "Comic Sans MS", cursive; font-size: 11px; text-align: center; margin-top: 4px; }
.dossier::after { content: ""; display: block; clear: both; }
.redacted {
  background: #000;
  color: #000;
  padding: 0 3px;
  transition: all .3s;
  cursor: help;
}
.redacted:hover { background: transparent; color: #c00000; }
.threat { display: inline-block; height: 14px; border: 2px solid #000; width: 200px; max-width: 60%; vertical-align: middle; background: #fff; }
.threat i { display: block; height: 100%; background: repeating-linear-gradient(45deg, #c00000 0 8px, #ff7518 8px 16px); }

/* ---------- conspiracy corkboard ---------- */
.corkboard {
  position: relative;
  min-height: 520px;
  background: #b5835a radial-gradient(circle, rgba(0,0,0,.18) 1px, transparent 1px) 0 0 / 7px 7px;
  border: 14px solid #5c3a1e;
  box-shadow: inset 0 0 30px rgba(0,0,0,.7);
  margin: 14px 0;
  overflow: hidden;
}
.corkboard svg.strings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.note {
  position: absolute;
  width: 140px;
  padding: 8px;
  font-size: 12px;
  color: #111;
  background: #fffa9e;
  box-shadow: 3px 3px 6px rgba(0,0,0,.5);
  font-family: "Comic Sans MS", cursive;
  transition: transform .2s;
  z-index: 2;
}
.note:hover { transform: scale(1.12) rotate(0deg) !important; z-index: 5; }
.note::before { content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8080, #c00000 60%, #600); box-shadow: 1px 2px 2px rgba(0,0,0,.6); }
.note b { display: block; font-size: 14px; margin-bottom: 3px; }
.note.pink { background: #ffb3d9; }
.note.blue { background: #b3e0ff; }
.note.green { background: #c6ffb3; }
.note.photo { background: #fff; text-align: center; }

/* ---------- lain shrine ---------- */
.wired {
  background: #000;
  border: 3px solid #ff3fa4;
  color: #ff9de2;
  font-family: "VT323", monospace;
  font-size: 20px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.wired::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px);
  pointer-events: none;
  animation: scan 6s linear infinite;
}
@keyframes scan { to { background-position: 0 100px; } }
.glitch {
  position: relative;
  font-family: "VT323", monospace;
  font-size: 46px;
  color: #fff;
  letter-spacing: 4px;
  text-align: center;
  animation: glitch-skew 4s infinite steps(1);
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.glitch::before { color: #ff3fa4; left: 3px; clip-path: inset(0 0 60% 0); animation: glitch-a 2s infinite steps(2); }
.glitch::after  { color: #00ffff; left: -3px; clip-path: inset(55% 0 0 0); animation: glitch-b 1.7s infinite steps(2); }
@keyframes glitch-a { 0% { clip-path: inset(0 0 70% 0); } 50% { clip-path: inset(30% 0 40% 0); } 100% { clip-path: inset(10% 0 80% 0); } }
@keyframes glitch-b { 0% { clip-path: inset(60% 0 0 0); } 50% { clip-path: inset(80% 0 5% 0); } 100% { clip-path: inset(45% 0 30% 0); } }
@keyframes glitch-skew { 0%,92%,100% { transform: none; } 94% { transform: skewX(12deg); } 96% { transform: skewX(-8deg); } }
.static-img { filter: contrast(1.3) saturate(.6); animation: staticflick 0.15s infinite; }
@keyframes staticflick { 50% { filter: contrast(1.5) saturate(.4) brightness(1.15); } }

.shrine-card {
  display: inline-block;
  vertical-align: top;
  width: 220px;
  margin: 8px;
  padding: 10px;
  text-align: center;
  border: 4px ridge var(--orange);
  background: #12001f;
}
.shrine-card img { max-width: 190px; max-height: 170px; }
.shrine-card p { font-size: 12px; }

/* ---------- misty ---------- */
.stat-card {
  background: linear-gradient(135deg, #2b2b3a, #555570);
  border: 6px ridge #c0c0c0;
  color: #fff;
  padding: 14px;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  line-height: 2;
  box-shadow: 0 0 20px #c0c0ff;
}
.stat-bar { display: inline-block; height: 10px; background: #111; border: 1px solid #fff; width: 140px; vertical-align: middle; }
.stat-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff3fa4, #ffae42, #39ff14); }
.certificate {
  background: #fff8e1;
  color: #3d2b00;
  border: 12px double #b8860b;
  padding: 20px;
  text-align: center;
  font-family: "Times New Roman", serif;
  box-shadow: 0 0 20px #ffae42;
}
.certificate h3 { font-family: "Papyrus", fantasy; color: #6b0080; font-size: 28px; margin: 4px 0; }
.diary {
  background: #fff0f8 repeating-linear-gradient(transparent 0 23px, #b3d9ff 23px 24px);
  color: #333;
  font-family: "Comic Sans MS", cursive;
  padding: 10px 16px 10px 40px;
  border-left: 3px solid #ff9de2;
  line-height: 24px;
  font-size: 14px;
}
.diary .date { color: #c0007a; font-weight: bold; }

/* ---------- guestbook ---------- */
.gb-form { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: center; }
.gb-form label { font-family: "Press Start 2P", monospace; font-size: 9px; color: var(--orange); }
.gb-form input, .gb-form textarea, .gb-form select {
  font-family: "Comic Sans MS", cursive;
  font-size: 14px;
  background: #000;
  color: var(--slime);
  border: 2px inset var(--purple);
  padding: 5px;
}
.gb-form textarea { min-height: 80px; resize: vertical; }
.gb-entry {
  border: 3px groove var(--orange);
  background: rgba(0,0,0,.6);
  padding: 8px 12px;
  margin: 10px 0;
}
.gb-entry .gb-head { display: flex; justify-content: space-between; flex-wrap: wrap; border-bottom: 1px dashed var(--purple); margin-bottom: 6px; padding-bottom: 4px; font-size: 13px; }
.gb-entry .gb-name { color: var(--orange-hot); font-weight: bold; }
.gb-entry .gb-meta { color: #a98bc4; font-size: 11px; }

/* ---------- webring ---------- */
.webring {
  border: 4px ridge var(--purple);
  background: #000;
  padding: 10px;
  text-align: center;
  margin: 14px auto;
  max-width: 480px;
}
.webring .ring-title { font-family: "Creepster", fantasy; font-size: 26px; color: var(--orange); }

/* ---------- countdown ---------- */
.countdown { font-family: "VT323", monospace; font-size: 26px; color: var(--orange-hot); text-shadow: 0 0 8px var(--orange); }

/* ---------- small screens: stack it up ---------- */
@media (max-width: 720px) {
  #layout { flex-direction: column; }
  #sidebar { width: auto; border-right: 0; border-bottom: 3px dashed var(--purple); }
  #header .title { font-size: 42px; }
  .enter-box .title { font-size: 48px; }
  .corkboard { min-height: 0; display: flex; flex-wrap: wrap; gap: 18px; padding: 20px 10px; }
  .corkboard svg.strings { display: none; }
  .note { position: static; transform: none !important; }
  .gb-form { grid-template-columns: 1fr; }
}

/* respect people who get motion sick */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}

/* next song button under the play button */
#music-next { margin-top: 4px; }
#nav.topnav #music-next { margin: 0 0 0 4px; }
#now-playing marquee { display: block; }
