.bs-slider{
    overflow: hidden;
    max-height: 700px;
    position: relative;
   /* background: #000000;*/
}
.bs-slider:hover {
    cursor: -moz-grab;
    cursor: -webkit-grab;
}
.bs-slider:active {
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}
.bs-slider .bs-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.40);
}
.bs-slider > .carousel-inner > .item > img,
.bs-slider > .carousel-inner > .item > a > img {
    margin: auto;
    width: 100% !important;
}

/********************
*****Slide effect
**********************/

.fade {
    opacity: 1;
}
.fade .item {
    top: 0;
    z-index: 1;
    opacity: 0;
    width: 100%;
    position: absolute;
    left: 0 !important;
    display: block !important;
    -webkit-transition: opacity ease-in-out 2s;
    -moz-transition: opacity ease-in-out 2s;
    -ms-transition: opacity ease-in-out 2s;
    -o-transition: opacity ease-in-out 2s;
    transition: opacity ease-in-out 2s;
}
.fade .item:first-child {
    top: auto;
    position: relative;
}
.fade .item.active {
    opacity: 1;
    z-index: 2;
    -webkit-transition: opacity ease-in-out 2s;
    -moz-transition: opacity ease-in-out 2s;
    -ms-transition: opacity ease-in-out 2s;
    -o-transition: opacity ease-in-out 2s;
    transition: opacity ease-in-out 2s;
}


/*---------- LEFT/RIGHT ROUND CONTROL ----------*/
.control-round .carousel-control {
    top: 47%;
    opacity: 0;
    width: 45px;
    height: 45px;
    z-index: 100;
    color: #ffffff;
    display: block;
    font-size: 24px;
    cursor: pointer;
    overflow: hidden;
    line-height: 43px;
    text-shadow: none;
    position: absolute;
    font-weight: normal;
    background: transparent;
    -webkit-border-radius: 100px;
    border-radius: 100px;
}
.control-round:hover .carousel-control{
    opacity: 1;
}
.control-round .carousel-control.left {
    left: 1%;
}
.control-round .carousel-control.right {
    right: 1%;
}
.control-round .carousel-control.left:hover,
.control-round .carousel-control.right:hover{
    color: #fdfdfd;
    background: rgba(0, 0, 0, 0.5);
    border: 0px transparent;
}
.control-round .carousel-control.left>span:nth-child(1){
    left: 45%;
}
.control-round .carousel-control.right>span:nth-child(1){
    right: 45%;
}

/*---------- SLIDE CAPTION ----------*/
.slide_style_left {
    text-align: left !important;
}
.slide_style_right {
    text-align: right !important;
}
.slide_style_center {
    text-align: center !important;
}

.slide-text {
    left: 0;
    top: 25%;
    right: 0;
    margin: auto;
    padding: 10px;
    position: absolute;
    text-align: left;
    padding: 10px 85px;
    
}

.slide-text > h1 {
    
    padding: 0;
    color: #ffffff;
    font-size: 70px;
    font-style: normal;
    line-height: 84px;
    margin-bottom: 30px;
    letter-spacing: 1px;
    display: inline-block;
    -webkit-animation-delay: 0.8s;
    animation-delay: 0.8s;
}
.slide-text > p {
    padding: 0;
    color: #ffffff;
    font-size: 20px;
    line-height: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 1px;
    -webkit-animation-delay: 1.2s;
    animation-delay: 1.2s;
}
.slide-text > a.btn-default{
    color: #000;
    font-weight: 400;
    font-size: 13px;
    line-height: 15px;
    margin-right: 10px;
    text-align: center;
    padding: 17px 30px;
    white-space: nowrap;
    letter-spacing: 1px;
    display: inline-block;
    border: none;
    text-transform: uppercase;
    -webkit-animation-delay: 4s;
    animation-delay: 4s;
    -webkit-transition: background 0.4s ease-in-out, color 0.4s ease-in-out;
    transition: background 0.4s ease-in-out, color 0.4s ease-in-out;

}
.slide-text > a.btn-primary{
    color: #ffffff;
    cursor: pointer;
    font-weight: 400;
    font-size: 13px;
    line-height: 15px;
    margin-left: 10px;
    text-align: center;
    padding: 17px 30px;
    white-space: nowrap;
    letter-spacing: 1px;
    background: #00bfff;
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    -webkit-animation-delay: 3s;
    animation-delay: 3s;
    -webkit-transition: background 0.4s ease-in-out, color 0.4s ease-in-out;
    transition: background 0.4s ease-in-out, color 0.4s ease-in-out;
}
.slide-text > a:hover,
.slide-text > a:active {
    color: #ffffff;
    background: #222222;
    -webkit-transition: background 0.6s ease-in-out, color 0.6s ease-in-out;
    transition: background 0.6s ease-in-out, color 0.6s ease-in-out;
}

#carousel-top .carousel-inner > .item > img,
#carousel-top .carousel-inner > .item > a > img {
    width: 100%;
    margin: auto;
}

#carousel-top #carouselButtons {
    margin-left: 0;
    position: absolute;
    bottom: 30px;
    left: 45px;
    z-index:2;
}

    #carousel-top #carouselButtons li {
        display: inline;
    }

#carousel-top .carousel-control.left {
        margin-left: 10px;
}

#carousel-top .carousel-control.right {
    margin-right: -30px;
}

#carousel-top .left.carousel-control:hover,#carousel-top .left.carousel-control:focus {
    background-position: -5px -45px;
    background-color: transparent;
    outline: 0;
}


#carousel-top #pauseButton:hover,#carousel-top #pauseButton:focus {
    background-position: -40px -45px;
    background-color: transparent;
    outline: 0;
}

#carousel-top .right.carousel-control:hover,#carousel-top .right.carousel-control:focus{
    background-position: -76px -45px;
    background-color: transparent;
    outline: 0;
}

#carousel-top #playButton:hover,#carousel-top #playButton:focus{
    background-position: -111px -45px;
    background-color: transparent;
    outline: 0;
}

#carousel-top #playButton {
    width: 27px;
    height: 27px;
    display: block;
    text-indent: -9999px;
    background-image: url(../images/carousel-controls.png);
    background-position: -111px -5px;
}

#carousel-top #pauseButton {
    width: 27px;
    height: 27px;
    display: block;
    text-indent: -9999px;
    background-image: url(../images/carousel-controls.png);
    background-position: -40px -5px;
}

#carousel-top .left.carousel-control {
    width: 27px;
    height: 27px;
    display: block;
    text-indent: -9999px;
    background-image: url(../images/carousel-controls.png);
    background-position: -5px -5px;
}

#carousel-top .right.carousel-control {
    width: 27px;
    height: 27px;
    display: block;
    text-indent: -9999px;
    background-image: url(../images/carousel-controls.png);
    background-position: -76px -5px;
}

#carousel-top #carouselButtons .carousel-control {
    opacity: 1;
}

#carousel-top .carousel-caption {
    text-shadow: none;
}

#carousel-top .carousel-caption {
    left: 0;
    bottom: 40px;
    text-align: left;
    position: absolute;
        height: 140px;
}

 .hpc-box .empty-hpc-text {
    display: none;
}
#carousel-top ul#carouselButtons {
    margin-bottom: 0px;
}

.hpc-box-container	{
	width: 960px;
	margin: 0 auto;
	position: relative;
}

 .hpc-box	{
	position: absolute;
    bottom: 30px;
    left: 55px;
    z-index: 20;}

 .hpc-box .hpc-text	{
	background:rgba(255,255,255, 0.8);
	width: 450px;
	height: 100px;
	box-sizing: border-box;
	padding: 15px;
	overflow:hidden;
}

 .hpc-box .hpc-text h2	{
	color: #000;
	font-size: 1.2em;
	font-weight: bold;
	margin: 0 0 .35em 0;
	text-transform: none;
}

 .hpc-box .hpc-text p	{
	color: #000;
	margin: 0;	
}

 .hpc-box .hpc-text a:focus 	{
	background-color: #fbf3d1;
}

 .hpc-box ul.hpc-controls	{
	list-style: none;
	padding: 10px 0 0 0;
	margin: 0;
}

 .hpc-box ul.hpc-controls li	{
	float: left;
	margin: 0 10px 0 0;
}

 .hpc-box ul.hpc-controls li a	{
	width: 27px;
	height: 27px;
	display: block;
	text-indent: -9999px;
	background-image: url('../Images/carousel/carousel-controls.png');
}
 .hpc-box ul.hpc-controls li a.prev	{
	background-position: -5px -5px;
}

 .hpc-box ul.hpc-controls li a.pause	{
	background-position: -40px -5px;
}

 .hpc-box ul.hpc-controls li a.next	{
	background-position: -76px -5px;
}

 .hpc-box ul.hpc-controls li a.prev:hover,
 .hpc-box ul.hpc-controls li a.prev:focus	{
	background-position: -5px -45px;
	background-color: transparent;
}

 .hpc-box ul.hpc-controls li a.pause:hover,
 .hpc-box ul.hpc-controls li a.pause:focus	{
	background-position: -40px -45px;
	background-color: transparent;
}

 .hpc-box ul.hpc-controls li a.next:hover,
 .hpc-box ul.hpc-controls li a.next:focus	{
	background-position: -76px -45px;
	background-color: transparent;
}
 .carousel .ms-webpartzone-cell{
     margin:0;
 }
 .carousel{
     height:auto!important;
 }

 .carousel .ms-webpart-chrome-vertical,.carousel .ms-webpart-cell-vertical
{
	display:block;
} 
/*------------------------------------------------------*/
/* RESPONSIVE
/*------------------------------------------------------*/

@media (min-width: 2000px) {
    .bs-slider {
        max-height: none;
        height: auto !important;
    }
}
/*@media(max-width:992px) and (min-width: 768px)
{

    .carousel-caption{
       height:auto!important;
    }
}*/


@media (max-width: 991px) {
    .slide-text h1 {
        font-size: 40px;
        line-height: 50px;
        margin-bottom: 20px;
    }
    .slide-text > p {

        font-size: 18px;
    }

}


/*---------- MEDIA 480px ----------*/
@media  (max-width: 768px) {
    .slide-text {
        padding: 10px 50px;
    }
    .slide-text h1 {
        font-size: 30px;
        line-height: 40px;
        margin-bottom: 10px;
    }
    .slide-text > p {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 20px;
    }
    .control-round .carousel-control{
        display: none;
    }

}
@media  (max-width: 480px) {
    .slide-text {
        padding: 10px 30px;
    }
    .slide-text h1 {
        font-size: 20px;
        line-height: 25px;
        margin-bottom: 5px;
    }
    .slide-text > p {
        font-size: 12px;
        line-height: 18px;
        margin-bottom: 10px;
    }
    .slide-text > a.btn-default, 
    .slide-text > a.btn-primary {
        font-size: 10px;
        line-height: 10px;
        margin-right: 10px;
        text-align: center;
        padding: 10px 15px;
    }
    .indicators-line > .carousel-indicators{
        display: none;
    }

}


@media only screen and (max-width: 374px) {
     .hpc-box .hpc-text {
        height: auto;
    }
}
@media only screen and (min-width: 375px) and (max-width: 614px) {
     .hpc-box .hpc-text {
        height: auto;
        padding:0;

    }
}


@media only screen and (max-width: 425px) {
    #carousel-top #carouselButtons {
        left: 125px !important;
    }

}

@media only screen and (max-width: 700px) {
    #carousel-top #carouselButtons {
        left: 0px !important;
    }

     .hpc-box .empty-hpc-text {
        width: 100%;
        padding: 10px 10px 0 15px;
       /* height: 48px;*/
        display: block;
    }
}

@media only screen and (max-device-width: 900px) {
    #carousel-top #playButton:focus {
    background-position: -111px -85px;
    background-color: transparent;
    outline: 0;
}
    #carousel-top .right.carousel-control:focus {
    background-position: -76px -85px;
    background-color: transparent;
    outline: 0;
}
    #carousel-top #pauseButton:focus {
    background-position: -40px -85px;
    background-color: transparent;
    outline: 0;
}
    #carousel-top .left.carousel-control:focus {
    background-position: -5px -85px;
    background-color: transparent;
    outline: 0;
}
  

}
@media only screen and (max-width: 767px) {
    .hpc-box .hpc-text h2, .hpc-box .hpc-text p{
        display:none;
    }

    .carousel-control {
        top: 50%!important;
    }
}


@media only screen and (min-device-width: 710px) and (max-device-width: 900px) {
     .hpc-box .hpc-text {
        height: 100px;
    }

     .hpc-box .empty-hpc-text {
        display: block;
        width: 100%;
        padding: 10px 10px 0 15px;
        height: 47px;
    }

    #carousel-top #carouselButtons {
        /*left: 45px !important;
        left: 0px;*/
    }
}

@media 
only screen and (max-width: 640px),
(min-device-width: 640px) and (max-device-width: 767px)  {
	 .hpc-box-container	{
		width: 100%;
	}

	 .hpc-box	{
		position: relative;
		top: 0;
		left: 0;
		background:rgba(255,255,255, 0.8);
	}
	#carousel-top .carousel-caption
	{
		position: relative;
		top: 0;
		left: 0;
		right:0;
		margin:0;
		padding:0;
}

	 .hpc-box .hpc-text	{
		width: 100%;
		padding: 0;
        height:auto;
	}
	
	 .hpc-box ul.hpc-controls	{
		margin: 0 0 10px 0;
		padding: 10px 0 10px 15px;
	}

	 .hpc-box ul.hpc-controls li a.prev:hover,
	 .hpc-box ul.hpc-controls li a.prev:focus	{
		background-position: -5px -85px;
	}

	 .hpc-box ul.hpc-controls li a.pause:hover,
	 .hpc-box ul.hpc-controls li a.pause:focus	{
		background-position: -40px -85px;
	}

	 .hpc-box ul.hpc-controls li a.next:hover,
	 .hpc-box ul.hpc-controls li a.next:focus	{
		background-position: -76px -85px;
	}
   #carousel-top .carousel-caption {
        left: 0;
        bottom: 0;
        right: 0;
        padding: 0;
        margin: 0;
    }

}

