@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

:root {
  --primary-color: #275d38;
}

body,
html {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", sans-serif;
  padding: 0;
  background-color: #fff;
}

#title h1 {
  color: #41b6e6;
}

.btn-primary {
  width: 100%;
  background-color: #41b6e6;
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #359fc5;
}

#map-result {
  position: relative;
  border-radius: 8px;
  height: 80vh;
  margin-bottom: 50px;
}

#map-search {
  position: relative;
  border-radius: 8px;
  height: 80vh;
}

#reset-map-button {
  position: absolute;
  top: 0;
  right: 1%;
  border-radius: 5px;
  z-index: 1000;
}

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

button {
  cursor: pointer;
}

#app {
  flex-grow: 1;
  width: 100%;
  margin: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#nav {
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin-bottom: 20px;
  border-bottom: solid var(--primary-color) 4px;
}

#nav-buttons {
  display: flex;
  justify-content: space-between;
}

.nav-button {
  border: 2px solid var(--primary-color);
  padding: 3px;
  padding-left: 10px;
  padding-right: 10px;
  font-weight: bold;
  border-radius: 30px;
  margin: auto;
  margin-left: 3px;
  margin-right: 3px;
  color: black;
  text-decoration: none;
  font-size: 0.8em;
}

.nav-button:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}

#nav-title {
  font-size: 2em;
  font-weight: 600;
  display: flex;
}

#nav-site-name {
  flex: 1 0 auto;
}

#nav-logo {
  max-height: 50px;
}

.sw-title {
  color: var(--primary-color);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
}
a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.header-container {
  width: 100%;
  margin-bottom: 20px;
  justify-content: left;
}

.dropdown-menu {
  top: 100%;
}

.title-img {
  width: 50%;
  margin: auto;
  display: block;
  margin-bottom: 20px;
}

.setting-edit-button {
  width: 200px;
  background-color: var(--primary-color);
}

.setting-edit-button.upload {
  color: var(--primary-color);
  background-color: white;
  border: solid 2px var(--primary-color);
}

#setting-button {
  margin: 5px;
  vertical-align: middle;
  text-decoration: none;
  color: var(--primary-color);
}

#setting-button:hover {
  text-decoration: underline;
}

#footer {
  margin-top: auto;
  border-top: solid var(--primary-color) 4px;
  width: 90%;
}

#map-container {
  position: relative;
  height: 95vh;
  width: 90%;
}

#map_explore {
  width: 100%;
  height: 95vh;
}

.legend {
  position: absolute;
  bottom: 0;
  left: 0px;
  padding: 10px;
  max-width: 341px;
}

#legend-inner {
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  padding: 10px;
}

.legend h3 {
  margin: 0 0 10px 0;
  font-size: 16px;
}

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

.legend li {
  margin-bottom: 5px;
  font-size: 14px;
}

.color-box {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  vertical-align: middle;
}

.map-overlay {
  position: absolute;
  width: 25%;

  padding: 10px;
}

.map-overlay.menu {
  top: 0;
  left: 0;
}

.map-overlay .map-overlay-inner {
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  padding: 10px;
  margin-bottom: 10px;
}

.network {
  bottom: 150px;
  right: 0;
}

.map-overlay select {
  width: 100%;
  padding: 5px;
  margin-bottom: 10px;
  font-size: small;
}

#layer-menu {
  background: #fff;
  z-index: 100;
  border-radius: 3px;
  width: 120px;
  border: 1px solid rgba(0, 0, 0, 0.4);
}

#layer-menu a {
  font-size: 13px;
  color: #404040;
  display: block;
  margin: 0;
  padding: 0;
  padding: 10px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  text-align: center;
}

#layer-menu a:last-child {
  border: none;
}

#layer-menu a:hover {
  background-color: #f8f8f8;
  color: #404040;
}

#layer-menu a.active {
  background-color: #3887be;
  color: #ffffff;
}

#layer-menu a.active:hover {
  background: #3074a4;
}

#rm-il {
  display: block;
  border-radius: 3px;
  border: 1px solid white;
  width: 150px;
  font-size: 0.8em;
  font-size: 13px;
  color: #ffffff;
  padding-inline: 5px;
  text-decoration: none;
  cursor: pointer;
}

.maplibregl-popup {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 3px;
  min-width: 250px;
  max-width: 350px;
}

.popup h6 {
  font-size: 1.2em;
  margin-bottom: 5px;
  font-weight: bold;
}

.popup hr {
  margin-block: 5px;
}

.popup-label {
  font-size: 0.9em;
  margin-bottom: 5px;
  font-weight: normal;
  margin: 0;
}

.popup-info {
  font-size: 1em;
  margin-bottom: 5px;
  font-weight: normal;
  margin: 0;
}

.popup p {
  margin: 0;
}

.network-label {
  font-size: 0.8em;
  font-weight: bold;
  margin: 0;
}
.network-info h6 {
  font-size: 1.1em;
  margin-bottom: 5px;
  font-weight: normal;
}

.map-overlay.network {
  visibility: hidden;
}

a.network-option:hover {
  cursor: pointer;
}

.threshold-slider {
  accent-color: #ffc10a;
}

.collapse-arrow {
  display: inline;
}

.collapse-arrow.active {
  display: inline-block;
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  transform: rotate(90deg);
}

.toggle a {
  color: black;
}
.toggle a:hover {
  color: black;
}

.toggle h5 {
  display: inline;
}

.instructions a {
  color: black;
}

.instructions a p:hover {
  text-decoration: underline;
}

a.pin-option {
  cursor: pointer;
}
