@import url("https://fonts.googleapis.com/css?family=Questrial");
body {
  font-family: "Questrial", sans-serif;
}

.outer {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 400px;
  width: 400px;
  margin-top: -200px;
  margin-left: -200px;
  color: #29434E;
  border-radius: 2px;
  box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.3);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

.map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #546E7A;
}
.map svg {
  fill: #29434E;
}

.marker {
  position: absolute;
  z-index: 5;
  top: 151px;
  left: 176px;
  font-size: 0;
  cursor: pointer;
  -webkit-transform: perspective(600px) rotateY(0deg);
          transform: perspective(600px) rotateY(0deg);
  opacity: 1;
  transition: all 0.5s ease 0.4s;
}
.marker.inactive {
  -webkit-transform: perspective(600px) rotateY(-90deg);
          transform: perspective(600px) rotateY(-90deg);
  opacity: 0;
  transition: all 0.5s ease;
}
.marker svg {
  fill: #5DDEF4;
  -webkit-animation: hovering 1s ease-in-out infinite alternate;
          animation: hovering 1s ease-in-out infinite alternate;
}
.marker .shadow {
  width: 18px;
  height: 4px;
  background: #263238;
  border-radius: 50%;
  margin: 5px auto 0 auto;
  -webkit-animation: shadow 1s ease-in-out infinite alternate;
          animation: shadow 1s ease-in-out infinite alternate;
}

.card {
  position: absolute;
  z-index: 10;
  width: 240px;
  height: 190px;
  top: 105px;
  left: 80px;
  border-radius: 3px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 4px 8px 12px 0 rgba(0, 0, 0, 0.2);
  text-align: center;
  -webkit-transform: perspective(600px) rotateY(90deg);
          transform: perspective(600px) rotateY(90deg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
}
.card.active {
  -webkit-transform: perspective(600px) rotateY(0deg);
          transform: perspective(600px) rotateY(0deg);
  opacity: 1;
  pointer-events: all;
  transition: all 0.5s ease 0.4s;
}
.card img {
  margin-bottom: 18px;
}
.card p {
  font-weight: 400;
  font-size: 12px;
  line-height: 17px;
  margin: 2px 0;
}
.card p.name {
  font-size: 14px;
  line-height: 19px;
  font-weight: 600;
}
.card .actions {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
}
.card .actions a {
  float: left;
  width: 50%;
  text-align: center;
  line-height: 40px;
  text-decoration: none;
  color: #007C91;
  font-weight: 400;
  font-size: 12px;
}
.card .actions .divide {
  position: absolute;
  width: 1px;
  height: 20px;
  left: 50%;
  top: 10px;
  background: #B2EBF2;
}

@-webkit-keyframes hovering {
  from {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
  to {
    -webkit-transform: translate3d(0, -5px, 0);
            transform: translate3d(0, -5px, 0);
  }
}

@keyframes hovering {
  from {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
  to {
    -webkit-transform: translate3d(0, -5px, 0);
            transform: translate3d(0, -5px, 0);
  }
}
@-webkit-keyframes shadow {
  from {
    -webkit-transform: scale(1) translate3d(0, 0, 0);
            transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    -webkit-transform: scale(1.25) translate3d(0, 0, 0);
            transform: scale(1.25) translate3d(0, 0, 0);
  }
}
@keyframes shadow {
  from {
    -webkit-transform: scale(1) translate3d(0, 0, 0);
            transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    -webkit-transform: scale(1.25) translate3d(0, 0, 0);
            transform: scale(1.25) translate3d(0, 0, 0);
  }
}
