/* Including fonts */

@font-face {
	font-family: TrashHand;
	src: url('../font/TrashHand.ttf');
}

@font-face {
	font-family: League;
	src: url('../font/League_Gothic.otf');
}

/* GENERIC ELEMENTS */

h1, h2, h3{
	color: #afa9a1;
	font-family: League;
	text-shadow: 0px 2px 3px #000;
	font-size: 200%;
	text-transform: uppercase;
	font-weight: bold;
	margin: 20px 0 20px;
}

a{
	color: #f7f3ee;
}

a:hover{
	color: #999;
	background: #f7f3ee;
}

ul{
	list-style-image: url(../img/bull.png);
	list-style-position: outside;
	padding-left: 28px;
}

/* GENERIC CLASSES */
a.button{
	color: #bbb8b0;
	background: transparent;
	padding: 4px;
	-moz-border-image: url(../img/btn.png) 0 4 0 4 stretch stretch;
	-webkit-border-image: url(../img/btn.png) 0 4 0 4 stretch stretch;
	text-decoration: none;
	text-shadow:0px -1px 1px #53402d;
}

a.button:hover{
	text-shadow:0px 1px 1px #000;
}

a.button:active{
	color: #fff;
}

/* LAYOUT */

body {
	background: #333 url(../img/holga.png) no-repeat center top;
	color: #bbb8b0;
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 15px;
	line-height: 160%;
	margin: 0;
	padding: 0;
}

/* header */
#header {
	margin-left: 475px;
	height: 145px;
	padding-top: 40px;
	text-shadow: 0px 2px 3px #5a4432;
}

#header h1, #header h2{
	text-shadow: 0px 2px 3px #5a4432;
	margin-bottom: 0;
}

#header h1{
	font-size: 60px;
	margin-top: 0;
}

#header h2{
	font-size: 40px;
	margin-top: 20px;
}

#header p{
	margin-top: 10px;
	font-size: 16px;
}


/* container */
#container {
	margin: 0 auto;
	width: 900px;
}

/* alert */
#alert{
	background: url(../img/bg_alert.jpg) no-repeat center top;
	color:#635e57;
	
	font-size: 12px;
	font-style: italic;
	height: 300px;
	margin-top: 50px;
	padding: 0 100px;
	position: absolute;
	text-align: center;
	top: 100px;
	width: 700px;
	z-index: 103;
	
	transform: translateY(-500em);
	-webkit-transform: translateY(-500em);
	/* with this simple trick I'm sure, only non-Webkit Browsers  display it*/
}

#alert span{
	display: block;
	margin: 10px auto;
	width: 296px;
}

#alert p{
	clear: left;
	padding-top: 10px;
}

#alert a{
	color: #000;
	text-decoration: none;
}

#alert a:hover{
	text-decoration: underline;
}

#safari, #chrome{
	display: block;
	float: left;
	height: 18px;
	margin: 0 10px;
	padding-top: 130px;
	width: 128px;	
}

#safari{
	background: url(../img/safari.gif) no-repeat center top;
}

#chrome{
	background: url(../img/chrome.gif) no-repeat center top;
}



/* PHOTOS */

#fotocontainer {
	position: relative;
	-moz-transform: rotate(2deg);
	-webkit-transform: rotate(2deg);
	transform: rotate(2deg);
}

#fotocontainer div {
	background-image: url(../img/phBackground.png);
	background-repeat: no-repeat;
	background-position: center center;
	width: 300px;
	height: 300px;
	text-align: center;
	position: absolute;
	left:470px;
	
	transition-property: transform;
	transition-timing-function: ease-out;
	transition-duration: .4s;
	-moz-transition: transform ease-out .4s;
	-webkit-transition: -webkit-transform ease-out .4s;
}

/*permitting scale-transform only when the image has finished all transitions*/
#fotocontainer div.onTop:hover {
	transform: scale(1.1) rotate(-2deg);
	-webkit-transform: scale(1.1) rotate(-2deg);
	z-index: 104;
}

#fotocontainer img {
	margin: 10px;
}

#fotocontainer p {
	background: #bbb8b0;
	color: #333;
	font-family: TrashHand, Georgia, "Times New Roman", Times, serif;
	font-size: 18px;
	font-style: italic;
	left: 8px;
	margin-top: -33px;
	opacity: .8;
	position: absolute;
	padding: 5px;
	
	box-shadow: 0px -1px 3px #333;
	transform: rotate(-2deg);
	-webkit-box-shadow: 0px -1px 3px #333;
	-webkit-transform: rotate(-2deg);
}

/* NAVIGATION */

#nav {
	margin: 120px 0 0 405px;
	text-align: center;
}

#nav:hover {
	opacity: 1;
}

#nav a {
	background-repeat: no-repeat;
	background-position: top;
	color: #cecbc6;
	display: block;
	float: left;
	height: 60px;
	text-indent: -523em;
	width: 60px;
	outline: none;
	border-bottom: 0;
}

#nav a:hover {
	background-color: transparent;
	background-position: center;
	position: relative;
	z-index: 101;
}

#nav a:active {
	background-position: bottom;
}

a#next {
	background-image: url(../img/next_button.png);
	margin-left: 300px;
}

a#prev {
	background-image: url(../img/prev_button.png);
}

/* CONTENT */
#content{
	line-height: 170%;
	font-family: Georgia, "Times New Roman", Times, serif;
	position: absolute;
	padding: 0 20px;
	top: 580px;
	width: 860px;
}

#content div{
	float: left;
	width: 42%;
	margin: 0 4%;
}

#content #footer{
	margin-top: 40px;
	padding-top: 10px;
	padding-bottom: 30px;
	width: 800px;
	border-top: solid 1px;
	clear: both;
}

#content #license{
	width: 100%;
	color: #666;
	font-size: 9px;
	line-height: normal;
	margin: 0;
	margin-top: 10px;
	font-family: Verdana;
}

/* TRANSITIONS CLASSES */

.goLeft {
	transform: translateX(330px) translateY(-20px) rotate(-5deg);
	-webkit-transform: translateX(330px) translateY(-20px) rotate(-5deg);
}

.goRight {
	transform: translateX(-330px) rotate(-5deg);
	-webkit-transform: translateX(-330px) rotate(-5deg);
}

.goBottom {
	box-shadow: 0px 0px 12px #333;
	-moz-box-shadow: 0px 0px 12px #333;
	-webkit-box-shadow: 0px 0px 12px #333;

	z-index: 1;
}

.goTop, .onTop {
	box-shadow: 0px 0px 12px #333;
	-moz-box-shadow: 0px 0px 12px #333;
	-webkit-box-shadow: 0px 0px 12px #333;

	z-index: 100;
	transform: translateX(0px) rotate(0deg);
	-webkit-transform: translateX(0px) rotate(0deg);
}