* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ink: #111;
  --bg: #fff;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

#scene {
  position: fixed;
  inset: 0;
  display: block;
  cursor: url("Content/3DCursorFA-26.svg?v=1") 13 13, grab;
}

#scene.dragging {
  cursor: url("Content/3DCursorFA-26.svg?v=1") 13 13, grabbing;
}

#scene.hovering {
  cursor: pointer;
}

/* zoomed into an image: regular hover cursor until the user clicks back out */
#scene.focused,
#scene.focused.hovering,
#scene.focused.dragging {
  cursor: pointer;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  z-index: 10;
  pointer-events: none;
}

header > * {
  pointer-events: auto;
}

.logo {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav {
  display: flex;
  gap: 6px;
}

.nav-btn {
  appearance: none;
  border: 1px solid #e2e2e2;
  background: #f4f4f4;
  color: var(--ink);
  font-family: inherit;
  font-weight: 500;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-btn:hover {
  background: #e9e9e9;
}

.nav-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

#info-panel {
  position: fixed;
  top: 54px;
  right: 22px;
  bottom: 22px; /* same gap as the right edge */
  width: 224px;
  background: #f4f4f4;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  padding: 16px;
  z-index: 20;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  display: none;
  overflow-y: auto;
  /* subtle scrollbar when the content is taller than the screen */
  scrollbar-width: thin;
  scrollbar-color: #d9d9d9 transparent;
}

#info-panel::-webkit-scrollbar {
  width: 6px;
}

#info-panel::-webkit-scrollbar-thumb {
  background: #d9d9d9;
  border-radius: 3px;
}

#info-panel::-webkit-scrollbar-track {
  background: transparent;
}

/* mobile: the info panel fills the width of the screen */
@media (max-width: 640px) {
  #info-panel {
    left: 16px;
    right: 16px;
    width: auto;
  }
}

#info-panel.open {
  display: block;
}

#info-panel p {
  margin-bottom: 12px;
}

#info-panel a {
  color: var(--ink);
  text-decoration: underline;
}

#info-panel .info-links a {
  margin-right: 10px;
}

#info-panel hr {
  border: none;
  border-top: 1px solid #e7e7e7;
  margin: 14px 0;
}

#info-panel h3 {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}

#info-panel .award-title {
  display: block;
}

#info-panel .muted {
  color: #9b9b9b;
  display: block;
}

#info-panel img {
  width: 100%;
  display: block;
  /* collapses with the paragraph's 12px bottom margin; 24px = double the old gap */
  margin-top: 24px;
  filter: grayscale(1);
}

#caption {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--ink);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  letter-spacing: 0.01em;
}

#caption.visible {
  opacity: 1;
}

#hint {
  position: fixed;
  left: 22px;
  bottom: 20px;
  font-size: 11px;
  color: #b5b5b5;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#hint.hidden {
  opacity: 0;
}
