
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

#header {
  position: absolute;
  top: 20px;
  left: 20px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  z-index: 1001;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.title {
  font-size: 2.5em;
  margin: 0;
}

.subtitle {
  font-size: 1.2em;
  margin: 5px 0 0 0;
}
/*
.subtitle a {
  color: inherit;
  text-decoration: none;
}

.subtitle a:hover,
.author-links a:hover {
  text-decoration: underline;
}
*/
.subtitle a,
.author-links a {
  color: #06c !important;
  text-decoration: underline !important;
}

#sidebar {
  position: absolute;
  top: 160px;
  left: 20px;
  width: 240px;
  padding: 20px;
  background: white;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
  z-index: 1001;
  border-radius: 10px;
}

.toggle-label {
  font-size: 1.1em;
  font-weight: bold;
  color: #000;
}

.toggle-label input[type="radio"] {
  margin-right: 8px;
}

/* Shared styling for both buttons */
#download,
#download-all {
  margin-top: 10px;
  padding: 10px;
  font-weight: bold;
  background-color: white;
  border: 2px solid #222;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  box-sizing: border-box;
}

#download:hover,
#download-all:hover {
  background-color: #eee;
}


.author-links {
  font-size: 0.95em;
  margin-top: 15px;
}
/*
.author-links a {
  color: inherit;
  text-decoration: none;
}
*/
.legend {
  width: 1000px; /* ⬅️ Adjust this as needed (e.g. 400px or more) */
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  position: absolute;
  bottom: 30px;
  right: 20px;
  z-index: 1001;
}

.color-bar {
  display: flex;
  height: 12px;
  margin: 8px 0;
}

.color-bar .stop {
  flex: 1;
}

.labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 2px;
}

.labels span {
  flex: 1;
  text-align: left;
  padding-left: 2px;
  font-size: 11px;
}



