* {
  box-sizing: border-box;
}
#banners {
  margin-top: 120px;
  height: 100vh;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  .banner {
    animation: bannerOne 20s linear infinite;
    height: 100%;
    position: absolute;
    width: 100%;
    padding: 120px 40px 40px 40px;
    &.one,
    &.two,
    &.three {
      h2 {
        span {
          display: block;
        }
      }
      .image {
        height: 100%;
        position: absolute;
        top: 0;
        width: 50%;
      }
    }
    &.one {
      background: linear-gradient(rgba(14,14,22,0.6), rgba(14,14,22,0.6)), url('../img/banner.jpg');
      .image {
        background: url("http://placehold.it/400x400") no-repeat right center;
        background-size: 100%;
        right: 0;
      }
    }
    &.two {
      animation-name: bannerTwo;
      background: linear-gradient(rgba(14,14,22,0.6), rgba(14,14,22,0.6)), url('../img/banner-2.jpg');
      .image {
        background: url("http://placehold.it/1000x200") no-repeat center bottom;
        background-size: 100%;
        top: 50%;
        height: 50%;
        width: 100%;
      }
    }
    &.three {
      animation-name: bannerThree;
      background: linear-gradient(rgba(14,14,22,0.6), rgba(14,14,22,0.6)), url('../img/banner-3.jpg');
      .image {
        background: url("http://placehold.it/400x400") no-repeat left center;
        background-size: 100%;
        left: 0;
      }
    }
  }
}

@keyframes bannerOne{
  0% {
    left: 0;
  }
  31% {
    left: 0;
  }
  34% {
    left: -100%;
  }
  97% {
    left: 100%;
  }
  100%{
    left: 0;
  }
}

@keyframes bannerTwo{
  0% {
    left: 100%;
  }
  31% {
    left: 100%;
  }
  34% {
    left: 0;
  }
  64% {
    left: 0;
  }
  67% {
    left: -100%;
  }
  100%{
    left: -100%;
  }
}

@keyframes bannerThree{
  0% {
    left: 100%;
  }
  64% {
    left: 100%;
  }
  67% {
    left: 0;
  }
  97% {
    left: 0;
  }
  100%{
    left: -100%;
  }
}

/* small */
@media (min-width: 321px) and (max-width: 728px) {
  .banner {
    height: 100%;
  }
  .banner h2 {
    text-align: left!important;
    width: 100% !important;
    padding: 0 0 20px 0 !important;
  }
}

/* medium */
@media (min-width: 729px) and (max-width: 960px) {
  .banner {
    height: 100%;
  }
}

/* large */
@media (min-width: 961px){
  .banner {
      height: 100%;
  }
}


/* Position text in the middle of the page/image */
.bg-text {
  color: white;
  font-weight: bold;
}

.bg-text h2 {
  font-size: 60px;
  color: #ffffff;
  font-weight: normal;
}

.bg-text h2 b {
  font-weight: normal;
}

.bg-text h3 {
  line-height: 40px;
  font-size: 30px;
  max-width: 450px;
  position: relative;
  padding: 14px 0;
  font-weight: 300;
}

.bg-text h3:after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100px;
  height: 2px;
  background-color: #85be49;
}

.bg-text__anchor {
  display: inline-block;
  padding: 14px 25px;
  border-radius: 3px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .5px;
  line-height: 1.6;
  margin-right: 30px;
  margin-bottom: 30px;
  color: #ffffff;
  background-color: #85BE49;
  margin-top: 20px;
  text-decoration: none;
}

@media (max-width: 960px) {
  #banners {
    height: 60vh;
  }
  .bg-text h2 {
    font-size: 40px;
  }
  .bg-text h3 {
    font-size: 20px;
    line-height: 30px;
  }
  .banner {
    padding: 40px!important;
  }
}