body { background: none; }
.container { margin: 0 auto; }
.red {color:#C00; text-shadow:none}
.center {text-align:center}
.loading {display:none; position:absolute; margin: 10px 0 0 30px}

/* Example wrapper */
.wrap {
	position: relative;
	margin: 3em 0;
}

/* Frame */
.frame {
	height: 240px;
	overflow: hidden;
	border-top:1px solid #CCC;
	border-bottom:1px solid #CCC;
	background:rgba(200,200,200,0.3);
}
.frame ul {
	list-style: none;
	margin: 0;
	padding: 0 3px;
	height: 100%;
}
.frame ul li {
	float: left;
	width: 220px;
	height: 225px;
	margin: 15px 0 0 0;
	padding: 5px 5px 0;
	background: rgba(255,255,255,0.8);
	color: #ddd;
	text-align: center;
	cursor: pointer;
	opacity:0.9;
}
.frame ul li.active {
	color: #fff;
	background: rgba(255,255,255,1);
/*
	-moz-box-sizing:    border-box;
    -webkit-box-sizing: border-box;
    box-sizing:        border-box;
	
	
	box-shadow:0 3px 3px 3px #ccc;

	border-radius:5px;
*/
	border:2px dashed #C33;
	opacity:1;
	margin-top:3px;
}

.frame ul li:first-child.active {
	margin-left:20px;
}

.frame ul li:last-child.active {
	/* margin-left:-50px; */
}

.frame ul li img {
	height:120px; width:auto;
	border-radius:3px;
	padding:5px;
}
.frame ul li span {
	display:inline-block;
	font-family:Arial, Helvetica, sans-serif;
	font-size: 13px;
	text-align:center;
}
.frame ul li a {
	color:#333;
	position:relative;
}


/* Scrollbar */
.scrollbar {
	margin: 0 0 1em 0;
	height: 2px;
	background: #ccc;
	line-height: 0;
}
.scrollbar .handle {
	width: 100px;
	height: 100%;
	background: #292a33;
	cursor: pointer;
}
.scrollbar .handle .mousearea {
	position: absolute;
	top: -9px;
	left: 0;
	width: 100%;
	height: 20px;
}

/* Pages */
.pages {
	list-style: none;
	margin: 20px 0;
	padding: 0;
	text-align: center;
}
.pages li {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin: 0 4px;
	text-indent: -999px;
	border-radius: 10px;
	cursor: pointer;
	overflow: hidden;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
}
.pages li:hover {
	background: #aaa;
}
.pages li.active {
	background: #666;
}

/* Controls */
.controls { margin: 25px 0; text-align: center; }

/* One Item Per Frame example*/
.oneperframe { height: 300px; line-height: 300px; }
.oneperframe ul li { width: 1140px; }
.oneperframe ul li.active { background: #333; }

/* Crazy example */
.crazy ul li:nth-child(2n) { width: 100px; margin: 0 4px 0 20px; }
.crazy ul li:nth-child(3n) { width: 300px; margin: 0 10px 0 5px; }
.crazy ul li:nth-child(4n) { width: 400px; margin: 0 30px 0 2px; }

/* Effects */
.effects {
	/* height: 200px;
	line-height: 200px;*/
	-webkit-perspective: 800px;
	-ms-perspective: 800px;
	perspective: 800px;
	-webkit-perspective-origin: 50% 50%;
	-ms-perspective-origin: 50% 50%;
	perspective-origin: 50% 50%;
	overflow-y: show;
}
.effects ul {
	-webkit-transform-style: preserve-3d;
	-ms-transform-style: preserve-3d;
	transform-style: preserve-3d;
}
.effects ul li {
	position: relative;
	margin: 0 -20px;
	/*
	-webkit-transform: rotateY(60deg) scale(0.9, 0.5);
	-ms-transform: rotateY(60deg) scale(0.9, 0.5);
	transform: rotateY(60deg) scale(0.9, 0.5);
	*/
	-webkit-transform: scale(0.75);
	-ms-transform: scale(0.75);
	transform: scale(0.75);
	
	-webkit-transition: -webkit-transform 300ms ease-out;
	transition: transform 300ms ease-out;
}
.effects ul li.active {
	z-index: 10;
	-webkit-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
}
.effects ul li.active ~ li {
	/*
	-webkit-transform: rotateY(-60deg) scale(0.9, 0.5);
	-ms-transform: rotateY(-60deg) scale(0.9, 0.5);
	transform: rotateY(-60deg) scale(0.9, 0.5);
	*/
	-webkit-transform: scale(0.75);
	-ms-transform: scale(0.75);
	transform: scale(0.75);
}