html, body, div, span, img, p, em, ul, ol, h1, h2, h3, h4 {
	margin: 0;
	padding: 0;
	border-width: 0;
}

body {
	color: #999;
	font-size: medium;
	font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
	line-height: 1.4em;
	background-color: black;
	background-image: url(../layout/bg.jpg);
	background-repeat: no-repeat;
	background-position: left top;
	background-attachment: scroll;
	padding-top: 2em;
	padding-left: 240px;
	padding-right: 50px;
}

ul li {
	list-style-type: disc;
	white-space: normal;
	list-style-position: inside;
}

p, li {
	margin-bottom: 0.5em;
}

p.caption {
	font-style: italic;
	margin-bottom: 2em;
	text-align: center;
	line-height: 1em;
}

hr {
	border-style: none;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #333;
}

abbr {
	font-style: italic;
	cursor: help;
}

/* HEADERS */

h1, h2, h3, h4 { /* Project name, Intro */
	font-size: 1.5em;
	font-weight: normal;
	font-style: normal;
	line-height: 1.25em;
	margin-bottom: 0.5em;
	color: #FFF;
}

h1 span { /* Project date */
	color: #333;
	float: right;
	_margin-top: -1.25em;
}

h2 { /* Task */
	font-size: 1em;
	background-color: #000;
	line-height: 1.5em;
	padding: 0 0.5em 0.1em;
	margin-left: -0.5em;
	-moz-border-radius: 0.25em;
}

h3 { /* Previews header */
	font-size: 1em;
	background-color: #000;
	border-top: 1px solid #333;
	margin-bottom: 15px;
	line-height: 1.5em;
	padding-left: 0.5em;
	padding-bottom: 0.1em;
	clear: left;
}

h1, h2 { width: 700px; }

.intro { width: 100%; }

/* LINKS */

:focus { outline-width: 0 }

a:link, a:visited {
	color: #999;
	text-decoration: underline;
}

a:hover, a:active {
	color: #3cf;
	text-decoration: underline;
}

/* List of client's projects */

p.projects a { 
	margin-right: 1em; 
	margin-bottom: 0.5em; 
}

p.projects a#active { font-weight: bold; }

p.projects a#active:hover,
p.projects a#active:active {
	color: #999;
	text-decoration: none;
}

/* LAYOUT */

div#logo { }

div#logo h1 { /*ArtDesigner.ru*/
	font-size: 2.5em;
	color: #999;
	background-image: url(../layout/favicon32.png);
	background-repeat: no-repeat;
	background-position: left center;
	padding-left: 1em;
	margin-left: -1em;
}

#logo h1 a:link,
#logo h1 a:visited,
#logo h1 a:active { text-decoration: none; }

#logo h1 a:hover{
	text-decoration: underline;
	color: #3cf;
}

sup {
	font-size: 0.5em;
	color: #333;
}


div#content {
	max-width: 910px;
	_width: 715px;
	overflow: visible;
	margin-left: -15px;
	padding-left: 15px;
}

#content p { width: 700px; }

div#contacts { overflow: hidden; }

#contacts p {
	float: left;
	margin-right: 2.5em;
	width: auto;	
}

ul.previews { overflow: hidden; } /* previews on the homepage */

ul.previews li { display: inline; }

ul.previews li a {
	display: block;
	float: left;
	width: 48px;
	height: 48px;
	border: 1px solid #333;
	margin-top: 0;
	margin-left: 0;
	margin-right: 15px;
	text-decoration: none;
	margin-bottom: 15px;
}

ul.previews li a:hover { border: 1px solid #fff; }

div#subnav { width: 700px; }

div#subnav span {
	display: block;
	float: left;
}

span.prev { width: 250px; }

span.home {
	text-align: center;
	width: 200px;
}

span.next {
	text-align: right;
	width: 250px;
}

div.images {
	max-width: 1020px;
	line-height: 0;
	margin-left: -11px;
}

div.images img {
	border: 1px solid #333;
	margin-right: 15px;
	margin-bottom: 15px;
	padding: 10px;
}


div#footer {
	color: #333;
	font-size: small;
	line-height: 3em;
	margin-top: 2em;
	border-top: 1px solid #333;
	margin-right: -50px;
	margin-left: -240px;
	background-color: #000;
}

div#lang {
	float: left;
	width: 240px;
}

#lang a:link, #lang a:visited {
	margin-left: 1em;
	color: #333;
}

#lang a:hover, #lang a:active {
	margin-left: 1em;
	color: #3cf;
}

div#scripts {
	float: right;
	display: inline;
}

#scripts a:link, #scripts a:visited {
	margin-right: 1em;
}
