
/* :not([hidden]): the ID selector would otherwise beat .content-panel[hidden]. Vertical centering is done in moodboard.js. */
#moodboard:not([hidden]) {
  aspect-ratio: 1080 / 652;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  display: flex;
}

.moodboard-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.moodboard-body {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  border: 1px solid;
  border-color: var(--ui-grey-dark) #fff #fff var(--ui-grey-dark);
  background: url("../images/lake-dither.png") center / cover no-repeat;
}

@keyframes moodboard-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(var(--float-height)); }
}

.prompt-box {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 90%;
  max-width: 70%;
  box-sizing: border-box;
  text-align: center;
  font-family: "Press Start 2P", sans-serif;
  font-size: 3.2cqw;
  color: var(--ink);
  text-shadow: 0 0 4px #fff, 0 0 8px #fff, 0 0 14px #fff, 0 0 20px #fff;
  transform: translate(-50%, -50%);
  --float-height: -2.5cqw;
  animation: moodboard-float 5s ease-in-out infinite;
}

@supports (-webkit-text-stroke: 1px black) {
  .prompt-box {
    -webkit-text-stroke: 3px #fff;
    paint-order: stroke fill;
  }
}

.emoji-box {
  position: absolute;
  font-size: 4cqw;
  filter:
    drop-shadow(0 0 2px #f8e9e9)
    drop-shadow(0 0 2px #f8e9e9)
    drop-shadow(0 0 2px #f8e9e9);
  transform: translate(-50%, -50%);
  --float-height: -1.5cqw;
  animation: moodboard-float 4s ease-in-out infinite;
}

#emoji-box-1 { top: 54%; left: 25%; animation-duration: 4s; }
#emoji-box-2 { top: 54%; left: 75%; animation-duration: 4.5s; }
#emoji-box-3 { top: 74%; left: 35%; animation-duration: 5.5s; }
#emoji-box-4 { top: 74%; left: 65%; animation-duration: 3.5s; }
#emoji-box-5 { top: 64%; left: 50%; animation-duration: 5s; }
#emoji-box-6 { top: 46%; left: 50%; animation-duration: 4.8s; }
#emoji-box-7 { top: 84%; left: 50%; animation-duration: 4.2s; }

/* No font reset: font: inherit would override .emoji-box's font-size. */
.emoji-button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.moodboard-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 400ms ease-out;
}

.moodboard-overlay.open {
  background: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

/* Sized in moodboard.js: percentages don't resolve on this grid item. */
.exe-window {
  display: flex;
  flex-direction: column;
  background: var(--paper) url("../images/grid-tile.png") repeat 0 0 / 240px 240px;
  box-shadow: 6px 6px 0 var(--ink);
  transform: scale(0.05);
  opacity: 0;
  transition: transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 350ms ease-out;
}

.moodboard-overlay.open .exe-window {
  transform: scale(1);
  opacity: 1;
}

.exe-window-body {
  flex: 1;
  min-height: 200px;
  overflow: hidden;
  padding: 16px;
  background: transparent;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
}

/* Original 1300x1040 coordinates; moodboard.js scales it to fit. */
.image-wall {
  position: relative;
  width: 1300px;
  height: 1040px;
  flex-shrink: 0;
  transform-origin: top left;
}

.image-wall img {
  position: absolute;
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 4px 4px 14px rgba(0, 0, 0, 0.4);
  cursor: grab;
}

.image-wall img:active {
  cursor: grabbing;
}

#img-fuji         { left: 221px; top: 16px;  width: 284px; }
#img-goodnight    { left: 496px; top: 39px;  width: 264px; }
#img-ohshoot      { left: 780px; top: 8px;   width: 327px; }
#img-jesus        { left: 157px; top: 157px; width: 287px; z-index: -1; }
#img-beachchair   { left: 221px; top: 472px; width: 287px; }
#img-ocean        { left: 472px; top: 504px; width: 280px; z-index: -1; }
#img-rainbow      { left: 867px; top: 157px; width: 296px; z-index: -1; }
#img-gojira-super { left: 710px; top: 315px; width: 472px; box-shadow: none; }

.quote-box {
  position: absolute;
  top: 394px;
  left: 590px;
  transform: translate(-50%, -50%);
  width: 252px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.4;
  text-shadow: 0 0 4px #fff, 0 0 8px #fff, 0 0 14px #fff;
  z-index: 900;
}

.quote-box span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  text-align: right;
}

/* Original 1300x1400 comrade.html coordinates. */
.comrade-wall {
  height: 1400px;
}

.exe-window-body:has(> [data-fit="scroll"]) {
  overflow-x: hidden;
  overflow-y: auto;
}

#img-alive    { left: 0;     top: 0;      width: 600px; z-index: 1; }
#img-liberals { left: 970px; top: 0;      width: 340px; z-index: 1; }
#img-power    { left: -20px; top: 380px;  width: 340px; }
#img-job      { left: 360px; top: 320px;  width: 340px; }
#img-angels   { left: 720px; top: 200px;  width: 260px; }
#img-table    { left: 200px; top: 1050px; width: 700px; z-index: 2; }
#img-power2   { left: 980px; top: 1000px; width: 260px; z-index: 1; }
#img-library  { left: 300px; top: 650px;  width: 280px; }
#img-govmnt   { left: 600px; top: 620px;  width: 450px; }
#img-anarchy  { left: -80px; top: 800px;  width: 350px; }
#img-wallet   { left: 560px; top: 850px;  width: 400px; }
#img-rose     { left: 900px; top: 400px;  width: 500px; box-shadow: none; }

.credit {
  position: absolute;
  width: 300px;
  /* The old page's browser-default paragraph spacing, which these positions were set with. */
  margin: 1em 0;
  font-family: system-ui, sans-serif;
  line-height: normal;
  font-size: 20px;
  color: #333;
  text-align: center;
}

.credit a {
  color: #333;
}

#credit-liberals {
  left: 1320px;
  top: 150px;
  width: 200px;
  font-size: 14px;
  transform: rotate(270deg);
  transform-origin: left center;
}

#song-credit {
  left: 300px;
  top: 950px;
  width: 250px;
  font-size: 16px;
}

#song-credit-2 {
  left: 620px;
  top: 60px;
}

#img-frogs   { left: 50px; top: 80px;  width: 500px; }
#img-kakashi { left: 20px; top: 350px;     width: 280px; z-index: -1; }
#img-us      { left: 200px; top: 1500px;  width: 500px; z-index: -6;}
#img-layers  { left: 380px; top: 380px; width: 300px; z-index: -1; }
#img-swamp   { right: 20px;  top: 50px; width: 500px; z-index: 0; }
#img-whiterun { left: 700px; top: 300px; width: 290px; z-index: 1; }
#img-swag    { left: 1025px; top: 350px; width: 290px; z-index: 3; }
#img-sq-frog { left: 450px; top: 730px; width: 215px; z-index: 1; }
#img-sq-wise { left: 1050px; top: 620px; width: 400px; z-index: -1; }
#img-sq-tranquility { left: 50px; top: 650px; width: 500px; z-index: -2; }
#img-sq-2 { left: 900px; top: 500px; width: 300px; z-index: 2; }
#img-sq-emo4life { left: 4px; top: 1580px; width: 235px; z-index: 3; }
#img-sq-breakfast { left: 20px; top: 970px; width: 600px; z-index: -2; }
#img-sq-x { left: 1100px; top: 1000px; width: 376px; z-index: 3; }
#img-sq-spooked { left: 653px; top: 2500px; width: 300px; z-index: 1; }
#img-sq-cry { left: 800px; top: 2800px; width: 500px; z-index: 0; }
#img-sq-paths { left: 1007px; top: 2330px; width: 500px; z-index: 1; }
#img-sq-im-the-problem { left: 325px; top: 2780px; width: 301px; z-index: 3; }
#img-sq-ahh { left: 950px; top: 1175px; width: 247px; z-index: 2; }
#img-sq-probably-the-former { left: -18px; top: 3000px; width: 700px; z-index: 2; }
#img-sq-bird { left: 600px; top: 1600px; width: 600px; z-index: 3; }
#img-sq-snek { left: 0px; top: 2338px; width: 284px; z-index: 3; }
#img-sq-they-did { left: 40px; top: 2050px; width: 500px; z-index: 2; }
#img-sq-just-hang-out { right: -150px; top: 3100px; width: 420px; z-index: 3; }
#img-sq-1 { left: 1215px; top: 1650px; width: 285px; z-index: 2; }
#img-sq-raven { left: 50px; top: 3500px; width: 250px; z-index: 1; }
#img-sq-spice { left: 490px; top: 1080px; width: 325px; z-index: 1; }
#img-sq-beetle { left: 600px; top: 170px; width: 300px; z-index: 3; box-shadow: none; }
#img-sq-bird-but-on-skateboard { left: 1150px; top: 2000px; width: 234px; z-index: 3; }
#img-sq-earth { left: 300px; top: 700px; width: 1200px; z-index: -5; box-shadow: none; }
#img-sq-mars { left: -100px; top: 2250px; width: 1246px; z-index: -5; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .prompt-box,
  .emoji-box {
    animation: none;
  }

  .moodboard-overlay,
  .exe-window {
    transition: none;
  }
}
