/* Styling and animation for Starwars Scrolling Text*/


@import url(http://fonts.googleapis.com/css?family=Droid+Sans:400,700);

* { padding: 0; margin: 0; }

/* CSS Rules of content*/

body, html
{
	width: 100%;
	height: 100%;
	font-family: "Droid Sans", arial, verdana, sans-serif;
	font-weight: 700;
	color: #ff6;
	background-color: #000;
	overflow: hidden;
}

p#start
{
	position: relative;
	width: 18em;
	font-size: 200%;
	font-weight: 400;
	margin: 20% auto;
	color: #4ee;
	opacity: 0;
	z-index: 1;
	animation-name: intro;
	animation-duration: 2s;
	animation-timing-function: ease-out;
}

/* Animation Intro*/
@keyframes intro {
	0% {opacity:1;}
	70% {opacity:1;}
	100%{opacity:0;}
}
h1 /* This is the Star Wars Logo*/
{ 	position:absolute;
	width:2.6em;
	left:50%;
	top:25%;
	margin-left:-1.3em;
	font-size: 10em;
	text-align: center;
	line-height: 0.8em;
	letter-spacing: -0.05em;
	color: #000;
	text-shadow: -2px -2px 0 #ff6, 2px -2px 0 #ff6, -2px 2px 0 #ff6, 2px 2px 0 #ff6;
	opacity:0;
	animation: logo;
	animation-duration: 5s;
	animation-timing-function: ease-out;
	animation-delay:2s;
}


h1 sub /*This is the sub text of the Star Wars logo*/
{
	display: block;
	font-size: 0.3em;
	letter-spacing: 0;
	line-height: 0.8em;
}

/* Animation Logo*/

@keyframes logo {
	0% { transform: scale(1); opacity: 1; }
	50% { opacity: 1; }
	100% { transform: scale(0.1); opacity: 0; }
}


/* the interesting 3D scrolling stuff */
#titles
{
	position: absolute;
	width: 18em;
	height: 50em;
	bottom: 0;
	left: 50%;
	font-size: 350%;
	margin-left: -9em;
	text-align: justify;
	overflow: hidden;
	transform-origin: 50% 100%;
	transform:perspective(300px) rotateX(25deg);
}

#titles:after
{
	position: absolute;
	content: ' ';
	left: 0;
	right: 0;
	top: 0;
	bottom: 60%;
	pointer-events: none;
	background-image: linear-gradient(top, rgba(0,0,0,1) 0%, transparent 100%);
}

#titles p
{
	text-align: justify;
	margin: 0.8em 0;
}

#titles p.center
{
	text-align: center;
}

#titles a
{
	color: #ff6;
	text-decoration: underline;
}

#titlecontent
{
	position:absolute;
	top: 100%;
	animation: scroll 100s linear 4s infinite;
}

/* animation scrolling text */

@keyframes scroll {
	0% {top: 100%;}
	100% {top: -170%;}
}

audio {
	display: none;
}
@media only screen and (max-width: 600px) {

	p#start {
		width: 18rem;
	}
	h1 { 
	  left:0%;
	   top:25%;
	   margin-left:-.05em;}


}