:root {
  --bg-color: #000;
  --text-color: #fff;
  --popup-bg: #222;
  --tooltip-bg: rgba(0, 0, 0, 0.75);
  --button-bg: #444;
  --button-hover: #666;
  --label-color: #fff;
  --border-color: #444;
  --border-hover: #fff;
}

body.light {
  --bg-color: #f0f0f0;
  --text-color: #111;
  --popup-bg: #fff;
  --tooltip-bg: rgba(255, 255, 255, 0.9);
  --button-bg: #ddd;
  --button-hover: #bbb;
  --label-color: #000;
  --border-color: #ccc;
  --border-hover: #333;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

#tooltip {
  background: var(--tooltip-bg);
  color: var(--text-color);
}

.popup-content {
  background: var(--popup-bg);
  color: var(--text-color);
}

.popup-content button {
  background: var(--button-bg);
  color: var(--text-color);
}

.popup-content button:hover {
  background: var(--button-hover);
}

.thumbnail {
  border: 2px solid var(--border-color);
}

.thumbnail:hover {
  border-color: var(--border-hover);
}

.label {
  color: var(--label-color);
}


body {
  margin: 0;
  overflow: hidden;
  font-family: sans-serif;
  background-color: #000;
}

canvas {
  display: block;
}

/* Tooltip for hover info */
#tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  display: none;
  z-index: 10;
}

/* Popup container */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 20;
}

/* Popup content box */
.popup-content {
  background: #222;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  color: white;
  position: relative;
}

/* Close button style */
.popup-content button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #444;
  color: white;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
}

.popup-content button:hover {
  background: #666;
}

/* Fullscreen lightbox override */
.fullscreen-content {
  background: transparent;
  padding: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Lightbox content media */
#lightboxContent img,
#lightboxContent video {
  max-width: 100%;
  max-height: 100%;
}

/* Thumbnail gallery inside popup */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.thumbnail {
  width: 100px;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #444;
  border-radius: 4px;
}

.thumbnail:hover {
  border-color: #fff;
}

/* Optional: for event labels */
.label {
  position: absolute;
  color: white;
  font-size: 12px;
  pointer-events: none;
  z-index: 5;
}

/* top button */

.top-button {
  position: fixed;
  top: 10px;
  padding: 8px 12px;
  font-size: 14px;
  z-index: 30;
  background-color: rgba(34, 34, 34, 1);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.top-button:hover {
  background-color: rgba(0, 0, 0, 1);
}


.top-button.right {
  right: 10px;
}

.top-button.left {
  left: 10px;
}
