:root {
  --padding: 1rem;

  --black: hsl(245, 46%, 5%);
  --black-50: hsl(243, 18%, 77%);

  --white: hsl(0, 0%, 100%);

  --font-family: "Besley", "Arial", "Helvetica", sans-serif;
  ;

  --font-weight-light: 100;
  --font-weight-normal: 300;
  --font-weight-bold: 600;

  --font-size-small: 0.78rem;
  --font-size-normal: 0.9rem;
  --font-size-large: 1.2rem;

  --color-accent: hsl(39, 98%, 64%);

  --border-radius: 5px;
  --border-accent: 2px solid var(--color-accent);

  --icon-color: red;
}

* {
  box-sizing: border-box;
}


.icon {
  display: inline-block;
  height: 100%;
}

#facicon {
  fill: green;
}

@media (prefers-color-scheme: dark) {
  #favicon {
    fill: red;
  }
}



@font-face {
  font-family: 'Besley';
  src: url('fonts/Besley/Besley-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

@font-face {
  font-family: 'Besley';
  src: url('fonts/Besley/Besley-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: italic;
}




a {
  color: var(--color-accent);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-normal);
}

h1 {
  font-size: 1.8rem;
  line-height: 2rem;
  margin-bottom: .4rem;
}

h2.subtitle {
  font-size: 1rem;
  line-height: 1rem;
  color: var(--black-50);
  font-weight: var(--font-weight-light);
}

body,
html {
  font-family: var(--font-family);
  height: 100%;
  margin: 0;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  color: var(--black);
  font-weight: 400;
}

header {
  display: flex;
  padding: calc(var(--padding) / 2) var(--padding);
  background-color: var(--white);
  border-bottom: var(--border-accent)
}

main {
  position: relative;
  flex: 1;
  display: flex;
  overflow: hidden;
}

.partners {
  margin: var(--padding);
  max-height: 100%;
  display: flex;
  max-width: 200px;
}

.partners > img {
  max-width: 100%;
}

.sidebar {
  height: 100%;
  background-color: var(--white);
  max-width: 400px;

  display: flex;
  flex-direction: column;
}

.sidebar>* {
  padding: var(--padding);
}

#controls {
  flex: 1;
  overflow-y: auto;
}

/* Adjust existing style */
#controls .leaflet-control-layers {
  padding: 0;
  box-shadow: none;
}

#controls .leaflet-control-layers label {
  font-size: var(--font-size-normal);
  user-select: none;
  cursor: pointer;
}

.map-container {
  height: 100%;
  flex: 1;
}

#map {
  height: 100%;
}

.title {
  flex: 1;
  display: flex;
  gap: var(--padding);
  align-items: center;
}

#app-icon {
  display: block;
  max-height: 64px;
  fill: red;
  color: red !important;
}




/*Legend specific*/
.legend {
  padding: 6px 8px;
  font: 16px Calibri;
  background: white;
  background: rgba(255, 255, 255, 0.8);
  /*box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);*/
  /*border-radius: 5px;*/
  line-height: 24px;
  color: var(--black-50);
}


.legend span {
  position: relative;
  bottom: 3px;
  font-family: Calibri;
}

.legend i {
  width: 20px;
  height: 20px;
  float: left;
  margin: 0 8px 0 0;
  opacity: 0.7;
  font-family: Calibri;
  border-radius: var(--border-radius);
  border: 1px solid var(--black-50);
}

.legend i.icon {
  background-size: 18px;
  background-color: rgba(255, 255, 255, 1);
}

.info {
  padding: 6px 8px;
  height: 280px;
  width: 450px;
  font: 16px Calibri;
  background: white;
  background: rgba(255, 255, 255, 0.8);
  /*box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);*/
  /*border-radius: 5px;*/
  line-height: 24px;
  color: var(--black-50);
  border: var(--black-50);
  border-style: solid;
  border-width: 1px;
  font-family: Calibri;
  position: relative;
}

.chart-container .graph-info-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 90%;
  text-align: center;
  font-style: italic;
  color: var(--black-50);
  pointer-events: none;
  transition: opacity 0.3s;
}

.Multiline {
  padding: 6px 8px;
  height: 280px;
  width: 450px;
  font: 16px Calibri;
  background: white;
  background: rgba(255, 255, 255, 0.8);
  /*box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);*/
  /*border-radius: 5px;*/
  line-height: 24px;
  color: var(--black-50);
  border: var(--black-50);
  border-style: solid;
  border-width: 1px;
  font-family: Calibri;
}


.panel {
  height: 650px;
  background: white;
  overflow: 'scroll';
  font-family: Calibri;
  grid-area: panel;
}

footer {
  font-size: var(--font-size-small);
  border-top: var(--border-accent);
}

.leaflet-control.Multiline,
.leaflet-control.info,
.legend {
  color: var(--black);
  font-family: var(--font-family);
  border-radius: var(--border-radius);
  border: none;
  /* pointer-events: none; */
}

.leaflet-control.Multiline h4,
.leaflet-control.info h4,
.legend h4 {
  color: var(--black);
  margin-bottom: var(--padding);
  font-weight: 700;
}

.leaflet-control#chart {
  pointer-events: all;
}


/** Improve leaflet popup style */

.leaflet-popup-content-wrapper {
  border-radius: var(--border-radius);
  color: var(--black);
}

.leaflet-popup-content {
  font-family: var(--font-family);
  font-size: var(--font-size-normal);
  margin: 0;
  padding: var(--padding);
  border-radius: var(--border-radius);
}

.leaflet-container a.leaflet-popup-close-button {
  font-size: 1.5rem;
  margin-right: 1.2srem;
  padding: var(--padding);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--white);
  border-radius: var(--border-radius);
}