/*	3D scrolling CSS magic courtesy of Nathan Monk - https://codepen.io/nathansmonk/pen/QWBjMK	*/

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

* {
	padding: 0;
	margin: 0;
}

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: 16em;
	font-size: 200%;
	font-weight: 400;
	margin: 20% auto;
	color: #4ee;
	opacity: 0;
	z-index: 1;
	-webkit-animation: intro 2s ease-out;
	-moz-animation: intro 2s ease-out;
	-ms-animation: intro 2s ease-out;
	-o-animation: intro 2s ease-out;
	animation: intro 2s ease-out;
}

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

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

	#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%;
	-webkit-animation: scroll 120s linear 1s infinite;
	-moz-animation: scroll 120s linear 1s infinite;
	-ms-animation: scroll 120s linear 1s infinite;
	-o-animation: scroll 120s linear 1s infinite;
	animation: scroll 120s linear 1s infinite;
}

/* animation */
@-webkit-keyframes scroll {
	0% {
		top: 100%;
	}

	100% {
		top: -320%;
	}
}

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

	100% {
		top: -320%;
	}
}

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

	100% {
		top: -320%;
	}
}

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

	100% {
		top: -320%;
	}
}

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

	100% {
		top: -320%;
	}
}
