.grid-wrapper {
  width: 100%;
  height: 500px;
  display: -ms-grid;
  display: grid;
  gap: 10px;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  -ms-grid-rows: 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "map";
  margin-bottom: 60px;
  padding-top: 10px;
}

#map {
  background: #645945;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -ms-grid-row: 2;
  -ms-grid-row-span: 2;
  -ms-grid-column: 2;
  grid-area: map;
  border-radius: 20px;
  z-index: 0;
}

.leaflet-tile-pane {
  filter: invert(1) saturate(9) sepia(1) !important;
}

.leaflet-bottom.leaflet-right {
  display: none;
}

.leaflet-bottom.leaflet-left {
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 0.05fr 1fr;
  grid-template-rows: 1fr;
  width: 100%;
  padding: 0 10px;
  align-items: end;
}

.map__full-screen-button:hover {
  background: #e0e0e0;
}

#map {
  background: #645945;
  transition: all 0.5s;
}

#map .map__param-changer {
  padding: 6px 0;
  font: 12px Arial, Helvetica, sans-serif;
  background: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  line-height: 24px;
  color: #555;
  border-radius: 4px;
  display: flex;
  font-weight: 600;
  justify-content: center;
  align-items: center;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  margin-left: 0;
  width: 26px;
}

#map .map__param-changer .param-changer__button--confirmed {
  color: #edb021;
}

#map .map__param-changer .param-changer__button--deaths {
  color: #d2374a;
}

#map .map__param-changer .param-changer__button--recovered {
  color: #5d9700;
}

#map .map__param-changer .param-changer__button--active {
  background: #532f0b;
}

#map .map__param-changer button {
  background: none;
  display: flex;
  padding: 3px 1px;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

#map .map__param-changer button:hover {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#map .map__param-changer button span {
  font-size: 24px;
}

#map .map__param-changer .param-changer__param-title {
  position: absolute;
  background: #fff;
  text-transform: uppercase;
  padding: 3px 5px;
  width: 90px;
  transition: all 0.5s;
  color: #645945;
  pointer-events: none;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

#map .map__param-changer .param-changer__param-title--hide {
  width: 0;
  left: 0 !important;
  transition: all 0.5s;
  z-index: 1;
}

#map .map__param-changer .param-changer__param-title--hide .param-title__text {
  opacity: 0;
  transition: 0.5s;
}

#map .map__legend {
  padding: 6px;
  font: 12px Arial, Helvetica, sans-serif;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  line-height: 24px;
  color: #555;
  border-radius: 10px;
  display: flex;
  font-weight: 600;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 10px;
  width: 45px;
}

#map .map__legend span {
  justify-self: center;
  position: relative;
  margin-left: 3px;
  margin-right: 10px;
    text-align: center;
}

#map .map__legend i {
  width: 18px;
  height: 18px;
  float: left;
  opacity: 0.7;
}

#map.map--fullscreen {
  width: calc(100vw - 20px);
  height: calc(100vh - 20px);
  position: absolute !important;
  z-index: 4;
  transition: all 0.5s;
}

.map__tooltip {
  background-color: #27231f;
  border-radius: 8px;
  width: 110px;
    height: 45px;
  position: absolute;
  top: 100px;
  left: 100px;
  z-index: 1000;
  text-align: center;
  color: #fff;
  line-height: 1.2;
  font-size: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.map__tooltip--hide {
  display: none;
}

.leaflet-tile-pane {
  -webkit-filter: invert(1) saturate(9) sepia(1) !important;
  filter: invert(1) saturate(9) sepia(1) !important;
}

.map__legend {
  padding: 6px 8px;
  font: 12px Arial, Helvetica, sans-serif;
  background: rgba(255, 255, 255, 0.8);
  -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  line-height: 24px;
  color: #555;
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-weight: 600;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.map__legend span {
  position: relative;
  margin-left: 3px;
  margin-right: 10px;
}

.map__legend i {
  width: 18px;
  height: 18px;
  float: left;
  opacity: 0.7;
}

.leaflet-bottom.leaflet-right {
  display: none;
}

.leaflet-bottom.leaflet-left {
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

#map .map__param-changer {
  padding: 6px 8px;
  font: 12px Arial, Helvetica, sans-serif;
  background: rgba(255, 255, 255, 0.8);
  -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  line-height: 24px;
  color: #555;
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-weight: 600;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
