/*
Theme Name: APPM
Version: 2.0
Author: Pavel Brayvo
Author URI: http://brayvo.ru/
*/


/*- Page Structure */

* {
	padding: 0;
	margin: 0;
	}

body {
	width: 100%;
	font: 75% Georgia, Times New Roman, Times, serif;
	color: #333;
	background: #ffffff;
	text-align: left;
	margin: 0;
	}

td { font-size: 13px;}

body.flex #page {
	width: 100%;
	}

.print {
	display: none;
}

#page {
	margin: 0 auto;
	z-index: 2;
	position: relative;
	width: 100% !important;
	_width: 100% !important;
	text-align: left;
	margin-top: 60px;
	border-top: none;
	}

* html #page {
	width: 100%;
	text-align: left;
	} /* IE hack */

#primary {
	width: 50%;
	position: relative;
	float: left;
	z-index: 1;
	padding-left: 130px;
	margin-bottom: 20px;
	}

#header {
	padding: 0;
	position: relative;
	height: 80px;
	width: 100% !important;
	}

#header .headerimg {
	margin-left: 70px;
	}	

#footer {
	float: left;
	display: block;
	height: 50px;
	width: auto;
	z-index: 3;
	position: relative;
	text-align: left;
	border-top: 1px dotted #CCCCCC;
	padding-top: 6px;
	color: #AFAFAF;
	font-size: 12px;
	}
/*- End Page Structure */


/*- Index Page */

#page .indexnews {
	font-size: 12px;
	margin-top: 20px;
	padding-left: 0;
	padding-bottom: 10px;
	border-top: 1px dotted #ccc;
	width: 390px;
	}
#page .indexnews span {
	font-size: 18px;
	color: #666666;
	margin-bottom: 15px;
	}
#page .indexnews a {
	color: #627B8F;
	}
#page .item .pagenews {
	font-size: 12px;
	width: 80%;
	}


/*- Primary contents */

.itemtext { margin: 0; }
.itemcat  { margin: 0; }

.mleft { margin-left: -16px; }

#page .item {
	margin: 0;
	padding: 5px 0;
	position: relative;
	background-color: transparent;
	}
#page .item .itemtext {
	font-size: 13px;
	line-height: 1.4;
	color: #444;
	background-color: transparent;
	}
#page .item .itemtext p {
	background-color: transparent;
	margin-bottom: 10px;
	}

#page .item .itemtext blockquote {
	margin-top: 20px;
	margin-bottom: 20px;
	margin-left: -25px;
	color: #7F7F7F;
	padding: 0 20px 0 25px;
	list-style-type: none;
	background: transparent url('images/quote.gif') no-repeat;
	border: none;
	}

#page .item .itemtext blockquote span {
	font-size: 13px;
	padding-right: 28px;
	padding-bottom: 4px;
	margin-botoom: 5px;
	background: transparent url('images/quote-end.gif') no-repeat;
	background-position: right bottom;
	border: none;
	}
	
#primary .index_icons {
	height: 150px;
	width: 100%;
	text-align: left;
	display: block;
	margin-top: -10px;
}

/*- Links */

a {
	color: #578AAF;
	text-decoration: underline;
	}

a:visited {
	color: #9F7784;
	}

a:hover, a:visited:hover {
	text-decoration: none;
	}
	
.chronolink {
	padding: 2px 0 2px;
	font-size: 16px;
	color: #ADB7C5;
	}
.chronolink a {
	padding: 2px 0 2px;
	color: #ADB7C5;
	}
	
.chronodata {
	color: #999;
	font-size: 12px;
	font-weight: normal;
}
.addthis img {
        border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

/*- Begin Lists */

ol li { list-style: decimal outside; }

#primary { padding-bottom: 30px; }

#primary .indexnews ul {
	font-size: 12px !important;
	padding-top: 5px;
	color: #666666;
	}
#primary .indexnews ul li {
	font-size: 12px !important;
	color: #666666;
	padding-bottom: 5px;
	list-style-type: square;
	}

#primary .item .itemtext ul,
#primary .item .itemtext ol  {
    padding: 0;
    padding-bottom: 15px;
    margin-left: 0px;
    }
#primary .item .itemtext ul li {
    margin: 0;
    padding: 0;
	padding-bottom: 3px;
    list-style-position: outside;
    }
#primary .itemtext ol li, .itemtext ul li {
    margin-bottom: 3px;
    padding: 0;
    }
#primary .item .itemtext ul p {
	margin-bottom: 5px;
	}


/*- Search Form and Livesearch */

.searchform {
	display:block;

}

#SearchField { 
	width: 155px; 
	font: normal 16px Georgia, "Times New Roman", Times, serif;
	padding: 2px;
	padding-left: 10px;
	margin-top: 20px;
	border: 1px #CCCCCC solid;
	vertical-align: bottom;
}
input.emptySearch {color: #C0C0C0;}

/*- Various Tags and Classes */

.clear {
	clear: both;
	margin: 0;
	padding: 0;
	}

.nomargin {
	margin: 0;
	padding: 0;
}

img {
	border: 0;
	}

img a {
	border: 0;
	}

#primary img.imgpage {
	padding: 5px;
	margin: 5px;
	border: 1px solid #eee;
	}

#primary .imgpage img {
	margin: 5px;
	padding: 4px;
	border: 1px solid #eee;
	max-width: 100%;
	}

img.center, img[align="center"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
	}
img.alignright, img[align="right"] {
	padding: 4px;
	margin: 0 0 2px 7px;
	display: inline;
	}
img.alignleft, img[align="left"] {
	padding: 4px;
	margin: 0 7px 2px 0;
	display: inline;
	}
img.noborder {
	border: none !important;
	padding: 0;
	margin: 0;
	}

small {
	font-size: .9em;
	line-height: 1.5em;
	}
small, strike {
	color: #777;
	}

.red {
	color: #bf5b5b;
	font-weight: bold;
	}

code {
	font: 15px 'Courier New', Courier, Monospace;
	}

code p {
	padding-top: 8px;
	}


.center {
	text-align: center;
	}
.alignright {
	float: right;
	}
.alignleft {
	float: left
	}

hr { display: none; }

.paycoordinates {
border: 1px dotted #cccccc; 
padding: 10px 10px 10px 15px; 
margin-top: 15px; 
margin-left: -15px; 
background-color: #eeeeee;
}

.paycoordinates span {
font-family: Courier New,Courier,Monospace; 
font-size: 18px;
}

.CCC { color: #CCC;}
.grey { color: #999999;}

Dl {
	width: 100%;
	display: block;
	margin-bottom: 30px;
	}
DT {
	font-size: 14px;
	font-weight: bold;
	color: #666;
	margin-top: 10px;
	}
DD {
	color: #666;
	margin-left: 15px;
	}

input[type=text], textarea, input[type=password], select {
	padding: 3px;
	border: 1px solid #ccc;
	font: 12px Georgia, Times New Roman, Times, serif;
	color: #333;
	}

input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus {
	background: #EFF5FF;
	color: #000;
	}

.b1, .b2, .b3, .b4, .b5,
.b1 i, .b2 i, .b3 i, .b4 i, .b5 i,
.b1 b, .b2 b, .b3 b, .b4 b, .b5 b,
.b1 q, .b2 q, .b3 q, .b4 q, .b5 q {
 	height: 1px;
 	font-size: 1px;
 	overflow: hidden;
 	border-style: solid;
 	border-width: 0 1px;
 	display: block;
 	background-color: #FFFBF0;
 	}

.b1 {
 	margin: 0 2px;
 	background: #EBEEF0;
 	border: none;
 	}

.b1 b {
 	margin: 0 1px;
 	background: #B8C3C8;
 	border-color: #CBD3D7;
 	}

.b2 {margin: 0 1px; border-color: #D6DCDF;}
.b2 b {border-color: #B8C3C8;}
.b2 i {border-color: #E4E8EA;}
.b2 q {border-color: #F7F8F9;}
.b3 {border-color: #EBEEEF;}
.b3 b {border-color: #BCC6CB;}
.b3 i {border-color: #F9FAFB;}
.b4 {border-color: #CAD2D6;}
.b4 b {border-color: #E5E9EB;}
.b5 {border-color: #B5C0C6;}
.b5 b {border-color: #FAFBFB;}
.text {
 	border: 1px solid #B0BCC2;
 	border-width: 0 1px;
 	padding: 5px 15px;
 	padding-left: 40px;
 	background-color: #FFFBF0;
    }


/*- Headings */

h1, h2, h3, h4 { font-family: Georgia, Times New Roman, Times, serif; }

.newstitle h2 {
	font-size:35px;
	color:#5F747F;
	margin-bottom:10px!important;
	font-weight:700;
	text-align:left;
	display:block;
	}

.newstitle p {
	margin-bottom:3px!important;
	}

.itemhead {
	width:95%;
	display:block;
	margin-bottom: 25px;
	}

.itemhead h1 {
	font-size:26px;
	color:#333;
	font-weight: normal;
	}

.itemhead h2 { 
	font-size: 20px;
	color: #999999;
	font-weight: normal;
	}

.itemhead h3 {
	color:#235F8F;
	}

.itemhead h4 {
	font-size: 16px;
	color:#999999;
	}
	

.itemtext h2 {
	font-size:20px;
	color:#4D555F;
	padding-top:0;
	padding-bottom:10px;
	font-weight: normal;	
	}

.itemtext h3 {
	font-size:19px;
	color:#40484F;
	padding-top:15px;
	padding-bottom:10px;
	font-weight: normal;	
	}

.itemtext h4 {
	font-size:1.2em;
	display:block;
	padding-top:15px;
	padding-bottom:0;
	}

.itemtext h5 {
	font-size:16px;
	display:block;
	font-weight:normal;
	padding-top:15px;
	padding-bottom:8px;
	}

.itemtext h6 {
	font-size:16px;
	display:block;
	font-weight:normal;
	margin-bottom: 3px;
	padding-top:4px;
	padding-bottom:0;
	}

.comments h4 {
	font-size:14px;
	display:block;
	padding-bottom:5px;
	font-weight:700;
	color:#666;
	}



/*- Menu */


#secondary {
width:25%;
display:block;
position:relative;
float:right;
}

#secondary li:hover {
background:#E0E5EF;
color:#3B535F;
} 

.poll {
display: block; 
font-size: 12px;
float: left; 
width: 90%;
z-index: 999999 !important;
margin-top: 25px; 
padding: 15px; 
border: 1px dotted #ccc;
background-color: #FFFCEF; 
}

.poll a {
color: #CCCCCC;
}

.leftmenutext {
margin-top: 20px;
border-top:#ccc 1px dotted;
display:block;
position:relative;
float:left;
width:20%;
}

#sitemap {
width:190px;
padding-left:30px;
margin-bottom:50px;
display:block;
}

#sidebar-icons {
border:0;
display:block;
padding:10px 10px 10px 15px;
}

#lsidebar {
width:170px;
float:left;
background: none;
border-left: #ccc 1px dotted;
}

#lsidebar span a:link {
text-decoration:underline;
color:#3B535F;
}

#lsidebar span a:hover {
text-decoration:none;
color:#8B989F;
}

#lsidebar a:visited {
text-decoration:underline;
color:#8B989F;
}

.bar-main li {
margin-bottom:8px;
padding-bottom:10px;
display:block;
}

.bar-main span {
font-size:20px;
font-family:Georgia, Times New Roman, Times, serif;
}

.bar-main li:hover {
background:#FFF7EF;
list-style-image:url(images/to.gif);
}

.bar-main .nocurrent {
border-bottom:#eee 1px dotted;
padding:4px 6px 6px;
}

.bar-main li.current {
margin-bottom:8px;
}

.bar-main .current {
background:#E0E5EF;
color:#3B535F;
font-weight:700;
font-size: 20px;
border-right: #ccc 1px dotted;
border-bottom: #ccc 1px dotted;
border-top: #ccc 1px dotted;
padding:4px 6px 6px;
border-radius: 0 10px 0 0;
}

.bar-child {
margin-left:19px!important;
margin-bottom:8px;
margin-top: -2px;
}

.bar-child li {
border:0;
margin-bottom:5px;
padding-left:1px;
list-style-image:url(images/arrow_02.gif);
}

.bar-child li a {
font:14px Georgia, Times New Roman, Times, serif;
text-decoration:underline;
}

.bar-child li:hover {
background:#FFF7EF;
}

.bar-child .child-current {
font-weight:bolder;
background:#E0E5EF;
padding:3px 2px 6px 2px;
}

.bar-child .child-current a {
font-weight:700;
color:#333;
text-decoration:underline;
}

a img,:link img,:visited img {
border:none;
}

/*--- Tags in footer ---*/

.tags
{
	font-size: 10px;
	display: block;
	color:#FFFFFF;
}

A.rollovervk {
 background: url('http://www.appm.spb.ru/images/design/vk_stamp.png');
 display: block;
 margin: auto;
 width: 50px !important;
 height: 50px !important;
}

A.rollovervk:hover {
 background: url('http://www.appm.spb.ru/images/design/vk_stamp_on.png');
}

A.rolloverphpbb {
 background: url('http://www.appm.spb.ru/images/design/phpbb_stamp.png');
 display: block;
 margin: auto;
 width: 50px !important;
 height: 50px !important;
}

A.rolloverphpbb{
 background: url('http://www.appm.spb.ru/images/design/phpbb_stamp_on.png');
}


@media print {
#secondary {
display:none;
}
.poll {
display:none;
}

}
