html, body, #main{
    height: 100%;
}

.ie9 *, .ie8 *{
    border-radius: 0 !important;
}

#top_part {
    min-height: 100%;
    margin: 0 auto;
}

.body_width_limit {
    min-width: 600px;
    max-width: 1000px;
    margin: 0px auto;
    position: relative;
}

#header{
    margin-bottom: 32px;
}

#title {
    overflow: hidden;
    text-align: center;
    font-size: 32px;
    font-weight: bold;
}

#navigation {
    padding: 2px 10px;
    height: 32px;
}

#navigation a{
    margin: 2px;
    display: inline-block;
}

#navigation_user {
    padding: 2px 10px;
    text-align: right;
    box-shadow: 0 2px 5px -3px black inset;
}

#navigation_user  a{
    margin: 2px;
    display: inline-block;
}

#messages > div{
    margin: 5px auto;
    padding: 5px 2%;
    min-width: 50%;
    text-align: center;
}

#adt_top, #adt_bottom{
    text-align: center;
    margin-bottom: 20px;
}
#adt_top a, #adt_bottom a{
    display: block;
    margin: 5px;
}

#adt_top{
    border-radius: 2px;
}

#menu{
    display: inline-block;
    width: 28%;
    padding: 0 10px;
}

#content{
    display: inline-block;
    width: 70%;
}

.select_bar {
    height: 34px;
    margin: 5px;
    padding: 7px;
}

.select_bar span{
    font-weight: bold;
}

.form{
    position: relative;
    background: #FAFAFA;
    border: 1px #DBDBDB solid;
    padding: 5px;
    border-radius: 2px;
    margin-bottom: 10px;
    box-shadow: 0 0 0 1px #FCFCFC inset, 0 1px 17px -9px black;
    font-size: 12px;
}

.form .refresh{
    display: block;
    position: absolute;
    top:3px;
    right: 3px;
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition:all 500ms;
    -moz-transition:all, 500ms; /* Firefox 4 */
    -webkit-transition:all 500ms; /* Safari и Chrome */
    -o-transition:all 500ms; /* Opera */
}
.form .refresh:hover{
    opacity: 1;
}

.form .msg, .form .err{
    position: absolute;
    bottom: 3px;
    right: 3px;

}

.form .waiter{
    position: absolute;
    bottom: 3px;
    right: 3px;
    display: none;
    width: 40px;
    height: 40px;
    background: url('img/waiter2.gif') no-repeat;
}

.form form.submiting .waiter{
    display: block;
}

.form .msg{
    color: #3F7EFD;

}

.form .err{
    color: #FF5757;
}

.form select{
    border: 1px solid #CCC;
    padding: 1px;
    border-radius: 2px;
    outline: 1px solid #fff;
}

.form input[type="text"], .form input[type="password"], .form textarea{
    margin-bottom: 10px;
}

.form input[type="text"], .form input[type="password"]{
    margin-right: 5px;
    padding: 3px 6px;
    border: 1px #CCC solid;
    border-radius: 2px;
    box-shadow: 1px 1px 7px -4px black inset, 0 0 0 1px #fff;
}

.form input[type="text"]:disabled, .form input[type="password"]:disabled{
    border-color: #DADADA;
    background-color: #EEE;
    box-shadow: none;
    color: #666;
}

.form input[type="submit"]{
    margin-right: 5px;
}

.form textarea{
    font-size: 13px;
    height: 38px;
    overflow: hidden;
    resize: none;
    box-shadow: 0 1px 7px -3px black inset;
    background-color: #fff;
    border-radius: 2px;
    border: 1px #CCC solid;
    padding: 3px;
}

.form .textarea_wrapper{
    border: 1px #E2E2E2 solid;
    padding: 1px;
    border-radius: 4px;
}

.form .textarea_wrapper .textarea_bbcode{
    opacity: 0.75;
    transition:all 500ms;
    -moz-transition:all, 500ms; /* Firefox 4 */
    -webkit-transition:all 500ms; /* Safari и Chrome */
    -o-transition:all 500ms; /* Opera */
}

.form .textarea_wrapper .textarea_bbcode:hover{
    opacity: 1;
}

.form .textarea_wrapper textarea{
    margin: 0;
}

.form .textarea_wrapper .textarea_bbcode span{
    display: inline-block;
    padding: 1px 6px;
    margin: 1px;
    background-color: #EEE;
    font-weight: bold;
    font-size: 12px;
    border: 1px solid #E9E9E9;
    border-radius: 1px;
    cursor: default;
}

.form .textarea_wrapper .textarea_bbcode span:hover{
    border-color: #CFCFCF;
}

.form input[type="text"]:focus, .form input[type="password"]:focus, .form textarea:focus{
    border-color: #A8A8A8;
}

.listing{
    margin-bottom: 10px;
    box-shadow: 0 1px 17px -9px black;
}

.post{
    transition: background, 500ms;
    -moz-transition: background 500ms;
    -webkit-transition: background 500ms;
    -o-transition: background 500ms;
    background: #FAFAFA;
    border: 1px #DBDBDB solid;
    color: #686868 !important;
    padding: 3px;
    display: block !important;
    border-top-style: none !important;
    font-size: 90%;
    box-shadow: 0 0 0 1px #FCFCFC inset;
    overflow: hidden;
}

.post:first-child{
    border-top-style: solid !important;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.post:last-child{
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

.post td{
    padding: 2px;
}

.post td.icon{
    width: 16px;
    height: 16px;
}

.post td.image{
    width: 48px;
}

.post td.title{
}

.post.hightlight td.title{
    font-weight: bold;
}

a.post:hover{
    text-decoration: none !important;
    background-color: white;
}

.post td.right{
    width: 1px;
    white-space: nowrap;
    font-size: 80%;
    color: #979797;
}

.post td.content{   
}

.post td.bottom{
    text-align: right;
    font-size: 80%;
    color: #979797;
}

.post .actions a{
    padding: 2px;
    opacity: 0.1;
    transition:all 300ms;
    -moz-transition:all 300ms; /* Firefox 4 */
    -webkit-transition:all 300ms; /* Safari и Chrome */
    -o-transition:all 300ms; /* Opera */
}

.post:hover .actions a{    
    opacity: 0.5;
}

.post .actions a:hover{
    opacity: 1;
}

.post .time{
}

.post .counter{
    white-space: nowrap;
    border-radius: 10000px;
    padding: 0px 4px;
    float: right;
    font-weight: bold;
    color: #3F7EFD;
    box-shadow: 0 0 0 1px white, 0px 0px 2px -1px black inset;
}

.pages{
    text-align: center;
}

.pages > *{
    display: inline-block;
    margin: 5px;
}

#empty{
    clear: both;
    height: 50px;
    visibility: hidden;
}

#footer{
    min-height: 50px;
    margin-top: -50px;
    padding: 15px;
    color: #A2A2A2;
    text-align: center;
}

#footer a{
    color: #A2A2A2;
    font-weight: bold;
}

#copyright{
    float: left;
}

#generation{

}

#language{
    float: right;
}

.votes{
    background: #f0f0f0;
    border: 1px #DBDBDB solid;
    color: #686868 !important;
    padding: 10px;
    box-shadow: 0 0 0 1px whiteSmoke inset;
    border-radius: 2px;
    font-size: 90%;
    margin-bottom: 20px;
}

.vote_name{
    display: block;
    font-weight: bold;
    padding: 10px;
    text-align: center;
}

.vote_pc{
    height: 18px;
    padding: 0px 7px;
    text-align: right;
}

.vote_plus{
    padding: 1px 7px;
    display: block; 
    height: 20px;
    text-align: center;
    margin-left: 7px;
}

.DCMS_quote{
    border: 1px solid #E4E4E4;
    border-radius: 2px;
    background-color: white;
    box-shadow: 0 1px 6px -4px black inset;
    padding: 6px;
    color: #838383;
    margin-left: 24px;
}

.DCMS_quote a{
    color: #838383;
}

.DCMS_photo{
    display: block;
    margin: 2px auto;
    background: #EBEBEB;
    padding: 5px;
    border: 1px solid #DFDFDF;
    border-radius: 5px;
}

.DCMS_nick_on{
    text-shadow: 1px 1px 4px #00E900;
}

.DCMS_nick_off{

}

.DCMS_phpcode{
    max-height: 400px;
    max-width: 684px;
    overflow: auto;
    border: 1px solid #E2E2E2;
    padding: 5px;
    border-radius: 2px;
    background-color: #F7F7F7;
    box-shadow: 0 0 8px -5px black inset;
}

.DCMS_spoiler{
    border: 1px #ccc solid;
    border-radius: 2px;
    padding: 3px;    
}

.DCMS_spoiler > .DCMS_spoiler_title{
    cursor: pointer;
}

.DCMS_spoiler.expanded > .DCMS_spoiler_title:before{
    content: '▼ ';
}

.DCMS_spoiler.collapsed > .DCMS_spoiler_title:before{
    content: '► ';
}

.DCMS_spoiler > .DCMS_spoiler_content{
    overflow-y: hidden;
}