/*******************
* GENERAL ELEMENTS *
********************/
body 
{
	font: 12px verdana, arial, helvetica, serif;
	background: #c1c8a6 url('images/body.png') repeat-x;
	padding: 0;
	margin: 0;
}

td
{
	font: 12px
}

a
{
	color: #77933F;
	text-decoration: none;
}

a:hover
{
	color: #000000;
	text-decoration: underline;
}

p
{
	font-size: 12px;
	line-height: 16px;
	margin: 5px 0 15px 0;
}

h3
{
	font-size: 17px;
	margin: 0;
}

/******************
* HEADER AND NEWS *
*******************/
#header
{
	margin: 20px 0 0 0;
	padding: 0;
	background: url('images/header.png') no-repeat;
	height: 132px;
}

#header h1
{
	position: absolute;
	top: -100em;
	left: -100em;
}
/* From main part of site */
.main_header{position:relative;}
.header{	height:26px;	padding:90px 0pt 0pt;	position:relative;}

.logo{ left:0px; top:0px; background:url('images/logo.jpg') no-repeat; width:508px; height:90px; padding:0; margin:0; display:block; z-index:22; text-indent: -10000px; outline:none; position:absolute;}

/*shape*/
.shape{width:100px; height:44px; position:absolute; left:0px; top:85px; z-index:20; background: url('images/logo.jpg') 0 -85px no-repeat;}
.shape1{position:absolute; top:0; right:0; width:454px; height:90px; background: url('images/top_right.png') right 0 no-repeat; z-index:21;}
.shape2{position:absolute; top:90px; right:0; width:294px; height:45px; background: url('images/top_right.png') 100% -90px no-repeat; z-index:21;}
.top_menu_fake{position:absolute; top:90px; left:0; height:26px; width:88%; background:#84a04b url('images/menu.gif') 0 0 repeat-x; margin-left:100px; z-index:20;}

.top_menu{border-top:1px solid #577028; margin-left:100px; position:relative; z-index:999;background: url('images/menu_bg_right.png') right 0px no-repeat; height:25px;}
.top_menu ul{list-style:none; padding:0 0 0 15px; margin:0;  position:relative; z-index:21;}
.top_menu ul li{float:left; font-size:13px; padding: 4px 0 5px 0; position:relative;}
.top_menu ul li a, .top_menu ul li span{float:left; color:#dbe8b8; font-weight:bold;padding:0px 6px;text-decoration:none;}
.top_menu ul li>span{border-right: 1px solid #a8b287;}
.top_menu ul li>a{border-right: 1px solid #a8b287;}
.top_menu ul li a:hover{color:#EBEFE0; text-decoration:none;}
.top_menu ul li.last a{border-right: none;}
/*2l*/
.top_menu ul ul{position:absolute; top:22px; display:none; border:1px solid #577028; background:#84a04b; margin:0; padding:5px; z-index:20; left:0;}
.top_menu ul li:hover, .top_menu ul li.jshover{/*background:#84a04b url(../images/menu.gif) 0 0 repeat-x;*/}
.top_menu ul li:hover ul,.top_menu ul li.jshover ul{display:block;}
.top_menu ul ul li{ border-bottom:1px solid #a8b287; clear:left;}
.top_menu ul ul li a{border:0; display:block; width:165px} 

/*addone*/
#content{zoom:1; clear:both;}
.clr_path{clear:both; height:15px;}



#news
{
	width: 200px;
	float: right;
	overflow: auto;
	height: 132px;
}

#news h2
{
	display: inline;	
	position: relative;
	left: 10px;
	top: 5px;
	font-weight: bold;
	font-size: 12px;
	margin: 0;
	padding: 2px 4px;
	color: #07235A;
	background: #D0DEEB;
	border: 1px solid #07235A;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
}

#news p
{
	border: 1px solid #07235A;
	background: #D0DEEB;
	padding: 1em;
	margin: 0 0 0 0;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}

#wrapper
{
	width: 95%;
	margin: auto auto;
	min-width:1000px;
}

/**********************
*		  MENU			*
***********************/
#menu
{
	padding: 0;
	margin: 0% 0 0 2.5%;
	list-style: none;
	clear: both;
	overflow: auto;
}

#menu li
{
	float: left;
}

#menu li a
{
	display: block;
	padding: 8px 15px;
	color: #07235A;
	text-decoration: none;
}

#menu li a:hover
{
	text-decoration: underline;
}

#menu li a.active
{
	border: 1px solid #07235A;
	border-radius: 6px 6px 0 0;
	-moz-border-radius: 6px 6px 0 0;
	-webkit-border-top-left-radius: 6px;
	-webkit-border-top-right-radius: 6px;
	border-bottom: 0;
	background: #DBE8B8;
	padding: 7px 14px;
	color: #495e20;
}

/**************
*  USER INFO  *
**************/

#forumheader
{
	clear: both;
	padding: 10px;
	margin: -1px 0 13px 0;
	color: #000000; 
	border: 1px solid #000000;
	background-color: #DBE8B8;
	overflow: auto;
	-moz-border-radius: 7px;
	-webkit-border-radius: 7px;
}

#forumheader form
{
	padding: 0;
	margin: 0;
}

#forumheader p
{
	margin: 3px 0;
}

#forumheader #myAvatar
{
	float: left;
	border: 1px solid #333465;
	margin-right: 10px;
}

/* Footer */

#footer
{
	font-size: 10px;
	text-align: center;
	
	clear: both;
	color: #577028;
}

#footer a
{
	color: #E9F1D5;
}

input:focus, select:focus, button:focus, textarea:focus
{
	border: 1px solid #000000;
}

/* Input boxes - just a bit smaller than normal so they align well. */
input, textarea
{
	font-size: 9pt;
	color: #000000;
	font-family: verdana, arial, helvetica, serif;
	background-color: #dbe8b8;
	border: 1px solid #577028;
	margin-bottom: 2px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
}

/* Checkboxes shouldn't have a background color. */
input.check
{
	border: none;
	background-color: transparent;
}

/* Selects are a bit smaller, because it makes them look even better 8). */
select
{
	font-size: 8pt;
	color: #000000;
	font-family: verdana, arial, helvetica, serif;
	background-color: #dbe8b8;
	border: 1px solid #577028;
}

.clear
{
	clear: both;
}

.smalltext, .smalltext a
{
	font-size: 10px;
}

.middletext, .middletext a
{
	font-size: 11px;
}

/* Standard horizontal rule.. ([hr], etc.) */
hr, .hrcolor
{
	height: 1px;
	border: 0;
	color: #666666;
	background-color: #666666;
}

/* No image should have a border when linked */
a img
{
	border: 0;
}

/* ************************************* */
/* Common styles for the theme			  */
/* ************************************* */

/* Normal, standard links. */
a:link, a:visited
{
	color: #577028;
	text-decoration: none;
}
a:hover
{
	color: #3C4C1C;
	text-decoration: underline;
}

/* Tables should show empty cells. */
table
{
	empty-cells: show;
}

/* lets give all forms zero padding/margins */
form
{
	padding: 0px;
	margin: 0px;
}

/* All input elements that are checkboxes or radio buttons. */
input.check
{
	border: none;
}

/* Standard horizontal rule.. ([hr], etc.) */
hr, .hrcolor
{
	height: 1px;
	border: 0;
	color: #577028;
	background-color: #577028;
}

/* By default set the color on these tags as black. */
h1, h2, h3, h4, h5, h6, h7
{
	color: black;
	font-size: 1em;
	margin: 0;
	padding: 0;
}

/* No image should have a border when linked. */
a img
{
	border: 0;
}

/* No lines around buttons in Firefox! */
a
{
	outline: none;
}

/* Reset all lists. */
ul, ul li
{
	padding: 0;
	margin: 0;
	list-style: none;
}

/* We can define lists to be lists tho! */
ul.normallist
{
	padding-left: 2em;
}

ul.normallist li
{
	list-style: disc;
}

/* ************************************* */
/* Some handy custom classes				 */
/* ************************************* */

.floatright
{
	float: right;
}
.floatleft
{
	float: left;
}

/* Default font sizes: small (8pt), normal (10pt), and large (14pt). */
.smalltext
{
	font-size: 0.8em;
	font-family: verdana, sans-serif;
}
.middletext
{
	font-size: 0.85em;
}
.normaltext
{
	font-size: 1em;
}
.largetext
{
	font-size: 1.4em;
}

/* This style will make sure all headers use the same padding throughout. */
.headerpadding
{
	padding: 0.5em;
}
/* smaller padding used in paragraphs, sections etc */
.smallpadding
{
	padding: 0.2em;
}
/* larger padding used in paragraphs, sections etc */
.largepadding
{
	padding: 0.7em;
}

/* A small space to the next section. */
.marginbottom
{
	margin-bottom: 1em;
}
/* On the top too. */
.margintop
{
	margin-top: 1em;
}
/* remove bold/italic styles */
span.plainstyle
{
	font-weight: normal;
	font-style: normal;
}
/* float a list horizontally */
ul.horizlist
{
	width: 100%;
}
ul.horizlist li
{
	float: left;
	padding: 0.2em 0.4em 0.2em 0.4em;
	vertical-align: top;
}
/* make a inline-list */
ul.nolist li
{
	display: inline;
}
/* Helping style to clear floated items. */
.clearfix:after
{
	 content: ".";
	 display: block;
	 height: 0;
	 clear: both;
	 visibility: hidden;
}

.clearfix
{
	display: inline-block;
}

/* Hides from IE-mac. \*/
* html .clearfix
{
	height: 1%;
}
.clearfix
{
	display: block;
}
/* End hide from IE-mac. */

/* ************************************* */
/* Some specific SMF elements				*/
/* ************************************* */

/* A quote, perhaps from another post. */
blockquote
{
	color: #000000;
	background-color: #f0f6e0;
	border: 1px solid #000000;
	margin: 1px;
	padding: 1px;
	font-size: x-small;
	line-height: 1.4em;
}

/* A code block - maybe even PHP ;). */
code
{
	color: #000000;
	background-color: #cccccc;
	display: block;
	font-family: "courier new", "times new roman", monospace;
	font-size: x-small;
	line-height: 1.3em;
	/* Put a nice border around it. */
	border: 1px solid #000000;
	margin: 1px auto 1px auto;
	padding: 1px;
	width: 99%;
	overflow: auto;
	white-space: nowrap;
	/* Stop after about 24 lines, and just show a scrollbar. */
	max-height: 24em;
}

/* The "Quote:" and "Code:" header parts... */
.quoteheader, .codeheader
{
	color: #000000;
	text-decoration: none;
	font-style: normal;
	font-weight: bold;
	font-size: x-small;
	line-height: 1.2em;
	width: 100%;
}

/* For links to change the code stuff... */
.codeoperation
{
	font-weight: normal;
}

/* Styling for BBC tags */
.bbc_color a
{
	color: inherit;
}

.bbc_img
{
	border: 0;
}

.bbc_list
{
	margin-top: 0;
	margin-bottom: 0;
	margin-left: 2em;
}

.bbc_list li
{
	list-style: disc;
}

.bbc_list li li
{
	list-style: circle;
}

.bbc_size
{
	line-height: 1.3em;
}

.bbc_table
{
	font: inherit;
	color: inherit;
	border:1px solid #cccccc;
}

.bbc_table td
{
	font: inherit;
	padding: 5px;
	color: inherit;
	vertical-align: top;
	border:1px solid #cccccc;
}

.bbc_u
{
	text-decoration: underline;
}

/* Generally, those [?] icons.  This makes your cursor a help icon. */
.help
{
	cursor: help;
}

/* /me uses this a lot. (emote, try typing /me in a post.) */
.meaction
{
	color: red;
}

/* The main post box - this makes it as wide as possible. */
.editor
{
	width: 96%;
}

/* Highlighted text - such as search results. */
.highlight
{
	background-color: yellow;
	font-weight: bold;
	color: black;
}

/* A more discreet highlight colour, for selected membergroups etc. */
.highlight2
{
	background-color: #B3F4B0;
	color: black;
}

/* ************************************* */
/* Real common classes						 */
/* ************************************* */

/* Alternating backgrounds for posts, and several other sections of the forum. */
.windowbg, #preview_body
{
	color: #000000;
	background-color: #e9f1d5;
}
.windowbg2
{
	color: #000000;
	background-color: #dbe8b8;
}
.windowbg3
{
	color: #000000;
	background-color: #e5edd1;
}

/* Color for background of posts requiring approval */
.approvebg
{
	color: #000000;
	background-color: #F6E0D4;
}
/* Color for background of *topics* requiring approval */
.approvetbg
{
	color: #000000;
	background-color: #E4A17C;
}

/* the today container in calendar */
.calendar_today
{
	background: #DBE8B8;
}

/* These are used primarily for titles, but also for headers (the row that says what everything in the table is.) */
.titlebg, tr.titlebg th, tr.titlebg td, .titlebg2, tr.titlebg2 th, tr.titlebg2 td, #credits h3
{
	color: #3c4c1c;
	font-style: normal;
	background: #B4CA89 url(images/gradient1.jpg) repeat-x;
	/*border-bottom: solid 1px #313131;*/
	padding-left: 10px;
	padding-right: 10px;
}
.titlebg, .titlebg a:link, .titlebg a:visited
{
	font-weight: bold;
	color: #3c4c1c;
	font-style: normal;
}

.titlebg a:hover
{
	color: white;
}
/* same as titlebg, but used where bold text is not needed */
.titlebg2 a:link, .titlebg2 a:visited
{
	color: #3c4c1c;
	font-style: normal;
	text-decoration: none;
}

.titlebg2 a:hover
{
	text-decoration: underline;
}

/* This is used for categories, page indexes, and several other areas in the forum.
.catbg and .catbg2 is for boardindex, while .catbg3 is for messageindex and display headers. */
.catbg , tr.catbg td , .catbg3 , tr.catbg3 td
{
	background: #577028 url(images/gradient2.jpg) repeat-x;
	color: #e9f1d5;
	padding-left: 10px;
	padding-right: 10px;
}
.catbg2 , tr.catbg2 td
{
	background: #577028 url(images/gradient2.jpg) repeat-x;
	color: #e9f1d5;
	padding-left: 10px;
	padding-right: 10px;
}
#infocenterframe .catbg, #infocenterframe .catbg2, #infocenterframe .catbg3
{
	border-top: 1px solid #3c4c1c;
	border-bottom: 1px solid #3c4c1c;
}
.catbg, .catbg2
{
	font-weight: bold;
}
.catbg3, tr.catbg3 td, .catbg3 a:link, .catbg3 a:visited
{
	font-size: 95%;
	color: white;
	text-decoration: none;
}
.catbg a:link, .catbg a:visited , .catbg2 a:link, .catbg2 a:visited
{
	color: white;
	text-decoration: none;
}
.catbg a:hover, .catbg2 a:hover, .catbg3 a:hover
{
	color: #cdcdcd;
}
/* This is used for tables that have a grid/border background color (such as the topic listing.) */
.bordercolor
{
	background-color: #577028;
	padding: 0px;
}
.bordercolor:first-child {border:3px solid #8B8867; /*тут переопределить стили для первого поста или использовать каскад*/}
.bordercolor:first-child div {background: #EFEFEF}
/* This is used on tables that should just have a border around them. */
.tborder
{
	padding: 1px;
	border: 1px solid #577028;
	background-color: #FFFFFF;
}

/* Posts and personal messages displayed throughout the forum. */
.post, .personalmessage
{
	overflow: auto;
	line-height: 1.3em;
	width: 100%;
}
.postarea .post
{
	clear: right;
	float: left;
}
/* add a visual divider between subject and post */
.post .inner
{
	padding-top: 0.7em;
	border-top: 1px solid #696969;
}

/* All the signatures used in the forum.  If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */
.signature
{
	clear: right;
	padding: 1em 0 3px 0;
	border-top: 1px solid #696969;
	width: 100%;
	overflow: auto;
	line-height: 1.3em;
	font-size: 0.8em;
}

/* Sometimes there will be an error when you post */
.error
{
	color: red;
}

/* Messages that somehow need to attract the attention. */
.alert
{
	color: red;
}

/* Calendar colours for birthdays, events and holidays */
.birthday
{
	color: #703607;
	font-weight: bold;
}

.event
{
	color: #703607;
	font-weight: bold;
}

.holiday
{
	color: #703607;
	font-weight: bold;
}

/* Colours for warnings */
.warn_mute
{
	color: red;
}

.warn_moderate
{
	color: orange;
}

.warn_watch
{
	color: green;
}

a.moderation_link, a.moderation_link:visited
{
	color: red;
	font-weight: bold;
}

.openid_login
{
	background: white url(images/openid.gif) no-repeat;
	padding-left: 18px;
}

/* The AJAX notifier */
#ajax_in_progress
{
	background: #8B0E0E;
	color: white;
	text-align: center;
	font-weight: bold;
	font-size: 18pt;
	padding: 3px;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
}

#ajax_in_progress a
{
	color: white;
	text-decoration: underline;
	font-size: smaller;
	float: right;
}

/* ************************************* */
/* Buttons and menus							*/
/* ************************************* */

.buttonlist ul, .buttonlist_bottom ul
{
	background: url(images/maintab_first.gif) no-repeat bottom left;
	padding-left: 10px;
}
.buttonlist ul li, .buttonlist_bottom ul li
{
	margin: 0;
	padding: 0;
	display: inline;
}
.buttonlist ul li a, .buttonlist ul li a:visited, .buttonlist_bottom ul li a, .buttonlist_bottom ul li a:visited
{
	float: left;
	display: block;
	color: white;
	font-size: 0.8em;
	font-family: tahoma, sans-serif;
	text-transform: uppercase;
}
.buttonlist ul li a:hover, .buttonlist_bottom ul li a:hover
{
	color: #e0e0ff;
	text-decoration: none;
}
.buttonlist ul li a span, .buttonlist_bottom ul li a span
{
	background: url(images/maintab_back.gif) repeat-x bottom left;
	display: block;
	padding: 0.2em 0.5em 0.6em 0.5em;
}
.buttonlist ul li a.active, .buttonlist_bottom ul li a.active
{
	background: url(images/maintab_active_last.gif) no-repeat bottom right;
	padding-right: 8px;
}
.buttonlist ul li a.active span em, .buttonlist_bottom ul li a.active span em
{
	padding: 0.2em 0.5em 0.6em 0.5em;
	display: block;
	font-style: normal;
	background: url(images/maintab_active_back.gif) repeat-x bottom right;
}
.buttonlist ul li a.active span, .buttonlist_bottom ul li a.active span
{
	background: url(images/maintab_active_first.gif) no-repeat bottom left;
	padding: 0 0 0 8px;
}
.buttonlist ul li a span.last, .buttonlist_bottom ul li a span.last
{
	background: url(images/maintab_last.gif) no-repeat bottom right;
	padding: 0.2em 1.5em 0.6em 0.5em;
}

/* For links that are basically submit buttons. */
.buttonlist_submit
{
	background: transparent;
	color: white;
	text-transform: uppercase;
	vertical-align: top;
	text-decoration: none;
	font-size: 9px;
	font-family: tahoma, sans-serif;
	border: 0;
}

.buttonlist_submit:hover
{
	color: #e0e0ff;
}

/* ..for the "bottom" menu */
.buttonlist_bottom ul
{
	background: url(images/mirrortab_first.gif) no-repeat top left;
}
.buttonlist_bottom ul li a span
{
	padding: 0.6em 0.5em 0.2em 0.5em;
	background: url(images/mirrortab_back.gif) repeat-x top left;
}
.buttonlist_bottom ul li a.active
{
	background: url(images/mirrortab_active_last.gif) no-repeat top right;
}
.buttonlist_bottom ul li a.active span em
{
	background: url(images/mirrortab_active_back.gif) repeat-x top right;
}
.buttonlist_bottom ul li a.active span
{
	background: url(images/mirrortab_active_first.gif) no-repeat top left;
}
.buttonlist_bottom ul li a span.last
{
	padding: 0.6em 1.5em 0.2em 0.5em;
	background: url(images/mirrortab_last.gif) no-repeat top right;
}
/* the old type of menu, with images */
.oldbuttonlist
{
	text-align: right;
	padding: 0.5em;
}

/* ************************************* */
/* The below is deprecated.				  */
/* ************************************* */

/* definitions for the main tab, active means the tab reflects which page is displayed */
.maintab_first, .maintab_back, .maintab_last, .maintab_active_first, .maintab_active_back, .maintab_active_last
{
	color: white !important;
	text-transform: uppercase;
	vertical-align: top;
}
.maintab_back, .maintab_active_back
{
	color: white !important;
	text-decoration: none;
	font-size:  9px;
	vertical-align: top;
	padding: 2px 6px 6px 6px;
	font-family: tahoma, sans-serif;
}

.maintab_first
{
	background: url(images/maintab_first_prev.gif) left bottom no-repeat;
	width: 10px;
}
.maintab_back
{
	background: url(images/maintab_back.gif) left bottom repeat-x;
}
.maintab_last
{
	background: url(images/maintab_last_prev.gif) left bottom no-repeat;
	width: 8px;
}
.maintab_active_first
{
	background: url(images/maintab_active_first.gif) left bottom no-repeat;
	width: 6px;
}
.maintab_active_back
{
	background: url(images/maintab_active_back.gif) left bottom repeat-x;
}
.maintab_active_last
{
	background: url(images/maintab_active_last.gif) left bottom no-repeat;
	width: 8px;
}

/* how links behave in main tab. */
.maintab_back a:link , .maintab_back a:visited, .maintab_active_back a:link , .maintab_active_back a:visited
{
	color: #FFFFFF !important;
	text-decoration: none;
}

.maintab_back a:hover, .maintab_active_back a:hover
{
	color: #DEDEDE !important;
	text-decoration: none !important;
}
/* definitions for the mirror tab */
.mirrortab_first, .mirrortab_back, .mirrortab_last, .mirrortab_active_first, .mirrortab_active_back, .mirrortab_active_last
{
	color: #FFFFFF !important;
	text-transform: uppercase;
	vertical-align: top;
}
.mirrortab_back, .mirrortab_active_back
{
	color: #FFFFFF !important;
	text-decoration: none;
	font-size: 9px;
	vertical-align: bottom;
	padding: 6px 6px 2px 6px;
	font-family: tahoma, sans-serif;
}

.mirrortab_first
{
	background: url(images/mirrortab_first_prev.gif) no-repeat;
	width: 10px;
}
.mirrortab_back
{
	background: url(images/mirrortab_back.gif) repeat-x;
}
.mirrortab_last
{
	background: url(images/mirrortab_last_prev.gif) no-repeat;
	width: 6px;
}
.mirrortab_active_first
{
	background: url(images/mirrortab_active_first.gif) no-repeat;
	width: 6px;
}
.mirrortab_active_back
{
	background: url(images/mirrortab_active_back.gif) repeat-x;
}
.mirrortab_active_last
{
	background: url(images/mirrortab_active_last.gif) no-repeat;
	width: 8px;
}

/* how links behave in mirror tab. */
.mirrortab_back a:link , .mirrortab_back a:visited, .mirrortab_active_back a:link , .mirrortab_active_back a:visited
{
	color: #FFFFFF !important;
	text-decoration: none;
}

.mirrortab_back a:hover, .mirrortab_active_back a:hover
{
	color: #DEDEDE !important;
	text-decoration: none !important;
}

/* These are for the auto suggest floating div type thing. */
.auto_suggest_div
{
	border: 1px solid #505050;
	position: absolute;
	font-size: .7em;
}

/* An auto suggest item */
.auto_suggest_item
{
	background-color: #FAFAFA;
	padding: 2px;
}

/* hovered auto suggest item */
.auto_suggest_item_hover
{
	background-color: #7897B4;
	padding: 2px;
	cursor: pointer;
	color: white;
}
/*.footer .in{height:180px; background: url('images/footer.jpg') 0 100% no-repeat;}*/
.footer_in{height:180px; margin: 40px 0px 0 0px; position:relative; background: url('images/bottom_repeat.jpg') 0 100% repeat-x;}
.footer_in .in{height:180px; background: url('images/bottom_image.jpg') 0 100% no-repeat;}
.copy{text-align:right; padding-top:20px;padding-right:10px; font-weight:bold; color:#E9F1D5}
.copy a{color:#E9F1D5}

.attachments {clear:both}
.keyinfo, ul.postingbuttons {float:none}
