
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;
}

#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;
}

#download {
  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;
}

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

.author-links {
  font-size: 0.95em;
  margin-top: 15px;
}

.author-links a {
  color: inherit;
  text-decoration: none;
}

.legend {
  position: absolute;
  bottom: 30px;
  right: 20px;
  background: white;
  padding: 10px 15px;
  color: #555;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  z-index: 1001;
  font-size: 14px;
  border-radius: 8px;
  width: 170px;
}

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

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

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

.legend {
  position: absolute;
  bottom: 30px;
  right: 20px;
  background: white;
  padding: 12px 20px 24px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  z-index: 1001;
  font-size: 14px;
  width: 720px;
  max-width: 95vw;
  text-align: center;
  color: #333;
}

.color-bar {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  margin: 10px 0 5px;
}

.color-bar .color {
  width: 100%;
  height: 14px;
  border-radius: 2px;
}

.color-bar span {
  font-size: 11px;
  margin-top: 4px;
  white-space: nowrap;
}
