/* CSS Document */
* {
	margin: 0;
	padding: 0;
}
img {border: none;}
a {outline: none;}
@-webkit-keyframes fadeIn {
	0% {
		opacity: 0;
		}
	50% { 
		opacity: 0;
	}
	100% { 
		opacity: 1;
	}
}
#box {
	text-align: left;
	width: 650px;
	margin: 0 auto 0 auto;
	background: #333;
	overflow: hidden;
	border: 10px solid #333; /*border: 10px solid #000;*/
	-webkit-box-shadow: #222 0px 12px 20px;
	-moz-box-shadow: #222 0px 13px 20px;
	box-shadow: #222 0px 13px 10px;	
	-webkit-animation-name: fadeIn; 
  	-webkit-animation-duration: 0.5s; 
  	-webkit-animation-iteration-count: 1;
  	-webkit-animation-delay: 0s;
}
ul#slider{
	-webkit-border-radius: 10px;
	margin: 0px;
	padding: 0px;
	list-style: none;
	position: relative;
	width: 650px;
	height: 438px;
	overflow: hidden;	
}

ul#thumb {
	overflow: none;
	margin: 0px 0px 0px 0px;
	padding: 0px;
	list-style: none;
	position: relative;
	background: #333; /*background: #000;*/
	overflow: auto;
	width: 650px;
}
ul#thumb a { /* cada foto pequeña de abajo*/
	-webkit-transition: opacity .2s ease-in-out;
	border: 1px solid white;/*border: 1px solid #979797;*/
	width: 35px;
	height: 35px;
	display: block;
	overflow: hidden;
	float: right;
	margin: 10px 5px 0px 5px;
	opacity: 0.75;
}
ul#thumb a:hover {
	opacity: 1;
} 

ul#slider li {	
	width: 650px;
	height: 438px;
	position: absolute;
	}
	
ul#slider li p {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: inherit;
	color: #fff;
	background: rgba(141, 141, 141, .5);
	width: 100%;
}
ul#slider li p span {
	line-height: 2em;
	padding: 10px;/* trozo que se ve con transparencia*/
	display: block;
}

/* Animation for the :target image. Slides the image in. */

@-webkit-keyframes moveTarget {
	0% {
		left:-700px;
		
	}
	
	100% { 
		left:0px;
	}
}
ul#slider li:target {
	-webkit-animation-name: moveTarget; 
	-webkit-animation-duration: .5s; 
	-webkit-animation-iteration-count: 1;
	top:0px;
	left: 0px;
	z-index: 10;
}

/*
Animation for the current image. Slides it out the frame and back to the starting position. 
Adds a lower z-index than the now current image.
*/

@-webkit-keyframes moveIt {
	0% {
		left:0px;
		
	}
	50% {
		left:700px;
		
	}
	100% { 
		left:-700px;
		z-index: 5;
	}
}

ul#slider li:not(:target) {
	-webkit-animation-name: moveIt; 
  	-webkit-animation-duration: 0.5s; 
  	-webkit-animation-iteration-count: 1;
	top:0px;
	left: 0px;
}
