@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;700&display=swap');

body {
  margin: 0;
  font-family: 'Barlow', sans-serif;
  display: flex;
  height: 100vh;
  text-align: left;
  font-weight: 400;
  font-style: normal;
}
.tooltip-trigger {
  position: relative;
  cursor: help;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  border-bottom: 1px dotted;
  transition: border-color 0.2s ease;
}

.tooltip-trigger:hover {
  border-bottom-color: #236192;
  color: #236192;
}

.info-icon {
  font-style: normal;
  font-size: 0.8em;
  margin-left: 4px;
  color: #999;
}
.tooltip-trigger:hover .info-icon {
  color: #236192;
}


.tooltip-box {
  position: absolute;
  background: white;
  color: black;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 14px;
  display: none;
  z-index: 999;
  max-width: 320px;
  line-height: 1.5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.tooltip-box a {
  text-decoration: underline;
}


a:link {
    color: #236192;
  }

a:visited {
  color: #F45197;
}

a:hover {
  color: #DF6A2E;
}

a:active {
  color: #FFCD00;
}

.header-with-logo {
  display: flex;
  align-items: center;
}

.header-with-logo img {
  height: 50px;
  margin-right: 10px;
}
  
#sidebar {
  width: 30%;
  padding: 1em;
  background:rgb(255, 255, 255);
  box-sizing: border-box;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  overflow-y: auto;
  border-right: 1px solid #ccc;
}

#map {
  flex-grow: 1;
}

input[type="range"] {
  width: 80%;
  background-color: #236192;
}

input[type=number] {
  width: 20%;
}

button {
  align-items: center;
  background-color: #DF6A2E;
  border: 0;
  border-radius: 100px;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  line-height: 20px;
  min-height: 40px;
  min-width: 0px;
  overflow: hidden;
  padding: 0px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  width: 50%;
}

button[type="reset-button"] {
  align-items: center;
  background-color: #DF6A2E;
  border: 0;
  border-radius: 100px;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  line-height: 20px;
  min-height: 40px;
  overflow: hidden;
  padding: 0px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  flex: 1;
}

.download-button {
  background-color: #71984A;
  border: 0;
  border-radius: 100px;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  line-height: 20px;
  max-width: 480px;
  min-height: 40px;
  min-width: 0px;
  overflow: hidden;
  padding: 0 20px;
  text-align: center;
  touch-action: manipulation;
  user-select: none;
  vertical-align: middle;
  width: 50%;
}

.input-group {
  margin-bottom: 1.5em;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3em;
}

.subtitle {
  font-size: 0.9em;
  color: #555;
}

.controls {
  display: flex;
  gap: 1em;
  align-items: center;
}

.leaflet-control .legend {
  background: white;
  padding: 10px;
  font-size: 0.9em;
  line-height: 1.6em;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.leaflet-control .legend h4 {
  margin: 0 0 0.5em;
  font-size: 1em;
}

.legend-color {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  border: 1px solid #999;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.result-row > div {
  flex: 1;
  text-align: center;
}

.large-numbers {
  margin-top: 0.5rem;
}

.large-numbers span:first-child {
  font-size: 2.2rem;
  font-weight: bold;
}

.unit {
  font-size: 1rem;
  margin-left: 0.25rem;
}


