@import url(https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,700,500italic,900,700italic,900italic);

* { 
  font-family: 'Roboto', sans-serif; 
  line-height: 1.2; 
  vertical-align: middle; 
  box-sizing: border-box;
}

body {
  margin: 0px;
  padding: 0px;
  background:#222;
  font-family: 'Roboto', sans-serif;
}


main {
  display:block;
  position:relative;
  width:100%;
  margin: 0;
  padding:0 0;
  background:#d5d5d5;
  overflow:hidden;
}

header {
  position:absolute;
  z-index:0;
  top:0; left:0; right:0;
  height:10rem;
  transition:transform .5s, opacity .3s;
 background:url(https://img1.etsystatic.com/000/0/6721865/il_570xN.306922333.jpg)  center bottom;
  background-size: cover;
}

input, .card {
  position:relative;
  z-index:2;
}
input {
  box-sizing:border-box;
  display:block;
  width:calc(100% - 2rem);
  margin:4.5rem 1rem 2rem;
  border:0;
  font-size:1.2rem;
  padding:.75rem 1rem;
  border-radius:3px;
  box-shadow:0 1px 2px #aaa;
  transition:.5s, margin-bottom .15s;
  
}


input:focus {
  margin:0 1rem 1rem;
  outline:0;
}

input:focus + header {
  transform:translate3d(0,-10rem,0);
  opacity:0;
}

.cards {
  margin-top: calc(40px + 40vw);
  /* float:left; */
  /* width: 40%; */
}

.card {
  
  overflow:hidden;
  box-shadow:0 1px 2px #aaa;
  background:white;
  margin:0 1rem 1rem;
  border-radius:3px;
  user-select:none;
  animation:fly-in-from-left .5s 1s ease both;
  transform-origin:top left;
}
.card > h5 {
  margin: 1.25rem 1.5rem 0rem 2rem;
  margin-left: 3rem;
  padding: 0px;
}

.card > p {
  margin: 1rem 1.5rem 0rem 1.5rem;
}

.card > img {
  width: calc(100% - 3rem);
  margin: 1rem 1.5rem 0rem 1.5rem;
}

.card > .action {
  padding: 1rem 1.5rem 0rem 1.5rem;
  height:50px;
  color: #AAA;
  cursor: pointer;
  margin-top: 1rem;
  
}

.card:nth-child(even){
  animation-name:fly-in-from-right;
  animation-delay:1.1s;
 transform-origin:top right;
}

.card >.action {
  border-top: 1px solid #EEE;
}

@keyframes fly-in-from-left {
  from {
    transform:translateY(15rem) rotate(15deg);
    opacity:0;
  }
}

@keyframes fly-in-from-right {
  from {
    transform:translateY(15rem) rotate(-15deg);
    opacity:0;
  }
}

.card:before {
  position:absolute;
  top:1rem;
  left:1rem;
  background: url(http://mallatbayplaza.com/media/catalog/product/cache/1/small_image/42x/9df78eab33525d08d6e5fb8d27136e95/a/e/aed_icon.jpg);
  content:"";
  background-size: 100%;
  background-repeat: no-repeat;
  height: 1.5rem;
  width: 1.5rem;
  pointer-events:none;
  
}

h1 {
  font-size:2rem;
  font-weight:200;
}
  strong {
    font-weight:300;
    color:#539D00;
  }

h2 {
  font-size:.9rem;
  line-height:2.5;
  color:gray;
  font-weight:400;
}

.map {
  height:12rem;
  background:whitesmoke;
  margin:.5rem 0 0 -1.5rem;
  width:28rem;

}

#map-canvas { 
  position: relative !important;
  z-index: 99 !important;
  top: 10rem !important;
  border-bottom: 1px solid #AAA; 
  /* width: 60%;  */
  margin: 0; 
  padding: 0;  
}

.fab {
  text-decoration:none;
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index:500;
  padding: 15px 23px;
    border:none;
    font-size:1.5em;
    color:white;
    background-color: #ff4081;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: auto;
    -webkit-box-shadow: 2px 3px 3px 0px rgba(41, 41, 41, .3);
       -moz-box-shadow: 2px 3px 3px 0px rgba(41, 41, 41, .3);
            box-shadow: 2px 3px 3px 0px rgba(41, 41, 41, .3);
}

.fab:hover {
  background-color: #ff4060;
}

@media screen and (min-width: 500px) {

    #map-canvas {
      height:35vw;
      /* float:right; */
    }
    .cards {
      margin-top: calc(25vh);
      /* position: fixed; */
  		/* overflow: scroll; */ /* or hidden */
  		 /* height:35vw; */
    }

    .card {
      width: calc(33vw - 2rem);
      display: inline-block;
    }
}
