html,
body {
  margin: 0;
  padding: 0;
  overflow-y: hidden;
  overflow-x: hidden;
  height: calc(
    100% - env(safe-area-inset-top) - env(safe-area-inset-bottom)
  ); /* Safe area for iPhone X and similar */
}

#map-container {
  height: calc(
    100% - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 44px
  );
  width: 100vw;
}

#content-block {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background-color: rgba(176, 176, 176, 0.7);
  margin: 0px;
  padding: 0px;
  backdrop-filter: blur(3px);
  overflow-y: hidden;
  overflow-x: hidden;
  transform: scale(1);
  transition: transform 1s;
  overflow-y: auto;
  z-index: 7;
}

#mac-menu {
  display: flex;
  height: 66px;
  padding-bottom: 12px;
}

#termsDiv {
  display: none;
  justify-content: space-between;
  flex-direction: column;
  padding: 20px;
  background-color: var(--sidebar-color);
  width: calc(100vw - 201px);
  max-width: 1100px;
  min-width: 800px;
  /* height: calc(100% - 200px); */
  /* min-height: 600px; */
  border-radius: 8px;
  transition: all 0.3s;
  transform: scale(1);
  z-index: 10;
}

.buttonTerms:not(.collapsed) {
  box-shadow: none !important;
  background-color: var(--primary-color) !important;
  color: white !important;
}

.buttonTerms.collapsed {
  box-shadow: none !important;
  background-color: var(--primary-color) !important;
  color: white !important;
}

.buttonTerms:hover:not(:disabled) {
  background-color: var(--quaternary-hover-color) !important;
}

.terms-title {
  justify-content: center;
  display: flex;
  font-family: "Lato", sans-serif;
  font-size: var(--font-size-primary);
  color: var(--primary-color);
  font-weight: 800;
  text-align: center;
}

#termsDiv p {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  line-height: 18px;
}

#termsContent {
  max-height: 45vh;
  overflow-y: auto;
  width: 98%;
  padding: 8px;
  box-shadow: inset 0px 0px 4px 0px rgba(102, 102, 102, 0.5);
  border-radius: 5px;
}

#termsContent > h4 {
  font-family: "Lato", sans-serif;
  font-size: var(--font-size-tertiary);
  font-weight: 500;
  line-height: 22.5px;
}

#termsContent > p {
  font-family: "Lato", sans-serif;
  font-size: var(--font-size-tertiary);
  font-weight: 400;
  line-height: 20px;
  color: #000000;
}

#termsContent a {
  font-family: "Lato", sans-serif;
  font-size: var(--font-size-tertiary);
  font-weight: 400;
  line-height: 20px;
  color: #0000ff;
  text-decoration: underline !important;
}

#termsForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#termsForm > h4 {
  font-family: "Lato", sans-serif;
  font-size: var(--font-size-primary);
  font-weight: 800;
  color: var(--primary-color);
}

h4 > b {
  color: #000000;
}

#termsForm > p {
  font-family: "Lato", sans-serif;
  font-size: var(--font-size-tertiary);
  font-weight: 400;
  color: #000000;
}

#termsForm > form {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
}

.accordion-body,
.accordion-button {
  padding: 8px;
}

.acordion {
  margin-bottom: 24px;
}

.perfil {
  display: grid !important;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  width: 98%;
  height: 100px;
  box-shadow: inset 0px 0px 4px 0px rgba(102, 102, 102, 0.5);
  border-radius: 8px;
}

.termFormItem {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 5px;
  height: 49px;
  border-radius: 8px;
}

.termFormItem:hover {
  background-color: var(--quaternary-hover-color);
}

.termFormItem::marker {
  background-color: var(--quaternary-hover-color);
}

.termFormItem > label {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Lato", sans-serif;
  font-size: var(--font-size-tertiary);
  font-weight: 400;
  cursor: pointer;
  width: 100%;
}

.termFormItem > label > div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.termFormItem > label > div > span {
  color: #000000;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-tertiary);
  font-weight: 400;
  margin-left: 8px;
}

.terms-icon {
  width: 38px;
  height: 38px;
  margin-right: 10px;
}

.termAccept {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 5px;
  margin: 8px;
  margin-right: auto;
  margin-left: auto;
  cursor: pointer;
  border-radius: 8px;
  width: fit-content;

  font-family: "Lato", sans-serif;
  font-size: var(--font-size-tertiary);
  font-weight: 400;
  line-height: 20px;
  color: #000000;
}

.termAccept:hover {
  background: var(--quaternary-hover-color);
}

.profile-custom-radio {
  display: none;
}

.custom-radio + label {
  position: relative;
  cursor: pointer;
  color: #333; /* Default text color */
}

.custom-radio {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 25px; /* Size of the custom radio indicator */
  height: 25px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background-color: white;
}

.custom-radio:checked {
  border-color: #396581;
  background-color: #396581; /* Background color when selected */
}

.custom-radio:checked + label {
  color: #396581; /* Text color changes to blue when selected */
}

.custom-radio + label .icon-placeholder {
  margin-right: 10px;
  /* Add your icon customization here */
}

.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
}

.video-container embed {
  width: 560px;
  height: 280px;
}

.buttonTerms {
  color: var(--text-color);
  font-family: "Roboto", sans-serif;
  font-size: 16px;
}

.buttonTerms::after {
  display: none;
}

.termFormItem > input {
  margin: 0 8px;
}

#closeTermsButton {
  background: var(--primary-color, #a3a3a3);
  box-shadow: 0px 1px 1px 0px #0000004d;
  color: white;
  border-radius: 5px;
  font-family: "Lato", sans-serif;
  font-size: var(--font-size-tertiary);
  padding: 4px 8px;
  margin-top: 20px;
}

#closeTermsButton:disabled {
  background-color: #a3a3a3;
  color: white;
  cursor: default;
}

#header-container {
  transition: 0.5s ease all;
}

#header-transition {
  position: fixed;
  top: 44px;
  left: 0;
  width: 100vw;
  height: 6px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}

.landing-container {
  max-width: 100vw;
  padding: 20px;
  background-color: #ffffff;
}

#mapid {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;
  z-index: 1;
  overflow: hidden;
}

.height-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 2px 8px;
}

.height-label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.height-label > span {
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-details);
  font-weight: 300;
  color: var(--menu-font-color);
  margin: 0;
  height: 20px;
}

.date-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 2px 8px;
  gap: 4px;
}

.month-label {
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-quaternary);
  color: var(--menu-font-color);
  margin: 2px 0;
}

.months-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}

.month-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  margin: 2px 1px;
  padding: 0 1px;
  border: 1px solid var(--contrast-color);
  border-top: 0;
  border-left: 0;
  border-radius: 4px;
  background: var(--sidebar-color);
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-details);
  color: var(--menu-font-color);
}

.month-btn:hover {
  background: var(--btn-hover-color);
}

.month-btn.active {
  background: var(--selected-color);
  color: var(--text-color);
}

.toggle-buttons-menu {
  position: fixed; /* Fixed position */
  bottom: 0px; /* Align to the bottom */
  left: 0;
  display: flex;
  justify-content: center;
  align-items: end;
  overflow: hidden;
  height: 66px;
  width: 100vw;
  padding-bottom: 12px;
  background-color: rgba(63, 63, 63, 0.4);
  backdrop-filter: blur(3px);
  z-index: 401;
  transition: all 0.5s ease;
}

.toggle-buttons-menu-default {
  bottom: 0px;
}

/* Toggled state */
.toggle-buttons-menu-toggled {
  bottom: 220px;
}

.svg-icon {
  fill: var(
    --primary-color
  ); /* Assumes the SVG allows CSS control over its fill */
}

.toggle-button {
  position: relative; /* For absolute positioning of pseudo-elements */
  display: inline-block;
  margin: 0 8px; /* Space between icons */
  bottom: 2px;
  transition: all 0.5s ease;
  background: var(--primary-color);
  z-index: 4;
}

.toggle-btn2 {
  position: absolute; /* For absolute positioning of pseudo-elements */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  transition: transform 0.5s ease, top 0.5s ease, bottom 0.5s ease,
    left 0.5s ease, right 0.5s ease;
  z-index: 4;
  cursor: pointer;
}

.toggle-button:hover {
  transform: scale(1.3); /* Adjust scale value as needed */
}

.toggle-button img {
  display: block;
  transition: all 0.5s ease;
}

#toggle-layers-btn2:hover {
  background: rgba(0, 0, 0, 0.3) !important;
}

#upload-btn {
  position: relative;
  background: rgba(0, 0, 0, 0);
  margin-left: 294px;
  border-radius: 4px;
  backdrop-filter: brightness(1.1);
  border: 0;
  margin-top: -35px;
}

#upload-btn:hover {
  background: rgba(0, 0, 0, 0.2) !important;
}

#toggle-stats-btn2:hover {
  background: rgba(0, 0, 0, 0.3) !important;
}

#toggle-menu-btn {
  background: rgba(63, 63, 63, 0.4);
  right: calc(50vw - 16px);
  bottom: 53px;
  border-radius: 4px;
  transform: rotate(90deg);
}

.toggle-layer-sidebar {
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
  padding: 0 !important;
}

.sidebar {
  position: absolute;
  align-items: center;
  justify-content: center;
  width: 0;
  height: 0;
  z-index: 3;
  background: linear-gradient(
    90deg,
    rgba(61, 85, 124, 0.5) 0%,
    rgba(230, 247, 255, 0.5) 2%,
    rgba(230, 247, 255, 0.5) 98%,
    rgba(61, 85, 124, 0.5) 100%
  );
  /*backdrop-filter: blur(3px);*/
  border: 0;
  transition: all 0.5s ease;
  font-family: "Roboto", sans-serif;
}

.layers-sidebar-content {
  display: block;
}

.sidebar-title {
  height: 36px;
  padding: 8px 16px;
  background: var(--primary-color);
  color: #f4f4f4;
  width: inherit;
}

.layers-sidebar-title {
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-secondary);
  font-weight: 400;
  margin-left: 32px;
}

.layer-section {
  transition: all 0.5s;
}

.layer-sidebar-btn {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr 12fr;
  color: var(--primary-color);
  background: var(--collapse-color);
  width: 100%;
  margin-bottom: 12px;
  padding-left: 26px;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-tertiary);
  text-align: left;
  font-weight: 600;
  border: 0;
  border-radius: 0;
}

.sub-layer {
  padding-left: 0;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-tertiary);
  font-weight: 600;
  color: var(--menu-font-color);
}

.sub-layer > button {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr 12fr;
  width: 100%;
  margin-bottom: 8px;
  padding-left: 42px;
  font-size: var(--font-size-tertiary);
  font-weight: 600;
  color: var(--primary-color);
  text-align: left;
  border: 0;
  border-radius: 0;
}

.layer-sidebar-subsection {
  padding-left: 0;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-tertiary);
  font-weight: 600;
  color: var(--menu-font-color);
}

.layer-item {
  padding-left: 42px;
  font-size: var(--font-size-tertiary);
  font-weight: 400;
}

.layer-item-text {
  width: 200px;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-quaternary);
  font-weight: 400;
  color: #000000;
}

.select-all-label {
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-tertiary);
  font-weight: 600;
  color: #000000;
}

.layer-item label span small {
  color: #a0a0a0 !important;
}

.layer-checkbox {
  display: none; /* Hide the default checkbox */
}

.custom-checkbox {
  display: inline-block;
  width: 20px; /* Width of the custom checkbox */
  height: 20px; /* Height of the custom checkbox */
  background: url("../assets/checkbox.svg") no-repeat center center;
  background-size: cover;
  cursor: pointer;
}

.layer-checkbox:checked + .custom-checkbox {
  background: url("../assets/checkbox-checked.svg") no-repeat center center;
  background-size: cover;
}

.layer-checkbox:checked + .category-checkbox {
  background: url("../assets/checkbox-filled.svg") no-repeat center center;
  background-size: cover;
}

small {
  font-size: var(--font-size-details);
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}

#toggle-legend-btn {
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
  padding: 0;
}

#toggle-wind {
  position: relative;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  padding: 0;
  background: var(--wind-color);
  transition: transform scale 0.5s ease;
  transform: scale(0);
}

.energy-btn:hover,
.basemap-btn:hover {
  scale: 1.2 !important;
}

#toggle-sun {
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  padding: 0;
  background: var(--sun-color);
  transition: transform scale 0.5s ease;
  transform: scale(0);
}

#toggle-h2 {
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  padding: 0;
  background: #3e7d4c;
  background: #777;
  transition: transform scale 0.5s ease;
  transform: scale(0);
}

#toggle-basemap-btn {
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
  padding: 0;
}

#toggle-stats-btn {
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 20px;
  background: #f8f8f8;
  cursor: pointer;
  padding: 0;
}

#stats-title {
  margin-left: 36px;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-secondary);
  font-weight: 400;
}

#color-bar {
  position: absolute;
  left: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 0px;
  background: #f8f8f8;
  border-radius: 6px;
  /*border: 1px solid #5e5e5e;*/
  font-family: "Roboto", sans-serif; /* Use a clean, simple font */
  transition: all ease 0.5s;
}

#legend-content {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  line-height: 14px;
}

.legend-icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.legend-icons-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 40px;
  left: 286px;
  top: 80px;
  padding: 4px 4px;
  gap: 6px;
  opacity: 0;
  transition: all ease 0.5s;
}

#legend-icons-div1 {
  height: 100%;
  position: absolute;
}

.legend-unit {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-details);
  font-weight: 300;
  color: #333;
  margin: 0;
  height: 30px;
}

.legend-upper,
.legend-lower {
  color: #333; /* Dark grey text color for readability */
  font-size: var(--font-size-details); /* Legible text size */
  text-align: center; /* Center-align text */
}

.legend-color-bar {
  display: none;
  position: relative;
  width: 36px; /* Full width of the sidebar */
  height: 220px; /* Adjust height as needed */
  /*border: 1px solid #5e5e5e;*/
  border-radius: 4px;
  background-image: linear-gradient(
    0deg,
    rgb(255, 255, 255) 0%,
    rgb(235, 245, 255) 10%,
    rgb(192, 213, 234) 20%,
    rgb(142, 173, 204) 30%,
    rgb(95, 137, 177) 40%,
    rgb(71, 120, 137) 50%,
    rgb(253, 247, 11) 60%,
    rgb(248, 103, 50) 70%,
    rgb(152, 10, 24) 80%,
    rgb(183, 125, 228) 90.05%,
    rgb(103, 2, 104) 100%
  );
}

.marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 90%;
  left: 0; /* Initial position of the marker, adjust via JS */
  height: 18px;
  width: 100%; /* Width of the marker line */
  border-radius: 2px;
  color: #333;
  font-size: var(--font-size-details);
  font-family: "Roboto", sans-serif;
  background-color: rgba(255, 255, 255, 0); /* Color of the marker */
  backdrop-filter: blur(2px);
  pointer-events: none; /* Prevents the marker from interfering with mouse events */
  z-index: 20;
  transition: all ease 0.3s;
}

#marker-text {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #353535;
  border-radius: 2px 2px 0 0;
  height: 12px;
  width: 100%;
  background: rgba(233, 233, 233, 0.8);
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: var(--font-size-details);
}

#marker-gap {
  height: 4px;
  width: 100%;
  border: 1px solid #353535;
  border-top: 0;
  border-radius: 0 0 2px 2px;
  background: rgba(0, 0, 0, 0);
}

#loading-gif-colorbar {
  position: absolute;
  display: none;
  bottom: 45%;
  left: 2px;
  z-index: 30;
}

#wind-direction-value {
  font-size: var(--font-size-details);
  width: 100%;
  height: 18px;
  text-align: center;
}

#wind-direction-content {
  width: 50px;
  height: 50px;
  display: none;
}

#compass-arrow {
  transition: transform 0.1s ease;
}

#toggle-energy-btn {
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 20px;
  background: #f8f8f8;
  cursor: pointer;
  padding: 0;
}

.energy-btn {
  position: relative;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  padding: 0;
  background: var(--primary-color);
  transition: transform scale 0.5s ease;
  transform: scale(0);
}

.wind-btn {
  position: relative;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  padding: 0;
  background: var(--primary-color);
  transition: transform scale 0.5s ease;
  transform: scale(0);
}

.wind-btn:hover {
  scale: 1.2;
}

.energy-sidebar {
  display: flex;
  position: absolute;
  align-items: center;
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
  height: fit-content;
  background: rgba(0, 0, 0, 0);
  bottom: 80px;
  right: calc(50vw - 84px);
  border-top: 0;
  border-radius: 6px 6px 0 0;
  z-index: 5;
  transform: scale(1);
  transition: all 0.5s ease;
}

.energy-options-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  transition: transform scale 0.5s ease;
}

.wind-layer-button {
  /* Your button styling */
  width: 30px;
  height: 30px;
  border-radius: 15px;
  border: 0;
  background-color: #fff;
  text-align: center;
  line-height: 30px;
  cursor: pointer;
  z-index: 20;
}

#wind-options-container {
  display: flex;
  position: absolute;
  align-items: center;
  justify-content: center;
  height: 80px;
  background: rgba(0, 0, 0, 0);
  bottom: 75px;
  right: calc(50vw - 56px);
  border-top: 0;
  border-radius: 6px 6px 0 0;
  transform: scale(0);
  transition: all 0.5s ease;
  z-index: 5;
}

#wind-options-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

#wind-onshore-buttons-container {
  position: absolute;
  left: calc(50vw - 150px);
  width: 300px;
  bottom: 90px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  background: var(--sidebar-color);
  padding: 2px;
  margin: 0;
  border-radius: 6px;
  transition: all 0.5s ease;
  transform: scale(0);
  z-index: 5;
}

#toggle-offshore,
#toggle-onshore {
  min-width: 40px;
  min-height: 40px;
}

#toggle-offshore > img,
#toggle-onshore > img {
  margin: 0 auto;
  width: 32px;
  height: 32px;
}

.wind-button {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 0px;
  border-radius: 15px;
  border: 0;
  color: #000;
  background: none;
  text-align: center;
  font-size: var(--font-size-details);
  z-index: 11;
}

.switch-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  gap: 4px;
  border: 0;
  border-radius: 0;
  background: rgba(0, 0, 0, 0);
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-details);
  color: var(--menu-font-color);
}

#aggregate-switch {
  min-width: 20px;
  transform: rotateZ(90deg);
}

.wind-switch,
.sun-switch {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.wind-switch > span,
.sun-switch > span {
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-quaternary);
  font-weight: 300;
  color: #000000;
}

.slider-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}

.slider-container > span {
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-quaternary);
  font-weight: 300;
  color: var(--menu-font-color);
  width: 20px;
  justify-self: flex-end;
}

.energy-switch {
  display: flex;
  position: relative;
  display: inline-block;
  width: 24px;
  height: 14px;
}

.custom-slider {
  -webkit-appearance: none;
  background: var(--sidebar-color);
  width: 50px;
  height: 20px;
}

#wind-month-slider::-webkit-slider-thumb {
  background: var(--thumb-background, #ccc); /* Default gray */
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  width: 16px; /* Set a specific slider handle width */
  height: 16px; /* Slider handle height */
  background: var(--primary-color);
  cursor: pointer; /* Cursor on hover */
}

.custom-slider::-moz-range-thumb {
  width: 16px; /* Set a specific slider handle width */
  height: 16px; /* Slider handle height */
  background: var(--primary-color);
  cursor: pointer; /* Cursor on hover */
}

#wind-height-slider {
  width: 40px;
}

.height-slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 10px;
  transform: rotateZ(-90deg);
}

.menu-separator {
  width: 1px;
  height: 75%;
  background: #888888;
  margin: 4px 0;
  border: 1px solid #878787;
  border-radius: 1px;
}

.submenu-separator {
  width: 1px;
  height: 36px;
  margin: 4px 0;
  border-left: 1px solid #a0a0a0;
  border-radius: 1px;
}

.filter-separator {
  width: 1px;
  height: 66.6%;
  background: var(--contrast-color);
  margin: 4px 0;
  border-left: 1px solid var(--contrast-color);
  border-radius: 1px;
}

#sun-buttons-container {
  position: absolute;
  left: calc(50vw - 60px);
  width: 120px;
  bottom: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sidebar-color);
  padding: 2px;
  margin: 0;
  border-radius: 6px;
  transition: all 0.5s ease;
  transform: scale(0);
  z-index: 5;
}

.sun-button {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 0px;
  border-radius: 15px;
  border: 0;
  /*border: 1px solid #000;*/
  color: #fff;
  text-align: center;
  font-size: 0.5em;
  z-index: 4;
}

.basemap-container {
  position: absolute;
  left: calc(50vw - 300px);
  bottom: 90px;
  width: 600px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  margin: 0;
  transition: transform 0.5s ease;
  transform: scale(0);
  z-index: 10;
}

#basemap-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 80px;
  left: calc(50vw - 160px);
  width: 320px;
  height: 80px;
  background: rgba(0, 0, 0, 0);
  transform: scale(0);
  z-index: 5;
  transition: all 0.5s ease;
}

#basemapForm {
  display: flex;
  flex-direction: row; /* Align items in a row */
  justify-content: space-around; /* Space items evenly */
  align-items: center; /* Center items vertically */
  padding: 8px 0;
}

.basemap-btn {
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  padding: 0;
  transition: transform scale 0.5s ease;
  transform: scale(0);
}

.stats-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#loadingGif {
  position: absolute;
  display: none;
  background: rgba(0, 0, 0, 0);
  top: 45%;
  left: 45%;
  z-index: 800;
}

.aggregate > span {
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-details);
  font-weight: 300;
  color: var(--menu-font-color);
  text-align: center;
}

.custom-switch {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 14px;
}

.custom-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.dash-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.dash-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 1px;
  bottom: 1px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .dash-slider {
  background-color: var(--primary-color);
}

input:focus + .dash-slider {
  box-shadow: 0 0 1px var(--menu-font-color);
}

input:checked + .dash-slider:before {
  -webkit-transform: translateX(10px);
  -ms-transform: translateX(10px);
  transform: translateX(10px);
}

/* Rounded sliders */
.dash-slider.round {
  border-radius: 8px;
}

.dash-slider.round:before {
  border-radius: 50%;
}

.monitoring-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  width: 96%;
  margin: 10px;
  border-radius: 8px;
}

.live-icon {
  width: 8px;
  height: 8px;
  background-color: red;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
  animation: blink 1s infinite alternate;
  margin-right: 8px;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

.monitoring-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 32px;
  border-radius: 8px;
  margin-right: 4px;
  margin-bottom: 16px;
  border: 0;
  background: var(--collapse-color);
  cursor: pointer;
  transition: all ease 0.5s;
}

.monitoring-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 70px;
  padding: 4px;
  cursor: pointer;
  color: var(--menu-font-color);
  border-radius: 8px;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-details);
  line-height: 14px;
  text-align: center;
}

.monitoring-filter-btn:hover {
  background: var(--quaternary-hover-color);
}

.monitoring-filter-btn.active {
  background: var(--quaternary-hover-color);
}

.stats-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  width: 96%;
  margin: 10px;
  border-radius: 8px;
}

.stats-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 32px;
  border-radius: 8px;
  margin-right: 4px;
  border: 0;
  background: var(--collapse-color);
  cursor: pointer;
  transform: scale(0);
  transition: all ease 0.5s;
}

.stats-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 70px;
  padding: 4px;
  cursor: pointer;
  color: var(--menu-font-color);
  border-radius: 8px;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-details);
  line-height: 14px;
  text-align: center;
}

.stats-filter-btn:hover {
  background: var(--quaternary-hover-color);
}

.stats-filter-btn.active {
  background: var(--quaternary-hover-color);
}

.dashs-container {
  width: 96%;
  display: flex;
  padding: 4px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: calc(100vh - 216px);
  overflow-x: hidden;
  overflow-y: auto;
}

.dash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-bottom: 6px;
  border: 0;
  box-shadow: 0px 0px 3px 2px #0000004d;
  border-radius: 8px;
  background: #fff;
}

.dash-header {
  width: 100%;
  height: 4rem;
  background: #f4f4f4;
  border-radius: 10px 10px 0 0;
}

.dash-title-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;
  margin: 6px;
  grid-column-start: 2;
}

.dash-title {
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-secondary);
  font-weight: 500;
  color: var(--primary-color);
  margin: 2px;
}

.dash-empty {
  font-size: var(--font-size-quaternary);
}

.dash-subtitle {
  align-self: center;
  justify-self: center;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-details);
  font-weight: 200;
  color: #a0a0a0;
}

.dash-buttons {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-buttons-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.roses-section {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 0.5fr 1.2fr 6fr;
  justify-items: center;
  gap: 4px;
  width: 100%;
  margin-bottom: 8px;
}

.rose-title,
.kc-title {
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-quaternary);
  font-weight: 500;
  color: var(--primary-color);
  margin: 2px;
}

.card1 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 8px;
  border: 0;
  background: #f4f4f4;
  padding: 6px;
}

.card h6 {
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-secondary);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0;
}

.card span {
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-details);
  font-weight: 400;
  color: #a0a0a0;
  align-self: flex-end;
}

.kc-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 3fr 6fr;
  gap: 10px;
  margin-bottom: 10px;
}

.kc-title {
  text-align: center;
  grid-row-start: 1;
  grid-column-start: 1;
  grid-column-end: 3;
}

.kc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary-color);
  background: #f4f4f4;
  border-radius: 8px;
  padding: 4px;
}

.kc-card-title {
  font-size: var(--font-size-quaternary);
}

.kc-plot {
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row-start: 3;
}

.min-area {
  color: #58beca;
}

.solar-cards-div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 4px;
  width: 94%;
}

.cardPot {
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 1;
  grid-row-end: 2;
}

.cardArea {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 1;
  grid-row-end: 2;
}

.rose1 {
  align-self: flex-start;
}

.js-plotly-plot
  > div
  > div
  > svg
  > .polarlayer
  > .polar
  > .frontplot
  > g
  > g
  > g
  > g
  > path {
  fill: var(--secondary-hover);
}

.dash-line {
  width: 94%;
  height: 1px;
  background: #888888;
  margin: 4px 0;
  border-top: 1px solid #878787;
  border-radius: 1px;
}

.stats-section {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 0.2fr 1fr;
  justify-items: center;
  width: 100%;
}

.stats-title {
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-quaternary);
  font-weight: 400;
  color: var(--primary-color);
  text-align: center;
}

.stat-bars-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
}

.stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.stat h2 {
  font-size: var(--font-size-details);
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  height: 24px;
  color: #333;
  margin-bottom: 0;
  flex: 30%;
}

.progress-container {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: inherit;
  overflow: hidden;
}

.progress-bar {
  height: 12px;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-family: "Roboto", sans-serif;
  font-size: 0.5em;
  font-weight: 400;
  color: var(--text-color);
}

.progress-bar-outer {
  width: 164px;
  height: 14px;
  background-color: rgba(0, 0, 0, 0);
  border-radius: 5px;
  border: 1px solid var(--sidebar-color);
  margin: 0 10px;
}

.progress-text {
  margin-left: 4px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: "Roboto";
  font-size: var(--font-size-primary);
  color: var(--menu-font-color);
  font-weight: 600;
}

.progress-unit {
  font-size: var(--font-size-details);
  font-weight: 400;
  color: #333;
  margin-left: 2px;
  font-family: "Roboto", sans-serif;
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.wind-carousel,
.sun-carousel {
  width: 360px;
}

.carousel-inner > .active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wca {
  justify-content: center;
}

.dash-pq {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.production-section {
  display: grid;
  grid-template-rows: 1fr 3fr 2fr 2fr;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 0 24px;
  padding-bottom: 16px;
  width: 100%;
}

.production-title {
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-quaternary);
  font-weight: 400;
  color: var(--primary-color);
  grid-row-start: 1;
}

.wind-cards-div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.usina-img {
  grid-row-start: 2;
  border-radius: 8px;
  width: 280px;
  justify-self: center;
}

.wind-cards-div,
.solar-cards-div {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  gap: 4px;
}

.cardWindGer,
.cardSunGer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 8px;
  border: 0;
  background: #f4f4f4;
  padding: 6px;
}

.G-section {
  margin-bottom: 10px;
}

.pq-section {
  display: flex;
  margin-bottom: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  gap: 12px;
}

.loss-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary-color);
  background: #f4f4f4;
  border-radius: 8px;
  padding: 4px;
  margin: 4px;
}

.loss-item span {
  font-size: var(--font-size-details);
  font-weight: 400;
  color: var(--detail-color);
}

.loss-item h6 {
  font-size: var(--font-size-quaternary);
  font-weight: 600;
  color: var(--primary-color);
}

.pq-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary-color);
  background: #f4f4f4;
  border-radius: 8px;
  padding: 4px;
  margin: 4px;
}

.pq-item span {
  font-size: var(--font-size-details);
  font-weight: 400;
  color: var(--detail-color);
}

.pq-item h6 {
  font-size: var(--font-size-quaternary);
  font-weight: 600;
  color: var(--primary-color);
}

.dash-div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dash-grid-container {
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-template-rows: auto auto auto;
  gap: 10px;
  width: 100%;
  max-width: 800px;
}

.chart {
  grid-column: 2 / 3;
  grid-row: 1 / 4;
}

.area-graph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  height: 180px;
  margin: 4px;
}

.farmsvg {
  width: 64px;
}

.plots-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 4px;
  margin-left: 12px;
}

.plot {
  width: 300px;
  height: 180px;
  margin: 4px;
}

.plot-container > .user-select-none > .main-svg {
  border-radius: 6px !important;
  max-height: 220px;
}

.aggregate {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 38%;
  padding: 4px;
  gap: 4px;
  border: 0;
  background: var(--collapse-color);
  border-radius: 8px;
  line-height: 14px;
  transform: scale(0);
  transition: all ease 0.5s;
}

.aggregate input {
  margin: 0px 8px;
}

.panels-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
}

.panel-img {
  justify-self: center;
  width: 280px;
  height: 100px;
  border-radius: 8px;
}

.sidebar-content {
  max-height: 65vh; /* Adjust based on your sidebar's header size and available height */
  overflow-y: scroll; /* Enables vertical scrollbar when necessary */
  padding-right: 5px; /* Optional: Adjusts the padding to avoid content touching the scrollbar */
}

/* Common styles for all browsers */
.sidebar-content {
  scrollbar-color: #888 #f1f1f1; /* thumb and track color */
  scrollbar-width: thin; /* 'auto', 'thin', or 'none' */
}

/* Ensure scrollbar visibility only when necessary and avoid layout shifts */
.sidebar-content::-webkit-scrollbar {
  width: 2px !important; /* Adjust scrollbar width */
}

.sidebar-content::-webkit-scrollbar-track {
  background: #f1f1f1 !important; /* Track color */
}

.sidebar-content::-webkit-scrollbar-thumb {
  background-color: #888 !important; /* Scrollbar color */
  border-radius: 4px !important; /* Scrollbar border radius */
}

/* Additional styling for scrollbar on hover */
.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: #555 !important;
}

.legend-icon {
  opacity: 1;
  transition: all ease 0.5s;
}

.list-group-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-left: 2px;
  margin-right: 32px;
  padding: 0 10px;
  cursor: pointer;
}

.list-group-item:hover {
  background-color: var(--quaternary-hover-color);
  border: 0;
  border-radius: 8px;
}

.p-3 {
  padding: 0 0 !important;
  padding-left: 0 !important;
}

#uploads-collapse {
  margin-top: 12px;
}

.upload-layer-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 8px;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-quaternary);
  font-weight: 400;
}

.upload-text-div {
  max-width: 190px;
  word-wrap: break-word; /* Older browsers support */
  overflow-wrap: break-word; /* Standard property */
  color: var(--menu-font-color);
}

.upload-buttons-div {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.focus-btn,
.delete-btn,
.share-btn {
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  padding: 0;
  margin: 4px;
  border: none;
  cursor: pointer;
  background-color: #ffffff;
}

.focus-btn:hover,
.delete-btn:hover,
.share-btn:hover {
  background-color: var(--quaternary-hover-color);
}

.leaflet-control-velocity {
  display: none;
}

.leaflet-bar {
  border: none !important;
}

.leaflet-top {
  left: 0;
  transition: 0.5s ease;
}

.leaflet-control {
  font-family: "Roboto", sans-serif;
}

.leaflet-control-mouseposition {
  background-color: #f4f4f480;
  border-radius: 2px;
  padding: 0 5px;
  height: 16px;
  padding-top: 1px !important;
  margin-bottom: 2px;
  font-size: 0.7rem;
  font-family: "Roboto", sans-serif;
  text-align: center;
  line-height: 1.4em;
}

.leaflet-control-scale {
  margin-bottom: 0px !important;
  margin-left: 5px !important;
}

.leaflet-control-scale-line {
  background-color: #f4f4f480;
  border-radius: 2px;
  padding: 0 5px;
  height: 16px;
  padding-top: 1px !important;
  margin-bottom: 2px;
  margin-left: 4px;
  font-size: 0.75rem;
  font-family: "Roboto", sans-serif;
}

.leaflet-control-zoom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  border: 0;
}

.leaflet-control-zoom-in {
  background: #f8f8f8 !important;
  border-radius: 4px 0 0 4px !important;
}

.leaflet-control-zoom-in:hover {
  background-color: #bbb !important;
}

.leaflet-control-zoom-out {
  background: #f8f8f8 !important;
  border-radius: 0 4px 4px 0 !important;
}

.leaflet-control-zoom-out:hover {
  background-color: #bbb !important;
}

.leaflet-control-grid {
  background: #f4f4f4;
  border-radius: 0;
  border: 0;
  border-right: 1px solid #b0b0b0;
}

.leaflet-control-grid:hover {
  background-color: #bbb !important;
}

.leaflet-control-home {
  background: #f4f4f4;
}

.leaflet-control-home:hover {
  background-color: #bbb !important;
}

.leaflet-control-fullscreen:hover {
  background-color: #bbb !important;
}

.leaflet-draw-draw-rectangle {
  background: #f4f4f4;
  border-radius: 0;
  border: 0;
  border-right: 1px solid #b0b0b0;
}

.leaflet-draw-edit-remove {
  background: #f4f4f4;
  border-radius: 0 4px 4px 0 !important;
  border: 0;
}

.leaflet-popup-content-wrapper {
  border-radius: 6px;
  background-color: #e6f7ff;
  font-family: "Roboto", sans-serif;
  max-width: 320px;
}

.leaflet-popup-tip {
  background-color: var(--sidebar-color);
  /*border: 1px solid #5e5e5e;*/
}

.popup-table {
  /* width: 320px !important; */
  border-radius: 6px; /* Increased to make rounding more visible */
  max-width: 320px !important;
}

.table-header {
  background-color: var(--primary-color);
  color: white;
  font-size: var(--font-size-secondary);
  text-align: left;
  border-radius: 6px;

  & th {
    border-radius: 6px;
    padding: 0 24px 0 8px;
  }
}

.popup-table td {
  padding: 6px;
}

.table-field {
  font-weight: 600;
}

.popup-table tbody tr:nth-child(odd) {
  background-color: var(--sidebar-color);
  border-radius: 0;
}

.popup-table tbody tr:nth-child(even) {
  background-color: var(--collapse-color);
  border-radius: 0;
}

.popup-table tbody tr:last-child td:last-child {
  border-radius: 0 0 6px 0;
}

.popup-table tbody tr:last-child td:nth-last-child(2) {
  border-radius: 0 0 0 6px;
}

.popup-content {
  padding: 0 10px 0 0;
  margin: 0px;
  font-family: "Roboto", sans-serif;
}

.popup-content h5 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-tertiary);
  font-weight: 500;
}

.popup-content h6 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-quaternary);
  font-weight: 400;
}

.popup-content span {
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-details);
  font-weight: 200;
}

.table-header h5 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-tertiary);
  font-weight: 500;
}

.table-header span {
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-details);
  font-weight: 200;
}

.custom-tooltip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  font-family: "Roboto", sans-serif;
}

.custom-icon {
  transition: all 0.5s;
  transform-origin: center; /* Adjust based on your icon's anchor point */
}

.leaflet-control-attribution {
  background: #f4f4f4;
  border-radius: 2px;
  font-size: 0.75rem;
}

.modebar-group {
  right: 4px !important; /* Adjust this to move it horizontally */
  top: 30px !important; /* Adjust this to move it vertically */
  background: transparent !important; /* This makes the background transparent */
}

.modebar-btn {
  background: transparent !important; /* Makes individual button backgrounds transparent */
}

.modebar-btn .icon path {
  fill: #5e5e5e !important; /* Adjust the color of the icons */
}

.group-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.group-icon {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 5px;
}

.group-icon:hover {
  background: var(--btn-hover-color);
}

.custom-cluster-icon {
  position: relative;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s;
}

.custom-cluster-icon .icon-count {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  color: black;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.8em;
  margin: 2px;
}

.custom-cluster-icon:hover {
  scale: 1.3;
  transform: translateY(-15px);
}

::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: rgb(176, 176, 176);
  background: linear-gradient(
    90deg,
    rgba(176, 176, 176, 1) 15%,
    rgba(222, 222, 222, 1) 50%,
    rgba(176, 176, 176, 1) 85%
  );
  border-radius: 4px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: rgb(69, 69, 69);
  background: linear-gradient(
    90deg,
    rgba(69, 69, 69, 1) 0%,
    rgba(176, 176, 176, 1) 50%,
    rgba(69, 69, 69, 1) 100%
  );
  border-radius: 4px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 8px;
  background: #ddd; /* Grey background for the track */
  border-radius: 4px;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 8px;
  background: #ddd; /* Grey background for the track */
  border-radius: 4px;
}

input[type="range"]::-ms-track {
  width: 100%;
  height: 8px;
  background: #ddd; /* Grey background for the track */
  border-radius: 4px;
  border-color: transparent; /* Necessary to remove default border in IE */
}

/* Styling the thumb */
::-webkit-slider-thumb {
  -webkit-appearance: none; /* Removes default styling in WebKit browsers */
  appearance: none;
  width: 18px;
  height: 18px;
  background: #ddd; /* Grey background for the thumb */
  cursor: pointer;
  border-radius: 50%;
  margin-top: -4px; /* Centers the thumb over the track */
  border: none;
}

::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #ddd; /* Grey background for the thumb */
  cursor: pointer;
  border-radius: 50%;
}

::-ms-thumb {
  width: 20px;
  height: 20px;
  background: #ddd; /* Grey background for the thumb */
  cursor: pointer;
  border-radius: 50%;
}

#modal-copy {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-basic {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  padding: 5px 0;
  background-color: white;
}

.popup-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-family: "Roboto", sans-serif;
  font-size: var(--font-size-details);
  cursor: pointer;
}

.input {
  border: none;
  display: block;
  box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.3);
  border-radius: 8px 0 0 8px;
  width: 92%;
  font-size: var(--font-size-details);
  padding: 10px;
}

#copyBtn {
  background-color: var(--tertiary-color);
  border: none;
  border-radius: 0 8px 8px 0;
  box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.3);
  width: 40px;
}

#copyBtn:hover {
  background-color: var(--tertiary-hover-color);
}

.rose {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  z-index: 5;
  top: 66px;
  right: 16px;
  transition: all ease 0.5s;
}

#wind-rose-img {
  color: black;
}

#logos-div {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: min-content;
  display: flex;
  justify-content: end;
  align-items: center;
  padding: 10px;
  z-index: 2;
}

#gov-img {
  width: 110px;
}

#senai-img {
  width: 130px;
}

#isi-img {
  width: 130px;
}

@media (max-width: 1100px) {
  #logos-div {
    display: none;
  }
}

@media (min-width: 621px) and (max-width: 820px) {
  #termsDiv {
    min-width: 600px;
  }

  .perfil {
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    overflow-y: auto;
  }

  .video-container embed {
    width: 400px;
    height: 200px;
  }
}

@media (max-width: 820px) {
  .layers-sidebar-collapsed {
    height: 0px !important;
  }

  .stats-sidebar-collapsed {
    height: 0px !important;
  }

  .stats-sidebar {
    display: flex;
    flex-direction: column;
    left: 0;
    bottom: 0;
    background: var(--sidebar-color);
    width: 100vw;
    height: 50vh;
    align-items: center;
    justify-content: flex-start;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    transition: height 0.5s ease;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .layers-sidebar {
    display: block;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 50vh;
    background: var(--sidebar-color);
    border-left: 0;
    border-radius: 0 6px 6px 0;
    padding: 0;
    transition: height 0.5s ease;
  }

  .layers-container {
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(50vh - 36px);
    padding-top: 14px;
    background-color: var(--sidebar-color);
  }

  .dashs-container {
    height: calc(50vh - 90px);
  }

  #mobile-layers-button {
    display: block;
    transform: rotate(90deg);
    margin-right: 32px;
  }

  #mobile-stats-button {
    display: block;
    transform: rotate(90deg);
    margin-right: 32px;
  }

  #toggle-layers-btn2 {
    display: none;
  }

  #toggle-stats-btn2 {
    display: none;
  }

  #wind-direction {
    position: absolute;
    right: 6px;
    bottom: calc(80px + 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 0px;
    width: 54px;
    background: #f8f8f8;
    border-radius: 6px;
    font-family: "Roboto", sans-serif; /* Use a clean, simple font */
    transition: all ease 0.5s;
  }

  #color-bar {
    bottom: calc(80px + 4rem);
  }

  #legend-content {
    height: 180px;
  }
}

@media not (max-width: 820px) {
  .layers-sidebar-collapsed {
    width: 0 !important;
  }

  .stats-sidebar-collapsed {
    width: 0 !important;
  }

  .stats-sidebar {
    display: flex;
    flex-direction: column;
    right: 0;
    top: 54px;
    background: var(--sidebar-color);
    height: calc(100% - 130px);
    align-items: center;
    justify-content: flex-start;
    width: 380px;
    /*border: 1px solid #5e5e5e;*/
    border-right: 0;
    border-radius: 6px 0 0 6px;
    transition: width 0.5s ease !important;
    padding: 0;
    overflow-y: hidden;
  }

  .layers-sidebar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: left;
    left: 0;
    top: 54px;
    width: 340px;
    height: calc(100% - 130px);
    background: var(--sidebar-color);
    border-left: 0;
    border-radius: 0 6px 6px 0;
    padding: 0;
    overflow-y: hidden;
    transition: width 0.5s ease;
  }

  .layers-container {
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 166px);
    padding-top: 14px;
    background-color: var(--sidebar-color);
  }

  #mobile-layers-button {
    display: none;
  }

  #mobile-stats-button {
    display: none;
  }

  #toggle-layers-btn2 {
    background: rgba(60, 60, 60, 0.5);
    left: 296px;
    top: 57px;
    border-radius: 4px;
    transform: rotate(180deg);
  }

  #toggle-stats-btn2 {
    background: rgba(60, 60, 60, 0.5);
    right: 336px;
    top: 57px;
    border-radius: 4px;
    transform: rotate(0deg);
  }

  #wind-direction {
    position: absolute;
    left: 50px;
    bottom: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 0px;
    width: 54px;
    background: #f8f8f8;
    border-radius: 6px;
    font-family: "Roboto", sans-serif; /* Use a clean, simple font */
    transition: all ease 0.5s;
  }

  #color-bar {
    bottom: 76px;
  }
}

@media screen and (max-width: 620px) {
  #termsDiv {
    min-width: 90vw;
  }

  #termsContent {
    overflow-x: hidden;
  }

  .perfil {
    grid-template-rows: 1fr 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .termFormItem {
    padding: 2px;
    height: 44px;
  }

  .termFormItem > label > div > img {
    margin-right: 4px;
  }

  .termFormItem > label > div > span {
    font-size: var(--font-size-details);
  }
  .video-container embed {
    width: 280px;
    height: 140px;
  }
}

@media (max-width: 420px) {
  #termsContent > p {
    font-size: var(--font-size-details);
  }

  .termAccept {
    font-size: var(--font-size-details);
  }

  .terms-icon {
    width: 24px;
    height: 24px;
    margin-right: 0;
  }
  .video-container embed {
    width: 260px;
    height: 130px;
  }
}
