/* Base styles */
body {
  font-family: 'Lato', sans-serif;
  line-height: 1.8;
  margin: 0;
  background-color: #fefefe;
  color: #1b1b1b;
  padding: 20px;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  font-size: 2.2em;
  font-weight: 700;
  color: #d05e33;
  margin-bottom: 0.6em;
}

h2 {
  font-size: 1.5em;
  font-weight: 600;
  color: #a84f26;
  margin-top: 2.5em;
}

.subheading {
  font-size: 1em;
  font-style: italic;
  color: #555;
  margin-top: -10px;
  margin-bottom: 20px;
}

p {
  margin-bottom: 1em;
}

.intro {
  font-size: 1.1em;
}

.quote {
  font-style: italic;
  margin-top: 1em;
  margin-bottom: 2em;
}

/* Map and network */
#map {
  height: 400px;
  width: 100%;
  border: 1px solid #ccc;
  margin-top: 10px;
}

#network {
  width: 100%;
  height: 600px;
  margin: 20px auto;
  display: block;
  border: 1px solid #ccc;
  background-color: #fff3e6;
}

/* Zoom slider */
#zoom-slider-container {
  text-align: center;
  margin: 10px 0 20px;
  color: #a84f26;
}

#zoom-slider {
  width: 200px;
  appearance: none;
  height: 6px;
  background: #ffd6b3;
  border-radius: 4px;
  outline: none;
}

#zoom-slider::-webkit-slider-thumb,
#zoom-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff5c00;
  cursor: pointer;
  border: 2px solid #fff;
}

/* Button */
#myButton {
  display: block;
  margin: 10px auto 20px;
  padding: 10px 20px;
  background-color: #ffb88c;
  color: #4a2e20;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#myButton:hover {
  background-color: #ff9d5c;
}

/* Legend */
#legend {
  margin-top: 20px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ccc;
  max-width: 400px;
  font-size: 14px;
}

#legend h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #333;
}

#legend ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#legend li {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.legend-color {
  width: 15px;
  height: 15px;
  display: inline-block;
  margin-right: 10px;
  border: 1px solid #999;
}

/* Links */
a {
  color: #f4a261;
  text-decoration: none;
}

a:hover {
  color: #e76f51;
  text-decoration: underline;
}

/* Visually hidden content for screen readers */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

.focusable:focus {
  position: static !important;
  width: auto; height: auto;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  z-index: 1000;
}

/* Responsive */
@media (max-width: 600px) {
  h1 {
    font-size: 1.6em;
  }

  h2 {
    font-size: 1.3em;
  }

  #map,
  #network {
    height: 300px;
  }
}
#legend-edges {
  margin-top: 10px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ccc;
  max-width: 400px;
  font-size: 14px;
}

#legend-edges ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#legend-edges li {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  gap: 10px;
}
#legends-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

#legend, #legend-edges {
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 14px;
  max-width: 300px;
  flex: 1;
}

#legend h3,
#legend-edges h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #333;
}

#legend ul,
#legend-edges ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#legend li,
#legend-edges li {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  gap: 10px;
}
