/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

body {
  /*padding-bottom: 40px;*/
  
}


/* 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: 1170;
}


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

/* Carousel base class */
.carousel {
  height: 700px;
  /*top:-30px;*/
  margin-bottom: 10px;
}


/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  z-index: 10;
}
.carousel-caption.text-right, .carousel-caption.text-right * {
   text-align:right !important;
}

.carousel-caption h2 {
	color:#fff;
}

/* Declare heights because of positioning of img element */
.carousel .item {
  height: 700px;
  background-color: #777;
}
.carousel-inner > .item > img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  height: 500px;
}


/* PAGE HERO  */

/*#page-hero.carousel {
	background-size: cover !important;
    background-repeat: no-repeat;
}

#page-hero.carousel .item {
  height: 370px;
  background-color: #777;
}

#page-hero.carousel .carousel-inner > .item > .img {
	background-size:cover !important;
    background-repeat: no-repeat;
	background-position:center;
}
*/

#page-hero, #page-hero-m {
	position:relative;
	/*top:-30px !important;*/
	background-size: cover !important;
	background-repeat: no-repeat;
	background-position: 50% 100%;
	background-attachment:fixed;
	height: 540px;
	background-color: #777;
	-webkit-transition: height 1s ease-in-out;
	-moz-transition: height 1s ease-in-out;
	transition: height 1s ease-in-out;
}

body.shrink #page-hero {
	height:300px;
}

@media (max-width:767px) {
	#page-hero-m {  
		height: 270px; 
		background-attachment:scroll;
	}
}



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

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 20px;
  text-align: center;
}
.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;
}


/* RESPONSIVE CSS
-------------------------------------------------- */




@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: 0px;
  }

  /* 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 (min-width: 992px) {
  .featurette-heading {
    margin-top: 120px;
  }
}





/* FADING VERSION
-------------------------------------------------- */

.carousel.fade {
  opacity: 1;
}
.carousel.fade .item {
  -moz-transition: opacity ease-in-out .7s;
  -o-transition: opacity ease-in-out .7s;
  -webkit-transition: opacity ease-in-out .7s;
  transition: opacity ease-in-out .7s;
  left: 0 !important;
  opacity: 0;
  top:0;
  position:absolute;
  width: 100%;
  display:block !important;
  z-index:1;
}
.carousel.fade .item:first-child {
  top:auto;
  position:relative;
}
.carousel.fade .item.active {
  opacity: 1;
  -moz-transition: opacity ease-in-out .7s;
  -o-transition: opacity ease-in-out .7s;
  -webkit-transition: opacity ease-in-out .7s;
  transition: opacity ease-in-out .7s;
  z-index:2;
}

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


.carousel.fade .item .overlay {
	width:100%;
	height:100%;
	position:absolute;
	top:0;
	left:0;
	z-index:999;
	background:rgba(0,0,0,0.3) url(/images/pattern-1.png) repeat;
}




/*   ========================== shrinking hero ================================  */
.carousel, .carousel.shrink, .carousel .item, .carousel.shrink .item {
	-webkit-transition: height 1s ease-in-out, opacity ease-in-out .7s !important;
	-moz-transition: height 1s ease-in-out, opacity ease-in-out .7s !important;
	transition: height 1s ease-in-out, opacity ease-in-out .7s !important;
	overflow:hidden !important;

}

/*.carousel.shrink, .carousel.shrink .item, .carousel.shrink .item .container  {
	height: 500px !important;
	top:0px !important;
}*/

/*#fullpage .carousel, #fullpage .carousel-inner, #fullpage .carousel .item  {
	height: 100% !important;
	top:0px !important;
}
*/

.carousel-caption, .carousel-caption h2, .carousel-caption p, .carousel-inner > .item  .btn {
	font-family: 'proza', Georgia, Times, serif !important;
	text-align: left;
	
	-webkit-text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8);
	-moz-text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8);
	text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.8);
}
	

.carousel-inner > .item  .btn {
	background:none !important;
	border:1px solid #fff;
	
	-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
	box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.75), 0px 0px 3px 0px rgba(0,0,0,0.75) inset;
}


.carousel-inner > .item > .img , .carousel-inner > .item > a > .img {
	
		overflow: hidden;
	
		/*-webkit-transition: height 0.8s ease-in-out !important;
		-moz-transition: height 0.8s ease-in-out !important;
		transition: height 0.8s ease-in-out !important;*/
		
		background-color:#fff !important;
		background-size: cover !important; 
		
		/*background-position: 50% 50% !important;*/
		background-repeat:no-repeat !important;
		
		background-attachment:scroll;
		background-attachment:fixed;
		height:100%;
	
		position: absolute;
		top: 0;
		left: 0;
		width:auto !important;
		height:auto !important;
		min-width: 100% !important;
		min-height: 100% !important;
		max-width: 1000% !important;
		max-height: 1000% !important;
}

@media (max-width:1600px) {
	.carousel {
	  	height: 700px;
	}
	.carousel .item {
		height:700px;
	}
}

@media (max-width:1289px) {
	.carousel {
	  	height: 600px;
	}
	.carousel .item {
		height:600px;
	}
	
	.carousel-caption {
		
	}
	
	.carousel-caption p {
		margin-bottom: 20px;
		font-size: 18px !important;
		line-height: 1.2;
	}
	
	.carousel-caption h2 {
		font-size:28px;
	}

}

@media (max-width:1169px) {
	.carousel-inner > .item > .img , .carousel-inner > .item > a > .img {
		background-size: cover !important; 
		background-position:50% !important;
	}
}


@media (max-width:991px) {

	.carousel-inner > .item > .img , .carousel-inner > .item > a > .img {
		background-size: cover !important; 
		background-position:50% !important;
	}
	
	.carousel, .carousel .item, .carousel .item .container  {
		height: 400px !important;
	}
	.carousel.shrink, .carousel.shrink .item, .carousel.shrink .item .container  {
		height: 200px !important;
	}

	.carousel-caption p {
		font-size:18px;
	}

}

@media (max-width:767px) {

	.carousel, .carousel .item, .carousel .item .container  {
		height: 350px !important;
	}
	.carousel.shrink, .carousel.shrink .item, .carousel.shrink .item .container  {
		height: 350px !important;
	}

	.carousel-caption p {
		display:none;
	}


}

@media (max-width:480px) {

	.carousel, .carousel .item, .carousel .item .container  {
		height: 250px !important;
	}
	.carousel.shrink, .carousel.shrink .item, .carousel.shrink .item .container  {
		height: 250px !important;
	}

	.carousel-inner > .item > .img , .carousel-inner > .item > a > .img {
		background-size: cover !important; 
	}

}

