.subtitle {
  margin: 10px;
  font-size: 12px;
}

.subtitle2 {
  margin: 10px;
  font-size: 14px;
}

.close {
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
}

.chart-container {
  margin: 20px;
}

.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.map {
  position: absolute;
  /*left: 33.3333%;*/
  /*width: 66.6666%;*/
  width: 100%;
  top: 0;
  bottom: 0;
}

.pad2 {
  padding: 20px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.marker {
  background-image: url("mapbox-icon.png");
  background-size: cover;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
}

.mapboxgl-popup {
  max-width: 200px;
}

.mapboxgl-popup-content {
  text-align: center;
  font-family: "Open Sans", sans-serif;
  color: black;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}

h1 {
  font-size: 15px;
  line-height: 20px;
}

h2 {
  /* font-size: 14px;
  line-height: 20px;
  margin-bottom: 10px;*/
  font-size: 12px;
  line-height: 26px;
  margin-bottom: 10px;
}

a {
  text-decoration: none;
  color: #2dc4b2;
}

#console {
  position: absolute;
  width: 400px;
  margin: 10px;
  padding: 10px 20px;
  /* background-color: white; */
  background-color: rgba(255, 255, 255, 0.9);
  /* opacity: 0.9; */
  border-radius: 10px;
}

.session {
  margin-bottom: 60px;
  /* 40px */
  /* margin-bottom: 20px;*/
  /*margin-top: 20px;*/
}

.session2 {
  margin-bottom: 5px;
  /* margin-bottom: 20px;*/
  /*margin-top: 20px;*/
}

.session3 {
  margin-bottom: 10px;
  /* margin-bottom: 20px;*/
  /*margin-top: 20px;*/
}

.row {
  height: 120px;
  width: 100%;
  font-size: 12px;
}

.row2 {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.label {
  /* width: 19%; */
  /*width: 19%;*/
  /* display: inline-block; */
  /* text-align: center; */
  font-size: 12px;
}

.row3 {
  height: 12px;
  width: 100%;
}

.colors {
  /*background: linear-gradient(to right, #2dc4b2, #3bb3c3, #669ec4, #8b88b6, #a2719b, #aa5e79);*/
  background: linear-gradient(
    to right,
    #313ce7,
    #00d2e1,
    #00e200,
    #b7df00,
    #f12823
  );
  margin-bottom: 5px;
  border-radius: 10px;
}

.colors2 {
  /*background: linear-gradient(to right, #2dc4b2, #3bb3c3, #669ec4, #8b88b6, #a2719b, #aa5e79);*/
  background: linear-gradient(
    to right,
    #000083,
    #000CFF,
    #0081ff,
    #00EFFF,
    #80ff80,
    #F3FF0C,
    #ff8000,
    #FF1C00,
    #800000
  );
  margin-bottom: 5px;
  border-radius: 10px;
}

.colors3 {
  /*background: linear-gradient(to right, #2dc4b2, #3bb3c3, #669ec4, #8b88b6, #a2719b, #aa5e79);*/
  background: linear-gradient(
    to right,
    #3e26a8,
    #337afd,
    #10beba,
    #cbc128,
    #f9fb15
  );
  margin-bottom: 5px;
  border-radius: 10px;
}

.colors4 {
  /*background: linear-gradient(to right, #2dc4b2, #3bb3c3, #669ec4, #8b88b6, #a2719b, #aa5e79);*/
  background: linear-gradient(
    to right,
    #000000,
    #550055,
    #EF3B2E,
    #FFDD47,
    #FFEFA8
  );
  margin-bottom: 5px;
  border-radius: 10px;
}

.algae {background-color: #3AFFC6; border-radius: 5px; border: 1px solid black;} /* Green */
.coral {background-color: #FF1000; border-radius: 5px; border: 1px solid black;} /* Blue */
.underwatersand {background-color: #FFA000; border-radius: 5px; border: 1px solid black;} /* Orange */
.beachsand {background-color: #CAFF36; border-radius: 5px; border: 1px solid black;} /* Red */ 
.terrestrialvegetated {background-color: #0014FF; color: white; border-radius: 5px; border: 1px solid black;} /* Gray */
.terrestrialurbanized {background-color: #000080; color: white; border-radius: 5px; border: 1px solid black;} /* Gray */

/* new habitat map */
.coral2 {background-color: #ff6347; border-radius: 5px; border: 1px solid black;}
.coralforereef {background-color: #ffa500; border-radius: 5px; border: 1px solid black;} /* Green */
.reefcrest {background-color: #2ca02c; border-radius: 5px; border: 1px solid black;} /* Green */
.algae2 {background-color: #17becf; border-radius: 5px; border: 1px solid black;} /* Blue */
.seagrass {background-color: #32cd32; border-radius: 5px; border: 1px solid black;} /* Orange */
.sediment {background-color: #f5deb3; border-radius: 5px; border: 1px solid black;} /* Red */ 
.terrestrialvegetated2 {background-color: #8b4513; color: white; border-radius: 5px; border: 1px solid black;} /* Gray */
.mangrove {background-color: #e377c2; color: white; border-radius: 5px; border: 1px solid black;}
.deepwater {background-color: #00008b; color: white; border-radius: 5px; border: 1px solid black;}
.clouds {background-color: #ffffff; color: black; border-radius: 5px; border: 1px solid black;}
.other {background-color: #808080; color: white; border-radius: 5px; border: 1px solid black;}

.branchingcoral {background-color: #93e7a9; border-radius: 5px; border: 1px solid black;} /* Green */
.massivecoral {background-color: #4366d4; border-radius: 5px; border: 1px solid black;} /* Blue */
.coralforereef2 {background-color: #08e8f6; border-radius: 5px; border: 1px solid black;} /* Orange */
.reefcrest2 {background-color: #f2bc88; border-radius: 5px; border: 1px solid black;} /* Red */ 
.algae3 {background-color: #5dbd3f; color: white; border-radius: 5px; border: 1px solid black;} /* Gray */
.sandrubble {background-color: #b0447c; color: white; border-radius: 5px; border: 1px solid black;} /* Gray */
.noclass {background-color: #9c7261; color: white; border-radius: 5px; border: 1px solid black;} /* Gray */

.label2 {
  /*padding: 10px;*/
  padding:10px;
  /*width: 45%;*/
  width: 45%;
  display: inline-block;
  text-align: center
}

.label4 {
  padding:10px;
  width: 40%;
  /*width: 19%;*/
  display: inline-block;
  text-align: center;
  font-size: 10px;
}

.label3 {
  /*padding:10px;*/
  width: 10%;
  /*width: 19%;*/
  display: inline-block;
  text-align: center;
}

/* #label5 {
  margin: 10px;
  padding: 10px;
  font-size: 16px;
  background-color: #fff4f4;
  border-left: 5px solid red;
  max-width: 300px;
  font-weight: 500;
  z-index: 2;
  position: relative;
} */

/* Legend container */
.legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: white;
  border-radius: 5px;
  padding: 8px 12px;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
  font-family: sans-serif;
  font-size: 10px;
  z-index: 2;
}

/* Individual item */
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Circle matching red dot */
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: red;
  border: 1px solid #fff;
}

/* Dropdown container - needed to position the dropdown content */
.dropdown {
  float: left;
  overflow: hidden;
  /*overflow: scroll;*/
}

/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
  font-size: 14px;
  border: none;
  outline: none;
  color: black;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  border-radius: 10px;
}

/* Style the dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  /*position: fixed;*/
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  color: black;
  border-radius: 5px;
  outline: none;
  /*overflow-y: auto;*/
}

/* Style the links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  border-radius: 5px;
}

/* Add a dark background on topnav links and the dropdown button on hover */
.dropdown:hover .dropbtn {
  background-color: #ddd;
  color: black;
  border-radius: 5px;
}

/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #555;
  color: white;
  border-radius: 5px;
}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
  /*border-radius: 5px;*/
}

.dropdown-content button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background-color: white;
  color: black;
  font-size: 12px;
  outline: none;
  box-shadow: none;
  border: none;
  text-align: left;
}

.dropdown-content button a {
  float: none;
  color: black;
  /*padding: 12px 16px;*/
  text-decoration: none;
  display: block;
  text-align: left;
  border-radius: 5px;
  font-family: inherit;
  font-size: 12px;
}

/* Add a grey background to dropdown links on hover */
.dropdown-content button:hover {
  background-color: #555;
  color: white;
  border-radius: 5px;
}

/*Time Series Slider stuff------------------------------*/
.time-slider-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  background: white;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Style the slider */
#time-slider {
  width: 100%;
  margin-top: 10px;
}

/* Center align time value */
#time-value {
  text-align: center;
  margin-top: 5px;
}

/* Labels container */
.slider-labels {
  position: relative;
  display: flex;
  justify-content: space-between;
  width:95%;
  margin-top: 20px;
  font-size: 10px;
  height: 20px; /* Prevent overlap */
}

/* Individual labels (rotated) */
.slider-labels span {
  position: absolute;
  transform: translateX(-30%) rotate(-30deg); /* Rotate for better readability */
  transform-origin: left center;
  white-space: nowrap;
}
/*Time Series Slider stuff------------------------------*/

#footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 80px;
  background-color: rgba(36, 32, 33, 0.8);
  color: white;
  font-family: "Helvetica Neue", Helvetica;
  /* padding: 10px 10px; */
  /* padding-top: 10px; */
  /* margin-top: 10px; */
  /* padding-bottom: 50px; */
  padding-left: 110px;
  /* padding-right: 30px; */
  box-sizing: border-box;
  font-weight: 100;
  clear: both;
}

/* light “box” around each selected tag in the control */
.ts-control .ts-item {
  background-color: #c0bfbf;
  border: 1px solid #c0bfbf;
  border-radius: 4px;
  padding: 2px 6px;
  margin: 2px 4px 2px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  font-size: 0.9em;
}

/* the little × remove-button, make it a bit darker */
.ts-control .ts-remove {
  font-weight: bold;
  color: #888;
  margin-left: 4px;
  cursor: pointer;
}

/* keep your timeseries shading for the options */
.ts-dropdown-content [data-value].has-timeseries {
  background-color: #eee;
}

/* #select-location {
  max-height: 300px;
  overflow-y: scroll;
} 

#select-location option {
  padding: 8px 16px;
} */

.radio-group {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* optional spacing between radio buttons */
}

.radio-group label {
  white-space: nowrap; /* keep label and input together */
  display: flex;
  align-items: center;
  gap: 0.3rem; /* space between radio and text */
  font-size: 12px;
}


/* MARK: Radio Group Styles */
#Container {
    width: fit-content;
}

.layer_item {
    padding: 3px;
    border-radius: 5px;
    
    display: flex;
    
    grid-gap: 5px;
    background-color: #FFFFFF; /* Highlight color */
    color: black;
    font-size: 12px;
    margin-bottom: 1px;
}

.layer_item[isSelected="false"] { 
    border: 3px solid rgba(255, 255, 255, 0.75);
}

.layer_item[isSelected="true"] { 
    border: 3px solid #1133aa;
}

.layer_label {
  margin-left: 0px;
  margin-right: auto;
}

.toggle {
    /* background-color: black; */
    height: 80%;
    aspect-ratio: 1 / 1;
    padding: 6px;
    border-radius: 3px;
}

.toggle[toggled="on"] {
    background-color: #0084ff;
}

.toggle[toggled="off"] {
    background-color: #888888;
}

.layer_group_contents {
  overflow-y: auto;
  max-height: 85px;
}
/* 
.layer_group {
    display: flex;
    row-gap: 100px;
} */

.layer_panel {
    overflow-y: auto;
}

.buttonContainer {
    display: "block";
    row-gap: 5px;
}

.buttonContainer img {
    user-select: none;
    height: fit-content;
    max-height: 8px;
    margin-right: 0;
    margin-left: auto;
}

.upsidedown {
  transform: scaleY(-1);
}