*{margin: 0 auto;}
a{text-decoration: none; color:#4E6822}
a:hover{text-decoration: underline;}

body{}

#wrapper{background-image: url("img/bg.png"); background-position: center; background-repeat: repeat-y; width: 960px; padding: 0 20px;}

#header{line-height: 120px; background-image: url("img/header-bg.png"); background-position: bottom; background-repeat: repeat-x; height: 87px; width: 920px; position: relative; padding: 0 20px;}

#menu{background: url("img/menu.png"); background-position: top; background-repeat: repeat-x; height: 45px; text-transform: uppercase; font-weight: bold; font-size: 14px;}
#menu .menu{}
#menu .menu li{position: relative; display: inline-block; list-style: none; margin: 0; padding: 0 2px 0 0; line-height: 40px; height: 45px;}
#menu .menu a{display: block; height: 45px; line-height: 40px; padding: 0 10px; color:#fff; text-shadow:#333 1px 1px 1px}
#menu .menu .active-trail ul a:hover,
#menu .menu .active-trail a,
#menu .menu a:hover,
#menu .menu a.active{text-shadow: #fff 1px 1px 1px; background-image: url("img/menu-active.png"); color:#3f3f3f; text-decoration: none; -moz-border-radius: 0 0 8px 8px;-webkit-border-bottom-left-radius: 8px;-webkit-border-bottom-right-radius: 8px; border-radius: 0 0 8px 8px;}
#menu .menu li ul{padding: 2px 0; display: none; position: absolute; top:34px; left: -1px; height: auto; width: 200px; /*background-image: url("https://badfu.com/themes/badfu/img/drop.png");*/background-repeat:  no-repeat; background-position: 0px 2px; font-size: 12px; line-height: 12px;}

#content{font-family: Arial; font-size: 12px; width: 920px; padding: 0px 20px 0;background-color: #f9f9f9;}
#content ul{padding: 5px 20px;}
#content li{padding: 2px 0; list-style-type:square; color:#4E6822;}
#main-content{float: left; width:570px; margin-right: 14px; padding-top: 5px;}
#sidebar{padding-top: 3px; float: left; width: 336px}
#footer{background-image: url("img/footer.png"); background-position: bottom center; background-repeat: no-repeat; width: 960px; padding:30px 10px 20px; margin-left: -10px;}
.footer{background-image: url("img/footer-bg.png"); background-position: top; background-repeat: repeat-x; height: 190px; padding:0 20px; width: 920px;}
.footer-hr{background-image: url("img/footer-hr.png"); background-repeat: no-repeat; background-position: center; height: 10px; width: 920px; position: relative; margin-bottom: 28px;}
.footer table{font-size: 14px;}

#gerb-wrapper{background-image: url("img/gerb-wrapper.png"); width: 64px; height: 64px; margin: auto; position: relative; top: -30px;}
#gerb-wrapper img {bottom: 0; left: 0;margin: auto; position: absolute; right: 0; top: 0;}

table{width: 100%;}
tbody{border:none;}

#forum #thmr_2{border:1px solid #4e6822; padding: 1px; display: block;}
#forum table thead tr{background-image: url("img/h2.png");line-height: 27px; height: 27px; width: 546px; padding: 0 10px; color:#4f4f4f;}
#forum table thead th{color:#fff; font-weight: normal; text-align: center;}
#forum .name a{color:#4e6822; font-family: "Trebuchet MS",Helvetica,Arial,Sans-serif; font-size: 1.2em; font-weight: bold; text-decoration: none;}
#forum table .description{color:#4C5D77; font-size:12px;}
#forum table tbody tr{background-image: url("img/content.png"); background-repeat: repeat-x; background-position: bottom;}
#forum ul.links a{margin:0;display: block; background-image: url("img/button_topic_new.gif"); background-position: top; text-indent: -9999px; width: 96px; height: 25px;}
#forum ul.links a:hover{background-position: bottom;}
#forum ul.links li{display: inline-block; padding: 5px 0;}

#main-content h2{font-size: 16px; width: 100%; border-bottom: 1px dotted #4e6822; color: #4e6822;}
#main-content .block{margin: 10px 0;border:1px solid #5E872B; padding: 1px;}
#main-content .block h2{background-image: url("img/h2.png");line-height: 27px; height: 27px; width: 546px; padding: 0 10px; color:#4f4f4f;}
#sidebar .block{margin: 10px 0;border:1px solid #5E872B; padding: 1px;}
#sidebar .block h2{background-image: url("img/h2.png");line-height: 27px; height: 27px; width: 312px; padding: 0 10px; color:#4f4f4f;}
#sidebar .content {background-image: url("img/content.png"); background-position: bottom; background-repeat: repeat-x; padding: 5px 10px;}

.block-simplenews .content{padding: 5px 10px; background-image: url("img/simplenews.png"); height:40px;}
.block-simplenews .form-item{margin:0; float:left;}
.block-simplenews label{display: none;}
.block-simplenews .form-radios{display: none;}
.block-simplenews .form-submit{width: 103px; margin-left: 10px;}
.block-simplenews .form-text{width: 257px;}

#content .block-forum ul{padding: 0; margin:0;}
#content .block-forum li{line-height:40px; font-weight: bold; height: 40px; background-image: url("https://badfu.com/themes/badfu/img/content"); background-position: bottom; list-style: none; margin: 0; padding: 0 10px;}
.block-forum{position: relative;}
.block-forum .more-link{position: absolute; right: 10px; top:6px;}
.block-forum .more-link a{color:#fff; text-shadow: #4f4f4f 1px 1px 1px}
.form-submit{cursor:pointer; background-image: url("img/button.png"); border:1px solid #999; -moz-border-radius: 5px 5px;-webkit-border-bottom-radius: 5px;-webkit-border-bottom-radius: 5px; border-radius: 5px 5px;}
.form-text{background-image: url("img/form-text.png");border:1px solid #999; -moz-border-radius: 5px 5px;-webkit-border-bottom-radius: 5px;-webkit-border-bottom-radius: 5px; border-radius: 5px 5px;}

#block-user-3 .content{padding: 9px 10px;}
#block-user-3,
#block-ad-8{height: 60px;}
#block-ad-7{height: 280px;}
#block-ad-7 .content{background: none; padding: 0;}

#tabs-wrapper ul{padding: 0; margin: 5px 0;}

.messages.status{border:1px solid #4e6822; background-image: url("img/content.png"); padding: 5px; margin-bottom: 10px; color:#4e6822;}
/*.messages.error{border:1px solid #990000;  padding: 5px; margin-bottom: 10px; color:#990000;}*/
#content .messages.error li{color:#220000;}
#edit-submitted-text{height: 55px; border:none;}
#edit-submitted-text-wrapper .grippie{display:none;}
#edit-submitted-text-wrapper .resizable-textarea{width:100%;}
#edit-submitted-zqvlenie{background: none; border: none; width: 100%; text-align: center; font-size: 16px; font-weight: bold;}
#edit-submitted-do{background: none; border: none; width: 100%; text-align: right;}
#edit-submitted-card{background: none; border: none; text-align: left; font-weight: bold;}
#edit-submitted-docs{background: none; border: none; text-align: left; font-weight: bold;}

#news .node{background-image: url("img/content.png"); background-repeat: repeat-x; background-position: bottom;  padding: 5px;}
.links{text-align: right;}
#forum .links{text-align: inherit;}
#content #forum ul{padding: 0;}
#content #forum li{padding:0; text-align: left;}
#content #forum li span{text-align: left;}
.submitted{font-size: 11px; font-style: italic; color:#666;}

#docs h2{font-size: 16px; width: 100%; border-bottom: 1px dotted #4e6822;}

#block-last_node-news .more-link{display: none;}
#content #block-last_node-news ul{padding: 0;}

#edit-submitted-docs-wrapper label,
#webform-component-card,
#edit-submitted-text-wrapper label,
#edit-submitted-do-wrapper label,
#edit-submitted-zqvlenie-wrapper label{display:none;}