* {
  margin: 0;
  border: 0;
  box-sizing: border-box;
}

:root {
  --background-color: rgba(6, 119, 81, 0.76);
  --glass-bg: rgba(30, 30, 30, 0.3);
  --glass-border: rgba(255, 255, 255, 0.18);
}

body {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

p {
  color: rgb(248, 240, 240);
  width: 100%;
  background-color: rgba(7, 155, 106, 0.7);
  border-radius: 5px;
  font-weight: 500;
  font-style: normal;
  font-size: 22px;
  margin-bottom: 10px;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

p:hover {
  background-color: rgba(6, 119, 81, 0.8);
  color: rgb(255, 255, 255);
}

h1 {
  background-color: rgb(15, 15, 15);
  color: rgb(252, 252, 252);
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  padding: 10px;
}

.bodyContainer {
  display: grid;
  grid-template-columns: 5fr 1fr;
  background-color: rgb(15, 15, 15);
  width: 100vw;
  height: 100vh;
  grid-gap: 10px;
  padding: 10px;
}

.mapInfoContainer {
  display: grid;
  grid-template-rows: auto 1fr;
  color: whitesmoke;
  justify-content: center;
  align-items: start;
  max-height: calc(100vh - 20px);
  padding: 20px;
  background: var(--glass-bg);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid var(--glass-border);
}

.selectorContainer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 4px;
  font-weight: 600;
  font-style: normal;
  font-size: 24px;
  width: 100%;
  margin-bottom: 15px;
}

#map {
  height: 100%;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

#mapInfo {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  width: 100%;
  overflow-y: auto;
}

span {
  color: var(--background-color);
  background-color: inherit;
}

#tileProvider {
  background-color: rgba(6, 119, 81, 0.6);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
  font-style: normal;
  font-size: 18px;
  padding: 5px 8px;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  border-radius: 8px;
}

label {
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  font-size: 20px;
  margin-right: 10px;
}

.leaflet-control-attribution.leaflet-control {
  display: flex;
  font-size: 11px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 2px 4px;
  border-radius: 2px;
}

.leaflet-control-attribution a {
  display: inline;
  color: #0078a8;
  text-decoration: none;
}
.leaflet-control-attribution a:hover {
  text-decoration: underline;
}

.leaflet-marker-icon.leaflet-zoom-animated.leaflet-interactive {
  filter: contrast(120%) brightness(110%);
}

@media (max-width: 768px) {
  body {
    overflow-y: auto;
  }

  p,
  .selectorContainer.selectorContainer {
    font-size: 18px;
  }

  h1 {
    font-size: 20px;
  }

  .bodyContainer {
    grid-template-columns: 1fr;
    grid-template-rows: 70vh auto;
    width: 100%;
    height: auto;
    min-height: 100vh;
    padding: 5px;
    grid-gap: 5px;
  }

  .mapInfoContainer {
    grid-row: 2;
    grid-template-rows: auto 1fr;
    max-height: none;
    padding: 15px;
    margin: 5px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  #map {
    grid-row: 1;
    height: 100%;
    min-height: 50vh;
    padding: 0;
    border-radius: 8px;
  }

  #mapInfo {
    height: auto;
    max-height: 30vh;
  }

  .selectorContainer {
    font-size: 20px;
  }

  label {
    font-size: 18px;
  }

  #tileProvider {
    font-size: 16px;
  }

  .leaflet-control-attribution.leaflet-control {
    font-size: 10px;
  }
}
