:root {
  --font-size: 12px;
  --line-height: 1;
  --pad: 24px;
}

* {
  box-sizing: border-box;
  margin: 10;
}

html,
body {
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: var(--font-size);
  line-height: var(--line-height);
  background: #ffffff;
}

/* Default */
body {
  color: #000;
}

.page {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Link Styles */
a,
a:link,
a:visited {
  color: #3c6af5;
  text-decoration: none;
  cursor: pointer;
}

a:hover,
a:active {
  color: #555;
}

.side-panel {
  position: fixed;
  left: var(--pad);
  top: 50%;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 3px;
  z-index: 10;
  opacity: 1;
  width: calc(100vw - var(--pad) * 2);
  transition: opacity 0.3s linear;
}

.nav-item {
  border: 0;
  background: transparent;
  padding: 2px 0;
  text-align: left;
  text-transform: uppercase;
  font: inherit;
  cursor: pointer;
  color: #000;
  white-space: nowrap;
  font-weight: 400;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  opacity: 1;
  transition: opacity 0.15s linear;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.nav-item::after {
  content: "........................................................................................................";
  letter-spacing: 1px;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  color: black;
  opacity: 0;
  font-weight: 300;
}

.nav-item--active {
  font-weight: 400;
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .nav-item:hover {
    color: #555;
    transition: opacity 0.2s linear;
  }
}

.side-panel.carousel-mode .nav-item {
  opacity: 0.3;
}

.side-panel.carousel-mode .nav-item--active {
  opacity: 1;
}

.section-content {
  color: #000;
  text-transform: uppercase;
  max-width: calc(100vw - var(--pad) * 2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  font-weight: 400;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform-origin: top;
  transform: translateY(-2px);
  transition: opacity 0.15s linear;
}

.section-content--open {
  max-height: 200px;
  opacity: 1;
  transform: translateY(0);
}

/* Arrow */
.back-icon {
  position: fixed;
  left: var(--pad);
  top: 15px;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
  z-index: 11;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  opacity: 1; /* same in all states now */
  transition: opacity 0.3s linear;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-icon::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 10px solid black;
}

.image-frame {
  position: fixed;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 1 / 1;
  width: min(70vw, 480px);
  max-height: 480px;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.1s linear;
}

.image-frame.dimmed {
  opacity: 0.2;
}

.image-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.footer {
  position: fixed;
  left: var(--pad);
  right: var(--pad);
  bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  color: #000;
  opacity: 1;
  transition: opacity 0.3s linear, color 0.3s linear;
  cursor: default; /* IMPORTANT: footer itself is NOT clickable */
}

/* Only this is clickable */
#footerMain {
  cursor: pointer;
}

/* This one should feel dead */
#footerVersion {
  cursor: default;
  pointer-events: none; /* <-- no hover/click at all */
}


/* Only the left footer text is clickable / hoverable */
#footerMain {
  cursor: pointer;
}

.footer span:first-child {
  transition: opacity 0.3s linear, color 0.3s linear;
}

.footer span:last-child {
  transition: opacity 0.3s linear;
}

/* Muted mode */
body.page-muted .back-icon {
  opacity: 0.3;
}

body.page-muted .side-panel {
  opacity: 0;
  pointer-events: none;
}

body.page-muted .footer {
  opacity: 1;
  color: #000;
}

body.page-muted .footer span:first-child {
  opacity: 1;
  color: #000;
}

body.page-muted .footer span:last-child {
  opacity: 0;
}

.footer-location {
  transition: opacity 0.3s linear;
}

body.page-muted .footer-location {
  opacity: 0; /* fades / NEW YORK out in showcase mode */
}


@media (max-width: 600px) {
  :root {
    --pad: 15px;
  }

  .image-frame {
    width: 100vw;
    max-width: 70vw;
    max-height: 70vw;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}
