.overlay {
  position: absolute;
  padding: 10px;
  border-radius: 7px;
  background-color: var(--overlay-background-color);
  z-index: 1000;
  overflow: hidden; /* Hide overflow for the control overlay */
}

.gradient {
  background: linear-gradient(to bottom right, var(--overlay-background-color), var(--overlay-background-transparent-color));
}

#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  z-index: 1000; /* Ensure it's above other content */
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: visible; /* Initially hidden */
}

#situationOverlay {
  bottom: 10px;
  right: 10px;
  text-align: right;
}

#visualizationControlOverlay {
  top: 10px;
  right: 10px;
}

#intersatLinksDistanceChart {
  width: 130px;
  height: 60px;
}

#satelliteTimeToSourceChart {
  width: 130px;
  height: 60px;
}

#sourcesOverlay {
  bottom: 10px;
  left: 10px;
  max-height: 120px; /* Set a fixed height for the sources overlay */
}

#contentControlOverlay {
  top: 10px;
  left: 10px;
  max-height: calc(100vh - 130px); /* Adjust this value to account for your layout */
  display: flex; /* Enable flexbox layout */
  flex-direction: column; /* Stack items vertically */
}

.scrollable {
  max-height: calc(100% - 40px); /* Adjust based on the height of your tabs */
  overflow-y: auto; /* Allow scrolling */
  flex-grow: 1; /* Allow this area to grow and take remaining space */
  overflow-y: auto; /* Allow scrolling */
  /* Set a border or background if needed */
  border-top: 1px solid var(--overlay-border-color); /* Optional styling */
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari) */
.scrollable::-webkit-scrollbar {
  display: none; /* Hide scrollbar */
}

/* Hide scrollbar for Firefox */
.scrollable {
  scrollbar-width: none; /* Firefox */
}

#constellationDescription {
  padding: 0 10px;
}

.tabs {
  display: flex;
  flex-shrink: 0; /* Prevent tabs from shrinking */
  border-bottom: 2px solid var(--text-color);
}

.tab {
  margin-right: 10px;
  padding: 5px 10px;
  cursor: pointer;
}

.tab.active {
  border-bottom: 2px solid var(--accent-color); /* Accent color for active tab */
}

.content {
  margin-top: 10px;
}

.radio-group {
  display: flex;
  flex-direction: column;
}

.radio-group label {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.radio-group input[type="radio"] {
  margin-right: 8px;
  accent-color: var(--accent-color); /* Accent color for radio buttons */
}
