/* static/css/style.css */
.top-nav {
  background-color: #00A087FF;
  color: white;
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  height: 60px;
  line-height: 60px;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 3px solid #334A59;
  padding-left: 10px;
  padding-right: 10px;
}

html, body {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#content {
  flex: 1;
  padding-bottom: 10px;
}

.container {
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 60px;
  margin-bottom: 100px;
}

.index-container {
  padding-left: 0px;
  padding-right: 0px;
  padding-top: 60px;
}

.missing-body {
  font-family: Arial, sans-serif;
  text-align: center;
  padding-top: 150px;
}

.missing-body h1 {
  color: #00A087;
}

.missing-body p {
  font-size: 18px; 
}

.missing-body a {
  color: #00A087;
}

.logo img {
  display: flex;
  justify-content: center; 
  height: 50px;
  width: auto;
  border-radius: 10px;
}

.site-name {
  display: none;
}

.site-name a, .menu a {
  padding: 10px 15px;
  display: inline-block;
  color: white;
  text-decoration: none;
}

.menu {
  margin-left: auto;
}

.dropbtn {
  background-color: #00A087FF;
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  max-height: 150px; /* 最大高度，超出部分可滚动 */
  overflow-y: auto; /* 超出部分显示滚动条 */
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}
.dropdown-content a {
  color: black;
  padding: 10px 10px;
  text-decoration: none;
  display: block;
  line-height: 2;
}

.dropdown-content a:hover {background-color: #ddd;}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #91D1C2FF;
}

.site-footer {
  background-color: #00A087FF;
  color: white;
  text-align: center;
  padding: 10px 0;
  margin-top: 0px;
}

.site-footer a {
  color: lightblue;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer .fa-github {
  margin-right: 2px;
  color: #ffffff;
}

.site-footer a {
  color: white;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (min-width: 1100px) {
  .top-nav {
    width: 80%;
    padding-left: 10%;
    padding-right: 10%;
    margin-left: auto;
    margin-right: auto;
  }

  .container {
    padding-left: 10%;
    padding-right: 10%;
    padding-top: 50px;
  }

  .site-name {
    display: block;
  }
}

.loader {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #334A59;
  animation: load 3s linear infinite;
}

@keyframes load {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.figure {
  width: 100%;
  height: 400px;
  border: 1px solid;
  background-color: #f9f9f9;
  border-color: #eaecef;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  margin-right: 10px;
  overflow: hidden;
}

/* map css */

#map {
    width: 100%;
    height: 100%;
    margin: 0px;
    background-color: rgba(175, 200, 253) !important;
    background-image: none;
}

.legend {
  width: 150px;
  position: absolute;
  left: 30px;
  bottom: 70px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

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

.legend ul li {
  display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.legend ul li a {
  float: left;
  color: #555;
  font-size: 14px;
  text-decoration: none;
  height: 30px;
  line-height: 30px;
}

.legend ul li span {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 8px;
}

.info hr {
  margin-right: 0;
  margin-left: 0;
  border-top-color: grey;
}

.info {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  padding: 10px;
  z-index: 1000;
}

.btn {
  background-color: #00A087FF;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
}