/* ==========================================================================
   SHNOAZONE - one stylesheet for every page (it used to be copied into each page).
   Same look as before; the broken bits are fixed and the art showcase is added.
   ========================================================================== */

:root {
  --header-image: url('h/bannershnoazo222.png');   /* old one: h/banner.png */
  --page-bg: #ffffff;                              /* old dark tiled look: #360e0e url('h/256.png') */

  --bevel: #7d7c7c #2c2b2b hsl(0, 0%, 18%) #a8a6a6;   /* the grey inset border */
  --orange-bevel: #ffc787 #8a3c00 #8a3c00 #ffc787;    /* raised orange edge on the sidebars */
  --sidebar: #f08a24;                                 /* sidebar orange */
  --middle: #6e2525;                                  /* middle column red */
  --glow: rgb(33, 0, 122);                          /* glow round the standing render (right) */

  /* ---- size: how big the whole site shows on computers. 0.8 = like the browser at 80%, 1 = full size ---- */
  --zoom: 0.8;

  /* ---- art showcase ---- */
  --show-w: clamp(340px, calc(34 * var(--vw)), 700px);   /* how wide it is on big screens */
  /* the soft shape: change the path numbers (0-100) to reshape it,
     stdDeviation = how soft the edge is */
  --show-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cfilter id='b' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeGaussianBlur stdDeviation='6'/%3E%3C/filter%3E%3Cpath filter='url(%23b)' d='M52 8C72 6 89 17 91 38C93 56 90 78 74 88C58 97 33 95 19 84C7 74 6 55 9 39C12 20 31 9 52 8Z'/%3E%3C/svg%3E");
}

@font-face { font-family: Nunito; src: url('https://sadhost.neocities.org/fonts/Nunito-Regular.ttf'); }
@font-face { font-family: Nunito; src: url('https://sadhost.neocities.org/fonts/Nunito-Bold.ttf'); font-weight: bold; }
@font-face { font-family: Nunito; src: url('https://sadhost.neocities.org/fonts/Nunito-Italic.ttf'); font-style: italic; }
@font-face { font-family: Nunito; src: url('https://sadhost.neocities.org/fonts/Nunito-BoldItalic.ttf'); font-style: italic; font-weight: bold; }

* { box-sizing: border-box; }
@media (min-width: 801px) { html { zoom: var(--zoom); } }   /* phones stay full size */
:root { --vw: 1vw; --vh: 1vh; }
@media (min-width: 801px) { :root { --vw: calc(1vw / var(--zoom)); --vh: calc(1vh / var(--zoom)); } }

body {
  font-family: 'Nunito', sans-serif;
  margin: 0;
  background: var(--page-bg);
  background-size: 100px;
  color: #fceaff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   layout
   -------------------------------------------------------------------------- */
#container {
  width: 100%; max-width: 1200px;
  margin: 0 auto;
}

/* all links except the navigation */
#container a { color: #3c00ff; font-weight: bold; }

#headerArea { position: relative; margin-bottom: 50px; }
#header {
  display: block;
  aspect-ratio: 2100 / 300;       /* the banner picture's own width / height, so none of it is cut off */
  background: var(--header-image) top / 100% auto no-repeat;
}
#note {
  position: absolute; left: 46.5%; bottom: 18px; z-index: 3;
  width: 92px; height: 92px; object-fit: contain;
  pointer-events: none;
}

#navbar {
  height: 40px; margin-top: 0;    /* sits right under the banner */
  background-image: url(h/anotherbanner2.png);
  width: 100%;
}
#navbar ul {
  display: flex; justify-content: space-evenly;
  margin: 0; padding: 0; list-style: none;
  position: relative; top: 5px;
}
#navbar li { padding-top: 10px; }
#navbar [role="button"] { text-decoration: none; display: inline-block; }

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

aside {
  background-color: var(--sidebar);
  color: #241000;
  width: 200px; flex: 0 0 auto;
  padding: 20px;
  font-size: smaller;
  border: 3px solid; border-color: var(--orange-bevel);
}
#container aside a { color: #1d0070; }
main {
  background-color: var(--middle);
  flex: 1; min-width: 0;
  padding: 20px;
  border: 3px inset; border-color: var(--bevel);
  height: 1550px; overflow: auto;   /* the middle column scrolls on its own, like before */
}
#leftSidebar  { order: 1; margin-right: 10px; }
main          { order: 2; }
#rightSidebar { order: 3; margin-left: 10px; }

footer {
  background-color: #13092D;
  width: 100%; height: 40px;
  margin-top: 10px; padding: 10px;
  text-align: center;
}

h1, h2, h3 { color: #c1c0c1; }
h1 { font-size: 25px; color: #080808; }
main h1 { color: #fceaff; }                 /* light, so it shows on the red */
#container main a { color: #9fc3ff; }       /* light blue links on the red */
h1 img { display: block; }
strong { color: #a1a0a1; }

/* the dark box */
.box {
  background-color: #11053d;
  color: #fceaff;
  border: 1px solid #595959;
  padding: 10px;
}
#container .box a { color: #a9b8ff; }

footer a { font-weight: normal; }
#container footer a { color: #c9b8ff; font-weight: normal; }
#container footer a[aria-current] { font-weight: bold; text-decoration: none; }

/* logo in the top-left corner */
#corner-logo { position: absolute; top: 8px; left: 8px; z-index: 3; }
#corner-logo img { display: block; width: 110px; }
.box ul { padding-left: 10px; margin: 0; }

/* sidebars */
aside > img, aside .label { display: block; }
.inspo {
  position: relative; overflow: hidden;
  background-color: yellow;
  padding: 20px;
  border: 3px inset; border-color: var(--bevel);
}
.inspo img { display: block; max-width: none; }
.socials { padding-left: 20px; }
.stand {                                    /* standing render that leans out of the right column */
  display: block; position: relative; z-index: 2;
  width: 330px; max-width: none;          /* how big the render is */
  left: calc(100% + 17px); transform: translateX(-100%);   /* right edge lines up with the column's edge */
  filter: drop-shadow(0 0 0.75rem var(--glow));
  pointer-events: none;
}

/* main content */
.center { display: block; margin: 10px auto; }
.wide   { display: block; width: 400px; margin: 10px auto; }
.imagebev, .logbox, .bevtext {
  padding: 20px;
  border: 3px inset; border-color: var(--bevel);
}
.imagebev { margin: 10px 0; }
.imagebev img { display: block; width: 300px; margin: 0 auto 10px; }
.imagebev img:last-child { margin-bottom: 0; }
img.imagebev { display: block; width: 400px; margin: 10px auto; }
.logbox > img { display: block; width: 300px; margin: 0 auto; }
/* journal entry with several pictures: two to a row, same total width as one big picture */
.logpics { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; width: 300px; max-width: 100%; margin: 0 auto; }
.logpics a { display: block; width: calc(50% - 3px); }
.logpics img { display: block; width: 100%; margin: 0; }
.sc { display: block; width: 100%; height: 166px; border: 0; }
.game { display: flex; justify-content: center; }
.game iframe { display: block; width: 400px; max-width: 100%; height: 300px; border: 0; }
.albums { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }

/* --------------------------------------------------------------------------
   page-by-page differences
   -------------------------------------------------------------------------- */
.page-interests { --glow: rgb(122, 0, 0); }
.page-world     { --glow: rgb(190, 60, 0); }
html:root .page-world main { background: url(h/bg.jpg); padding: 2px; border-width: 0; }
.page-world .divider { border: 0; height: 25px; background: url(h/divider.png) center / contain no-repeat; }
.page-world main > * { margin-left: 18px; margin-right: 18px; }
.page-world main > .wide, .page-world main > .center { margin-left: auto; margin-right: auto; }
.s {                                    /* white text with a black outline */
  color: #ffffff;
  -webkit-text-stroke: 3px #000000;
  paint-order: stroke fill;
}

/* --------------------------------------------------------------------------
   ART SHOWCASE - your pictures crossfading in a soft shape on the left.
   The pictures and descriptions are listed in showcase.js.
   -------------------------------------------------------------------------- */
#showcase { display: none; }
body.has-showcase #showcase { display: block; position: relative; height: min(calc(70 * var(--vh)), 600px); max-width: 720px; margin: 0 auto; }
.show-stage {
  position: absolute; inset: 3% 7% 24% 5%; display: block; overflow: hidden;
  border: 3px inset; border-color: var(--bevel);   /* the same sunken grey bevel as the picture frames */
}
.show-stage:not([href]) { cursor: default; }
.show-slide {
  position: absolute; inset: 0;
  background: var(--img) var(--pos, center) / cover no-repeat;
  opacity: 0;
  transition: opacity 1.2s;              /* plain crossfade, nothing else moves */
}
.show-slide.contain { background-size: contain; }
.show-slide.in { opacity: 1; }

/* the description: a plain fade, like an old Flash gallery */
.show-cap { position: absolute; left: 10%; right: 10%; bottom: 4%; text-align: center; opacity: 0; transition: opacity .8s; }
.show-cap.in { opacity: 1; }
.show-title { display: block; font-size: 18px; font-weight: bold; color: #1e1e1e; }
.show-text { display: block; margin: 2px auto 8px; max-width: 34em; font-size: 12px; color: #444; }
/* « prev | 3 of 12 | next » - ordinary links */
.show-nav { font-size: 11px; color: #666; }
.show-nav a { color: #3c00ff; cursor: pointer; }

/* big screens: showcase fixed down the left, the site sits to its right */
@media (min-width: 1200px) {
  body.has-showcase #showcase {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 1;
    width: var(--show-w); height: auto;
  }
  body.has-showcase #container {
    max-width: min(1200px, calc(100 * var(--vw) - var(--show-w) - 20px));
    margin-left: calc(var(--show-w) + max(0px, (100 * var(--vw) - var(--show-w) - 1220px) / 2));
  }
  body.has-showcase #corner-logo { position: fixed; }
}

/* --------------------------------------------------------------------------
   CHARACTERS page (the characters themselves are listed in characters.js)
   -------------------------------------------------------------------------- */
.char-index { text-align: center; }
.char-name { font-size: 25px; color: #fceaff; margin: 10px 0; }
.char-view { text-align: center; }
.char-big { display: block; margin: 0 auto; width: auto; max-width: 100%; max-height: 460px; }
.char-cap { margin: 8px 0 4px; }
.char-nav { margin: 0; font-size: 12px; }
.char-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.char-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 3px inset; border-color: var(--bevel); }
.char-about { margin: 10px 0; }
.char-about p { margin: 0 0 8px; }
.char-about p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   phones / small windows
   -------------------------------------------------------------------------- */
@media (max-width: 800px) {
  #flex { flex-wrap: wrap; }
  aside { width: 100%; margin: 10px 0 0 !important; }
  main { order: 1; flex-basis: 100%; height: auto; }
  #leftSidebar { order: 2; }
  #rightSidebar { order: 3; }
  body.has-showcase #showcase { height: 60vh; }
  #navbar { height: auto; padding-bottom: 8px; }
  #note { left: auto; right: 4px; bottom: auto; top: 0; width: 46px; height: 46px; }
  #navbar ul { flex-wrap: wrap; gap: 4px; }
  .stand { max-width: 100%; left: 0; transform: none; top: 0 !important; margin: 0 auto; }
  .wide, img.imagebev { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .show-slide, .show-cap { transition: none; }
}
