body {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

#menu {
  z-index: 1000;
  position: absolute;
}
#menu ul {
  background: white;
  list-style: none;
  padding: 12px 15px;
  margin-left: 15px;
  border-radius: 7px;
  font-weight: bold;
  cursor: pointer;
}

#overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  display: flex;
}
#overlayContent {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 80%;
  width: 80%;
  background: white;
  max-height: 550px;
  max-width: 400px;
  border-radius: 10px;
  color: rgb(20, 20, 20);
  overflow-y: scroll;
}
#leave-icon {
  position: absolute;
  right: 0;
  font-size: 25px;
  margin: 7px;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
#overlayContent img {
  width: 60%;
  padding-top: 2vh;
}
@media all and (max-width: 500px) {
  #overlayContent img {
    width: 80%;
  }
}
#overlayContent p {
  margin: 5px 15px;
}
#overlayContent h1 {
  font-size: 25px;
  text-decoration: underline;
  color: rgb(51, 66, 170);
  margin: 15px 10px 10px 10px;
  text-align: center;
}
#overlayContent h2 {
  font-size: 20px;
  margin: 15px 15px 10px 15px;
  text-align: center;
}
#overlayContent ol {
  color: rgb(30, 30, 30);
}
#overlayContent a {
  color: blue;
  text-decoration: none;
  font-weight: bold;
}
#closePopup {
  padding: 10px 15px;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  margin-bottom: 15px;
  cursor: pointer;
}

#map {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
}
.mapboxgl-popup {
  display: flex;
  text-align: center;
}
.mapboxgl-popup-content {
  border-radius: 7px;
  padding: 10px;
}
.mapboxgl-popup h3 {
  color: rgb(32, 32, 32);
  margin: 5px 0 10px 0;
  font-size: 20px;
}
.mapboxgl-popup h4 {
  color: rgb(50, 50, 50);
  margin: 0 0 10px 0;
  font-size: 16px;
}
.mapboxgl-popup a {
  background-image: linear-gradient(
    to right,
    #2b5876 0%,
    #4e4376 51%,
    #2b5876 100%
  );
}
.mapboxgl-popup a {
  padding: 10px 20px;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  box-shadow: 0 0 20px #eee;
  border-radius: 5px;
  display: block;
}

.mapboxgl-popup a:hover {
  background-position: right center; /* change the direction of the change here */
  color: #fff;
}
