html, body{margin:0;padding:0;border:0; vertical-align:baseline}

body{
	background-color:#e5e5e5;
	font-family:Arial, Verdana, Helvetica, sans-serif;
	font-size:10pt;
	/*font-size:14px;
	line-height:20px;*/
}
body { word-wrap: break-word; }

/* STRUCTURE */

#pagewrap {
	padding:8px;
	width: 980px;
	margin: 0 auto;
	overflow:hidden; /* вынужденное свойство чтобы adsense Блоки не вылазили за родительские при узких экранах */
}
#header {
	/*height: 100px;*/
	height:auto;
	/*padding: 0 15px;*/
	padding:0;
}
#middle {
	width: 764px; /* Account for margins + border values */
	float: left;
	/*padding: 5px 15px;*/
	padding: 0;
	margin: 0px 5px 5px 5px;
}
/*#middle_read {
	width: auto;
	float: none;
	padding: 0;
}*/
#right_sidebar {
	width: 195px;
	float: left;
	/*padding: 5px 15px;*/
	/*padding:5px 0;*/
	margin: 0px 5px 5px 0;
}

#footer {
	clear: both;
	/*padding: 0 15px;*/
}

#search_input{
	width:92%;
	float:left;
	margin:3px;
	height:20px;
	color:black;
	background-color:#eeeeee;
	border:1px solid #000000;
}

#search_btn{
	width:5%;
	margin:0 0 0 5px;
	float:right;
	text-align:center;
	margin:3px;
	height:24px;
	color:black;
	background-color:#f7f7f7;
	border:1px solid #000000;
}

#read_advert_top{
	float:left;
	/*width:700px;
	height:280px;*/
	text-align:center;
	margin:0 0 15px 0;
}

#abc_lists_common{
	padding:88px 5px 0 30px;
}

#abc_list_1, #abc_list_2{
	margin:10px 0;
}

#abc_list_1{
	float:left;
}

#abc_list_2{
	float:right;
}

#auth_top_adv{
	float:right;
}

#seems_list_common{
	display:table;
	border:1px #98AAB1 solid;
	background-color:#f5f5f5;
	/*width:100%;*/
	padding:5px;
	box-sizing:padding-box;
}

#seems_left{
	display:table-cell;
	vertical-align:middle;
	text-align:center;
	margin:0 0 5px 0;
}

#seems_right{
	display:table-cell;
	vertical-align:middle;
	text-align:right;
}

#book_info_block{
	float:left;
	max-width:500px;
}

#book_covers{
	float:left;
	margin:0 15px 0 0;
}

.one_row_item{
	float: left;
	width:25%;
	height:20px;
	line-height:20px;
	overflow:hidden;
	text-align:center;
}

/************************************************************************************
MEDIA QUERIES
*************************************************************************************/
/* for 980px or less */
@media screen and (max-width: 980px) {

	#pagewrap {
		/*width: 100%;*/
		width: auto;
	}
	#middle {
		width: 76%;
	}
	#right_sidebar {
		width: 22%;
	}
	
	/*#middle_read {
		padding: 1% 2%;
		margin: 0px 0px 5px 0;
	}*/
	
	#read_advert_top{
		float:left;
	}
	
	#abc_lists_common{
		padding:88px 5px 0 15px;
	}

	#abc_list_1,#abc_list_2,#auth_top_adv{
		float:none;
		clear:both;
	}
	
	#seems_list_common, #seems_left, #seems_right{
		display:block;
	}

}

/* for 820px or less */
@media screen and (max-width: 820px) {

	#right_sidebar {
		width: 21%;
	}
	
	#read_advert_top{
		/*width:400px;*/
		float:none;
	}
	
}

/* for 700px or less */
@media screen and (max-width: 700px) {
	.mobile_unnecessary{
		display: none;
	}
	#middle {
		width: auto;
		float: none;
		/*margin-left: 0px;
		padding: 1% 2%;*/
	}
	
	#right_sidebar {
		width: auto;
		float: none;
	}
	#right_sidebar {
		display: none;
	}
	
	#right_sidebar_read{
		width: auto;
		float: none;
		margin: 0;
		display:table-footer-group;
	}
	
	#selectable-content{
		display:table-header-group;
	}
	
	#two_columns{
		display:table;
		border-spacing:0;
		/*width:100%;*/
		padding: 0% 2%;
	}
	
	#read_advert_top{
		/*width:300px;*/
		float:none;
	}
	
	#abc_lists_common{
		line-height:200%;
	}
	
	#book_info_block, #book_covers{
		float:none;
		clear:both;
	}
	
	.act, #first{
		display:block !important;
	}
	
	.mobile_br{
		display:block;
		line-height:200%;
		margin:5px 0;
	}

	img {
		max-width: 220px !important;
	}
	
	.date{
		padding:0 !important;
	}
	
	a{
		text-decoration:underline !important;
	}
	
	#search_input{
		width:81%;
	}

	#search_btn{
		width:16%;
	}
}

/* for 600px or less */
@media screen and (max-width: 600px) {
	#search_input{
		width:80%;
	}

	#search_btn{
		width:16%;
	}
	
	#read_advert_top{
		/*width:200px;*/
		float:none;
	}
}

/* for 480px or less */
@media screen and (max-width: 480px) {

	#header {
		height: auto;
		padding:0;
	}
	h1 {
		font-size: 2em;
	}
	#right_sidebar, #footer {
		display: none;
	}
	
	.one_row_item{
		width: auto !important;
		float: none;
		height: auto;
	}
	
	#rating_item{
		max-height:215px;
		overflow:hidden;
	}
	
	#search_input{
		width:74%;
	}

	#search_btn{
		width:17%;
	}
	
	#read_advert_top{
		float:none;
	}
	
}

/* for 340px or less */
@media screen and (max-width: 340px) {
	.small_mobile_unnecessary{
		display: none;
	}
	
	#read_advert_top{
		float:none;
	}
}

#left_sidebar {
	/*background: #f8f8f8;*/
}
#right_sidebar {
	/*background: #f0efef;*/
}
#header, #left_sidebar, #middle, #middle_read, #right_sidebar, #right_sidebar_read {
	margin-bottom: 5px;
}

#pagewrap, #middle, #middle_read, #right_sidebar, #right_sidebar_read, #footer {
	/*border: solid 1px #ccc;*/
}

#footer{
	/*border: 1px #98AAB1 solid;text-align:center;padding:5px;background-color:#e6e6e6;*/
}

#right_sidebar p{
	margin:0;
	padding:0 0 5px 0;
}

#middle table, #right_sidebar table{
	border:1px #98AAB1 solid;
	width:100%;
	background-color:#e5e5e5;
	margin-top:5px;
}
#middle table p{
	margin:3px 0;
}

.table_head_marker{
	background-color:#f5f5f5;
	width:5%;
}
.table_head_title{
	background-color:#d5d5d5;
	width:95%;
	padding-left:5px;
}

#footer div{
	border: 1px #98AAB1 solid;
	background-color:#e0e0e0;
	text-align:center;
	margin:0 5px 3px 5px;
}

/*end media queries*/

a {color:#000000;}
a:active{color:#000000}
a:visited{color:#000000}
a:hover {color:#00ccff;text-decoration:none;}

table{border:0;padding:0;margin:0}
td{padding:0}

form{margin:0;padding:0}

#rating_item{
	width:50%;
	float:left;
}
.p10 {padding-left:10px;width:50%;}
b {font-family: Arial,Verdana,Times New Roman;font-size:100%;}

.ms2 {font: 90% "Courier New" Courier monospace;}
.ms3 {font: 100% "Courier New" Courier monospace;}
.l {font-size:60%;}
.l2 {font-size:80%;}

h1 {font-size:14pt;color:#0000ff;margin:0;display:inline}
h2 {font-size:12pt;color:#000000;margin:0;}
i {margin-left:10px;font-size:8pt;color:#a0a0f0;font-weight: bold;}
  
hr {
	height: 1px;
	border: none;
	color: #adadad;
	background: #adadad;
}
	
* html hr {/* хак для ие6 */
	margin: -7px 0; /* устраняем начальный отступ для ие6 */
}

.text_read{
	clear: both;
	padding:0 5px 0 10px;
	font: 12pt Verdana;
	/*text-indent: 1.4em;*/
	text-align: justify;
}
.text_read2{
	padding-left: 20px;
	padding-right: 10px;
	font: 12pt Verdana;
	text-align: justify;
}
	
.pages_navi{
	font: bold 11pt/14pt Verdana;
	padding: 0 10px 0 0;
	text-align: right;
}
	
.current_page{
	color:red;
	padding: 5px 5px;
	background-repeat: no-repeat;
	background-position: center center;
	color: #333;
	text-decoration: none;
	line-height: 100%;
	white-space: nowrap;
	display: inline-block;
	position: relative;
	vertical-align: middle;
	margin: 0 2px 5px 0;
	background-color: #ececec;
	border: solid 2px #e66c16;
	-webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 0 rgba(0,0,0,.1);
	-moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 0 rgba(0,0,0,.1);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 0 rgba(0,0,0,.1);
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
	
div.addthis_toolbox {
	/*float:right;
	clear:none !important;*/
	text-align:right;
	display:inline-block;
}
	
th {
	font-weight: bold;
	text-align: left;
}
	
label.error {
	color: red;
	font-style: italic;
}
	
input.error {
	border: 1px dotted #f00;
}
	
/*book formats links*/
#first a{color:blue;}
#first div{
	padding-top: 50px !important;
	border-width: 0 !important;
	background-repeat: no-repeat;
}

#epub_link{
	background-image: url('/images/dwnld_epub_icon_sprite.png');
}
#txt_link{
	background-image: url('/images/dwnld_txt_icon_sprite.png');
}
#pdf_link{
	background-image: url('/images/dwnld_pdf_from_text_icon_sprite.png');
}
#pdf_ext_link{
	background-image: url('/images/dwnld_pdf_icon_sprite.png');
}
#pdf_bw_link{
	background-image: url('/images/dwnld_pdf_bw_icon_sprite.png');
}
#mobi_link{
	background-image: url('/images/dwnld_mobi_icon_sprite.png');
}
#djvu_link{
	background-image: url('/images/dwnld_djvu_icon_sprite.png');
}

#first{
	display:table;
	width:100%;
	box-sizing:padding-box;
}

.act{
	background-position: center top;
	display:table-cell;
}
.inact{
	background-position: center -96px;
}
.inact a{
	color: lightgrey !important;
	text-shadow: 0px 1px 0px #efefef !important;
	filter: dropshadow(color=#efefef,offX=0,offY=1) !important;
}
.inact:hover{
	color: lightgrey;
}

.various, #more_isbn_a{
	text-decoration: none;
    border-bottom: 1px dotted #000;
}
/*a.various:hover {color:#00ccff;border-bottom: 0;}*/

/*floating ads*/
.container {
	float:right;
	width:160px;
	text-align:right;
}
.floating {
	/*background: #1c1c1c;*/
	/*padding: 10px;*/
	width: 160px; /*указываем ширину*/
	
	/*position: absolute;
	top: 420px; 
	right: 20px;*/
}
.fixed {
 position: fixed;
 top: 20px; /*здесь указываем отступ сверху*/
 /*right: 20px;*/
 z-index: 9999; /*устанавливаем блок поверх всех элементов на странице*/
}
/*****/

#related_author{
	display:block;
	font-weight:bold;
}
#related_author_data{
	display:block;
	padding-bottom:5px;
}

p {text-align: justify}
blockquote {text-align: justify}

hr {width: 50%; text-align: center}
hr.full 	{width: 100%}
hr.short	{width: 10%; text-align: center}

.note {font-size: 0.8em; margin-left: 10%; margin-right: 10%}
.footnote {font-size: 0.8em; margin-left: 10%; margin-right: 10%}
.side {padding-left: 10px; font-weight: bold; font-size: 75%;
		 float: right; margin-left: 10px; border-left: thin dashed;
		 width: 25%; text-indent: 0px; font-style: italic; text-align: left}

.sc	{font-variant: small-caps}
.lef {float: left; width: auto}
.mid {text-align: center}
.rig {float: right; width: auto}
.sml {font-size: 75%}
.large {font-size: 130%}
.mid img {display:block;margin:0 auto}

#adjustable_text_read img {display:block;margin:0 auto}

.figleft {margin:0 auto}
.figright {margin:0 auto}

.page_top_title{min-height:47px;padding:0;float:left;margin:0 20px 0 0;}