#maps {
  display:flex;
  position: relative;
  flex-wrap: wrap;
  max-width: 1260px;
  margin: 0 auto;
  gap: 20px;
  justify-content: space-between;
}
#maps.init:before {
  position: absolute;
  display: none;
  content: " ";
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 3px;
  z-index:15;
  background-color: rgb(17, 45, 60, 0.5);
}
  #maps.init div.map:before {
    position: absolute;
    opacity: 1;
    visibility: visible;
    content: " ";
    top:0;
    left:0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: #0b1133 url('/images/icons/heroes-nexus.png') no-repeat center center;
  }

#maps div.map {
  position: relative;
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  min-width: 200px;
  max-width: 400px;
  background: black;
  border: 4px solid #402969;
  color: #6cf;
  transition: 0.2s linear box-shadow, 0.2s linear transform;
}
  #maps div.map:before {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    content: " ";
    top:0;
    left:0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: #0b1133 url('/images/icons/heroes-nexus.png') no-repeat center center;
  }

  #maps div.map:hover {
    box-shadow: 0 0 10px 5px #64c5e7;
  }

  #maps div.map.shuffle {
    transform: rotateY(180deg);
  }

  #maps div.map.shuffle:before {
    visibility: visible;
    opacity: 1;
  }

#maps div.map[data-position]:after {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  font-weight: bold;
  text-align: center;
  width: 2em;
  height: 2em;
  background: rgba(10,10,10,0.5);
  border-radius: 1em;
  content: attr(data-position);
}

#maps div.map .img {
  flex: 0 0 auto;
  /*width: 192px;*/
  /*height: 144px;*/
  /*width: 288px;*/
  /*height: 216px;*/
  aspect-ratio: 960/720;
  object-fit: cover;
  margin: 5px;
  background: no-repeat center center;
  background-size: 100%;
  transition: 0.1s linear all;
}
  #maps div.map:hover .img {
    background-size: 120%;
  }

#maps div.map .name {
  display: flex;
  align-items: center;
  font-size: 24px;
  text-transform: uppercase;
  padding:10px;
  min-height: 3em;
}
