/* Scrollable ocean container */
.ocean-scroll {
  overflow-x: auto;
  white-space: nowrap;
  position: relative;
  width: 100%;
  height: 400px; /* adjust as needed */
  border: 1px solid #ccc;
}

.ocean-track {
  position: relative; /* hotspots positioned relative to this */
  display: inline-block;
  height: 100%;
}

.ocean-background {
  height: 100%;
  display: inline-block;
  width: auto;
  max-width: none; /* maintain natural width for scrolling */
}

/* Hotspot (percentage-based) */
.hotspot {
  position: absolute;
  cursor: pointer;
  background-color: rgba(255,255,255,0); /* invisible overlay */
  border-radius: 50%; /* optional */
}

/* Size classes for hotspots */
.hotspot.small { width: 5%; height: 5%; }
.hotspot.medium { width: 8%; height: 8%; }
.hotspot.large { width: 12%; height: 10%; }

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

/* Column layout for sections */
.intro-columns {
  display: flex;
  gap: 0.5rem; /* smaller gap between columns */
  flex-wrap: wrap;
  margin-top: 1rem; /* less vertical spacing */
}

.section-column {
  flex: 1 1 20%; /* smaller width */
  padding: 0.5rem; /* less padding */
  border: 2px solid;
  border-radius: 8px;
  background-color: #f9f9f9;
  font-size: 0.9rem; /* smaller text */
}

.section-column h2 {
  margin-top: 0;
  font-size: 1rem; /* smaller header */
  text-align: center;
}

/* Border colors */
.section-column.bio {
  border-color: #ffc31e; /* yellow/orange for Biological */
}

.section-column.anthro {
  border-color: #00ff6a; /* green for Anthropogenic */
}

.section-column.env {
  border-color: #32c8cd; /* teal for Environmental */
}

/* Hotspot hover effect */
.hotspot:hover {
  outline: 2px solid #ff00ea;
}

.hotspot:hover::after {
  content: attr(data-title);
  position: absolute;
  top: -1.5rem;
  left: 0;
  font-size: 0.8rem;
  background-color: rgba(0,0,0,0.7);
  color: white;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

.sound-toggle {
  display: inline-block;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

.sound-toggle.on {
  background: rgba(0, 120, 255, 0.9);
}

/* ======================
   INFOCARD MODAL (NO BOOTSTRAP)
====================== */

.infocard-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.infocard-modal-content {
    position: relative;
    width: min(1100px, 90vw);
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.infocard-modal.is-open {
    display: flex;
}

/* Close button */
.infocard-modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

/* Image */
#modalInfocard {
    max-height: calc(90vh - 80px);
    width: 100%;
    object-fit: contain;
    background: transparent; /* changed from #000 */
}

/* Bottom controls */
.audio-sidebar {
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px;
    background: #f4f4f4;
    border-top: 1px solid #ddd;
}
