:root {
  --bg-color: #ffffff;
  --ol-color: #555555;
  --hl-color: #337bcb;
  --b-color: #800000;
}

@font-face {
  font-family: "Open Sans", sans-serif;
  /* src: url(../fonts/pfdintextcomppro-medium-webfont.eot);
  src: url(../fonts/pfdintextcomppro-medium-webfont.eot?#iefix)
      format("embedded-opentype"),
    url(../fonts/pfdintextcomppro-medium-webfont.woff) format("woff"),
    url(../fonts/pfdintextcomppro-medium-webfont.ttf) format("truetype"),
    url(../fonts/pfdintextcomppro-medium-webfont.svg#PFDinTextCompProMedium)
      format("svg"); */
  font-weight: 700;
  font-style: normal;
}

#map {
  height: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  margin: 0;
  float: left;
  right: 0px;
  position: absolute;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#info-container {
  position: absolute;
  top: calc(100% + 46px);
  left: 20px;
  z-index: 99;
  width: 240px;
  border: 1px solid var(--ol-color);
  border-top: none;
}

#info-window {
  display: none;
  position: relative;
  background: #fff;
  border-top: none;
  font-size: 16px;
  width: 220px;
  padding: 5px 10px 5px 10px;
}

#iw-box {
  display: flex;
  flex-direction: column;
}

#iw-box .title {
  float: left;
  display: inline;
  padding-top: 4px;
}

#iw-box .title span {
  font-size: 16px;
  padding: 5px 1px 5px 10px;
  background: var(--hl-color);
  border-right: calc(10px + 0.6em) solid var(--hl-color);
  color: white;
  /* 10px for the border, and 0.6em for each character in the string */
  overflow: hidden;
  width: auto;
  /* font-family: PFDinTextCompProMedium, "Segoe UI", Helvetica, Arial, sans-serif; */
  line-height: 24px;
  height: 23px;
  text-align: left;
  margin-left: -10px;
}

#iw-box .item {
  margin-left: auto;
  float: right;
  font-size: 15px;
  color: #fff;
  /* font-family: PFDinTextCompProMedium, "Segoe UI", Helvetica, Arial, sans-serif; */
  padding: 3px 7px;
  /* margin: 10px -5px -10px 0; */
  background: var(--ol-color);
  clear: both;
  text-decoration: none;
  margin-right: -10px;
}

#iw-box .desc {
  display: flex;
  /* font-family: PFDinTextCompProMedium, "Segoe UI", Helvetica, Arial, sans-serif; */
  flex-direction: column;
  margin-top: 32px;
  font-size: 15px;
  line-height: 23px;
  color: var(--ol-color);
  font-weight: 400;
}

#iw-box .des {
  display: flex;
  /* font-family: PFDinTextCompProMedium, "Segoe UI", Helvetica, Arial, sans-serif; */
  flex-direction: column;
  /* margin-top: 32px; */
  font-size: 15px;
  line-height: 23px;
  color: var(--ol-color);
  font-weight: 400;
}

#iw-box .des span {
  font-weight: bold;
}

#iw-box .desc b {
  color: var(--b-color);
}

/* #iw-metadata {
    padding: 0 5px 0 5px;
} */

/* #iw-content {
    margin: 15px 5px 10px 5px;
} */

#iw-content b {
  color: var(--b-color);
  font-weight: bold;
  /* font-family: PFDinTextCompProMedium, "Segoe UI", Helvetica, Arial, sans-serif; */
}

#iw-content .gnss {
  display: flex;
  justify-content: space-between;
  font-weight: 100;
  /* font-family: PFDinTextCompProMedium, "Segoe UI", Helvetica, Arial, sans-serif; */
}

#left-panel {
  background-color: white;
  position: absolute;
  border: 1px solid #000;
  padding: 5px 0 0 0;
  z-index: 99;
  left: 20px;
  width: 240px;
  margin-bottom: 5px;
}

.header {
  font-size: 25px;
  font-weight: 700;
  padding: 0 20px 10px 20px;
  max-width: 460px;
  color: #008;
}

.header-title {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-title a {
  color: black;
  font-size: 24px;
  text-decoration: none;
}

.block-check {
  position: absolute;
  right: 125px;
  top: 13px;
}

#wq-check-div {
  font-size: 16px;
}

select {
  border: 1px solid #555;
  font-size: 12px;
  font-weight: lighter;
  color: #000;
  width: 100%;
  padding: 4.5px 5px 4px 5px;
  background: #eee;
  /* font-family: PFDinTextCompProMedium, "Segoe UI", Helvetica, Arial, sans-serif; */
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

#inner-container {
  position: relative;
}

.header2 {
  /* font-family: PFDinTextCompProMedium, "Segoe UI", Helvetica, Arial, sans-serif; */
  font-size: 17px;
  font-weight: 700;
  padding-left: 5px;
  color: #800;
  margin-bottom: 5px;
}

.header2 span {
  color: black;
}

.header3 {
  float: left;
  font-size: 14px;
  font-weight: 600;
  padding-left: 5px;
  color: black;
}

.header4 {
  float: left;
  font-size: 14px;
  font-weight: 400;
  padding-left: 5px;
  color: black;
}

#layer-toggle-window {
  /* font-family: PFDinTextCompProMedium, "Segoe UI", Helvetica, Arial, sans-serif; */
  font-size: 16px;
  background-color: white;
  position: relative;
  /* border: 1px solid #000; */
  border-bottom: none;
  border-top: none;
  padding: 0px 10px 2px 10px;
  width: 220px;
  line-height: 25px;
}

.cbox-next {
  margin: 10px 0 0 0 !important;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  margin-top: 4px;
  height: 14px;
  width: 14px;
  background-color: var(--bg-color);
  border: 2px var(--ol-color) solid;
  box-shadow: inset 0px 0px 0px 2px var(--bg-color);
}

.cbox {
  font-weight: normal;
  display: block;
  position: relative;
  padding-left: 30px;
  margin: 2px;
  cursor: pointer;
  font-size: 15px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* font-family: PFDinTextCompProMedium, "Segoe UI", Helvetica, Arial, sans-serif; */
}

.disabled {
  background-color: rgba(0, 0, 0, 0.1); /* Semi-transparent background */
  color: #999; /* Lighter text color */
  cursor: not-allowed; /* Change cursor to indicate it's not clickable */
}

.disabled input[type="checkbox"] {
  cursor: not-allowed; /* Prevent clicking on the checkbox */
}

.disabled .checkmark {
  border-color: #999; /* Lighter border color */
}

.cbox.disabled:hover::after {
  content: attr(
    title
  ); /* Use the value of the title attribute as the tooltip text */
  position: absolute;
  background-color: #333;
  color: #fff;
  font-size: 10px;
  padding: 5px;
  border-radius: 5px;
  z-index: 1;
  bottom: 100%; /* Position the tooltip above the element */
  left: 50%; /* Center the tooltip horizontally */
  transform: translateX(-50%); /* Center the tooltip horizontally */
}

.cbox:hover input ~ .checkmark,
.cbox-group:hover input ~ .checkmark2 {
  background-color: #ccc;
}

.cbox input:checked ~ .checkmark,
.cbox-group input:checked ~ .checkmark2 {
  background-color: #2196f3;
}

.cbox input[type="checkbox"],
.cbox-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.cbox img {
  max-height: 24px;
  width: auto;
  height: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  right: 1rem;
}

#layer-toggle-window .title {
  float: left;
  display: inline;
  padding-top: 4px;
}

#layer-toggle-window .title span {
  font-size: 17px;
  padding: 5px 1px 5px 10px;
  background: var(--hl-color);
  border-right: calc(10px + 0.1em) solid var(--hl-color);
  color: white;
  overflow: hidden;
  width: auto;
  line-height: 24px;
  height: 23px;
  text-align: left;
  margin-left: -10px;
}

#ltw-options {
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
  /* margin: 2px; */
  /* padding: 5px 5px 5px 5px; */
}

#ltw-options-items {
  margin-top: 8px;
}

#all-options-items {
  margin-top: 8px;
  margin-bottom: 5px;
}

#ltw-options-items.scrollable {
  max-height: 110px; /* Adjust the height as needed */
  overflow-y: auto;
}

/* Scrollbar */
#ltw-options-items.scrollable::-webkit-scrollbar {
  width: 8px; /* Width of the scrollbar */
}

/* Track */
#ltw-options-items.scrollable::-webkit-scrollbar-track {
  background: #f1f1f1; /* Color of the scrollbar track */
}

/* Handle */
#ltw-options-items.scrollable::-webkit-scrollbar-thumb {
  background: #888; /* Color of the scrollbar handle */
}

/* Handle on hover */
#ltw-options-items.scrollable::-webkit-scrollbar-thumb:hover {
  background: #555; /* Color of the scrollbar handle on hover */
}

.uihi-logo {
  position: fixed;
  bottom: 23px;
  background-color: var(--bg-color);
  right: 60px;
  padding: 3px;
  text-align: center;
  border: 1px var(--ol-color) solid;
  z-index: 99;
}

.uihi-logo img {
  width: 78px;
  height: 69px;
}

#hab-button {
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 5px;
}

#hab-button button {
  padding: 10px 20px;
  border-radius: 5px;
  background-color: #537b00;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: bolder;
  font-family: PFDinTextCompProMedium, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
}

#hab-button button:hover {
  background-color: #6b9800;
}

/* #hab-container {
  z-index: 9999;
  position: fixed;
  right: 0px;
  margin-right: 20px;
  padding: 5px 10px;
  width: 250px;
  background-color: white;
  border: 1px solid #000;
  font-size: 14px;
  display: none;
} */

#hab-overlay {
  /* Existing styles */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  z-index: 9998;
  justify-content: center;
  align-items: center;
  display: none;
}

.header-overlay {
  /* font-family: PFDinTextCompProMedium, "Segoe UI", Helvetica, Arial, sans-serif; */
  align-items: center;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  padding-left: 5px;
  color: #800;
  margin: 5px;
}

#hab-container {
  position: relative;
  z-index: 9999;
  background-color: white;
  border: 1px solid #000;
  padding: 5px 10px;
  width: 550px;
  font-size: 14px;
}

#estimator-container {
  display: flex;
}

.header-hab {
  margin-bottom: 10px;
  font-size: 15px;
}

.estimator-options,
.estimator-result {
  float: left;
  width: 50%;
  padding: 10px;
}

.estimator-option {
  margin: 10px 5px;
  padding: 5px;
  /* border-bottom: 1px solid black; */
}

.close {
  position: absolute;
  top: 0px;
  right: 5px;
  font-size: 20px;
  cursor: pointer;
}

.hab-slide {
  margin-bottom: 20px;
}

.slider {
  width: 100%;
}

#button_total {
  width: 100%;
  padding: 10px;
  background-color: #808080;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#button_total:hover {
  background-color: #606060;
}

#hab_trend {
  font-size: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  background-color: #98ff98;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  margin: 5px 10px;
  text-align: center;
}

.trend-img {
  text-align: center;
  align-items: center;
}

.trend-img img {
  width: 130px;
  height: 130px;
}

.slider {
  width: 100%;
  -webkit-appearance: none; /* Removes default styles for webkit browsers */
  appearance: none; /* Removes default styles for non-webkit browsers */
  height: 8px;
  border-radius: 5px;
  background: #e0e0e0; /* Lighter background color */
  outline: none; /* Removes default focus style */
  opacity: 0.7; /* Set initial opacity */
  transition: opacity 0.2s; /* Add transition for smooth hover effects */
}

.slider:hover {
  opacity: 1; /* Increase opacity on hover */
}

/* Adjust the track */
.slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 10px;
  cursor: pointer;
  background: #a0a0a0; /* Lighter track color */
  border-radius: 5px;
}

/* Adjust thumb (handle) */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: 1px solid #000000;
  height: 20px;
  width: 10px;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
  margin-top: -5px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  cursor: pointer;
  background: #808080; /* Lighter thumb color */
  border-radius: 50%; /* Makes the thumb circular */
}

/* Adjust focus style */
.slider:focus {
  outline: none;
  box-shadow: 0 0 5px #808080; /* Add a subtle glow effect on focus */
}

#right-panel {
  font-size: 16px;
  background-color: white;
  position: absolute;
  border: 1px solid #000;
  top: 0px;
  right: 0px;
  padding: 15px 10px 15px 10px;
  z-index: 999;
  margin: -1px 20px 0 0;
  width: 300px;
  line-height: 25px;
  visibility: hidden;
}

#rp-close-button {
  position: absolute;
  top: -4px;
  color: #000;
  right: 5px;
  cursor: pointer;
  font-size: 21px;
}

#legend_toggle {
  position: fixed;
  bottom: 150px;
  background-color: var(--bg-color);
  z-index: 99;
  right: -1px;
  padding: 3px;
  text-align: center;
  border: 1px var(--ol-color) solid;
}

#legend_con {
  background-color: var(--bg-color);
  border: 1px var(--ol-color) solid;
  right: -1px;
  width: 125px;
  padding: 10px;
  position: fixed;
  bottom: 150px;
  line-height: 1.5;
  z-index: 99;
  font-size: 15px;
}

.legend-entry {
  display: flex;
  align-items: center;
  margin: 1px;
}

.color-block {
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border: 1px solid #000;
}

.color-circle {
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border: 1px solid #000;
  border-radius: 50%;
}

.legend-label {
  font-size: 10px;
}

.close-btn {
  float: right;
  cursor: pointer;
  right: 5px;
  position: absolute;
}

.close-btn:hover {
  color: var(--b-color);
}

#fKillLegend {
  font-family: Arial, sans-serif;
  font-size: 10px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 4px;
}

#fKillLegend b {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 5px;
}

.more-info {
  margin: 10px 0px 0px 5px;
}

#more-info-button {
  padding: 4px;
  border: 1px solid black;
  margin-top: auto;
  background-color: #f5f5f5;
  font-weight: bold;
  background-color: #f5f5f5;
  font-size: 14px;
  text-decoration: none;
  color: black;
}

.content-wrapper {
  display: flex; /* Enable flexbox layout */
  flex-direction: column; /* Stack elements vertically */
}

.combined-info {
  display: flex; /* Enable flexbox layout */
}

.search-container {
  text-align: center;
}

.search-container .search-box {
  padding: 6px;
  font-size: 13px;
  /* border-radius: 4px; */
}
