:root {
  --bg: #0e0e0e;
  --text: #ffffff;
  --dim: #888888;
  --accent: #ff3b4e;
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --bgstat: #FFFFFF;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', monospace;
  overflow: hidden;
  height: 100vh;
}

/* Scroll container */
.horizontal-scroll {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  align-items: center;
  scroll-snap-type: x mandatory;
}

/* Image track */
.image-track {
  display: flex;
  gap: 6vw;
  padding-right: 10vw;
}

/* Image container */
.image-container {
  position: relative;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Image */
.image-container img {
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  transition: filter 0.3s ease, transform 0.3s ease;
  display: block;
}

/* Hover effect */
.image-container:hover img {
  filter: brightness(0.4);
  transform: scale(1.03);
}

/* Overlay */

.image-container .overlay {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  background: var(--overlay-bg);
  padding: 12px 16px;
  color: var(--text);
  opacity: 0;
  border-radius: 6px;
  pointer-events: none;
  transition: opacity 0.3s ease;
  display: block; /* make sure it can expand */
  max-width: 80%;
}

.image-container:hover .overlay {
  opacity: 1;
}

.overlay-title {
  font-family: 'Syncopate', cursive;
  font-size: 1rem;
  font-weight: 100;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.overlay-title .image-number {
  font-family: 'Syncopate', cursive;
  color: var(--accent);
  font-weight: bold;
}

.overlay-intent {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 200;
  line-height: 1.2;
  margin-top: 10px;
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

/* Load More Button */
.load-more-button {
  border-radius: 999px;
  padding: 0.7em 2em;
  background-color: #FF3B4E;
  color: white;
  border: none;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1em;
  margin-top: 1em;
  margin-bottom: 2em;
}
    
#loadMoreContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  padding: 2rem;
  padding-right: 300px;
  margin-right: 6vw;
  flex-direction: column; /* make sure content flows vertically */
}

/* Manifesto Blurbs */

.text-panel {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80vh; /* square */
  height: 80vh;
  border-radius: 12px;
  padding: 20px;
  background: var(--accent); /* JS used to to randomize */
  color: var(--bg);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 200;
  font-size: 1.5rem;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.text-panel-inner {
  max-width: 80%;
  text-transform: uppercase; /* ⬅️ Force ALL CAPS */
}


/* Footer */
#footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 0.75rem;
  color: var(--dim);
  border-top: 1px solid #1a1a1a;
  z-index: 20;
}

#footer-logo {
  font-family: 'Nothing You Could Do', cursive;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}

#footer-logo span.red {
    color: var(--accent);
}

#footer-logo a {
  color: var(--text);
  text-decoration: none;
}

#footer-logo a:hover {
  text-decoration: none;
}


#footer-text {
  text-align: right;
  font-size: 0.6rem;
}

#footer-text a {
  color: inherit;
}

#footer-text a:hover {
  text-decoration: underline; /* Optional: shows underline on hover */
}

#footer-menu-group {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 20px;
  align-items: center;
}

.icon-with-tooltip {
  position: relative;
  display: inline-block;
}

.icon-with-tooltip .tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: -28px; /* top-right */
  left: 100%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  font-size: 0.9em;
  font-family: 'Syncopate', monospace;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 999;
}

.icon-with-tooltip:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.click-icon {
  width: 40px;
  transition: filter 0.3s ease;
  cursor: pointer;
}

.click-icon:hover {
  filter: brightness(0) saturate(100%) invert(25%) sepia(88%) saturate(1656%) hue-rotate(338deg) brightness(93%) contrast(103%);
}


/* Flowing text for STATIC PAGES */

/* Autoflow track container */
.autoflow-track {
  position: absolute;
  top: 0;
  bottom: 60px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 60px 80px;
  gap: 40px;
  background-color: var(--bgstat);
}

/* Each flowing column */
.autoflow-column {
  flex: 0 0 50vw;
  max-width: 50vw;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-right: 40px;
  font-family: 'IBM Plex Sans', sans-serif;
  color: #000;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

/* First column: title */
.autoflow-column.title-column {
  flex: 0 0 250px;
  max-width: 250px;
  font-family: 'Syncopate', cursive;
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
  border-right: 1px solid rgba(0, 0, 0, 0.3);
}

/* Final column (optional spacer) */
.autoflow-column.final {
  border: none;
  background: transparent;
}

/* Headings & paragraph styling */
.autoflow-column h1 {
  font-size: 2rem;
  font-weight: 400;
  margin-top: 1.3rem;
  margin-bottom: 1.2rem;
  margin-left: 0.8rem;
}

.autoflow-column h2 {
  font-size: 1.4rem;
  font-weight: 200;
  text-transform: uppercase; /* ⬅️ Force ALL CAPS */
  margin-top: 1.3rem;
  margin-bottom: 0.8rem;
  padding-left: 20px; /* or try 40px for more space from window edge */
}

.autoflow-column p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  margin: 1rem 0;
  text-align: left;
  padding-left: 20px; /* or try 40px for more space from window edge */
}

/* Links */
.autoflow-column a {
  color: var(--accent);
  text-decoration: none;
}

.autoflow-column a:hover {
  text-decoration: underline;
}

.autoflow-column blockquote {
  font-family: 'Handlee', cursive; /* Or another distinct font */
  font-size: 1.2rem;
  line-height: 1.5;
  background-color: #f8f8f8;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  color: #333;
}


/* ===============================
   IMAGE PAGE LAYOUT
   =============================== */

.image-page {
  background-color: var(--bgstat);
  color: #000;
  font-family: 'IBM Plex Sans', sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
}

.image-page-container {
  display: flex;
  height: calc(100vh - 60px);
  width: 100%;
}

.left-panel,
.right-panel {
  flex: 1;
  padding: 50px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.divider {
  width: 1px;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  margin-top: 40px;
  margin-bottom: 40px;
}

.image-meta-title {
  margin-bottom: 20px;
  font-family: 'Syncopate', cursive;
  font-size: 1rem;
  font-weight: 100;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.image-meta-title-all { /* Only for ALL list */
  margin-bottom: 18px;
  font-family: 'Syncopate', cursive;
  font-size: 0.85rem;
  font-weight: 100;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.image-meta-title .image-number {
  font-family: 'Syncopate', cursive;
  color: var(--accent);
  font-weight: bold;
}

.image-meta-title-all .image-number-all {/* Only for ALL list */
  font-family: 'Syncopate', cursive;
  color: var(--accent);
  font-weight: bold;
}

.image-display img {
  max-width: 100%;
  max-height: 50vh;
  border-radius: 8px;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.vote-placeholder,
.nav-icons-placeholder {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--dim);
}

.info-block {
  margin-bottom: 20px;
}

.info-block h2 {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-family: 'IBM Plex Sans', monospace;
}

.info-block p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.5;
}

.meta-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-family: 'IBM Plex Sans', sans-serif;
}

.meta-row .label {
  font-weight: 300;
  text-transform: uppercase;
  font-family: 'IBM Plex Sans', monospace;
}

.meta-row .value {
  font-weight: 300;
}

/* Image Local Navigation */

.nav-icons {
  position: fixed;
  bottom: 60px; /* Just above footer (adjust if needed) */
  left: 60px;
  display: flex;
  align-items: center;
  gap: 16px; /* space between icons */
  z-index: 10;
}

/* IMAGE ZOOMING */

#zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: zoom-out;
}

#zoom-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
}


/* VOTING */

.vote-box {
  margin-top: 40px;
  padding: 20px;
}

.vote-box h2 {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 15px;
}

.vote-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.vote-scale {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
  color: #777;
}

.vote-options {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.vote-options label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.vote-options input[type="radio"] {
  display: none;
}

.vote-options span {
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 1rem;
}

.vote-options input[type="radio"]:checked + span {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

.vote-button {
  padding: 10px 20px;
  background-color: var(--bg);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

#vote-message {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 300;
}


/* ================= */
/* MOBILE ADAPTATION */
/* ================= */


@media (max-width: 768px) {
  /* GENERAL RESET FOR MOBILE */
  html, body {
    overflow-x: hidden !important;
    height: auto !important;
  }

  body {
    font-size: clamp(0.85rem, 2.4vw, 0.9rem);
    line-height: 1.5;
  }

  /* STATIC PAGES */
  .autoflow-track {
    flex-direction: column;
    padding: 20px;
    gap: 30px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .autoflow-column,
  .autoflow-column.title-column {
    max-width: 100%;
    flex: none;
    border: none;
    padding-right: 0;
  }

  .autoflow-column h1 {
    font-size: clamp(1.1rem, 3.6vw, 1.5rem);
  }

  .autoflow-column h2 {
    font-size: clamp(1rem, 3vw, 1.4rem);
  }

  .autoflow-column p {
    font-size: clamp(0.85rem, 2.4vw, 0.9rem);
    padding-left: 0;
  }
  
  /* ALL images list */
  
  .all-entry {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5em;
}

.all-thumb {
  width: 200px;
  height: auto;
  margin-right: 14px;
  flex-shrink: 0;
}


  /* HORIZONTAL IMAGE TRACK (index.html) — turn into vertical */
  .horizontal-scroll {
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px;
    height: auto;
  }

  .image-track {
    flex-direction: column;
    gap: 20px;
    padding: 0;
  }

  .image-container img {
    max-height: 60vh;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .image-container .overlay {
    top: auto;
    bottom: 10px;
    left: 10px;
    transform: none;
    max-width: 90%;
    padding: 10px;
    font-size: 0.9rem;
  }

  .overlay-title {
    font-size: clamp(0.85rem, 2.4vw, 0.9rem);
  }

  .overlay-intent {
    font-size: clamp(0.8rem, 2vw, 1rem);
  }

  /* FOOTER NAVIGATION */
  #footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    padding: 10px;
  }

  #footer-logo {
    font-size: 0.9rem;
    margin-bottom: 5px;
    order: 2;
    opacity: 0.6;
    transition: opacity 0.3s;
  }

  #footer-logo:active,
  #footer-logo:focus {
    opacity: 1;
  }

  #footer-menu-group {
    position: static;
    transform: none;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    order: 1;
    margin-bottom: 5px;
  }

  .click-icon {
    width: 28px;
  }

  #footer-text {
    font-size: 0.6rem;
    order: 3;
  }

/* MOBILE - MANIFESTO AND IMAGES */

.text-panel {
    font-size: clamp(0.85rem, 2.45vw, 0.9rem);
  }

.image-meta-title {
    font-size: clamp(0.85rem, 2.4vw, 0.9rem);
}

.image-meta-title .image-number {
    font-size: clamp(0.85rem, 2.4vw, 0.9rem);
}


.info-block h2 {
    font-size: clamp(0.85rem, 2.4vw, 0.9rem);
}

.info-block p {
    font-size: clamp(0.85rem, 2.4vw, 0.9rem);
}

 .meta-row {
    flex-wrap: wrap;
  }

  .meta-row .label,
  .meta-row .value {
    font-size: clamp(0.85rem, 2.3vw, 0.9rem);
    white-space: nowrap;         /* try to stay on one line */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;             /* avoids overflow on very long strings */
  }

  .meta-row .value {
    font-size: clamp(0.85rem, 2.3vw, 0.9rem);
    flex-shrink: 0;
  }
  
  
  /* IMAGE PAGE */
.image-page-container {
  height: auto !important;
  display: block !important;
}

.image-page {
  height: auto !important;
  min-height: 100vh;
  overflow-y: auto !important;
    padding-bottom: 80px;
}

  .left-panel,
  .right-panel {
    padding: 20px;
      overflow: visible !important;
  }

  .image-display img {
    max-width: 100%;
    max-height: 50vh;
  }

  .nav-icons {
    position: static;
    justify-content: center;
    margin: 10px 0;
  }

  .vote-box {
    padding: 10px;
  }

  .vote-options {
    flex-wrap: wrap;
    justify-content: center;
  }

  .vote-options span {
    font-size: 0.85rem;
    padding: 4px 8px;
  }

  /* TOOLTIP FIX (if overlapping on touch) */
  .icon-with-tooltip .tooltip {
    display: none;
  }
}