@font-face {
  font-family: Monument;
  src: url(Assets/Font/PPMonumentExtended-Black.otf);
}
@font-face {
  font-family: GeistMono;
  src: url(Assets/Font/GeistMono-Medium.otf);
}

:root {
  --bg-color: #17171b;
  --text-color: #ffffff;
  --accent-color: #ff0000; /* For the 'History' highlights */
  --active-color: #f0f0f0;
  --inactive-color: #c56a2a;
  --font-main: GeistMono;
  --font-title: Monument;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  justify-content: center;
}

canvas {
  transition: opacity 0.3s ease;
}

.main-layout {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  gap: 3px;
  width: 100%;
  overflow: hidden;
}

/* LEFT COLUMN*/
.left-column {
  flex: 2;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
}

.main-title {
  font-family: var(--font-title);
  font-size: 55px;
  line-height: 1.2;
  margin-top: 0;
  margin-left: 25px;
  margin-bottom: 10vh;
  text-transform: uppercase;
}

/* Tri-State Toggle Switch */
.map-controls {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 25px;
  margin-bottom: 20px;
}

.tri-state-toggle {
  display: flex;
  background: #222;
  border-radius: 10px;
  padding: 4px;
  position: relative;
  border: 1px solid #444;
}

.tri-state-toggle input {
  display: none;
}

.tri-state-toggle label {
  padding: 4px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  z-index: 1;
  text-transform: uppercase;
  color: #888;
  transition: color 0.3s;
}
.tri-state-toggle input:checked + label {
  color: white;
}
.legend-item.disabled {
  opacity: 0.2;
  pointer-events: none;
  text-decoration: none !important;
  cursor: default;
}
/* Legend Styling */
.legend {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: #bbb;
  z-index: 1005;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}
.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: middle;
}
.legend-item:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: color 0.3s;
}
.dot.active {
  background-color: var(--active-color);
}
.dot.inactive {
  background-color: var(--inactive-color);
}
.dot.famous {
  border: 2px solid var(--accent-color);
  background: transparent;
}

.legend-item.oactive.selected {
  color: #ffffff;
  text-decoration: underline;
  font-weight: bold;
}
.legend-item.oinactive.selected {
  color: #ffffff;
  text-decoration: underline;
  font-weight: bold;
}
.legend-item.ofamous.selected {
  color: #ffffff;
  text-decoration: underline;
  font-weight: bold;
}
/* Scatterplot */
#scatterplot-container {
  width: 100%;
  height: 600px;
  margin-top: -50px;
  margin-left: 10px;
}

/* RIGHT COLUMN */
.right-column {
  display: flex;
  flex: 0 0 30vw;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
}
.narration-panel {
  flex: 0 1 auto;
}

.intro-text {
  margin-bottom: 50px;
}

.filter-sentence {
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 50px;
}
.highlight-count {
  color: var(--accent-color);
}

#orbits-container {
  width: 100%;
  height: 280px;
  margin-bottom: 5px;
}

.stats-panel {
  margin-top: auto;
  padding-bottom: 20px;
  padding-top: 20px;
}

select {
  background-color: transparent;
  border: 1.5px solid var(--accent-color);
  border-right: 15px solid transparent;
  outline: 1.5px solid var(--accent-color);
  outline-offset: -1.5px;
  text-align: center;
  border-radius: 10px;
  color: var(--accent-color);
  font-family: inherit;
  font-size: 22px;
  cursor: pointer;
}
select:hover {
  background-color: var(--accent-color);
  color: white;
}

/* LABELS OBJECTS */
.label {
  position: absolute;
  padding: 8px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  pointer-events: none;
  border: 1px solid #fff;
  opacity: 0;
  z-index: 2;
}

/* AXIS */
.axis path,
.axis line {
  stroke: #ffffff00;
}

.axis text {
  font-family: var(--font-main);
  font-size: 10px;
  fill: #888888;
}

.x-axis path {
  display: none;
}

.y-axis line {
  stroke: var(--accent-color);
}

.orbit-axis .tick text {
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 1px;
}

#scatterplot-container svg {
  overflow: hidden;
}

/* CREDITS */
 h5 {
  font-size: 12px;
  text-transform: uppercase;
}
.footer {
  display: flex;
  color: var(--bg-color);
  background: #e2e2e2;
  padding: 30px;
}
.footer-section {
  width: 45vw;
}
.footer-section-a {
  width: 15vw;
}

.zoom-hint {
  position: absolute;
  bottom: 20px;
  left: 12%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #888;
  letter-spacing: 2px;
  pointer-events: none;
  background: rgba(23, 23, 27, 0.8);
  padding: 5px 15px;
  border-radius: 20px;
  z-index: 10;
}

#main-footer {
  height: auto;
  min-height: 400px;
  background-color: #e2e2e2 !important;
  color: #17171b !important;
  padding: 60px 25px;
  position: relative;
  display: block;
}

#main-footer * {
  color: #17171b !important;
}

#btn-footer-toggle {
  position: fixed;
  bottom: 5px;

  z-index: 9999;
  background: var(--bg-color);
  border: 1px solid #555;
  color: white;
  padding: 5px 5px;
  cursor: pointer;
  font-family: var(--font-main);
  text-transform: uppercase;
}