@import url("assets/volter/volter.css");
:root { color-scheme: light; }
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 8px;
  background: #f5f6f7;
  font-family: Volter, Verdana, Tahoma, Arial, sans-serif;
  background-image: url("assets/stripe.gif");
  background-color: #cccccc;
}

a {
	text-decoration: none;
	color: #1a4f7f;
	font-weight: 700;
}

a:hover {
	color: #111;
}


.catalogue-stage { --scale: 1; width: 443px; height: 443px; }
.catalogue {
  position: relative;
  isolation: isolate;
  width: 443px;
  height: 443px;
  transform: scale(var(--scale));
  transform-origin: top left;
}
.left-page {
  position: absolute;
  inset: 0 auto auto 0;
  width: 325px;
  height: 443px;
  background: url('assets/left-frame.png') no-repeat left top;
}

.page {
  position: absolute;
  left: 2px;
  top: 18px;
  width: 320px;
  height: 417px;
  overflow: auto;
  padding: 12px;
  font-size: 9px;
  line-height: 1.5;
  color: #111;
  scrollbar-width: thin;
      overflow: hidden;
}
.page[hidden] { display: none; }


.sidebar {
  position: absolute;
  left: 324px;
  top: 16px;
  width: 119px;
  height: 413px;
  background: url('assets/sidebar-chrome.png') no-repeat left top;
}

.window-drag-handle {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 97px; 
  height: 23px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.window-close {
  position: absolute;
  top: 6px;
  left: 96px;
  width: 13px;
  height: 13px;
  z-index: 3;
  cursor: pointer;
}

.window-drag-handle:active,
body.dragging-window .window-drag-handle { cursor: grabbing; }
.window-drag-handle:focus-visible { outline: 2px solid #ffc931; outline-offset: -2px; }
body.dragging-window { user-select: none; }
.sidebar-links {
  position: absolute;
  left: 4px;
  top: 26px;
  width: 96px;
  height: 378px;
  overflow: auto;
  scrollbar-width: none;
}
.sidebar-links::-webkit-scrollbar { display: none; }
.sidebar-links a {
  display: block;
  width: 96px;
  height: 21px;
  line-height: 21px;
  padding-left: 2px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
  text-overflow: clip;
  color: #050505;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.sidebar-links a:hover { background: rgba(255,255,255,.26); }
.sidebar-links a:focus-visible { outline: 2px solid #ffc931; outline-offset: -2px; }
.sidebar-links a[aria-current="page"],
.sidebar-links a[aria-current="page"]:hover {
  background: linear-gradient(to bottom, transparent 1px, #e7e7e7 1px);
}
.scroll-up, .scroll-down {
  position: absolute;
  left: 101px;
  width: 14px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.scroll-up { top: 24px; height: 16px; }
.scroll-down { top: 381px; height: 18px; }
.scroll-up:focus-visible, .scroll-down:focus-visible { outline: 2px solid #ffc931; }

@media (max-width: 458px) { .catalogue-stage { --scale: .97; width: 429.71px; height: 429.71px; } }
@media (max-width: 444px) { .catalogue-stage { --scale: .94; width: 416.42px; height: 416.42px; } }
@media (max-width: 429px) { .catalogue-stage { --scale: .90; width: 398.7px; height: 398.7px; } }
@media (max-width: 411px) { .catalogue-stage { --scale: .86; width: 380.98px; height: 380.98px; } }
@media (max-width: 394px) { .catalogue-stage { --scale: .82; width: 363.26px; height: 363.26px; } }
@media (max-width: 374px) { .catalogue-stage { --scale: .76; width: 336.68px; height: 336.68px; } }
@media (max-width: 350px) { .catalogue-stage { --scale: .71; width: 314.53px; height: 314.53px; } }


.looping-carousel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 8px 0;
}
.carousel-track {
  display: flex;
  width: max-content;
}
.carousel-set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
}
.carousel-set img {
  display: block;
  flex: 0 0 auto;
  width: auto;
  image-rendering: pixelated;
}
.looping-carousel.is-ready .carousel-track {
  animation: carousel-loop 18s linear infinite;
}
@keyframes carousel-loop {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .looping-carousel.is-ready .carousel-track { animation: none; }
}
