/* Kotora's Cache: intentionally 2003-ish. No framework, no fancy nonsense. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #080529 url('assets/bg-stars.png') repeat;
  color: #111;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}
a { color: #5b00d6; font-weight: bold; }
a:hover { color: #ff1493; background: #fff36a; }
img { max-width: 100%; height: auto; }

.top-marquee {
  background: #000;
  color: #fff36a;
  border-bottom: 3px solid #00e5ff;
  font: bold 14px/28px "Arial Black", Arial, sans-serif;
  letter-spacing: 1px;
}
.page {
  width: 860px;
  max-width: calc(100% - 18px);
  margin: 14px auto 32px;
  background: #fff;
  border: 5px ridge #ff4fc3;
  box-shadow: 0 0 0 4px #00e5ff, 8px 8px 0 rgba(0,0,0,.45);
}
.banner {
  text-align: center;
  padding: 16px 10px 12px;
  color: #fff;
  background: #34116d;
  border-bottom: 4px double #fff36a;
}
.banner h1 {
  margin: 0;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -2px;
  color: #fff36a;
  text-shadow: 3px 3px #ff1493, 6px 6px #00a8cc;
}
.banner .tagline {
  margin: 9px 0 0;
  color: #fff;
  font-weight: bold;
}
.blink { animation: blink 1s steps(2,start) infinite; }
@keyframes blink { 50% { visibility: hidden; } }

.layout { width: 100%; border-collapse: collapse; table-layout: fixed; }
.layout td { vertical-align: top; }
.sidebar {
  width: 185px;
  padding: 10px;
  background: #dffaff;
  border-right: 3px dashed #994cff;
}
.content { padding: 12px; background: #fff; }

.sidebox {
  margin-bottom: 11px;
  border: 2px solid #000;
  background: #fff;
  box-shadow: 3px 3px 0 #ff9de2;
}
.sidebox h3 {
  margin: 0;
  padding: 4px 6px;
  background: #6b27b9;
  color: #fff;
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sidebox .inside { padding: 7px; }
.nav a, .shoplink {
  display: block;
  margin: 5px 0;
  padding: 5px 7px;
  border: 2px outset #fff;
  background: #fff36a;
  color: #32105f;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
}
.nav a:nth-child(even) { background: #91f7ff; }
.nav a:hover, .shoplink:hover { border-style: inset; background: #ff9de2; color: #000; }
.sidebar-photo { border: 3px double #ff1493; background: #fff; padding: 3px; }
.tiny { font-size: 10px; line-height: 1.35; }
.center { text-align: center; }

.window {
  margin: 0 0 14px;
  border: 3px ridge #8f52ff;
  background: #fff;
}
.window-title {
  padding: 4px 7px;
  background: linear-gradient(90deg,#170760,#7a2ee8,#ff4fc3);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: .5px;
}
.window-body { padding: 11px 13px; }
.window-body p:first-child { margin-top: 0; }
.window-body p:last-child { margin-bottom: 0; }

h2.retro {
  margin: 3px 0 9px;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  color: #5a00c8;
  font-size: 24px;
  border-bottom: 3px dotted #ff4fc3;
}
h3.hot { color: #e30074; font-size: 16px; margin-bottom: 4px; }
.big-welcome {
  font: bold 28px/1.2 "Comic Sans MS", "Trebuchet MS", sans-serif;
  color: #ff1493;
  text-align: center;
}
.rainbow-text {
  font-weight: 900;
  color: #6c26cc;
  text-shadow: 1px 1px #fff36a;
}
.rainbow-rule {
  height: 8px;
  border: 0;
  margin: 14px 0;
  background: linear-gradient(90deg,#ff2c8c,#ff8a00,#fff200,#47e647,#00d7ff,#7a55ff,#ff2c8c);
}
.star-divider { text-align: center; color: #9b28e8; font-weight: bold; letter-spacing: 4px; margin: 11px 0; }

.two-col { width: 100%; border-collapse: separate; border-spacing: 10px; }
.two-col td { width: 50%; vertical-align: top; }
.photo-box {
  background: #fff;
  padding: 5px;
  border: 2px solid #111;
  box-shadow: 4px 4px 0 #a5f5ff;
  text-align: center;
}
.photo-box figcaption, .caption { font-size: 10px; padding-top: 4px; color: #4b296a; font-weight: bold; }
.thumb-row { text-align: center; }
.thumb-row img {
  width: 145px;
  height: 118px;
  object-fit: cover;
  border: 3px double #ff1493;
  margin: 4px;
  background: #fff;
  padding: 2px;
}

.note {
  padding: 8px;
  background: #fffbd1;
  border: 2px dashed #ff1493;
}
.quote {
  padding: 9px 12px;
  background: #e9ddff;
  border-left: 6px solid #6b27b9;
  font-weight: bold;
}

.meme-feature {
  text-align: center;
  background: #000;
  padding: 9px;
  border: 4px ridge #00e5ff;
}
.meme-feature img { max-height: 420px; width: auto; border: 2px solid #fff; }
.meme-feature button {
  margin-top: 8px;
  font: bold 12px Verdana, sans-serif;
  padding: 4px 10px;
  color: #000;
  background: #fff36a;
  border: 3px outset #fff;
  cursor: pointer;
}
.meme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.meme-card {
  background: #fff;
  border: 3px ridge #ff4fc3;
  padding: 5px;
  text-align: center;
}
.meme-card img { max-height: 520px; object-fit: contain; }

.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { border: 2px solid #5b00d6; padding: 8px; vertical-align: top; }
.info-table th { width: 135px; background: #e5d4ff; color: #4a008c; text-align: left; }
.info-table tr:nth-child(even) td { background: #f7fdff; }

.footer {
  padding: 12px;
  text-align: center;
  border-top: 4px double #ff4fc3;
  background: #16052e;
  color: #fff;
  font-size: 10px;
}
.footer a { color: #91f7ff; }
.construction {
  color: #fff36a;
  font-weight: bold;
  letter-spacing: 1px;
}

@media (max-width: 700px) {
  .page { max-width: calc(100% - 10px); margin-top: 7px; }
  .banner h1 { font-size: 31px; }
  .layout, .layout tbody, .layout tr, .layout td { display: block; width: 100%; }
  .sidebar { border-right: 0; border-bottom: 3px dashed #994cff; }
  .two-col, .two-col tbody, .two-col tr, .two-col td { display: block; width: 100%; }
  .two-col { border-spacing: 0; }
  .two-col td { padding-bottom: 10px; }
  .meme-grid { grid-template-columns: 1fr; }
  .thumb-row img { width: 43%; height: 115px; }
}

/* additions for v2: even more personal-homepage energy */
body {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
}
.top-marquee, .sidebox h3, .window-title, .nav a, .shoplink, .meme-feature button {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
}
h2.retro { font-family: "Comic Sans MS", "Comic Sans", cursive; }

.inline-meme {
  float: right;
  width: 175px;
  margin: 6px 0 8px 12px;
  padding: 4px;
  background: #fff;
  border: 3px outset #ff9de2;
  text-align: center;
}
.inline-meme img { display: block; width: 100%; }
.inline-meme figcaption { font-size: 9px; color: #5b00d6; font-weight: bold; padding-top: 3px; }
.small-meme { width: 160px; }
.clear { clear: both; }

.fandom-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.fandom-table th, .fandom-table td { border: 2px solid #6b27b9; padding: 7px; vertical-align: top; }
.fandom-table th { width: 130px; background: #fff36a; color: #32105f; text-align: left; }
.fandom-table tr:nth-child(even) td { background: #e8fbff; }

.fandom-thumbs img { width: 128px; height: 128px; }
.bag-table .photo-box img { max-height: 430px; object-fit: contain; }

.about-meme-row { text-align: center; }
.about-meme-row img {
  width: 30%;
  max-height: 260px;
  object-fit: contain;
  vertical-align: middle;
  margin: 4px;
  padding: 3px;
  background: #fff;
  border: 3px ridge #00e5ff;
}

@media (max-width: 700px) {
  .inline-meme, .small-meme { float: none; width: 72%; margin: 10px auto; }
  .about-meme-row img { width: 85%; max-height: none; }
  .fandom-thumbs img { width: 43%; height: 120px; }
}


/* v4: Comic Sans means Comic Sans. Everywhere. */
*, *::before, *::after {
  font-family: "Comic Sans MS", "Comic Sans", cursive !important;
}

/* Slightly wider so the About Me photos can actually breathe. */
.page { width: 1020px; }
.sidebar { width: 175px; }

.site-logo {
  display: block;
  width: 118px;
  height: 118px;
  object-fit: cover;
  margin: 0 auto 8px;
  border: 3px ridge #fff36a;
  background: #2b0752;
  padding: 2px;
}
.site-logo.small-logo { width: 82px; height: 82px; }

.shop-update p { font-size: 15px; }

.about-page .page { width: 1120px; }
.about-page .content { padding: 16px; }
.about-page .two-col { border-spacing: 18px; }
.about-page .two-col td { vertical-align: top; }
.about-page .photo-box img { width: 100%; max-height: 600px; object-fit: contain; }
.about-page .photo-box figcaption { font-size: 12px; }
.about-page .thumb-row img { width: 200px; height: 165px; }

.fandom-gallery,
.mental-meme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 12px;
}
.fandom-gallery .photo-box,
.mental-meme-grid .photo-box { margin: 0; }
.fandom-gallery .photo-box img { height: 300px; object-fit: contain; }
.mental-meme-grid .photo-box img { height: 280px; object-fit: contain; }

@media (max-width: 700px) {
  .page, .about-page .page { width: auto; }
  .site-logo { width: 92px; height: 92px; }
  .site-logo.small-logo { width: 70px; height: 70px; }
  .fandom-gallery, .mental-meme-grid { grid-template-columns: 1fr; }
  .fandom-gallery .photo-box img,
  .mental-meme-grid .photo-box img { height: auto; max-height: none; }
  .about-page .thumb-row img { width: 45%; height: 145px; }
}


/* v6 homepage cleanup */
.ascii-sparkles {
  white-space: pre;
  color: #91f7ff;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: 3px;
  text-shadow: 1px 1px #ff1493;
}
.banner h1 { margin: 4px 0; }

/* Logo moved out of the header and into the homepage content. */
.logo-feature {
  margin: 0 auto;
  padding: 8px;
  max-width: 360px;
}
.logo-feature img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}
.logo-feature figcaption { display: none; }

.sticker-flair { background: transparent; border: 0; box-shadow: none; }
.sticker-flair .inside { padding: 0; }
.sticker-flair img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px double #ff1493;
  padding: 2px;
  background: #fff;
}

/* Unlabelled little meme box that changes itself. */
.meme-slideshow {
  width: min(480px, 88%);
  margin: 18px auto 6px;
  background: #000;
}
.meme-slideshow img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .ascii-sparkles { font-size: 13px; letter-spacing: 1px; }
  .logo-feature { max-width: 90%; }
  .meme-slideshow { width: 96%; }
}

/* v7: less sidebar clutter, more Evey art used as actual site decoration */
body {
  background:
    url('assets/art-side-left.webp') left 34px / 220px auto fixed no-repeat,
    url('assets/art-side-right.webp') right 34px / 220px auto fixed no-repeat,
    #080529 url('assets/bg-stars.png') repeat;
}

.banner {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(rgba(27, 3, 67, .48), rgba(27, 3, 67, .68)),
    url('assets/art-header.webp') center 32% / cover no-repeat;
  text-shadow: 2px 2px 0 #220042;
}

/* The homepage sidebar is now basically shop links + one huge sticker collage. */
.sidebar { width: 235px; padding: 10px; }
.sticker-flair img {
  width: 100%;
  height: 680px;
  object-fit: cover;
  object-position: center top;
}

/* Big dumb rainbow buttons, as nature intended in 2003. */
.rainbow-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 4px 0;
}
.rainbow-nav a,
.shoplink {
  display: inline-block;
  min-width: 108px;
  margin: 0;
  padding: 7px 12px;
  color: #19003d;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  border: 3px outset #fff;
  border-radius: 9px;
  background: linear-gradient(90deg,
    #ff74c8 0%,
    #ffb35c 18%,
    #fff36a 36%,
    #7df38b 54%,
    #74e7ff 72%,
    #b38cff 88%,
    #ff74c8 100%);
  box-shadow: 2px 2px 0 #7025c9;
  text-shadow: 1px 1px 0 rgba(255,255,255,.65);
}
.rainbow-nav a:hover,
.shoplink:hover {
  color: #000;
  background: linear-gradient(90deg,
    #fff36a 0%,
    #78f0ff 25%,
    #ff89d3 50%,
    #8aff9a 75%,
    #fff36a 100%);
  border-style: inset;
  transform: translate(1px, 1px);
}

/* Stack shop buttons neatly in the skinny left column. */
.sidebar .shoplink {
  display: block;
  width: 100%;
  margin: 7px 0;
}

@media (max-width: 1100px) {
  body { background: #080529 url('assets/bg-stars.png') repeat; }
}

@media (max-width: 700px) {
  .sidebar { width: 100%; }
  .sticker-flair img { height: 520px; }
  .banner { min-height: 145px; }
  .rainbow-nav a { min-width: 42%; }
}


/* v8: artwork is part of the site skin, not tiny gallery wallpaper. */

/* The old header art was a portrait image forced into a wide banner.
   This strip is actually made for the banner proportions, so characters stay visible. */
.banner {
  min-height: 225px;
  padding: 22px 12px 18px;
  background:
    linear-gradient(rgba(18, 2, 48, .18), rgba(18, 2, 48, .28)),
    url('assets/art-banner-strip.webp') center center / cover no-repeat;
  border-bottom: 4px double #fff36a;
}

/* Keep the title readable without hiding the art behind a giant opaque panel. */
.banner h1 {
  display: inline-block;
  align-self: center;
  padding: 5px 14px 8px;
  background: rgba(34, 0, 66, .50);
  border: 2px solid rgba(255, 243, 106, .72);
  box-shadow: 4px 4px 0 rgba(0,0,0,.32);
}
.banner .tagline,
.ascii-sparkles {
  display: inline-block;
  align-self: center;
  padding: 2px 8px;
  background: rgba(34, 0, 66, .48);
}

/* Faded artwork inside the actual boxes. The white layer is intentionally
   strong enough that black text is still easy to read. */
.art-bg {
  background-image:
    linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)),
    var(--box-art) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Give boxes a little depth so the art reads as deliberate rather than accidental. */
.window-body.art-bg,
.sidebox .inside.art-bg {
  position: relative;
}
.window-body.art-bg {
  min-height: 90px;
}

/* The sidebar itself can stay pale, but no more dead-white box interiors. */
.sidebox {
  background: #f6edff;
}

/* Tables nested inside art-backed boxes should not erase the art completely. */
.art-bg .info-table th,
.art-bg .info-table td,
.art-bg .fandom-table th,
.art-bg .fandom-table td {
  background-color: rgba(255,255,255,.76) !important;
}

/* Photo frames and memes need their own solid backing so images don't visually fight. */
.art-bg .photo-box,
.art-bg .meme-feature,
.art-bg .meme-card {
  background: rgba(255,255,255,.93);
}

/* On phones, give the banner a little more height so the poster panels remain recognizable. */
@media (max-width: 700px) {
  .banner {
    min-height: 190px;
    background-size: auto 100%;
  }
}


/* ==========================================================
   v9: NO DEAD WHITE SPACE
   Computer nostalgia art = whole-site wallpaper.
   Other Evey art = translucent backgrounds inside every box.
   ========================================================== */

html {
  background: #110324;
}

body {
  background:
    linear-gradient(rgba(8, 0, 28, .10), rgba(8, 0, 28, .10)),
    url('assets/computer-nostalgia-wallpaper.webp') center top / cover fixed no-repeat !important;
  background-color: #110324 !important;
}

/* The centered "page" is no longer a white sheet. */
.page {
  background: rgba(255,255,255,.08) !important;
  backdrop-filter: none;
}

/* Let the giant computer art show through between every content box. */
.content,
.sidebar,
.layout,
.layout td {
  background: transparent !important;
}

/* Window shells and sideboxes should not create blank white rectangles. */
.window,
.sidebox {
  background: transparent !important;
}

/* Every content-box interior already has one of Evey's artworks assigned.
   Make it noticeably visible, while preserving black-text readability. */
.art-bg {
  background-image:
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)),
    var(--box-art, url('assets/computer-nostalgia-full.webp')) !important;
  background-size: cover !important;
  background-position: var(--box-pos, center center) !important;
  background-repeat: no-repeat !important;
}

/* Side boxes use the same treatment instead of a pale blank backing. */
.sidebox {
  background-image:
    linear-gradient(rgba(255,255,255,.54), rgba(255,255,255,.54)),
    url('assets/computer-nostalgia-full.webp') !important;
  background-size: cover !important;
  background-position: center 30% !important;
}

/* Photo/meme frames inherit the artwork of their parent box instead of being white. */
.art-bg .photo-box,
.art-bg .inline-meme,
.art-bg .meme-card,
.photo-box,
.inline-meme,
.meme-card {
  background-image:
    linear-gradient(rgba(255,255,255,.82), rgba(255,255,255,.82)),
    var(--box-art, url('assets/computer-nostalgia-full.webp')) !important;
  background-size: cover !important;
  background-position: var(--box-pos, center center) !important;
  background-repeat: no-repeat !important;
}

/* Replace white image padding with rainbow-ish pale backing instead of dead white. */
.thumb-row img,
.about-meme-row img,
.sidebar-photo,
.sticker-flair img {
  background: rgba(255, 245, 120, .76) !important;
}

/* Tables remain readable, but the artwork underneath is visible through every cell. */
.art-bg .info-table th,
.art-bg .info-table td,
.art-bg .fandom-table th,
.art-bg .fandom-table td,
.info-table th,
.info-table td,
.fandom-table th,
.fandom-table td {
  background-color: rgba(255,255,255,.66) !important;
}

/* Existing colored info boxes can also show a trace of art instead of flat fill. */
.note,
.quote {
  background-image:
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)),
    url('assets/computer-nostalgia-full.webp') !important;
  background-size: cover !important;
  background-position: center 35% !important;
}

/* The slideshow itself stays black because the meme image needs a clean frame. */
.meme-feature,
.meme-slideshow {
  background: #000 !important;
}

/* Keep the desktop wallpaper faces visible:
   upper character sits in left gutter, lower character in right gutter. */
@media (min-width: 1200px) {
  body {
    background-size: cover !important;
    background-position: center top !important;
  }
}

/* On narrower screens, use the ORIGINAL full portrait artwork so we don't
   crop either character out of existence. */
@media (max-width: 1199px) {
  body {
    background:
      linear-gradient(rgba(8,0,28,.18), rgba(8,0,28,.18)),
      url('assets/computer-nostalgia-full.webp') center top / 100% auto repeat-y !important;
  }
}

/* Mobile: full-width art behind translucent boxes. */
@media (max-width: 700px) {
  body {
    background:
      linear-gradient(rgba(8,0,28,.16), rgba(8,0,28,.16)),
      url('assets/computer-nostalgia-full.webp') center top / 100% auto repeat-y !important;
  }

  .page {
    background: rgba(255,255,255,.05) !important;
  }

  .art-bg {
    background-image:
      linear-gradient(rgba(255,255,255,.76), rgba(255,255,255,.76)),
      var(--box-art, url('assets/computer-nostalgia-full.webp')) !important;
  }
}
