html,
body {
  overflow-x: hidden; /* Prevent scroll on narrow devices */
}
/* CUSTOMIZE THE NAVBAR
-------------------------------------------------- */

/* Special class on .container surrounding .navbar, used for positioning it into place. */
.navbar-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
}

/* Flip around the padding for proper display in narrow viewports */
.navbar-wrapper > .container {
  padding-right: 0;
  padding-left: 0;
}
.navbar-wrapper .navbar {
  padding-right: 15px;
  padding-left: 15px;
}
.navbar-wrapper .navbar .container {
  width: auto;
}


/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
  height: 350px;
  margin-bottom: 0px;
}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  z-index: 10;
}
.carousel-caption {
    left: 10%;
    padding-bottom: 30px;
    max-width: 600px;
    right: 20%;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 1);
    text-align: center;
}

/* Declare heights because of positioning of img element */
.carousel .item {
  height: 325px;
  background-color: inherit;
}
/*.carousel-inner > .item > img {
    max-height: 350px;
    position: absolute;
    right: 10%;
    top: 0;
    width: auto;
}*/
/*.carousel-inner > .item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
}*/

.carousel-inner > .item > img {
    height: auto;
    left: 0;
    max-height: 600px;
    min-width: 100%;
    position: absolute;
    top: 0;
}


/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 20px;
  text-align: left;
}
.marketing h2 {
  font-weight: normal;
}
.marketing .col-lg-4 p {
  margin-right: 10px;
  margin-left: 10px;
}


/* Featurettes
------------------------- */

.featurette-divider {
  margin: 80px 0; /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */
.featurette-heading {
  font-weight: 300;
  line-height: 1;
  letter-spacing: -1px;
}

/*
  Bootstrap Carousel Fade Transition (for Bootstrap 3.3.x)
  CSS from:       http://codepen.io/transportedman/pen/NPWRGq
  and:            http://stackoverflow.com/questions/18548731/bootstrap-3-carousel-fading-to-new-slide-instead-of-sliding-to-new-slide
  Inspired from:  http://codepen.io/Rowno/pen/Afykb 
*/
.carousel-fade .carousel-inner .item {
  opacity: 0;
  transition-property: opacity;
}

.carousel-fade .carousel-inner .active {
  opacity: 1;
}

.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
  left: 0;
  opacity: 0;
  z-index: 1;
}

.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
  opacity: 1;
}

.carousel-fade .carousel-control {
  z-index: 2;
}

.carousel-indicators{
	bottom: 1px;
	margin-bottom: 0px;
}

.carousel-indicators li{
	vertical-align: middle!important;
}

 .carousel-inner {
    margin-bottom:0px;
 }

.module {
    background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6)) repeat scroll 0 0 rgba(0, 0, 0, 0);
    height: 100%;
    overflow: hidden;
    position: absolute;
    width: 100%;
    z-index: 1;
}

/* Banners
-------------------------------------------------- */
.carousel-caption > h1.heading {
    vertical-align: bottom;
    color: #0075A2;
    margin: 6% 30px;
    background-color: rgba(255, 255, 255, 0.85);
    text-shadow:none;
    padding: 0px 20px;
    min-height: 60px;
	vertical-align: middle;
}

.internal .carousel-caption {
    width: inherit;
    max-width: inherit;
    left: auto;
    right: auto;
    position: relative;
    margin-top: 100px;

  }

/* RESPONSIVE CSS
-------------------------------------------------- */
@media (max-width:450px) {
	.carousel-caption {
	    left: 10%;
	    padding-bottom: 30px;
	    max-width: 600px;
	    right: 10%;
	}
  .carousel-inner .item > img {
    left: -55%;
  }
}

@media screen and (max-width: 767px) {
  .row-offcanvas {
    position: relative;
    -webkit-transition: all .25s ease-out;
         -o-transition: all .25s ease-out;
            transition: all .25s ease-out;
  }

  .row-offcanvas-right {
    right: 0;
  }

  .row-offcanvas-left {
    left: 0;
  }

  .row-offcanvas-right
  .sidebar-offcanvas {
    right: -50%; /* 6 columns */
  }

  .row-offcanvas-left
  .sidebar-offcanvas {
    left: -50%; /* 6 columns */
  }

  .row-offcanvas-right.active {
    right: 50%; /* 6 columns */
  }

  .row-offcanvas-left.active {
    left: 50%; /* 6 columns */
  }

  .sidebar-offcanvas {
    position: absolute;
    top: 0;
    width: 50%; /* 6 columns */
  }
}

@media (min-width: 768px) {

  /* Navbar positioning foo */
  .navbar-wrapper {
    margin-top: 20px;
  }
  .navbar-wrapper .container {
    padding-right: 15px;
    padding-left: 15px;
  }
  .navbar-wrapper .navbar {
    padding-right: 0;
    padding-left: 0;
  }

  /* The navbar becomes detached from the top, so we round the corners */
  .navbar-wrapper .navbar {
    border-radius: 4px;
  }

  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 20px;
    font-size: 21px;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 50px;
  }
}



@media (max-width: 825px) {
	.carousel-inner .item > img {
	    height: 100%;
	    margin: 0 auto;
	    min-width: 817px;
	    width: 100%;
	}

}
/*@media (min-width: 300px) and (max-width: 825px) {
	.carousel-inner > .item > img {
	    height: 100%!important;
	    left: 0;
	    position: absolute;
	    top: 0;
	    width: auto;
	}
	.carousel .item {
	    background-color: green;
	    height: 325px;
	}
}*/

@media (min-width: 992px) {
  .featurette-heading {
    margin-top: 120px;
  }
}

@media (min-width: 1025px) {
 	.carousel-inner > .item > img {
	    top: -25%;
	}
}

@media (min-width: 1225px) {
	.carousel-inner > .item > img {
	  top: -50%;
	}

}

 @media (min-width: 1224px) and (max-width: 1393px)  {
     .carousel-caption {
         left: 10%;
         max-width:550px!important;
         padding-bottom: 30px;
         right: 20%;
     }
       .internal .carousel-caption {
        width: inherit;
        max-width: inherit!important;
      }

    }

@media all and (transform-3d), (-webkit-transform-3d) {
    .carousel-fade .carousel-inner > .item.next,
    .carousel-fade .carousel-inner > .item.active.right {
      opacity: 0;
      -webkit-transform: translate3d(0, 0, 0);
              transform: translate3d(0, 0, 0);
    }
    .carousel-fade .carousel-inner > .item.prev,
    .carousel-fade .carousel-inner > .item.active.left {
      opacity: 0;
      -webkit-transform: translate3d(0, 0, 0);
              transform: translate3d(0, 0, 0);
    }
    .carousel-fade .carousel-inner > .item.next.left,
    .carousel-fade .carousel-inner > .item.prev.right,
    .carousel-fade .carousel-inner > .item.active {
      opacity: 1;
      -webkit-transform: translate3d(0, 0, 0);
              transform: translate3d(0, 0, 0);
    }
}

