:root {
  --miniMap-size: 140px;
  --font-size: 37px; 
}

#map {
  position: absolute;
  width: 546px;
  height: 519px;
}

@media (max-width: 546px) {
  :root {
    --miniMap-size: 100px;
    --font-size: 25px;
  }
  #map {
    width:  100%;
    height: 350px;
  }
}

#miniMap {
  position: absolute;
  bottom: 4px;
  left: 4px;
  border: 1px solid black;
  z-index: 1000;
  width: var(--miniMap-size);
  height: var(--miniMap-size);
}

.overhead {
  color: grey;
  margin:-8px 32px -11px 0;
  text-align:right;
  font-style: italic;
}

.header p {
  color:white;
  padding-left: 8px;
  margin: 0;
  text-align: left;
  font-size: 1.2em;
}

.header {
  text-align: left;
  font-weight: bold;
  margin-top: 12px;
  padding-left: 0;
}
 
.WSCHÓD .header {   background-color: navy; }
.ZACHÓD .header {   background-color: darkred; }
.POLSKA .header {   background-color: darkgreen; }
.WSCHÓD .position { color: navy; }
.ZACHÓD .position { color: darkred; }
.POLSKA .position { color: darkgreen; }

.header.hr{
  margin-top:  0;
  height: 1px;
  border: none;
 }

 
.leaflet-container a.leaflet-popup-close-button {
  display: block;
  color: black;
}
.leaflet-container a.leaflet-popup-close-button:hover {
  color: blue;
}

.leaflet-popup {
  width: 240px;
}

.leaflet-popup-content-wrapper {
  position: relative; 
  width: 160px;
}

.leaflet-popup-content {
  white-space:       normal;
  word-wrap:     break-word;
  overflow-wrap: break-word;
  line-height:   1.8em;
  font-family:Verdana, Geneva, Tahoma, sans-serif;
  margin: 12px;
}
 
@media (max-width: 546px) {
  .leaflet-container a.leaflet-popup-close-button {
    font-weight: bold;
    font-size:   0.67em;
    line-height:   4px;
  }
  .leaflet-popup {
    width: 160px;
  }

  .leaflet-popup-content {
    font-size: 0.67em;
    margin:       6px;
    max-width:   92%;
    box-sizing: border-box; 
  }
}

@media (min-width: 547px) {
  .leaflet-popup-content-wrapper {
    width: auto !important;
  }
  .leaflet-popup-content {
    font-size:    1em;
    margin:      12px;
    max-width:   92%;
  }
}

.leaflet-popup-tip {
  display: none;
}

.custom-div-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.centered-text {
  color: darkgreen;
  background-color: none;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: var(--font-size);
  pointer-events: none;
  transform: translate(calc(var(--miniMap-size)/5 - 5px), calc(9.0px - var(--miniMap-size) * 9/20))
}