/*
Project Name: Enhance your sites with CSS3 Animations
Author: Rory Macrae
Published on: http://www.onextrapixel.com/
*/

* {
	margin: 0;
	padding: 0;
}

a, a:visited {text-decoration:none; color:#0054A6;}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { 
    display: block;
}
input, label, textarea { display: block; }

input:focus { outline: none; } /* Removes Chrome focus style */

.container { padding: 0 0 100px 100px; }

body { font-family: sans-serif; }

p {
	font-family: sans-serif;
	line-height: 1.5em;
}
header p {
	width: 900px;	
	padding: 10px; }

.container p {
	width: 500px;
	margin: 20px 0 60px 0;
}

.back {margin-top:20px; font-size:12px;}
.back a:hover {text-decoration:underline;}

header {
	/* Basic Styles */
	background: black;
	color: white;
	height: 100px;
	position: relative;
	
	/* Firefox 4+ */
	-moz-animation-name: header-drop;
	-moz-animation-timing-function: ease-in;
	-moz-animation-iteration-count: once;
	-moz-animation-duration: 1s;
	
	-webkit-animation-name: header-drop;
	-webkit-animation-timing-function: ease-in;
	-webkit-animation-iteration-count: once;
	-webkit-animation-duration: 1s;
}
#logo {
	margin: 15px 15px 0 15px;
	background: red;
	float: left;
	
	/* Firefox 4+ */
	-moz-animation-name: colour-change;
	-moz-animation-timing-function: linear;
	-moz-animation-iteration-count: infinite;
	-moz-animation-duration: 30s;
	
	/* Webkit */
	-webkit-animation-name: colour-change;
	-webkit-animation-timing-function: linear;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-duration: 30s;
}
.loading {
	margin-top: 20px;
	font-size: 20px;
	font-family: sans-serif;
	line-height: 1;
	width: 100px;
	background: #CCC;
	border: 1px solid #888;
	padding: 20px;
	text-align: center;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;	
	-moz-box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
	-webkit-box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
	box-shadow: 0px 0px 10px rgba(0,0,0,0.5);	
}
.spinner {
	height: 10px;
	width: 10px;
	margin: 0 auto 10px auto;
	border: 10px solid #888;
	-webkit-border-radius: 20px;
	-moz-border-radius: 20px;
	border-radius: 20px;
	
	/* Firefox 4+ */
	-moz-animation-name: loading;
	-moz-animation-timing-function: linear;
	-moz-animation-iteration-count: infinite;
	-moz-animation-duration: 1s;
	
	/* Webkit */
	-webkit-animation-name: loading;
	-webkit-animation-timing-function: linear;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-duration: 1s;
}
form {
	background: #CCC;
	border: 1px solid #888;
	border-radius: 10px;
	padding: 20px;
	width: 300px;
	position: relative;
	
	/* Firefox 4+ */
	-moz-animation-name: shakey;
	-moz-animation-timing-function: linear;
	-moz-animation-iteration-count: once;
	-moz-animation-duration: 200ms;
	
	/* Webkit */
	-webkit-animation-name: shakey;
	-webkit-animation-timing-function: linear;
	-webkit-animation-iteration-count: once;
	-webkit-animation-duration: 200ms;
}
form label span {
	color: #D11919;
}
input[type="text"] {
	width: 278px;
	border: 1px solid #888;
	margin: 10px 0;
}
input[type="text"].error {
    font-family: sans-serif;
    font-size: 16px;
    line-height: 16px;
    padding: 10px;           
    border: 1px solid #D11919;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;	
	
	/* Firefox 4+ */
	-moz-animation-name: glow;
	-moz-animation-timing-function: ease-in;
	-moz-animation-iteration-count: infinite;
	-moz-animation-direction: alternate;
	-moz-animation-duration: 500ms;
	
	/* Webkit */
	-webkit-animation-name: glow;
	-webkit-animation-timing-function: ease-in;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-direction: alternate;
	-webkit-animation-duration: 500ms;
}

/* ANIMATIONS (FIREFOX) */

@-moz-keyframes header-drop {
    0% {
		top: -100px;
    }
	100% {
		top: 0px;
    }
}
@-moz-keyframes colour-change {
    0% {
		background: red;
    }
	33% {
		background: green;
    }
    66% {
    	background: blue;
    }
}
@-moz-keyframes loading {
    0% { 
    	border-top: 10px solid black; 
    }
	25% { 
		border-right: 10px solid black; 
	}
	50% { 
		border-bottom: 10px solid black; 
	}
    75% { 
    	border-left: 10px solid black; 
    }
	100% {
		border-top: 10px solid black;
    }
}
@-moz-keyframes glow {
    0% { 
    	-moz-box-shadow: 0px 0px 5px #D11919;
    	-webkit-box-shadow: 0 0 5px #D11919;
    	box-shadow: 0 0 5px #D11919;
    }
    
    100% {
		-moz-box-shadow: 0px 0px 15px #D11919;
		-webkit-box-shadow: 0 0 15px #D11919;
		box-shadow: 0 0 15px #D11919;
    }
}
@-moz-keyframes shakey {
    0% { 
    	left: -10px;
    }
    25% {
    	left: 10px;
    }
    50% {
    	left: -10px;
    }
    75% {
		left: 10px;
    }
    100% {
    	left: 0px;
    }
}


/* ANIMATIONS (WEBKIT) */

@-webkit-keyframes header-drop {
    0% {
		top: -100px;
    }
	100% {
		top: 0px;
    }
}
@-webkit-keyframes colour-change {
    0% {
		background: red;
    }
	33% {
		background: green;
    }
    66% {
    	background: blue;
    }
}
@-webkit-keyframes loading {
    0% { 
    	border-top: 10px solid black; 
    }
	25% { 
		border-right: 10px solid black; 
	}
	50% { 
		border-bottom: 10px solid black; 
	}
    75% { 
    	border-left: 10px solid black; 
    }
	100% {
		border-top: 10px solid black;
    }
}
@-webkit-keyframes glow {
    0% { 
    	-moz-box-shadow: 0px 0px 5px #D11919;
    	-webkit-box-shadow: 0 0 5px #D11919;
    	box-shadow: 0 0 5px #D11919;
    }
    
    100% {
		-moz-box-shadow: 0px 0px 15px #D11919;
		-webkit-box-shadow: 0 0 15px #D11919;
		box-shadow: 0 0 15px #D11919;
    }
}
@-webkit-keyframes shakey {
    0% { 
    	left: -10px;
    }
    25% {
    	left: 10px;
    }
    50% {
    	left: -10px;
    }
    75% {
		left: 10px;
    }
    100% {
    	left: 0px;
    }
}