/* 

CSS3D

Project: CSS3 Design Contest
Last change: 27.06.2010
Designed by: simurai.com
Works in browsers: FF 3.5+, Opera 10.5+, Safari 4+, Google Chrome 4.0+

To add a stereoscopic 3D effect is really easy.. Actually I was shocked by how easy it was.
Basically you just need one line of CSS. A text-shadow with a red and cyan offset.
The trick is to use "em"s for the text-shadows. That way, if you increase the font-size, the text-shadows increase too.

text-shadow: -0.06em 0 red,  0.06em 0 cyan;

Note: Actually you are not limited to text only. You can use the same technique with box-shadows.
It even works when you add some of webkit's 3D transforms like rotateY.

Have fun! For comments you can tweet to @simurai

*/

html {
	font: 62.5%/1 "Lucida Sans Unicode","Lucida Grande",Verdana,Arial,Helvetica,sans-serif;
	background: #f5f5f5 url(bg.jpg) no-repeat center center;
}

#wrapper {
	text-align: center;
	color: #000;
	font-weight: bold;
	font-size: 10em;
	padding: 50px 0 20px 0;
}

span { 
	text-shadow: -0.06em 0 red,  0.06em 0 cyan; 	/* This creates the 3D effect, pretty easy, eh? */
	letter-spacing: 0.08em;							/* make sure the letters don't overlap */
}


/* ---------------- Stars ---------------- */

#stars span {
	display: inline-block;
	-webkit-transform: scale(1);
	-webkit-transition: -webkit-transform 2s cubic-bezier(0, 1, 0, 1);
}
#stars span:hover {
	cursor: crosshair;
	-webkit-transform: scale(1.3);	/* This adds a hover effect */
	-webkit-transition: -webkit-transform .2s cubic-bezier(0, 0.75, 0, 1);
}
#stars span:active {
	text-shadow: none;	/* Click to disable the 3D effect */
}

/* Below the stars animation */
#stars span:nth-child(1), #stars span:nth-child(5) 	{ font-size: 0.3em; -webkit-animation-delay: 0.2s; }
#stars span:nth-child(2), #stars span:nth-child(4) 	{ font-size: 0.5em; -webkit-animation-delay: 0.1s; }
#stars span:nth-child(3)							 { font-size: 0.8em; -webkit-animation-delay: 0s; }

#stars span { -webkit-animation: stars-animation 3s 50 ease-in-out; }
@-webkit-keyframes stars-animation {
	0% { -webkit-transform: scale(1); }
	90% { -webkit-transform: scale(1); }
	95% { -webkit-transform: scale(1.3); }
	100% { -webkit-transform: scale(1); }
#stars:hover span {
	-webkit-animation: none;	/* Disables the animation on hover */
}
p { font-family:Arial, Helvetica, sans-serif; font-size:20px; color:#999999; padding:20px;}
p a { color:#999999; text-decoration:none; }
p a:hover {text-decoration:none; color:red;}


/* ---------------- Title 3D ---------------- */

#title {
	font-family: Helvetica, Geneva, sans-serif;		/* Any font would work, but SansSerif looks better */
}
#title:focus {
	outline: none;
}
#title a {
	vertical-align: middle;
	line-height: 1.5em;
	-webkit-transition: font-size 2s cubic-bezier(0, 1, 0, 1);
}
#title a:hover {
	font-size: 1.5em;	/* This adds a hover effect */
	line-height: 1em;
	-webkit-transition: font-size .2s cubic-bezier(0, 0.75, 0, 1);
}
#title a:active {
	font-size: 1em;
	text-shadow: none;	/* Click to disable the 3D effect */
}
#title a::selection {
	background-color: red;	/* This hides the selection */
}


/* ---------------- Slogan ---------------- */

#slogan { font-size: 0.25em; padding-bottom:20px; }
#slogan span:active { text-shadow: none; }




/* Below just some styling for the meta info */

#meta {
	color: #777;
	font-size: 1.2em;
	line-height: 1.6em;
	text-align: center;
	text-shadow: rgba(255,255,255,0.5) 0 1px 0;
	margin: 30px;
}
#meta strong { font-weight: bold; color: #000; }
#meta p:first-child { margin-bottom: 20px; }
#meta a { text-decoration: none; color: #7276ff; }
#meta a:hover { color: rgba(114,118,255,0.5); }
#meta img { vertical-align: text-bottom; }


#simurai {
	width: 100px;
	height: 300px;
	position: fixed;
	z-index: 88;
	bottom: 60px;
	right: 40px;
	opacity: 0.1;
}
#simurai:hover {
	opacity: 1;
}


/* Love */

#love {
	padding: 10px;
	position: fixed;
	left: 0;
	bottom: 0;
	background-color: rgba(255,255,255,0.3);
	-webkit-box-shadow: inset rgba(0,0,0,0.15) 0 1px 2px;
	border-radius: 0 10px 0 0;
	opacity: .33;
}
#love:hover { opacity: 1; }
#love * { padding-right: 10px; }
#love *:last-child { padding-right: 2px; }
/*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.8.1
*/
html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;}
