* {
  box-sizing: border-box;
}

.hero {
  width: 100%;
  // height: 100%;
  min-height: 200px;
  position: relative;
  top: 0;
  left: 0;
  margin-bottom:-150px;
  background-color: #d9edfd,
  //transform: translate3d(0,0,0); 
}

@each $index, $speed, $height in (1, 20s, 136px),
                                 (2, 30s, 145px),
                                 (3, 55s, 158px),
                                 (4, 75s, 468px),
                                 (5, 95s, 311px),
                                 (6, 120s, 222px) {
  .layer-#{$index} {
    animation: parallax_fg linear $speed infinite both;
    background:  url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/24650/#{$index}.png) 0 100% repeat-x;
    z-index: 1;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size:  auto $height;
  }
}

.bike-1,
.bike-2 {
  background:  url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/24650/bike.png) 0 100% no-repeat;
  z-index: 1;
  position: absolute;
  bottom: 100px;
  left: 0;
  width: 100%;
  height: 100%;
  background-size:  auto 75px;
}

.bike-1 {
  animation: parallax_bike linear 10s infinite both;
}

.bike-2 {
  animation: parallax_bike linear 15s infinite both;
}



@keyframes parallax_fg {  
  0% { background-position: 2765px 100%; } 
  100% {background-position: 550px 100%; } 
}

@keyframes parallax_bike {  
  0% { background-position: -300px 100%;} 
  100% {background-position: 2000px 100%; } 
}
  
  img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    @media (max-width: 700px) {
      max-width: 90%;
    }
  }
}


.dark-bg {
  background-color: #12212f;
  padding: 50px 50px;
  img {
    display: block;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
  }
}