/* 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%; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  text-align: center;
}

.modal-content img {
  width: 45%;
  margin: 5px;
  border-radius: 5px;
}

.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;
}

/* Adjust modal layout for title + left photo */
.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 10px;
}

.modal-header img {
  width: 120px;
  height: auto;
  border-radius: 5px;
}
.modal-content p {
  margin: 5px 0;
}
.modal-section img {
  width: 45%;
  margin-right: 10px;
  border-radius: 5px;
}
.modal-section.audio-player {
  margin-top: 10px;
}
.modal-section.data-description {
  text-align: left;
  max-width: 65ch;
  line-height: 1.6;
}

.audio-unlock-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  z-index: 9999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.audio-unlock-hint.hidden {
  opacity: 0;
}

