//--------------------------------------------------------------
// Copyright (C) joomla-monster.com
// License: http://www.joomla-monster.com/license.html Joomla-Monster Proprietary Use License
// Website: http://www.joomla-monster.com
// Support: info@joomla-monster.com
//---------------------------------------------------------------

// DJIMAGESLIDER
//---------------------------------------------------------------

// General slider styles
.djslider-loader-override {
	margin: 0 auto;
	position: relative;
	background: none;
}

.djslider-override {
	margin: 0 auto;
	position: relative;
	.transition(opacity 400ms ease);
	.opacity(0);
}

.djslider-override .slider-container {
	position: absolute;
	overflow: hidden;
	left: 0; 
	top: 0;
	height: 100%;
	width: 100%;
}

.djslider-override ul.djslider-in {
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
}

.djslider-override ul.djslider-in > li {
	list-style: none outside;
	float: left;
	padding: 0;
	border: 0;
	position: relative;
	background: none;
	overflow: hidden;
	.box-sizing(border-box);
}

ul.djslider-in > li {
	text-align: center;
}	

.djslider-override img.dj-image {
	border: 0;
	margin: 0;
}

.djslider-override.img-vcenter img.dj-image {
	position: relative;
  	top: 50%;
  	.translateY(-50%);
}

// Slide description area
.djslider-override .slide-desc {
	position: absolute;
}

.djslider-override .slide-desc-in {
	position: relative;
	.opacity(@JMsliderDescBackgroundOpacity);
	background: @JMsliderDescBackground;
}

.djslider-override {
	.slide-desc-bg {
		position:absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;

	}
}

.djslider-override {
		.slide-desc-text {
			position: relative;
			padding: 20px 30px;
			text-align: left;
		}
		.slide-title + .slide-text {
			margin: 8px 0 0;
		}
		.slide-title {
			display: inline-block;
			font-family: @JMmoduleTitleFontFamily;
			font-size: @JMsliderTitleFontSize;
			line-height: @JMsliderTitleLineHeight;
			color: @JMsliderTitleFontColor;
			margin: 0;
			a {
				color: @JMsliderTitleFontColor;
				&:hover {
					color: @JMstyle;
					text-decoration: none;
				}
			}
		}
		.slide-text {
			color: @JMsliderDescFontColor;
			font-size: @JMsliderDescFontSize;
			line-height: @JMsliderDescLineHeight;
			a {
				color: @JMsliderDescFontColor;
				&:hover {
					color: @JMstyle;
					text-decoration: none;
				}
			}
		}

}

// Navigation buttons / indicators
.djslider-override .navigation-container {
	position: relative;
	text-align: center !important;
	a {
		outline: none;
	}
}

.djslider-override .navigation-container .prev-button {
	cursor: pointer;
	display: block;
	position: absolute;
	left: 0;
}

.djslider-override .navigation-container .next-button {
	cursor: pointer;
	display: block;
	position: absolute;
	right: 0;
}

.djslider-override .navigation-container .play-button, 
.djslider-override .navigation-container .pause-button {
	cursor: pointer;
	display: block;
	position: absolute;
	left: 50%;
}

.djslider-override .navigation-container-custom,
.djslider-override .navigation-numbers {
	position: absolute;
	top: 10px;
	right: 10px;
	line-height: 1;
}

.djslider-override .load-button {
	width: 10px;
	height: 10px;
	display: inline-block;
	margin: 0 3px;
	cursor: pointer;
	.border-radius(50%);
	.opacity(50);
	.transition(opacity 400ms ease);
	background: @JMsliderCustomNavBackground;
}

.djslider-override .load-button-active {
	.opacity(100);
	background: @JMsliderCustomNavBackgroundActive;
}

.djslider-override .navigation-numbers .load-button {
	width: 20px;
	height: 20px;
	text-align: center;
	font-size: 12px;
	font-weight: bold;
	line-height: 20px;
	color: @JMschemeFontColor;
}

// Fading elements
.djslider-loader-override {
	.showOnHover {
		.opacity(0);
		.transition(opacity 200ms ease 50ms);
	}
	&:hover .showOnHover {
		.opacity(100);
	}
}

// modifications
// ---------------------------

.djslider-override {
  a.readmore {
		color: @JMsliderDescFontColor;
  }
  .navigation-container {
	  img {
	    .transition(opacity 0.3s ease-in-out);    
	    &:hover {
	      .opacity(80);
	    }
	  }
  }
}

//header
#jm-header .djslider-override {
	.slide-desc-in {
		background: @JMstyle;
		padding: 30px;
	}
	.slide-desc-text {
		padding: 0;
	}
	.slide-title {
		font-size: @JMheaderSliderTitleFontSize;
		font-weight: 700;
		text-shadow: 1px 1px 1px rgba(red(@JMheaderSliderTitleShadow), green(@JMheaderSliderTitleShadow), blue(@JMheaderSliderTitleShadow), 0.8);
		text-transform: uppercase;
		a {
			color: currentColor;
			&:hover {
				text-decoration: underline;
			}
		}
	}
	.slide-text {
		font-size: @JMheaderSliderFontSize;
	}
	.slide-title + .slide-text {
		margin: 0;
	}
	a.readmore {
		display: inline-block;
		text-align: center;
		vertical-align: middle;
		cursor: pointer;
		line-height: @baseLineHeight;
		text-decoration: none;
		border: @JMbuttonBorderWidth solid @JMsliderDescFontColor;
		background: @JMbuttonBackground;
		.box-sizing(border-box);
		.border-radius(2px);
		font-family: @JMmoduleTitleFontFamily;
		font-size: @JMbuttonFontSize;
		font-weight: @JMbuttonFontWeight;
		padding: @JMbuttonPadding;
		color: @JMsliderDescFontColor;
		text-transform: @JMbuttonTextTransform;
		margin: 20px 0 0;
		// Hover/focus/active state
		&:hover,
		&:focus,
		&:active,
		&.active {
			text-decoration: underline;
		}
	}
	.load-button {
		width: 10px;
		height: 10px;
		background: none;
		border: 2px solid @JMsliderDescFontColor;
	}
	.load-button-active {
		background: @JMsliderDescFontColor;
	}
	.navigation-numbers .load-button {
		color: @JMstyle;
	}
}

//indicatiors-ms
.indicators-ms {
	.djslider-override {
		padding-bottom: (@JMbaseSpace * 1.5);
	}
	.djslider-override .navigation-container-custom { 
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		text-align: center;
	}
}

#jm-header .indicators-ms .djslider-override {
	padding-bottom: 0;
}

#jm-header .indicators-ms .djslider-override .navigation-container-custom { 
	top: auto;
	bottom: @JMbaseSpace;
	left: 0;
	right: 0;
	text-align: center;
}

//navigation-ms
.navigation-ms {
	.djslider-override .navigation-container {
		.prev-button,
		.next-button,
		.play-button,
		.pause-button  {
			background-color: rgba(red(@JMsliderNavigationBackground), green(@JMsliderNavigationBackground), blue(@JMsliderNavigationBackground), 0.2);
			.opacity(100);
			&:hover {
				background-color: rgba(red(@JMsliderNavigationBackgroundHover), green(@JMsliderNavigationBackgroundHover), blue(@JMsliderNavigationBackgroundHover), 0.9);
			}
		}
	}
}