/*
	Каскадные таблицы (CSS)
	Автор - Степанов Игорь, 2012 год
	Для сайта "Живая Арктика" на конкурс Web29
*/

@charset "windows-1251";

* {
	margin: 0;
	padding: 0;
	border: 0;
	outline:0;
}
ol, ul {
	list-style: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
	vertical-align: top;
}
a, a:active, a:hover {color: #000; text-decoration: none; }

body { 
	overflow-y: scroll;
	font: normal 14px Arial, sans-serif;
	background-color: #F5F5F5;
	min-width: 980px;
	text-shadow: 1px 1px 2px #AAA;
	letter-spacing: 1px;
	line-height: 1.45;
}
.hide { display: none !important; }
.dir_right, .dir_right + b { text-align: right; padding-right: 20px; }

/* Menu */
nav {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
	position: relative;
	top: 1px;
	display: table;
	margin: 19px auto 0 auto;
	z-index: 1;
}
nav a{
	position: relative;
	display: table-cell;
	background-color: #E0E0E0;
	color: #555;
	padding: 8px 16px;
	border-bottom: 1px solid #C8C8C8;
	border-left: 1px solid #C8C8C8;
	border-top: 1px solid #C8C8C8;
	text-align: center;
	vertical-align: middle;
	overflow: hidden;
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}
nav a:first-child {
	border-top-left-radius: 15px;
}
nav a:last-child {
	border-right: 1px solid #C8C8C8;
	border-top-right-radius: 15px;
}
nav a.selected {
	font-weight: bold;
	border-bottom-style: dashed;
	background-color: #FFF;
	color: #000;
}
nav a:hover {
	background-color: #D6D6D6;
	color: #000;
}
nav a.selected:hover {
	background-color: #FFF;
}


/* Header & Footer*/
header {
	background-image: url('../image/stripes.png');
	background-color: #4682B4;
	border-bottom-left-radius: 200px 20px;
	border-bottom-right-radius: 200px 20px;
	box-shadow: 0px 0px 10px #000;
}
header > article {
	display: table;
	text-align: center;
	padding: 15px 30px;
}
header h1 {
	font-size: 26px;
	font-weight: bold;		
	text-transform: uppercase;
	color: #790000;
}
header span {
	font-size: 12px;
	color: #222;
}
footer {
	border-top: 1px solid #C8C8C8;
}
footer > article {
	display: block;
	padding: 15px 30px 20px;
	overflow: hidden;
	width: 70%;
}
footer a {
	border-bottom: 1px dotted #AAA;
}
footer a:hover {
	border-bottom-color: #666;
}
footer #top {
	position: absolute;
	right: 0px;
	top: 0px;
	border-left: 1px solid #C8C8C8;
	border-right: 1px solid #C8C8C8;
	border-bottom: 1px solid #C8C8C8;
	background-color: #E0E0E0;
	color: #555;
	padding: 10px;
	font-size: 10px;
	text-transform: uppercase;
	cursor: pointer;
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	-o-transition: all 0.3s ease-in-out;
	-ms-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}
footer #top:hover {
	background-color: #D6D6D6;
	color: #000;
}
header > article, footer > article {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
	position: relative;
	margin: 0 auto;
}

/* Content */
section#wrapper {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
	position: relative;
	display: block;
	background-color: #FFF;
	width: 70%;
	min-width: 900px;
	min-height: 300px;
	margin: 0 auto;
	clear: both;
	border-top: 1px solid #C8C8C8;
	border-left: 1px solid #C8C8C8;
	border-right: 1px solid #C8C8C8;
	border-radius: 20px 20px 0 0;
	z-index: 0;
}
#loader {
	position: relative;
	top: 40px;
	left: 50%;
}
#content {
	position: relative;
	padding: 0px 30px 20px 30px;	
	text-align: center;
}
#content h1 {
	position: relative;
	display: block;
	padding-top: 20px;
	font-size: 20px;
	font-weight: bold;
	border-bottom: 1px dashed #AAA;
}
#content p {
	text-align: justify;
	padding-top: 10px;
}
#content p.galery {
	text-align: center;
}
#content p:first-child {
	padding-top: 20px;
}
#content p > span {
	font-weight: bold;
}
#content q.quote {
	display: block;
	font-style: italic;
	padding-top: 10px;
	padding-left: 20px;
}
#content q.quote ~ b {
	display: block;
	padding-left: 50px;
}
#content a {
	border-bottom: 1px dotted #AAA;
}
#content a[rel^='lightbox'] {
	border-bottom-width: 0px;
}
#content a:hover {
	border-bottom-color: #666;
}
#content .img {
	width: auto;
	max-width: 350px;
	border: 1px solid #C8C8C8;
	border-radius: 10px;
}
#content .img_f {
	height: auto;
	max-height: 200px;
	margin-top: -30px;
	margin-left: -20px;
}
#content .foto {
	width: 130px;
	height: 130px;
	overflow: hidden;
	position: relative;
	display: inline-block;
	border: 1px solid #C8C8C8;
	margin:0 10px 10px 0; 
}
.left { float: left; margin: 10px 10px 10px 0px; }
.right { float: right; margin: 10px 0px 10px 10px; }
#content img.logo {
	height: 32px;
	margin-right: 10px;
}
#content ul {
	display: inline-table;
	margin-left: 20px;
	margin-top: 10px;
	border: 1px solid #C8C8C8;
}
#content li {
	display: table-cell;
	padding: 5px 10px;
	border-right: 1px solid #C8C8C8;
}
#content li:last-child {
	border-right-width: 0px;
}

.foto  span {
	position: absolute;
	top: 10px;
	display: none;
	width: 120px;
	background: rgba(204, 204, 204, 0.7);
	padding: 5px;
	/*opacity: 0.8;*/
}
.img_f:hover + span, .foto span:hover  {
	display: block;
}