html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

.selected {
  border: 4px solid #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.region img,
.application img,
.modal-body img,
.img-container img {
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  width: 100%;
}

.region img:hover,
.application img:hover,
.hover-effect:hover {
  transform: scale(1.05);
}

/* Center modal content */
.modal-body {
  text-align: center;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
}

.modal-footer .btn {
  width: 45%;
}

.modal-footer button {
  font-weight: bold;
}

/* Modal scrollable content */
#regionApplicationModal .modal-body {
  max-height: 550px;
  overflow-y: auto;
}

/* Container for image and description */
.img-container {
  position: relative;
  display: inline-block;
}

.img-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  opacity: 0;
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease-in-out, visibility 0s 0.3s;
  pointer-events: none;
}

.img-container:hover .overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in-out, visibility 0s;
}

/* Optional: Description text */
.overlay p {
  margin: 0;
  font-size: 14px;
}

/* Add muted blue background for modals */
.bg-mutedblue {
  background-color: #0a3d91;
  color: white;
}

.bg-mutedblue .modal-title {
  font-weight: bold;
}

.bg-mutedblue .btn-close {
  filter: invert(1);
}

/* Extra Touches for Better Aesthetics */
.modal-header {
  background-color: #0a3d91; /* Matches bg-mutedblue */
  color: white;
  border-bottom: 1px solid #003366;
  text-align: center;
}

.modal-footer {
  background-color: #0a3e91b2;
  color: #003366;
  border-top: 1px solid #003366;
  justify-content: space-between;
}
.modal-header .modal-title {
  font-weight: 700;
}

.modal-header .btn-close {
  color: #6c757d;
}

/* #commonUseModalBody {
  font-size: 0.8rem;
  max-height: 300px;
  overflow-y: auto;
  width: auto;
} */

#commonUseModalBody {
  font-size: 0.8rem;
  width: auto;
}

#commonUseModalBody a {
  word-break: break-all;
}

/* Map area */
#mapdiv {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  z-index: 0;
  box-sizing: border-box; /* Include padding/border in width */
}

/* Styling for the main data-layer button */
.data-layer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 90px;
  background-color: rgba(60, 60, 60, 0.8);
  border-color: rgba(10, 61, 145, 0.85);
  border-radius: 7px;
  cursor: default;
  padding: 0;
  gap: 0;
  margin: 0;
  user-select: none;
}
.data-layer-logo.another-data-layer-logo {
  display: block;
  width: 100%;
  cursor: default;  
  padding: 1px 2px;
  margin-top: 1px;
  font-size: 13px;
  color: white;
  background-color: rgba(60, 60, 60, 0.1);
}
.data-layer-logo.another-data-layer-logo a {
  color: white;
  text-decoration: none;
}
.data-layer-logo.another-data-layer-logo a:hover {
  color: blue;
  font-weight: bold;
}

/* Styling for the logo */
.logo {
  width: 290px;
  height: auto;
  margin-right: 10px;
}

/* Arrow styling */
.arrow {
  font-size: 16px;
  font-weight: bold;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

/* Clicking the arrow (flip the arrow) */
.data-layer-arrow.clicked .arrow {
  transform: rotate(180deg);
}

/* When arrow changes state */
.data-layer-arrow.clicked {
  background-color: rgba(22, 169, 6, 0.806);
}

/* Styling for the arrow and text */
.data-layer-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: auto;
  background-color: rgba(10, 61, 145, 0.65);
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* Flex container for all top and bottom buttons */
.top-buttons-container,
.bottom-buttons-container {
  position: absolute;
  display: flex;
  align-items: center;
  z-index: 1;
  max-width: 100%;
  margin: 0 auto;
  gap: 2px;
}

.top-buttons-container {
  top: 10px;
  left: 5px;
}
.bottom-buttons-container {
  bottom: 10px;
  left: 5px;
}

/* Common button styles */
.top-button,
.bottom-button {
  background-color: #007bff;
  color: white;
  height: 50px;
  width: 50px;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Individual button styles */
.top-button {
  background-color: #007bff;
}
.bottom-button {
  background-color: #9b9ea2ad;
}

/* Hover effects */
.top-button:hover,
.bottom-button:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.top-button:hover {
  background-color: #0056b3;
}
.bottom-button:hover {
  background-color: #9b9ea2;
}

/* Active state */
.top-button.active {
  background-color: rgba(22, 169, 6, 0.8);
}
.bottom-button.active {
  background-color: rgba(22, 169, 6, 0.35);
}

/* Button-like styling for the link */
.top-button-link {
  background-color: #e0e7ed6a; /* Lighter background */
  text-decoration: none;
  color: white;
  height: 50px;
  width: 50px;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Softer shadow */
  transition: all 0.3s ease;
}
.top-button-link:hover {
  color: #373839;
  background-color: #898c8d; /* Subtle hover background */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Tech-inspired AI button with refined metallic effect */
.bottom-button-link-tech {
  background: linear-gradient(145deg, #2e3942, #49505a); /* Steel blue-metallic */
  text-decoration: none;
  color: #00e6ff; /* Slightly brighter neon cyan */
  height: 50px;
  width: 50px;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #00e6ff; /* Neon border */
  box-shadow: 
    inset 2px 2px 4px #1a1f24, 
    inset -2px -2px 4px #5c6670, 
    0 0 15px rgba(0, 255, 255, 0.3), /* Outer glow */
    0 4px 8px rgba(0, 0, 0, 0.4); /* Softer dark shadow */
  transition: all 0.3s ease-in-out;
}
.bottom-button-link-tech:hover {
  background: linear-gradient(145deg, #3a4752, #5b6773);
  box-shadow: 
    0 0 18px rgba(0, 255, 255, 0.8),
    inset 3px 3px 6px #23282e, 
    inset -3px -3px 6px #5a626c;
  color: #ffffff;
  transform: scale(1.1);
}

.bells-whistles-container {
  position: absolute;
  top: 65px;
  left: 360px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.5);
  padding: 10px;
  border: 1px solid rgba(0, 123, 255, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  height: auto;
  width: 20vw;
  min-width: 338px;
  max-width: 500px;
  /* cursor: grab; */
}

/* Close Button */
.closeButton {
  display: block;
  margin: 15px 0 0 auto;
  padding: 5px 10px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}
.closeButton:hover {
  background: #0056b3;
}

.tooltip-inner {
  background-color: #007bff; /* Blue background */
  color: white;
  font-size: 14px;
}

/* Leaflet improvements */
.leaflet-popup {
  position: absolute;
  text-align: center;
  background: rgba(255, 255, 255, 0.3);
}
.leaflet-popup-content-wrapper {
  /* background-color: rgba(97, 116, 146, 0.65); */
  background-color: rgba(240, 242, 245, 0.6);
  border-radius: 4px;
  padding: 1px;
  margin: 0 !important;
}
.leaflet-popup-content {
  padding: 1px;
  margin: 1px;
  height: auto;
  width: auto;
  min-width: 100px;
  max-width: 500px;
  overflow: auto;
}

/* Layer Control */
.leaflet-top.leaflet-right {
  z-index: 10001;
}

.leaflet-control-layers-list input[type='radio'],
input[type='checkbox'] {
  margin: 2px;
}

/* Leaflet's grab cursor */
.leaflet-grab {
  cursor: auto;
}

.leaflet-dragging .leaflet-grab {
  cursor: move;
}

/* Time Component Container */
.time-component-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  margin: 0;
  padding: 1px;
  border-radius: 2px;
  font-family: 'Roboto', sans-serif;
  background: rgba(255, 255, 255, 0.7);
}
#timeComponent-pane {
  max-width: 550px;
  border: 1px solid #0076b66b;
  border-radius: 3px;
}
#startDatePicker,
#endDatePicker {
  max-width: 96px;
  margin: 1px 1px;
  padding: 1px 2px;
  font-weight: bold;
  border: 1px solid #aaa;
  border-radius: 2px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#startDatePicker:hover,
#endDatePicker:hover {
  border-color: #888;
  background-color: #f0f0f0;
}
#startDatePicker:focus,
#endDatePicker:focus {
  border-color: #0056b3;
  box-shadow: 0 0 3px rgba(0, 86, 179, 0.3);
  outline: none;
  background-color: #fff;
}
.btn_time-component {
  color: #5b6268bd;
  font-size: 1.2rem;
  border: 1px solid #ccc;
  background-color: transparent;
}
.gray_badge {
  background-color: #6c6e70;
  color: white;
  padding: 0.2em 0.5em;
  border-radius: 10px;
  font-size: 0.7rem;
}


/* Panel Styling */
.data-layer-panel {
  position: absolute;
  display: none;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 0;
  width: 300px;
  max-width: 300px;
  max-height: 70vh;
  border: 1px solid rgba(10, 61, 145, 0.85);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  /* overflow-x: hidden; */
  /* overflow-y: auto; */
  transition: all 0.3s ease;
}

/* When the panel is shown */
.data-layer-panel.show {
  display: block;
}

/* Content Section */
.data-layer-content {
  background: rgba(255, 255, 255, 0.6);
  padding: 0px;
  margin: 0px;
  max-height: 70vh;
  overflow-x: hidden; 
  overflow-y: auto;
}

.data-layer-no-products {
  color: #d1cecef6;
  font-style: italic;
  padding: 0px;
  text-align: center;
}

/* Custom Scrollbar Styling for Chrome */
.scrollable-content::-webkit-scrollbar {
  width: 6px;  /* Thinner scrollbar */
  height: 6px; /* Thinner horizontal scrollbar */
}
.scrollable-content::-webkit-scrollbar-track {
  background: #f1f1f1;  /* Light background for the scrollbar track */
  border-radius: 10px;
}
.scrollable-content::-webkit-scrollbar-thumb {
  background: #c6c9cb;  /* Stylish thumb color */
  border-radius: 10px;
}
.scrollable-content::-webkit-scrollbar-thumb:hover {
  background: #0056b3;  /* Darker color on hover */
}
.scrollable-content::-webkit-scrollbar-corner {
  background: #f1f1f1;  /* Optional: for the intersection between horizontal and vertical scrollbars */
}

/* Custom Scrollbar Styling for Firefox */
.scrollable-content {
  overflow: scroll;
  scrollbar-width: thin; /* Firefox: make the scrollbar thinner */
  scrollbar-color: #c6c9cb #f1f1f1; /* Firefox: thumb and track colors */
}


/* Make the header sticky */
#headerRegionAppTitle {
  position: sticky;
  top: 0;
  background-color: rgba(10, 61, 145, 0.85);
  color: white;
  padding: 2px 1px;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.2;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-height: 35px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 1s ease;
}

/* Content Section */
#dataLayerContent {
  padding: 0px;
  margin: 0px;
  padding-top: 2px;
}


/* Product listing */
.product-header {
  color: rgba(10, 61, 145);
  background-color: rgb(209, 205, 205);
  margin: 0;
  margin-right: auto;
  font-size: 1.1em;
  font-weight: 700;
  text-align: center;
  padding-left: 4px;
}

.category-header {
  color: rgba(10, 61, 145);
  background-color: #f3f4a7cc;
  padding: 0; /* Remove padding */
  margin: 0; /* Remove margins */
  font-size: 1.05em;
  font-weight: 600;
  text-align: left; /* Keep the category header left-aligned */
  line-height: 1.2; /* Adjust line height to reduce vertical spacing */
}


.category-container {
  margin-bottom: 1px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2px;
}

.product-name {
  color: rgba(0, 0, 0, 1);
  padding: 0;
  margin: 0;
  font-size: 0.9em;
  font-weight: 400;
  text-align: left;
  line-height: 1.1;
  word-break: break-word;
  white-space: normal;
  column-gap: 10px;
  display: block;
}
.product-name br {
  display: block;
  margin-bottom: 10px;
}
a.product-name {
  color: #7e0425;
  text-decoration: none;  
  padding: 0;
  margin: 0;
}
a.product-name:hover {
  text-decoration: underline;
  color: #145ff3;
}
a.product-name::before {
  content: "\25B7 ";
  margin-right: 5px;
}
a.product-name.active::before {
  content: "\25BC ";
  margin-right: 5px;
}
a.product-name.active {
  color: green;
}


.product-row-container {
  margin-bottom: 2px;
  border: 1px solid #ddd;
  font-weight: 500;
  border-radius: 5px;
  background-color: #f9f9f9;
  overflow: hidden; /* Ensures inner rows fit within rounded container */
}

.product-row {
  display: flex;
  align-items: center;
  padding: 4px 1px;
  justify-content: space-between;
  border-bottom: none;
}

.product-row.another-row {
  display: block;
  width: 100%;
  padding: 2px 1px;
  margin: 0;
}

.product-checkbox {
  flex: 0 0 14px;
  text-align: center;
  cursor: pointer;
  appearance: none;
  width: 14px; 
  height: 14px;
  border-radius: 3px;
  background-color: #e0e0e0;
  border: 2px solid #b0b0b0;
  transition: background-color 0.3s, border-color 0.3s;
  margin-left: 2px;
  margin-right: 0;
  padding: 0;
  vertical-align: middle;
}
.product-checkbox:checked {
  background-color: rgba(22, 169, 6, 0.8);
}
.product-checkbox:disabled {
  background-color: #f2f2f2;
  border-color: #d0d0d0;
  cursor: not-allowed;
  opacity: 0.6;
}

.show_value_label {
  font-size: 0.75em;
  font-weight: normal;
  margin: 0;
  padding-left: 1px;
  padding-bottom: 0;
  color: #161617;
  display: inline-block;
  vertical-align: middle;
}

.select_dropdown_container:hover {
  background: linear-gradient(135deg, #3b82f6, #1e3a8a);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}
.select_dropdown_container:disabled {
  background: #bbbdc1;
  color: #f1eaea;
  cursor: not-allowed;
}

/* Slider */
.ui-slider-handle {
  background-color: #3333333b !important;
  border-color: #939191 !important;
}

/* Style for the container */
.slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20%;
  text-align: center;
}

/* Style for the slider */
.opacity-slider {
  width: 100%;
  -webkit-appearance: none; /* Remove Chrome default styling */
  -moz-appearance: none; /* Remove Firefox default styling */
  appearance: none; /* General appearance reset */
  height: 6px;
  border-radius: 5px;
  background-color: #ddd; /* Lighter background gray */
  border: 1px solid #bbb; /* Lighter border */
  transition: background-color 0.3s; /* Smooth color change on hover */
}

/* Style for the slider thumb (circle) in Chrome and other Webkit browsers */
.opacity-slider::-webkit-slider-thumb {
  -webkit-appearance: none; /* Remove Chrome default thumb styling */
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(204, 204, 204, 0.7);
  border: 2px solid #bbb; /* Light border */
  transition: background-color 0.3s; /* Smooth color change on hover */
}

/* Style for the slider thumb (circle) in Firefox */
.opacity-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(204, 204, 204, 0.7);
  border: 2px solid #bbb;
  transition: background-color 0.3s;
}

/* Optional: Hover effect to change thumb color */
.opacity-slider:hover::-webkit-slider-thumb,
.opacity-slider:hover::-moz-range-thumb {
  background-color: rgba(170, 170, 170, 0.6);
}

.opacity-value {
  font-size: 0.8em;
  margin-left: 1px;
  margin-bottom: 3px;
  font-weight: normal;
}

.product-info-icon {
  flex: 0 0 5%; /* 3% width for info icon */
  text-align: right;
  cursor: pointer;
  font-size: 1em;
  color: #9a9f9f;
}

.product-info-icon:hover {
  color: #0056b3;
}

/* Value Display Box */
.valueDisplay-custom-control {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px;
  margin: 0;
  color: #fff;
  font: 0.85rem 'Helvetica Neue', Arial, Helvetica, sans-serif;
}
.valueDisplay-custom-control:empty { display: none }

/* Map legends */
.map-legend-container {
  transition: none;
  position: absolute;
  font-size: 0.75rem;
  top: 10px;
  left: 515px;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  border: 1px solid rgba(0, 123, 255, 0.8);
  width: 20vw;
  min-width: 338px;
  max-width: 500px;
  height: auto;
  max-height: 50vh;
  overflow-y: auto; 
  border-radius: 8px;
  margin-bottom: 5px;
  z-index: 1001;
}

/* Dygraphjs div settings settings */
.wrapper_div{
  position: absolute;
  top: 1px;
  right: 50px;
  z-index: 1003;
  font-size: 0.75rem;
  height: 30%;
  width: 60%;
  max-height: 300px;
  max-width: 900px;
  background: rgba(209, 246, 206, 0.7);
  z-index: 1003;
}
.first_child_div{ /* used for dygraph div*/
 left: 10px;
 right: 10px;
 top: 25px;
 bottom: 100px;
 min-width: 90%;
 height: 80%;
 background: rgba(239, 242, 224, 0.106);
}

/* Initially hidden loading state */
.loading {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 0.4s, opacity 0.4s ease-in;
}

/* Visible after ready */
.visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.4s ease-in;
}
/* End of Dygraphjs div setting */


#startDatePicker, 
#endDatePicker {
  max-width: 96px;
  margin: 1px 1px;
  padding: 2px 4px; /* Adjust padding for better spacing */
  font-weight: bold;
  border: 1px solid #aaa;
  border-radius: 2px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.875rem; /* Reduce font size slightly to fit better */
  line-height: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#startDatePicker:hover,
#endDatePicker:hover {
  border-color: #888;
  background-color: #f0f0f0;
}

#startDatePicker:focus,
#endDatePicker:focus {
  border-color: #0056b3;
  box-shadow: 0 0 3px rgba(0, 86, 179, 0.3);
  outline: none;
  background-color: #fff;
}

/* General Styles for Station Info Container */
.station-info-container {
  transition: none;
  position: absolute;
  font-size: 0.7rem; /* Compact base font size */
  top: 10px;
  left: calc(470px + 20vw); /* Dynamically position the popup */
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent background */
  padding: 10px;
  border: 1px solid rgba(0, 123, 255, 0.8); /* Blue border for clarity */
  width: 15vw; /* Relative width for responsiveness */
  min-width: 270px; /* Minimum width to prevent shrinkage */
  max-width: 90vw; /* Ensure it doesn't exceed screen width */
  max-height: 40vh; /* Vertical height limit for scrolling */
  overflow-y: auto; /* Allow vertical scrolling */
  overflow-x: hidden; /* Prevent horizontal scrolling */
  border-radius: 8px; /* Smooth rounded corners */
  z-index: 1001; /* Ensure it's above other elements */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  word-break: break-word; /* Prevent text overflow */
  overflow-wrap: anywhere; /* Handle unbreakable strings gracefully */
}

.station-info-container table {
  table-layout: fixed; /* Ensures fixed layout for consistent column sizing */
  width: 100%; /* Full width within the container */
}

.station-info-container th,
.station-info-container td {
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
  padding: 8px; /* Add some padding for breathing space */
}

/* Specific column width adjustments */
.station-info-container th {
  width: 45%; /* Allocate more width to the first column */
}

.station-info-container td {
  width: 55%; /* Remaining width for the second column */
}


/* Ensure font size is controlled in popup content */
.station-info-popup-content,
.station-info-popup-content * {
  font-size: 0.7rem !important;
}

/* Adjust the padding of table cells to reduce space */
#infoDisplayTable td, #infoDisplayTable th {
  padding: 4px 8px;
  vertical-align: middle;
  border-bottom: 1px solid #ddd;
  font-size: 0.8rem;
}

/* Remove extra space from rows */
#infoDisplayTable tr {
  margin: 0;
  padding: 0;
}

/* History Table Styles */
.history-table {
  margin: 0;
}
.history-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
  line-height: 1.5;
  text-align: left;
}
.history-table table th,
.history-table table td {
  padding: 1px 2px;
  border: 1px solid #ddd;
  border-radius: 2px;
}
.history-table table tr:nth-child(even) {
  background-color: #f9f9f9;
}
.history-table table th {
  font-weight: bold;
  background-color: #f1f1f1;
}

/* Footer Styling */
.station-info-footer {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 5px;
}

.station-info-footer .btn-group .btn, 
.station-info-footer div {
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.station-info-footer .btn-group {
  font-size: 0.75rem;
  padding: 4px 8px;
}


/* Story Map Narration Block Styles */
.productsContainer-storymap {
  max-height: 125px;
  overflow-y: auto;
}

.narration {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 90vh; /* also change in `load_storymap.js; narration.style.height = '90vh'; function resetStoryBoard() */
  width: 21vw; /* also change in `load_storymap.js; narration.style.width = '21vw'; function resetStoryBoard() */
  min-width: 350px;
  background: rgba(247, 240, 102, 0.2);
  box-shadow: -2px 0px 5px rgba(0, 0, 0, 0.2);
  padding: 10px;
  overflow-y: hidden;
  z-index: 1000;
  border-left: 2px solid #ccc;
  left: auto;
}
.narrationContents {
  padding: 0px;
  width: 100%;
  height: calc(100% - 100px);
  overflow-x: hidden;
  background-color: rgba(230, 230, 230, 0.75);
  border-radius: 4px;
  overflow-y: auto;
}

.resize-handle {
  position: absolute;
  left: -4px;
  top: 0;
  width: 6px;
  height: 100%;
  cursor: ew-resize;
  background-color: #666;
  border-radius: 3px;
  box-shadow: 1px 0px 2px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.resize-handle:hover {
  background-color: #444;
}

.narration.show {
  display: block;
}
.narration.empty {
  display: none;
}
.narration_cancel {
  position: relative;
  margin-top: -10px;
  top: 5px;
  left: 5px;
  padding: 6px 6px;
  font-size: 1rem;
  border: 2px solid transparent;
  border-radius: 50%;
  background-color: #ff4d4d;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}
.narration_cancel:hover {
  background-color: #ff0000;
  transform: scale(1.1); 
  border-color: #cc0000;
}

.storymaptitle {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-top: 0px;  
  margin-bottom: 10px;
  text-align: center;
  background-color: #f0f0f0;
}
.chapter-header {
  font-size: 14px;
  font-weight: bold;
  color: #131dedd8;
  text-align: left;
  padding: 4px;
  margin: 0;
}
.description {
  margin: 1px;
  text-align: left;
  font-size: 11pt;
  padding: 1px;
}
.image-container {
  margin: 10px 0 0 0;
  padding: 10px 0 0 0;
  text-align: center;
}
.image-container img {
  margin-top: 5px;
  max-height: 220px;  
  max-width: 320px;
  object-fit: cover;
}
.img-title, .vid-title {
  margin-top: 0;
  margin-bottom: 2px;
  padding: 0;
  text-decoration: none;
  font-size: 12px;
  color: #ae2105;
  font-weight: bold;
}
.img-link, .vid-link {
  margin-top: 0;
  padding-top: 0;
  text-decoration: none;
  color: #007bff;
  font-size: 12px;
}
.img-link:hover, .vid-link:hover {
  text-decoration: underline;
  color: #0056b3;
}
.image-popup{
  cursor: zoom-in
}
.vid-holder {
  /* margin-top: 5px;
  height: 200px;
  max-height: 1000px;
  width: 100%; */
  margin-top: 5px;
  height: auto;
  width: 100%;
  max-width: 600px;
  object-fit: cover;
}
.imgvid-credit {
  font-size: 14px;
  color: #555;
  margin-top: 0;
  margin-bottom: 0;
  font-style: italic;
  text-align: center;
  display: inline;
}
/* End of Story Map Narration Block Styles */

/* Intro JS*/
.introjs-tooltiptext{
  font-size: 1rem !important; 
}
.dropdown-item{
  cursor: pointer;
}
.customTooltip {
  min-width: 400px !important;
}
@media (max-width: 768px) {
  .introjs-tooltiptext, .introjs-button, .introjs-nextbutton, .introjs-donebutton{
    font-size: 0.8rem !important; 
  }
}

/* Optional: Adjust for larger screens */
@media (min-width: 1200px) {
  .wrapper_div {
    width: 50%;
    height: 40%;
  }
}

@media (max-width: 768px) {
    /* Layer Control Adjustments */
    .leaflet-touch .leaflet-control-layers {
      overflow: auto;
      margin-top: 28px !important;
      margin-right: 1px !important;
      z-index: 1000;
    }
  
    .leaflet-touch .leaflet-control-layers-toggle {
      width: 30px;
      height: 30px;
    }

    .leaflet-top.leaflet-right {
      right: -7px;
    }
  
    /* Popup Content Adjustments */
    .leaflet-popup-content {
      min-width: 200px;
      max-width: 100%;
      max-height: 200px;
      overflow-y: auto;
    }
  
    .leaflet-popup-content-wrapper {
      border-radius: 6px;
      padding: 5px;
    }
  
    .leaflet-popup-content {
      min-width: 60px;
      font-size: 12px;
      max-width: 300px;
      overflow: auto;
    }
  
    /* Button and Logo Adjustments */
    /* Make the header sticky */
    #headerRegionAppTitle {
      font-size: 1em;
      font-weight: 400;
      line-height: 1.1;
    }

    .top-buttons-container,
    .bottom-buttons-container {
      gap: 1px;
    }

    .top-button,
    .bottom-button,
    .data-layer-logo {
      font-size: 13px;
    }

    .data-layer-logo.another-data-layer-logo {
      font-size: 10px;
    }

    .top-button, .top-button-link{
      height: 36px;
      width: 36px;
    }
  
    .bottom-buttons-container {
      bottom: 20px;
    }
  
    .bottom-button, .bottom-button-link-tech {
      height: 28px;
      width: 28px;
    }
  
    .data-layer-logo {
      width: 240px;
      height: 70px;
    }
  
    .logo {
      width: 230px;
    }
  
    .data-layer-arrow {
      width: 240px;
      height: 20px;
    }
  
    .data-layer-panel {
      max-width: 240px;
    }
  
    /* Bells Whistles Container Adjustments */
    .bells-whistles-container {
      top: 50px;
      left: 10px;
      width: auto;
    }

    .map-legend-container {
      top: 100px;
      left: 20px;
      width: auto;
    }
  
    /* Custom Popup Style */
    .custom-popup {
      font-size: 12px;
      min-width: 60px;
      max-width: 300px;
      padding: 1px 5px;
    }
  
    /* Time Component Adjustments */
    .time-component-container {
      max-width: 440px;
    }
  
    #timeComponent-pane {
      font-size: 0.7rem;
      font-weight: 300;
      left: 10px;
      bottom: 20px;
    }
  
    #startDatePicker,
    #endDatePicker {
      max-width: 80px;
      margin: 0;
      padding: 0 1px;
      font-size: 0.8rem;
      line-height: 1.1rem;
    }
  
    .btn_time-component {
      padding: 0.1em;
      margin: 0.1em;
      font-size: 10px;
    }

    .product-header {
      font-size: 0.9em;
    }
    .category-header {
      font-size: 0.95em;
    }
  
    /* Font Awesome Icon Sizes */
    .fas,
    .fa,
    .fa-solid,
    .fa-regular {
      font-size: 1em;
    }
  }
