/* Table of contents:
- default
- layout
- menu
- content
- tweets
- forms
- vCard
- universal addons
*/

/* Fonts */
@import url('https://fonts.googleapis.com/css?family=Lora|Ubuntu&subset=cyrillic');

/* default */
* {
	margin: 0;
	padding: 0;
}

body {
	background-color: #fff;
	color: #000;
	font-family: 'Lora', serif;
	font-size: 14px;
}

h1, h2, h3, h4 {
	font-family: 'Lora', cursive;
	font-weight: bold;
	}
	h1 {
		font-size: 22px;
		margin-top: 40px;
		}
	h2 {
		font-family: 'Ubuntu', sans-serif;
		font-size: 20px;
		margin-top: 28px;
		}

h3, h4 {
	font-weight: normal;
	}
	h3 {
		font-size: 16px;
		margin-top: 12px;
		}

	h4 {
		font-size: 14px;
		}
		h4 a:link {
			text-decoration: none;
			}

p {
	font-size: 16px;
	line-height: 26px;
	margin-bottom: 10px;
}

li {
	list-style-position: inside;
	}

small, .small { font-size: 80%; }

a:link, a:visited, a:hover { text-decoration: underline; color: #5995DA; }
	a:visited { color: #407FC7; }
	a:hover { color: #76AEED; }
	a:focus	{ outline: none; }
	
	a.dotted:link, a.dotted:visited, a.dotted:hover {
		border-bottom: 1px dashed #5995DA;
		text-decoration: none;
		}
		a.dotted:visited { border-color: #407FC7; }
		a.dotted:hover { border-color: #76AEED; }
	span.dotted {
		background-color: #76AEED;
		color: #fff;
		padding: 2px 4px;
		}

img { behavior: url('/include/iepngfix.htc') }

ins, ins p { background-color: #FFFF99; text-decoration: none; }
del { text-decoration: line-through; }
pre {
	background-color: #efefef;
	color: #336600;
	font-family: courier, tahoma;
	}


/* Layout */

#wrap, #wrap4print {
    margin: 0;
	}
	#wrap {
		width: 960px;
	    margin: 0 auto;
		}

#bottom {
	background-color: #F9FAFB;
	clear: both;
	display: flex; 
	align-items: center;
	justify-content: space-between;
	font-family: 'Ubuntu', cursive;
	line-height: 26px;
	width: 100%;
	height: 40px;
	}
	#bottom ul, #bottom p {
		display: flex;
		font-size: 12px;
		list-style: none;
		margin: 0;
		padding: 0 20px;
		}
		#bottom ul li {
			margin: 0 20px;
			}
	#wrap4print #bottom { padding-left: 0; }

#left {
	margin-top: 40px;
	width: 160px;
	}

#main {
	padding: 40px 170px 0 170px;
	}

/* Модификация для мобильных устройств */
@media only screen and (max-device-width: 480px) {
	#wrap {
		width: 100%;
		margin: 0;
		}
	#left {
		display: none;
		}
	#main {
		padding-left: 0;
		padding-right: 0;
		}
	#bottom {
		flex-direction: column;
		height: auto;
		}
		#bottom ul, #bottom p, #bottom div {
			text-align: left;
			width: 100%;
			padding: 0;
			}
		#bottom ul {
			flex-direction: column;
			}
		#bottom p.copyright {
			margin-left: 20px;
			}
}


/* Menu */

#main-nav {
	background-color: #fff;
	border-bottom: solid 1px #cfcfcf;
	color: #5995DA;
	display: flex; 
	align-items: center;
	justify-content: center;
	font-size: 14px;
	line-height: 26px;
	margin: 0;
	padding: 0px 10px;
	position: fixed;
	top: 0;	left: 0;
	text-transform: uppercase;
	height: 40px; width: 100%;
	z-index: 1000;
	}
	nav {
		display: flex; 
		align-items: center;
		justify-content: space-between;
		font-family: 'Ubuntu', cursive;
		margin: 0 auto;
		width: 960px;
		}
		nav ul {
			display: flex;
			list-style: none;
			}
			nav ul li {
				padding-right: 80px;
				}
		nav a:link {
			text-decoration: none;
			}
			nav a:hover {
				text-decoration: underline;
				}
		nav .searchblock {
			display: flex;
			width: 240px;
			}
			nav .searchblock input#query {
				background-color: #F9FAFB;
				border: solid 1px #F9FAFB;
				padding-left: 3px;
				padding-right: 3px;
				width: 160px;
				}
				nav .searchblock input#query:hover {
					background-color: #f1f1f1;
					border-color: #f1f1f1;
					}
				nav .searchblock input#query:focus {
					background-color: #fff !important;
					border-color: #76AEED !important;
					outline: none;
					}

/* Модификация для мобильных устройств */
@media only screen and (max-device-width: 480px) {
	nav { 
		width: 100%; 
	}
}
					
#left h1 {
	margin-bottom: 2.4em;
	}

.leftblock {
	margin-bottom: 10px;
	}
	.leftblock ul {
		border-right: solid 1px #cfcfcf;
		font-family: 'Ubuntu', cursive;
		font-size: 14px;
		padding: 10px;
		}
		.leftblock ul li {
			padding: 10px 0;
			list-style-position: outside;
			list-style-type: none;
			}
	.leftblock a:link, .leftblock a:visited {
		text-decoration: none;
		}
		.leftblock a:hover {
			text-decoration: underline;
			}
	.leftblock a img {
		opacity: 0.3;
		}
			

/* Content */

.content {
	margin-bottom: 10px;
	position: relative;
	padding: 10px;
	}

.advertising, .keywordCloud {
	color: #5D6063;
	display: flex;
	font-family: 'Ubuntu', cursive;
	}
	.advertising p, .keywordCloud p {
		min-width: 110px;
		font-size: 12px;
		padding: 0 10px;
		}
	.keywordCloud p:first-child {
		padding-left: 0;
		}

.keywordCloud {
	}
	.keywordCloud span {
		margin: 2px 4px;
		}
	.keywordCloud a:link, .keywordCloud a:visited, .keywordCloud a:hover {
		color: #5995DA;
		text-decoration: none;
		}
		.keywordCloud a:hover {
			background-color: #76AEED;
			color: #fff;
			}

.banner {
	margin: 5px 0 15px 0;
	}

.subtitle {
	display: flex; 
	align-items: flex-start;
	justify-content: space-between;
	margin: 5px 0;
	}
	.subtitle h3 {
		margin-top: 0;
		}
	
.date {
	color: #CFCFCF;
	font-family: 'Ubuntu', sans-serif;
	font-size: 13px;
	}

.notification {
	color: #5D6063;
	font-family: 'Ubuntu', sans-serif;
	font-size: 12px;
	}

.tags {
	color: #5D6063;
	font-size: 12px;
	}

.news img { margin-right: 1.0em; }

/* Модификация для мобильных устройств */
@media only screen and (max-device-width: 480px) {	
	.news img {
		width: 100% !important;
		height: auto;
	}
}

.news p, .error p, .error li { line-height: 150%; }

.travel .travel-list {
	font-family: 'Ubuntu', cursive;
	font-size: 14px;
	}
	.travel-list ul {
		margin-top: 10px;
		}
	.travel-list ul li {
		list-style-type: none !important;
		list-style-position: outline;
		padding-bottom: 10px;
		padding-left: 24px;
		}
		.travel-list li.flex {
			padding-left: 0;
			}
		.travel-list .flex {
			align-items: center;
			display: flex;
			flex-direction: row;
			}
			.travel-list .flex img {
				margin-right: 6px;
				}

.poster {
	font-family: 'Ubuntu', cursive;
	font-size: 14px;
	}
.posterForm {
	display: flex;
	flex-direction: column;
	}
	.posterForm div {
		display: flex;
		flex-direction: row;
		margin-bottom: 20px;
		}
		.posterForm div div {
			flex-direction: column;
			}
			.posterForm div div:first-child {
				padding-right: 20px;
				width: 180px;
				}

.contacts {
	/* border-right: solid 1px #cfcfcf; */
	}
	.contacts ul {
		font-family: 'Ubuntu';
		font-size: 12px;
		}
		.icon_sites {
			background: url("/img/sites_icons.png") no-repeat scroll 0 7px transparent;
			background-position: 0 -748px;
			padding-left: 20px;
			}
			.icon_sites.email {
				background-position: 0 -238px;
				}
			.icon_sites.facebook {
				background-position: 0 -348px;
				}
			.icon_sites.livejournal {
				background-position: 0 -648px;
				}
			.icon_sites.vkontakte {
				background-position: 0 -298px;
				}
			.icon_sites.twitter {
				background-position: 0 -48px;
				}
			.icon_sites.odnoklassniki {
				background-position: 0 -798px;
				}
			.icon_sites.google {
				background-position: 0 -98px;
				}
			.icon_sites.yandex {
				background-position: 0 -198px;
				}
		.contacts ul li {
			list-style-type: none !important;
			list-style-position: outline;
			padding: 12px 0 0 22px;
			}
	.my-projects, .my-projects p {
		font-family: 'Ubuntu';
		font-size: 12px;
		line-height: 16px;
		margin-top: 10px;
		}
		ul li .desc {
			color: #cfcfcf;
			font-size: 11px;
			}

.copyright {
	font-size: 14px;
	color: #5D6063;
	}

table.typical {
	border: 1px solid #CFCFCF;
	margin: 1.0em 0;
	}
	table.typical td {
		padding: 0.6em;
		vertical-align: top;
		}

table.portfolio {
	margin: 1.0em 0;
	width: 668px;
	}
	table.portfolio td {
		padding: 0.6em 0;
		vertical-align: top;
		}
		table.portfolio td.logo {
			width: 130px;
			text-align: center;
			
			}
			table.portfolio td.logo p {
				padding-right: 10px;
				}
	.portfolio div {
		color: #454545;
		float: left;
		font-size: 0.9em;
		margin: 0 1em 1em 0;
		}
	.unlike {
		display: none;
		}

.relatedPosts {
	background-color: #F9FAFB;
	display: flex;
	padding: 20px;
	flex-direction: column;
	font-family: 'Ubuntu', cursive;
	}
	.relatedPosts p {
		font-size: 12px;
		padding: 0 10px;
		}

/* Модификация для мобильных устройств */
@media only screen and (max-device-width: 480px) {
	.relatedPosts {
		background-color: #fff;
		padding: 20px 0;
		}
		.relatedPosts p {
			padding: 0;
			}
}
		
.randomPhoto {
	background-color: #F9FAFB;
	display: flex;
	padding: 20px;
	flex-direction: column;
	}
.listPhoto {
	display: flex;
	flex-direction: column;
	}
	.listPhoto div {
		display: flex;
		flex-direction: row;
		margin-bottom: 20px;
		}
		.listPhoto div div:first-child {
			flex-direction: column;
			}
	.randomPhoto p, .listPhoto p {
		color: #5D6063;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		font-family: 'Ubuntu', cursive;
		font-size: 12px;
		}
		.randomPhoto p {
			
			}
	.randomPhoto img, .listPhoto img {
		width: 120px;
		height: 120px;
		border-width: 0;
		}
		.listPhoto img {
			margin-right: 20px;
			}

.fotopreview img {
	width: 120px;
	height: 120px;
	border-width: 0;
	float: left;
	margin: 0 10px 10px 0;
	}
.foto {
/*	
	border: 1px solid #CFCFCF;
	padding: 10px;
*/
	background: url('/img/icon_loader.gif') no-repeat center;
	}



.addon {
	width: 258px;
	margin-left: 10px;
	}
	.addon h4 {
		padding: 5px 0 5px 10px;
		}
	.addon h6 {
		border-bottom: 1px solid #cfcfcf;
		font-size: 0.9em;
		font-weight: normal;
		padding: 3px 0 0 10px;
		}
	.addon p {
		font-size: 0.9em;
		padding-left: 10px;
		}


.rss, .xml {
	font-family: 'Ubuntu', sans-serif;
	font-size: 12px;
	position: absolute;
	top: 10px;
	right: 50px;
	}
	.rss img, .xml img, .print img {
		width: 1em;
		height: 1em;
		border-width: 0;
		position: relative;
		top: 2px;
		}
	.xml img {
		width: 2.25em;
		}
.print {
	color: #CFCFCF;
	font-family: 'Ubuntu', sans-serif;
	font-size: 13px;
	}
	.print a:link, .print a:visited {
		color: #CFCFCF;
		text-decoration: none;
		}
		.print a img {
			filter: grayscale(100%);
		}
		.print a:hover {
			color: #76AEED;
			text-decoration: underline;
			}
			.print a:hover img {
				filter: grayscale(0%);
				}
	.print .icon_sites.twitter {
		background-position: 0 -50px;
		filter: grayscale(100%);
		padding-left: 18px;
		}
/* Модификация для мобильных устройств */
@media only screen and (max-device-width: 480px) {	
	.print {
		display: none;
	}
}

.technologies {
	color: #cfcfcf;
/*	margin: 50px 50px 0 55px; */
	margin: 0px;
	}
	.technologies img {
		background-color: #cfcfcf;
		background-position: left bottom;
		border-width: 0px;
		width: 60px;
		height: 37px;
		margin: 10px 10px 10px 0;
		}
	.technologies img:hover {
		background-position: left top;
		}

.flight {
	font-family: 'Ubuntu', sans-serif;
	width: 668px;
	}
	.flight thead th {
		border-bottom: solid 1px #cfcfcf;
		color: #cfcfcf;
		font-size: 11px;
		font-weight: normal;
		padding: 2px 5px;
		text-align: left;
		}
	.flight tbody th {
		background-color: #cfcfcf;
		color: #454545;
		font-size: 14px;
		font-weight: bold;
		padding: 1px 5px 2px;
		text-align: left;
		} 
		.flight tbody th span {
			font-weight: normal ;
			}
	.flight td {
		border-bottom: solid 1px #cfcfcf;
		font-size: 12px;
		padding: 10px 5px;
		vertical-align: center !important;
		}
		.flight td span {
			color: #cfcfcf;
			font-size: 0.8em;
			}

/* forms */

.button {
	background-color: #5995DA;
	border-width: 0;
	border-radius: 0;
	color: #fff;
	}
	.button:hover {
		background-color: #76AEED;
		cursor: pointer;
		}
	.button:focus {
		outline: none;
		}

.searchblock input {
	height: 24px;
	}
	.searchblock input#search {
		width: 60px;
		height: 26px !important;
		}


.addon #booksru_form, .addon #bolero_form, .addon #vote_form {
	position: relative;
	margin: 1em 0;
	}
	#booksru_form input {
		}
		input#booksru_search, input#bolero_search {
			width: 137px;
			height: 16px;
			background: url(/img/booksru_logo.jpg) no-repeat top left;
			float: left;
			font-size: 0.9em;
			margin-left: 10px;
			padding-left: 39px;
			}
		input#bolero_search {
			background: url(/img/bolero_logo.jpg) no-repeat top left;
			}
		input#booksru_submit {
			width: 65px;
			float: right;
			}
	#vote_form div {
		margin-bottom: 0.5em;
		margin-left: 10px;
		}
	
/* vCard */

.vcard {
	}
	.vcard .fn, .vcard .additional-name {
		}
	.vcard .nickname {
		display: none;
		}


/* Comments */
.add-comment {
	font-family: 'Ubuntu', sans-serif;
	font-size: 12px;
	}
.add-comment-button {
	height: 26px !important;
	width: 100px;
	}			
.comment {
	_height: 0;
	margin-bottom: 7px;
	/*overflow: hidden; */
	}
	.comment h3 {
		margin-top: 2.8em;
		}
	.comment .userpic {
		border: solid 1px #FFF;
		float: left;
		font-size: 0.75em;
		margin-right: 10px;
		position: relative;
		}
		.comment .add-userpic div {
			min-height: 100%;
			min-width: 100%;
			}
			.comment .add-userpic span {
				display: none;
				position: absolute;
				top: 50%;
				left: 50%;
				transform: translate(-50%, -50%);
				text-align: center;
				}
		.comment .add-userpic:hover {
			border: dashed 1px #CCC;
			}
			.comment .add-userpic:hover img {
				opacity: 0.05;
				}
			.comment .add-userpic:hover  span {
				display: block;
				}

hr, .color_row {
	border: 0;
	border-bottom: solid 1px #CFCFCF;
	margin-bottom: 10px;
	}


/* Universal addons */

.floatLeft	{ float: left; }
.floatRight { float: right; }
.floatClear { clear: both; }
.floatClearRight { clear: right; }

.alignLeft	{ text-align: left; }
.alignRight	{ text-align: right !important; }

.red { color: red; }
.green { color: green; }
.grey { color: #CFCFCF; }

.debug { background-color: red;	}


/* Print version */

@media print {
	div.print { display: none; visible: hidden; }
	}