/**
	Juizy Slideshow
	@author: Geoffrey Crofte
	@edited by: Torry Guo
	@from: self work http://creativejuiz.fr/trytotry
	@license: CreativeCommons (BY)
	
	
	************* Changelog *************
	
	** v.1.1.1 - 2012-02-27
	- Figcaption element hidden when you take the control
	
	** v.1.1.0 - 2011-12-31
	- Caption of figure (figcaption element) display improvement
	
	** v.1.0.0 - 2011-12-07
	- First version
	
*/

html {
	min-height:100%;
	overflow-x:hidden;
}

figure { 
	display: inline-block; 
}

#slideshow {
	position: relative;
	width: 870px;
	height: 350px;
	border: 1px solid #ddd;
	margin: 0 0 30px 0;
	background: #FFF;
	
}

#slideshow:before,
#slideshow:after {
	position: absolute;
	display:block;
	bottom:16px;
	width: 50%;
	height: 20px;
	content: " ";
	background: rgba(0,0,0,0.1);
	z-index: -10;
}
#slideshow:before {
	left:0;
	-webkit-transform: rotate(-4deg);
	-moz-transform: rotate(-4deg);
	-ms-transform: rotate(-4deg);
	-o-transform: rotate(-4deg);
}
#slideshow:after {
	right:0;
	-webkit-transform: rotate(4deg);
	-moz-transform: rotate(4deg);
	-ms-transform: rotate(4deg);
	-o-transform: rotate(4deg);
}
#slideshow .commands {
	position: absolute;
	top: 45%;
	padding: 5px 13px;
	border-bottom:0;
	font-family: 'Amaranth', Arial, Verdana, sans-serif;
	font-size: 1.3em;
	color: #aaa;
	text-decoration:none;
	background-color: #eee;
	background-image: -webkit-linear-gradient(#fff,#ddd);
	background-image: -moz-linear-gradient(#fff,#ddd);
	background-image: -ms-linear-gradient(#fff,#ddd);
	background-image: -o-linear-gradient(#fff,#ddd);
	background-image: linear-gradient(#fff,#ddd);
	text-shadow: 0 0 1px #aaa;
	
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;
	
	-webkit-box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
	-moz-box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
	box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
#slideshow .commands:after {
	position: absolute;
	bottom: 65px; left:-18px;
	content: attr(title);
	width: 50px;
	padding: 12px;
	background: #fff;
	font-family: Georgia, Times, serif;
	font-size: 14px;
	text-align:center;
	text-shadow: 0 0 0;
	opacity: 0;
	
	-webkit-border-radius: 12px;
	-moz-border-radius: 12px;
	border-radius: 12px;
	
	-webkit-box-shadow: 1px 1px 4px rgba(0,0,0,0.4);
	-moz-box-shadow: 1px 1px 4px rgba(0,0,0,0.4);
	box-shadow: 1px 1px 4px rgba(0,0,0,0.4);
	
	-webkit-transition: opacity 0.7s, bottom 0.7s;
	-moz-transition: opacity 0.7s, bottom 0.7s;
	transition: opacity 0.7s, bottom 0.7s;
}
#slideshow .commands:before {
	position: absolute;
	bottom: 55px; left: 13px;
	content: " ";
	width: 1px; height: 1px;
	border-top: 10px solid #fff;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	z-index:100;
	opacity: 0;
	
	-webkit-transition: opacity 0.7s, bottom 0.7s;
	-moz-transition: opacity 0.7s, bottom 0.7s;
	transition: opacity 0.7s, bottom 0.7s;
}
#slideshow .commands:hover:before {
	bottom: 35px;
	opacity: 1;
}
#slideshow .commands:hover:after {
	bottom: 45px;
	opacity: 1;
}
#slideshow .commands:focus { 
	outline: 0;
	-webkit-transform: translate(1px, 2px);
	-moz-transform: translate(1px, 2px);
	-ms-transform: translate(1px, 2px);
	-o-transform: translate(1px, 2px);
	transform: translate(1px, 2px);
}
#slideshow .commands:active {
	-webkit-transform: translate(0, 1px);
	-moz-transform: translate(0, 1px);
	-ms-transform: translate(0, 1px);
	-o-transform: translate(0, 1px);
	transform: translate(0, 1px);
}

#slideshow .commands1 {
	display: block;
}

/* play/pause commands */
.play_commands {
	position: absolute;
	width: 22px; height: 22px;
	top: 25px; right: 25px;
	z-index: 10;
	text-indent: -9999px;
	border:0 none;
	opacity: 0;

	-webkit-transition: opacity 1s, right 1s;
	-moz-transition: opacity 1s, right 1s;
	transition: opacity 1s, right 1s;
}
.play { right: 55px; cursor: default; }

.pause:hover { border:0 none; }
.play_commands:focus { outline:0; }

#slideshow:hover .pause,
#sl_play:target ~ #slideshow:hover .pause,
.play_commands:focus {
	opacity: 1;
}
.sl_command:target ~ #slideshow:hover .pause,
#sl_pause:target ~ #slideshow:hover .pause {
	opacity: 0;
}
.pause:after,
.pause:before {
	position: absolute;
	display: block;
	content: " ";
	top:0;
	width:38%;
	height: 22px;
	background: #fff;
	background: rgba(255,255,255,1);
}
.pause:after {
	right:0;
}
.pause:before {
	left:0;
}
.play {
	width: 1px; 
	height: 1px; 
	border-top: 10px solid transparent; 
	border-left: 20px solid #fff; 
	border-left: 20px solid rgba(255,255,255,1); 
	border-bottom: 10px solid transparent;
	opacity: 0;
}
.play:hover,
.play:focus {
	border-bottom: 10px solid transparent;
}

#slideshow .slide_container {
	position:relative;
	width: 870px;
	height: 350px;
	overflow: hidden;
}
/* timeline base */
#slideshow .container:after {
	position:absolute;
	bottom: 0; left:0;
	content: " ";
	background: #999;
	width: 100%;
	height: 1px;
}

@-webkit-keyframes slider {
	0%, 15%, 100%	{ left: 0 }
	20%, 35%		{ left: -100% }
	40%, 55%		{ left: -200% }
	60%, 75%		{ left: -300% }
	80%, 95%		{ left: -400% }
}
@-moz-keyframes slider {
	0%, 15%, 100%	{ left: 0 }
	20%, 35%		{ left: -100% }
	40%, 55%		{ left: -200% }
	60%, 75%		{ left: -300% }
	80%, 95%		{ left: -400% }
}
@keyframes slider {
	0%, 15%, 100%	{ left: 0 }
	20%, 35%		{ left: -100% }
	40%, 55%		{ left: -200% }
	60%, 75%		{ left: -300% }
	80%, 95%		{ left: -400% }
}
/* formula: divide 100 by n(number of sides), get a m, then for every m-5%, assign extra -100% */

#slideshow .slider {
	position: absolute;
	left:0; top:0;
	width: 600%; /* formula: (n+1) x 100% */
	height: 350px;
	
	-webkit-animation: slider 21s infinite;
	-moz-animation: slider 21s infinite;
	animation: slider 21s infinite;
}
.sl_i:target ~ #slideshow .slider {
	-webkit-transition: left 1s;
	-moz-transition: left 1s;
	transition: left 1s;
}
.sl_command:target ~ #slideshow .slider {
	-webkit-transition: opacity 1s;
	-moz-transition: opacity 1s;
	transition: opacity 1s;
}
#slideshow .c_slider {
	position: absolute;
	left:0; top:0;
	width: 600%;
	height: 350px;
	background: url(../../images/micentral/slides/s1.jpg) 0 0 no-repeat,
				url(../../images/micentral/slides/s2.jpg) 870px 0 no-repeat,
				url(../../images/micentral/slides/s3.jpg) 1740px 0 no-repeat,
				url(../../images/micentral/slides/s4.jpg) 2610px 0 no-repeat,
				url(../../images/micentral/slides/s5.jpg) 3480px 0 no-repeat;
}
.sl_i:target ~ #slideshow .c_slider {
	-webkit-transition: background 1s;
	-moz-transition: background 1s;
	transition: background 1s;
}

#slideshow figure {
	position:relative;
	padding:0; margin:0;
}

@-webkit-keyframes figurer {
	0%, 20%, 40%, 60%, 80%, 100%				{ -webkit-box-shadow: 0 0 65px rgba(0,0,0, 0) inset; box-shadow: 0 0 65px rgba(0,0,0, 0) inset;	}
	5%, 15%, 25%, 35%, 45%, 55%, 65%, 75%,85%, 95%		{ -webkit-box-shadow: 0 0 65px rgba(0,0,0, 0.5) inset;	box-shadow: 0 0 65px rgba(0,0,0, 0.5) inset; }
}
@-moz-keyframes figurer {
	0%, 20%, 40%, 60%, 80%, 100%					{ -moz-box-shadow: 0 0 65px rgba(0,0,0, 0) inset; box-shadow: 0 0 65px rgba(0,0,0, 0) inset;	}
	5%, 15%, 25%, 35%, 45%, 55%, 65%, 75%,85%, 95%		{ -moz-box-shadow: 0 0 65px rgba(0,0,0, 0.5) inset;	box-shadow: 0 0 65px rgba(0,0,0, 0.5) inset; }
}
@keyframes figurer {
	0%, 20%, 40%, 60%, 80%, 100%						{ -moz-box-shadow: 0 0 65px rgba(0,0,0, 0) inset; box-shadow: 0 0 65px rgba(0,0,0, 0) inset;	}
	5%, 15%, 25%, 35%, 45%, 55%, 65%, 75%,85%, 95%		{ -moz-box-shadow: 0 0 65px rgba(0,0,0, 0.5) inset;	box-shadow: 0 0 65px rgba(0,0,0, 0.5) inset; }
}
/* Formula: line one: 100/n; line 2: 100/n + 5% and 100/n -5% */

#slideshow figure:after {
	position: absolute;
	display:block;
	content: " ";
	top:0; left:0;
	width: 100%; height: 100%;
	-webkit-box-shadow: 0 0 65px rgba(0,0,0, 0.5) inset;
	-moz-box-shadow: 0 0 65px rgba(0,0,0, 0.5) inset;
	box-shadow: 0 0 65px rgba(0,0,0, 0.5) inset;
	
	-webkit-animation: figurer 28s infinite;
	-moz-animation: figurer 28s infinite;
	animation: figurer 28s infinite;
}

/*@-webkit-keyframes figcaptionner {
	0%, 20%, 40%, 60%, 80%, 100%						{ bottom: -55px;	}
	5%, 15%, 25%, 35%, 45%, 55%, 65%, 75%, 85%, 95%		{ bottom: 0;		}
}
@-moz-keyframes figcaptionner {
	0%, 20%, 40%, 60%, 80%, 100%						{ bottom: -55px;	}
	5%, 15%, 25%, 35%, 45%, 55%, 65%, 75%, 85%, 95%		{ bottom: 0;		}
}
@keyframes figcaptionner {
	0%, 20%, 40%, 60%, 80%, 100%						{ bottom: -55px;	}
	5%, 15%, 25%, 35%, 45%, 55%, 65%, 75%, 85%, 95%		{ bottom: 0;		}
}
/* Formula: line one: 100/n; line 2: 100/n + 5% and 100/n -5% */

@keyframes figcaptionner{
	0%, 100%						{ bottom: -55px;	}
	5%, 15%, 25%, 35%, 45%, 55%, 65%, 75%, 85%, 95%		{ bottom: 0;		}
}

#slideshow figcaption {
	position: absolute;
	padding: 20px 20px;
	margin: 0;
	left: 0;
	right: 0;
	bottom: 0;
	text-align: center;
	letter-spacing: 0.05em;
	word-spacing: 0.05em;
	color: #fff;
}
#slideshow figcaption h1{color: white;}
#slideshow figcaption:nth-of-type(1){
	-webkit-animation: figcaptionner 28s infinite;
	-moz-animation: figcaptionner 28s infinite;
	animation: figcaptionner 28s infinite;
}

.orange-bg{background: rgba(252, 79, 21,0.7);}
.yellow-bg{background: rgba(253, 185, 40,0.7);}
.blue-bg{background: rgba(78, 144, 205,0.7);}
.navy-bg{background: rgba(0,34,68,0.5);}

/* dots styles */
.dots_commands  {
	position: relative;
	top: 20px;
	padding:0; margin:0;
	text-align:center;
}
.dots_commands li {
	display:inline;
	padding:0; margin:0;
	list-style:none;
}
.dots_commands a {
	position: relative;
	display:inline-block;
	height:8px; width: 8px;
	margin: 0 5px;
	text-indent: -9999px;
	background: #fff;
	border-bottom:0;
	
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;
	
	-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.55) inset;
	-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.55) inset;
	box-shadow: 0 1px 2px rgba(0,0,0,0.55) inset;
	
	z-index:25;
}
.dots_commands li + li a {
	z-index:10;
}


@-moz-keyframes dotser {
	0%, 100% 	{ opacity: 1; left: 0; 		}

	15%			{ opacity: 1; left: 0;		}
	17%			{ opacity: 0; left: 0;		}
	18%			{ opacity: 0; left: 18px;	}
	20%			{ opacity: 1; left: 18px;	}

	35%			{ opacity: 1; left: 18px;	}
	37%			{ opacity: 0; left: 18px;	}
	38%			{ opacity: 0; left: 36px;	}
	40%			{ opacity: 1; left: 36px;	}

	55%			{ opacity: 1; left: 36px;	}
	57%			{ opacity: 0; left: 36px;	}
	58%			{ opacity: 0; left: 54px;	}
	60%			{ opacity: 1; left: 54px;	}

	75%			{ opacity: 1; left: 54px;	}
	77%			{ opacity: 0; left: 54px;	}
	78%			{ opacity: 0; left: 72px;	}
	80%			{ opacity: 1; left: 72px;	}

	95%			{ opacity: 1; left: 72px;	}
	97%			{ opacity: 0; left: 72px;	}
	98%			{ opacity: 0; left: 0;	}
}
@-webkit-keyframes dotser {
	0%, 100% 	{ opacity: 1; left: 0; 		}

	15%			{ opacity: 1; left: 0;		}
	17%			{ opacity: 0; left: 0;		}
	18%			{ opacity: 0; left: 18px;	}
	20%			{ opacity: 1; left: 18px;	}

	35%			{ opacity: 1; left: 18px;	}
	37%			{ opacity: 0; left: 18px;	}
	38%			{ opacity: 0; left: 36px;	}
	40%			{ opacity: 1; left: 36px;	}

	55%			{ opacity: 1; left: 36px;	}
	57%			{ opacity: 0; left: 36px;	}
	58%			{ opacity: 0; left: 54px;	}
	60%			{ opacity: 1; left: 54px;	}

	75%			{ opacity: 1; left: 54px;	}
	77%			{ opacity: 0; left: 54px;	}
	78%			{ opacity: 0; left: 72px;	}
	80%			{ opacity: 1; left: 72px;	}

	95%			{ opacity: 1; left: 72px;	}
	97%			{ opacity: 0; left: 72px;	}
	98%			{ opacity: 0; left: 0;	}
}
@keyframes dotser {
	0%, 100% 	{ opacity: 1; left: 0; 		}

	5%			{ opacity: 1; left: 0;		}
	15%			{ opacity: 0; left: 0;		}
	18%			{ opacity: 0; left: 18px;	}
	20%			{ opacity: 1; left: 18px;	}

	25%			{ opacity: 1; left: 18px;	}
	35%			{ opacity: 0; left: 18px;	}
	38%			{ opacity: 0; left: 36px;	}
	40%			{ opacity: 1; left: 36px;	}

	45%			{ opacity: 1; left: 36px;	}
	55%			{ opacity: 0; left: 36px;	}
	58%			{ opacity: 0; left: 54px;	}
	60%			{ opacity: 1; left: 54px;	}

	65%			{ opacity: 1; left: 54px;	}
	75%			{ opacity: 0; left: 54px;	}
	78%			{ opacity: 0; left: 72px;	}
	80%			{ opacity: 1; left: 72px;	}

	85%			{ opacity: 1; left: 72px;	}
	95%			{ opacity: 0; left: 72px;	}
	98%			{ opacity: 0; left: 0;	}
}

/*
@keyframes dotser {
	0%,100% 	{ opacity: 1; left: 0; 		}

	30%			{ opacity: 1; left: 0;		}
	32%			{ opacity: 0; left: 0;		}
	33%			{ opacity: 0; left: 18px;	}
	35%			{ opacity: 1; left: 18px;	}

	65%			{ opacity: 1; left: 18px;	}
	67%			{ opacity: 0; left: 18px;	}
	68%			{ opacity: 0; left: 36px;	}
	70%			{ opacity: 1; left: 36px;	}

	95%			{ opacity: 1; left: 36px;	}
	97%			{ opacity: 0; left: 0;	}
	98%			{ opacity: 0; left: 0;	}
}*/

.dots_commands li:first-child a:after,
.dots_commands li:first-child a:before {
	position: absolute;
	top: 0; left: 0;
	content: " ";
	width: 8px; height: 8px;
	background: #bd9b83;
	z-index:20;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	border-radius: 50%;
	
	-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.55) inset;
	-moz-box-shadow: 0 1px 2px rgba(0,0,0,0.55) inset;
	box-shadow: 0 1px 2px rgba(0,0,0,0.55) inset;
}
.dots_commands li:first-child a:after {
	-webkit-animation: dotser 21s infinite; /* webkit can't animate pseudo-element =_= :L: */
	-moz-animation: dotser 21s infinite; /* thanks moz ! :D */
	animation: dotser 21s infinite;
}
.dots_commands li:first-child a:before {
	display:none;
}


/* need a stop ! */

/* actions when target ! */
.sl_command { display: none; }

.sl_command:target ~ #slideshow .slider,
.sl_command:target ~ #slideshow figure:after,
.sl_command:target ~ #slideshow figcaption,
.sl_command:target ~ #slideshow #timeline,
.sl_command:target ~ #slideshow .dots_commands li:first-child a:after {
	-webkit-animation-play-state: paused;
	-moz-animation-play-state: paused;
	animation-play-state: paused;
}

#sl_play:target ~ #slideshow .slider,
#sl_play:target ~ #slideshow figure:after,
#sl_play:target ~ #slideshow figcaption,
#sl_play:target ~ #slideshow #timeline,
#sl_play:target ~ #slideshow .dots_commands li:first-child a:after {
	-webkit-animation-play-state: running;
	-moz-animation-play-state: running;
	animation-play-state: running;
}

.sl_command:target ~ #slideshow .pause 	{ opacity:0; }
.sl_command:target ~ #slideshow .play 	{ opacity:1; right: 25px; cursor: pointer; }
#sl_play:target ~ #slideshow .pause 	{ opacity:0; }
#sl_play:target ~ #slideshow .play 		{ opacity:0; right: 55px; cursor: default;}

.sl_i:target ~ #slideshow .slider									{ visibility: hidden }
.sl_i:target ~ #slideshow .slider figcaption						{ visibility: hidden }
.sl_i:target ~ #slideshow .dots_commands li:first-child a:after		{ display:none; }
.sl_i:target ~ #slideshow .dots_commands li:first-child a:before	{ display:block; }

#sl_i1:target ~ #slideshow .commands								{ display: none; }
#sl_i1:target ~ #slideshow .c_slider								{ background-position: 0 0, 870px 0, 1740px 0, 2610px 0, 3480px 0; }
#sl_i1:target ~ #slideshow .dots_commands li:first-child a:before	{ left:0; }

#sl_i2:target ~ #slideshow .commands								{ display: none; }
#sl_i2:target ~ #slideshow .c_slider								{ background-position: -870px 0, 0 0, 870px 0, 1740px 0 , 2610px 0; }
#sl_i2:target ~ #slideshow .dots_commands li:first-child a:before	{ left:18px; }

#sl_i3:target ~ #slideshow .commands								{ display: none; }
#sl_i3:target ~ #slideshow .c_slider								{ background-position: -1740px 0, -870px 0, 0 0, 870px 0, 1740px 0; }
#sl_i3:target ~ #slideshow .dots_commands li:first-child a:before	{ left:36px; }

#sl_i4:target ~ #slideshow .commands								{ display: none; }
#sl_i4:target ~ #slideshow .c_slider								{ background-position: -2610px 0, -1740px 0, -870px 0, 0 0, 870px 0; }
#sl_i4:target ~ #slideshow .dots_commands li:first-child a:before	{ left:54px; }

#sl_i5:target ~ #slideshow .commands								{ display: none; }
#sl_i5:target ~ #slideshow .c_slider								{ background-position: -3480px 0,  -2610px 0, -1740px 0, -870px 0, 0 0; }
#sl_i5:target ~ #slideshow .dots_commands li:first-child a:before	{ left:72px; }






