#map {
  height: 60vh;
  width: 100%;
}

.weather-country-map {
  height: 70vh !important;
}

.weather-map-container {
  padding: 8px;
  position: relative;
}

.legend {
  position: absolute;
  bottom: 30px;
  left: 10px;
  background: rgba(255, 255, 255, 0.401);
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  font-size: 12px;
  line-height: 14px;
}

.darkmode .legend {
  background: #00000054;
}

.legend-cloud {
  background: #00000054;
}

.legend div {
  display: flex;
  align-items: center;
}
.legend span {
  display: inline-block;
  width: 20px;
  height: 10px;
  margin-right: 5px;
}

.leaflet-bar {
  background: white;
  padding: 5px;
}

.leaflet-bar button {
  display: block;
  width: 150px;
  margin-bottom: 5px;
  background: gray;
  color: white;
}
/* 
.leaflet-tile {
  filter: contrast(1) saturate(1) !important;
} */

#weather-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: overlay 2s infinite linear;
}

.open-map {
  font-size: 2rem;
  color: #fff;
  cursor: default;
}

@keyframes overlay {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 0.2;
  }
}

@media (max-width: 760px) {
  #map {
    height: 45vh;
    width: 100%;
  }

  .weather-country-map {
    height: 55vh !important;
  }

  .weather-map-container {
    padding: 0px;
  }

  .legend {
    bottom: 10px;
    left: 4px;
  }

  .leaflet-left .leaflet-control {
    margin-left: 4px !important;
  }
  .leaflet-bottom .leaflet-control {
    margin-bottom: 4px !important;
  }

  .legend span {
    display: inline-block;
    width: 14px;
    height: 6px;
    margin-right: 3px;
    font-size: 1rem;
  }

  .legend div {
    font-size: 1rem;
  }

  .legend strong {
    font-size: 1rem;
  }

  .leaflet-bar button {
    width: 100px;
    font-size: 1rem;
  }

  .open-map {
    font-size: 1.5rem;
  }
}
