/* Page-specific styling for authentic_bullshit_pages/frangles_compendium.html.
   Not meant to be linked from any other page. */

/* A plain background-image can't be rotated on its own (there's no
   "background-rotate"), and rotating html/body itself would rotate the
   page's actual content along with it - so the tiled pattern lives on its
   own fixed, oversized, rotated container (built by the script at the
   bottom of the page). 300vmax (rather than a percent of the viewport,
   which skews with aspect ratio) in both dimensions, centered on the
   viewport, is comfortably more than the sqrt(2) factor a 45deg rotation
   needs to avoid exposing gaps at any corner regardless of how wide/tall
   the window is.
   Each row of penguins is its own strip with its own background-position
   animation (that's what lets odd/even rows scroll in opposite directions
   at different speeds - a single repeating background-image can only move
   as one piece), sized to fill the container so none of it goes uncovered.
   data-no-starfield on frangles_compendium.html's <body> stops
   starfield.js from ever creating its canvas on that page, so nothing
   competes with this. */
#hellpenguine-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 300vmax;
  height: 300vmax;
  transform: translate(-50%, -50%) rotate(45deg);
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
/* A vignette over the rotated/animated pattern above - its own fixed,
   unrotated, exactly-viewport-sized layer (z-index -1, so it sits between
   #hellpenguine-bg at -2 and the actual page content) rather than a
   gradient added onto #hellpenguine-bg itself, since that element is
   rotated 45deg and oversized to cover the corners - a gradient painted on
   it would rotate and get thrown off-center right along with it, instead
   of framing the actual viewport like a vignette needs to. */
body.theme-hellpenguine::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
}
#hellpenguine-bg .hp-row {
  position: absolute;
  left: -50%;
  width: 200%;
  background-image: url('/media/authentic_bullshit/frangles/hellpenguine.jpeg');
  background-repeat: repeat-x;
  background-size: 150px 188px;
  animation-name: hp-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  /* Each row runs its scroll animation forever for as long as motion is
     on, so (unlike draggable.js's panes, which only animate intermittently)
     it's worth permanently promoting all of these to their own compositor
     layers rather than toggling it on/off per element. */
  will-change: transform;
}
/* Matches every other bit of sitewide motion: pausing instead of removing
   the animation keeps each row exactly where it was instead of snapping
   back to a start position. */
html.motion-off #hellpenguine-bg .hp-row {
  animation-play-state: paused;
}
/* translateX, not background-position-x: background-position is a
   paint-triggering property, so animating it directly would repaint every
   one of these 22 rows on every single frame, forever, whenever motion is
   on. transform is compositor-only. Translating the whole row by exactly
   one tile-width (150px) and looping is visually identical to shifting the
   background within a fixed row - the row is already far wider (200%,
   offset -50%) than the 150px it ever moves, so there's no edge to expose
   either way. */
@keyframes hp-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-150px); }
}

/* The "theme-hellpenguine" class on <body> (see navbar_loader.js's
   SITE_BAR_THEMES) is what opts the header into this page's windsock image
   pool instead of the sitewide default - the tint color overlaid on those
   images is purely a style choice, so it lives here as a plain rule rather
   than being set from script like the image pool has to be. */
.theme-hellpenguine .site-bar-overlay {
  background: rgba(255, 80, 0, 0.5);
}
.theme-hellpenguine .site-bar {
  border-color: orangered;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}


/* navbar.html is one shared fragment injected identically on every page, so
   unlike .hp-textpane below there's no per-page element to hang a class on
   directly - this reskins the nav buttons (see .navbar li in style.css)
   the same way the two rules above reskin the header, by cascading from
   the theme class on <body>. Matches .hp-textpane's background/border so
   the buttons read as part of the same look. */
.theme-hellpenguine .navbar li {
  background: darkred;
  border-color: orangered;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.theme-hellpenguine .navbar a {
  color: rgb(255, 104, 45);
}

.theme-hellpenguine .bullshit_nav a{
  font-family: 'Brush Script MT';
  font-style: italic;
  color:yellow
}


.navbar a:hover {
  color: rgb(255, 255, 255);
  text-decoration: none;
}

/* Same deal for the motion-toggle box (it's also part of the shared
   navbar.html fragment) - it already carries class="textpane" for its
   base look, so this just overrides that the same way .hp-textpane does
   for the page's own panes. */
.theme-hellpenguine .motion-toggle {
  background: darkred;
  border-color: orangered;
}
.theme-hellpenguine .motion-toggle input {
  accent-color: orangered;
}

/* Frangle pane variant - same --pane-* custom-property mechanism as
   style.css's .textpane--purple/--green/--blue (see the comment above
   those), just with this page's own darkred/orangered palette. Only needs
   one class on the outer .textpane now instead of three separate classes
   spread across the pane and its dragger - the custom properties cascade
   down to the nested .textpane_dragger/heading on their own. The box-shadow
   is this variant's own flourish (matches .site-bar's), not a lever every
   variant needs, so it's just set directly rather than going through a
   --pane-shadow custom property. */
.textpane--frangle {
  --pane-border: orangered;
  --pane-bg: darkred;
  --pane-dragger-bg: darkred;
  --pane-header-color: orange;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
