/**********
* FONTS
**********/
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css');

/**********
* MAIN
**********/

* {
    box-sizing: border-box;
    outline: none;
}

body {
    font: 12px/1.6em 'Open Sans', Arial, Verdana, sans-serif;
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.punbb ul,
.punbb dl,
.punbb dd,
.punbb dt {
    width: 100%;
}

.punbb img {
    border: none;
}

/* FORM */

fieldset {
    border: 0;
    min-width: 0;
}

p[class="checkfield"] *,
div[class="checkfield"] *,
fieldset[class="radiofield"] * {
    min-height: 20px;
    vertical-align: middle
}

.checkfield input[type="checkbox"],
.radiofield input[type="radio"] {
    margin: 0 4px;
}

/* TABLES */

.punbb .main table {
    table-layout: fixed;
    width: 100%;
}

@media screen and (min-width: 540px) {

    .container table th {
        font-weight: normal;
    }

    .container table th,
    .container table td {
        text-align: left;
        height: 32px;
    }

    .usertable table th + th,
    .usertable table td + td,
    #pun-online table th + th,
    #pun-online table td + td {
        text-align: right;
    }

    .container table th + th,
    .container table td + td {
        /*text-align: right;*/
    }

}

/**********
* QB STYLES FIX
**********/

.acchide,
.divider {
    display: none;
}

em.bbuline {
    font-style: normal;
    text-decoration: underline;
}

.section > h2 {
    display: none;
}

.inline {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.fs-box.inline {
    align-items: flex-end;
}

.inline .inputfield,
.inline .selectfield,
.inline .passfield {
    display: inline-block;
    width: 208px;
    flex: 0 0 208px;
    padding: 0 10px;
}

.inline .inputfield label,
.inline .selectfield label,
.inline .passfield label {
    margin-bottom: 2px;
    display: inline-block;
    font-size: 10px;
}

.inline input,
.inline select {
    width: 100%;
}

.inline .infofield {
    flex: 1 1 100%;
    padding: 0 10px;
    font-size: 11px;
}

/**********
* LAYOUT
**********/

#pun_wrap { /* блока нет в админке */

}

/*
#pun.isguest { гость }
#pun.isuser { юзер }
#pun.ismoderator { модератор }
#pun.isadmin { админ }
#pun.gidN { для группы N }
*/
#pun { /* wrapper для админки */
}

@media screen and (max-width: 540px) {
    body #pun {
        overflow-x: visible !important;
    }
}

/*
.punbb-admin { админка }
*/

.punbb {
    margin: auto;
    width: 900px;
    position: relative;
    min-height: 500px;;
    height: auto !important;
}

@media screen and (max-width: 540px) {
    #pun_wrap {
        height: 100vh;
    }

    #pun .punbb {
        height: auto !important;
    }
}

/* HEADER */

#html-header {

}

/* TITLE */

#pun-title {
    display: none;
}

@media screen and (max-width: 540px) {
    .punbb #pun-navlinks {
        padding-top: 50px;
    }
}

/* USER MENU */

#pun-ulinks ul {
    display: flex;
    justify-content: flex-start;
    text-align: center;
}

#pun-ulinks ul li {
    display: inline-block;
    text-align: left;
}

#pun-ulinks li + li {
    padding-left: 10px;
}

@media screen and (max-width: 540px) {
    #pun-ulinks ul li {
        white-space: nowrap;
    }
}

/* USER LOGIN INFO */

#pun-status {
    display: none;
}

/* CRUMBS */

#pun-crumbs1,
#pun-crumbs2 {
font-size: 11px;

}

.crumbs { /* находится внутри #pun-crumbsN */

}

.crumbs strong {
    display: none;
}

/* MAIN CONTENT */

#pun-main {

}

.main {
     min-height: 400px;
}

/* ADVERTISMENT ON PAGE */

.punbb > .section[style] {

}

/* QB CREDITS */

#pun-about {
    font-size: 11px;
    margin-top: 20px;
    text-align: center;
}

/* FOOTER */

#html-footer {

}

/* MyBookmarks */

#BookmCntToggle {
    z-index: 1;
}

#MyBookmarks {
    background: #fff;
}

.editBookmark {
    background: #fff;
    padding: 10px;
}

/**********
* INDEX PAGE
**********/

#pun-index {

}

#pun-index #pun-crumbs1,
#pun-index #pun-crumbs2 {
    display: none;
}

#pun-index #pun-main > h1 {
    display: none;
}

/* CATEGORY */

.category {
    font-size: 11px;
}

.category table {
    width: 100%;
}

.category thead {
    display: none;
}

.category tr td {
    border-top: solid 40px transparent;
}

.category td.tcl {
    width: 40%;
    position: relative;
    overflow: visible;
}

.category td.tc2,
.category td.tc3 {
    width: 80px;
    text-align: center;
}

.category td.tcr {
    width: 40%;
    text-align: right;
    text-transform: none;
    vertical-align: top;
    padding: 18px 20px 0;
    font-size: 12px;
}

.category .icon {
    position: absolute;
    right: -55px;
    top: -30px;
    width: 115px;
    height: 109px;
    background: url('http://forumstatic.ru/files/0018/22/0a/90914.png') no-repeat;
    z-index: 23;
}

.category .icon.inew {
    background-image: url('http://forumstatic.ru/files/0018/22/0a/81661.png');
}

@media screen and (max-width: 540px) {

    .category table td {
        height: auto;
    }

    .category tr {
        display: block;
    }

    .category tr + tr {
        border-top: solid 1px rgba(0, 0, 0, .3);
    }

    .category td.tcr {
        width: 100%;
    }

    .category td {
        display: block;
    }

    .category h2 {
        text-align: center;
        background: rgba(0, 0, 0, .3);
    }

    .punbb .category h2 span {
        font-size: 1.3rem !important;
    }
}

/* STATISTICS */

#pun-stats {
    position: relative;
}

#pun-stats ul {
    display: flex;
    flex-wrap: wrap;
    font-size: .8rem;
    margin: 25px 0;
    padding: 0 35px;
    font-size: 12px;
}

#pun-stats ul .item1 {
    flex: 0 0 50%;
    order: 1
}

#pun-stats ul .item2 {
    flex: 0 0 50%;
    order: 3;
}

#pun-stats ul .item3 {
    flex: 0 0 50%;
    order: 2;
    text-align: right;
}

#pun-stats ul .item4 {
    flex: 0 0 50%;
    order: 4;
    text-align: right;
}

#pun-stats ul .item5 {
    flex: 0 0 100%;
    order: 5;
    margin-top: 12px;
}

#pun-stats ul .item5 + .item5 {
    margin-top: 0;
}

@media screen and (max-width: 540px) {
    #pun-stats ul li[class] {
        flex: 0 0 100%;
        order: 0;
        text-align: left;
        margin-top: 5px;
    }
}

/**********
* VIEWFORUM PAGE
**********/

.forum {
    padding: 24px;
}

.main td {
    padding: 0.8em 1em;
}

.main .forum .tcl {
    border-left-style: none;
    border-left-width: 0;
    overflow: hidden;
    text-align: left;
    width: 59%;
}

#pun-searchtopics .main .forum .tc2,
#pun-searchtopics .main .forum .tc3,
#pun-viewforum .forum .tc2,
#pun-viewforum .forum .tc3 {
    display: list-item;
    clear: right;
    width: auto !important;
    padding-left: 30% !important;
    padding-right: 10% !important;
    list-style-type: none;
    /* text-align: right !important; */
    line-height: 1.45em;
    white-space: nowrap;
}

#pun-searchtopics .main .forum .tc2:before {
    display: block;
    content: "\f0c9: ";
    font: normal normal normal 10px/1 FontAwesome;
    color: #86725d;
    float: left;
    line-height: 19px;
    white-space: nowrap;
    margin-right: 4px;
}

#pun-viewforum .forum td.tc2:before {
    display: block;
    content: "\f27a: ";
    font: normal normal normal 10px/1 FontAwesome;
    color: #86725d;
    float: left;
    line-height: 19px;
    white-space: nowrap;
    margin-right: 4px;
}

#pun-searchtopics .main .forum .tc3:before {
    display: block;
    font: normal normal normal 10px/1 FontAwesome;
    content: "\f27a: ";
    color: #86725d;
    float: left;
    line-height: 19px;
    white-space: nowrap;
    margin-right: 4px;
}

#pun-viewforum .forum td.tc3:before {
    display: block;
    font: normal normal normal 10px/1 FontAwesome;
    content: "\f06e: ";
    color: #86725d;
    float: left;
    line-height: 19px;
    white-space: nowrap;
    margin-right: 4px;
}

#pun-searchtopics .main .forum .tc3,
#pun-viewforum .forum .tc3 {
    border-top: none 0 transparent;
    padding-top: 1px !important;
    padding-bottom: .9em !important;
}

.main .tcr {
    overflow: hidden;
    text-align: left;
    width: 30%;
}

/* TOPIC */

.forum > h2 {
    display: none;
}

.forum thead {
    display: none;
}

.forum td {
    height: 40px;
}

.forum td.tcl .byuser:before {
    content: '• ';
}

.forum td.tcr {
    text-align: right;
}

.forum td.tcr .byuser {
    display: block;
    font-style: italic;
    font-size: .8em;
}

.newtext,
.pagestext {
    white-space: nowrap;
}

.byuser {
    white-space: nowrap;
    font-size: .8em;
}

@media screen and (max-width: 540px) {
    .forum tr {
        display: block;
    }

    .forum tr + tr {
        border-top: solid 1px rgba(0, 0, 0, .3);
    }

    .forum td.tcr {
        width: 100%;
    }

    .forum table td {
        display: block;
    }

    .forum h2 {
        text-align: center;
        background: rgba(0, 0, 0, .3);
    }

    .punbb .forum h2 span {
        font-size: 1.3rem !important;
    }
}

/**********
* VIEWTOPIC PAGE
**********/

#pun-viewtopic {

}

.topic {
    position: relative;
}

.topic > h2 {
    display: none;
}

.topic:after {
    content: '';
    font-weight: normal;
    font-size: 11px;
    margin: 0;
    background: url(http://forumstatic.ru/files/0018/22/0a/93916.jpg) 0 0px repeat-x;
    height: 29px;
    background-size: auto 30px;
    z-index: 21;
    width: 100%;
    display: block;
    position: relative;
}

/* POST */

.post {
    position: relative;
}

.post:before,
.post:after {
    content: '';
    display: table;
    clear: both;
}

.post > h3 {
    font-weight: normal;
    font-size: 11px;
    margin: 0;
    z-index: 6;
}

.post > h3 strong {
    font-weight: normal;
    float: right;
}

.post > h3 .permalink {
    font-size: 10px;
    font-weight: 700;
}

.post .container {
    display: flex;
    flex-wrap: wrap;
}

div.post-rating p {
    margin-right: 10px;
}

.post-rating {
    display: block;
    width: 40px;
    height: 28px;
    position: absolute;
    bottom: 33px;
    background-image: linear-gradient(#313133, #000);
    right: 0;
    z-index: 4;
    border-radius: 15px 0 0 15px;
    box-shadow: -1px 1px 1px 0 rgba(0,0,0,.6);
    text-align: center;
}

.post .post-box {
    position: static;
}

.post-vote {
    position: absolute;
    right: 32px;
    bottom: 35px;
}

.post div.post-rating a {
    color: #d8bfa3;
    font-size: 12px !important;
    line-height: 22px;
    display: block;
    width: 22px;
    text-align: center;
}

.post-rating p {
    text-align: center;
}

@media screen and (max-width: 540px) {
    .post > h3 {
        position: static;
        background: rgba(128, 128, 128, 0.15);
    }

    .post .container {
        display: block;
    }
}

.multipage .linkst,
.multipage .linksb {
    display: flex;
    flex-wrap: wrap;
    margin: 16px 0;
}

.multipage .linkst > *,
.multipage .linksb > * {
    flex: 1 1 50%;
}

.multipage .linkst > *:nth-child(odd),
.multipage .linksb > *:nth-child(odd) {
    text-align: left;
}

.multipage .linkst > *:nth-child(even),
.multipage .linksb > *:nth-child(even) {
    text-align: right;
}

.multipage .linkst .postlink {
    width: auto !important;
}

.main.multipage div.linksb div.pagelink {
    text-align: right;
    padding-right: 10px;
    font-size: 11px;
    color: #736f6b;
}

.main .info {
    min-height: 370px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 18px;
    padding: 180px 40px 12px;
    font-family: Century, serif;
    font-variant: small-caps;
    color: #523d23;
    text-shadow: 0 2px 1px rgba(189, 142, 81, .1);
    background: url(http://forumstatic.ru/files/0018/22/0a/61024.png) center 21px no-repeat;
    background-size: 170px;
}

@media screen and (max-width: 540px) {
    .multipage .linkst .pagelink {
        margin-top: 0 !important;
    }
}

/* POST AUTHOR */

.post-author {
    font-size: 11px;
    float: left;
    width: 200px;
    flex: 0 0 200px;
}

@media screen and (max-width: 540px) {
    .post-author:before,
    .post-author:after {
        content: '';
        display: table;
        clear: both;
    }
}

/* POST BODY */

.post-body {
    overflow: hidden;
    padding-top: 16px;
    flex: 1 1 calc(100% - 200px);
}

.post-sig dt {
    display: none;
}

.post-sig dd {
    margin: 0;
    padding: 0;
}

.post-sig:before,
.post-sig:after,
.post-body:before,
.post-body:after {
    content: '';
    display: table;
    clear: both;
}

.post-links {
    width: 100%;
    display: flex;
    flex: 0 0 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 12px 6px;
    z-index: 6;
}

.post-links .pl-share {
    disply: none !important;
}

.post-links ul {
    width: 100%;
    display: flex;
}

.post-links li + li {
    margin-left: 10px;
}

.post-links li.pl-email {
    flex: 0 0 auto;
}

.post-links li.pl-email + .pl-quote,
.post-links li.pl-quote:first-child,
.post-links li.pl-delete {
    flex: 1 1 auto;
    text-align: right;
}

.post-links li.pl-edit {
    flex: 0 0 auto;
}

.post-links li.pl-quote {
    flex: 0 0 auto;
}

.post-links li.pl-reports {
    display: none;
}

.fs-box {
    /* position: relative; */
}

/* QUICK ANSWER */

#post-form > h2 {
    display: none;
}

/* POLL */

.poll1,
.poll2 {
    width: 100% !important;
}

.poll2 {
    width: 85% !important;
    margin: 0 auto;
    padding-left: 20em;
}

.poll2 td:first-child {
    width: 230px;
}

.poll2 td:last-child {
    width: 100px;
}

.poll1 h1,
.poll2 h1 {
    background: #42A5F5;
    border-radius: 5px;
}

#topic-users-in a:after {
    content: ',';
}

#topic-users-in a:last-child:after {
    content: '';
}

@media screen and (max-width: 540px) {

    .poll2 {
        width: 100% !important;
        padding-left: 0;
    }
}

/**********
* USERLIST PAGE
**********/

#pun-userlist {

}

#userlist .formsubmit {
    text-align: left;
    padding: 0 20px;
}

.usertable h2 {
    display: none;
}

@media screen and (max-width: 540px) {
    #pun-userlist .usertable {
        overflow-y: auto;
    }

    #pun-userlist .usertable th,
    #pun-userlist .usertable td {
        padding: 0 8px;
    }

    #pun-userlist .usertable .tcl {
        white-space: nowrap;
    }

    #pun-userlist .usertable .tc3 {
        display: table-cell;
    }
}

/**********
* AWARDS / MODULE PAGE
**********/

#pun-mod {

}

/**********
* SEARCH PAGE
**********/

#pun-search {

}

/* SEARCH RESULT TOPICS */

#pun-searchtopics {

}

/* SEARCH RESULT POSTS */

#pun-searchposts {

}

/**********
* PROFILE PAGE
**********/

#pun-profile {

}

#pun-profile #profile form {
    position: relative;
    padding: 0 20px 0 200px;
}

#pun-profile form[id*='profile'] {
    min-height: 400px;
}

#pun-profile #profilenav {
    flex: 0 0 180px;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 178px;
}

#pun-profile .isactive {
    font-weight: 700;
}

@media screen and (max-width: 540px) {
    #pun-profile #profile {
        padding: 0;
    }

    #pun-profile #profilenav {
        position: static;
    }
}

/**********
* PERSONAL MESSAGES PAGE
**********/

#pun-messages {
}

@media screen and (min-width: 540px) {

    #pun-messages #profilenav {
        display: flex;
        justify-content: space-between;
    }

    #pun-messages #profilenav h2 {
        display: none;
    }

    #pun-messages #profilenav ul {
        display: flex;
    }

    #pun-messages #profilenav ul li a {
        display: block;
        padding: 16px 8px;
    }

    #pun-messages #profilenav ul:first-child {
        flex: 0 0 180px;
    }

    #pun-messages #profilenav ul:last-child {
        flex: 0 0 360px;
    }

}

#pun-messages #messages .linksb {
    display: flex;
    justify-content: space-between;
}

#pun-messages #messages .linksb .clearer {
    display: none;
}

/**********
* ADMIN SETTINGS PAGE
**********/

.punbb-admin {
}

/**********
* USERS ONLINE PAGE
**********/

#pun-online {
}

#pun-online table th:first-child,
#pun-online table td:first-child {
    width: 350px !important;
}

#pun-online table th,
#pun-online table td {
    width: auto !important;
}

#pun-online table .tc3 {
    width: 200px !important;
}

@media screen and (max-width: 540px) {

    #pun-online .main .container {
        overflow-y: auto;
    }

    #pun-online table th,
    #pun-online table td {
        white-space: nowrap;
        padding: 0 8px;
    }
}

/**********
* RESPECTS PAGE
**********/

@media screen and (min-width: 540px) {
    #pun-respect.punbb .main table th {
        display: none;
    }

    #pun-respect.punbb .main table tr {
        display: flex;
        flex-wrap: wrap;
        padding: 6px 0 0;
    }

    #pun-respect.punbb .main table tr .tcl {
        order: 4;
        flex: 0 0 120px;
    }

    #pun-respect.punbb .main table tr .tc2 {
        order: 1;
        flex: 0 0 20px;
        font-weight: 700;
        font-size: 16px !important;
        line-height: 1rem;
    }

    #pun-respect.punbb .main table tr .tc3 {
        order: 2;
        flex: 0 0 180px;
    }

    #pun-respect.punbb .main table tr .tc3 + .tc3 {
        order: 5;
        flex: 0 0 100%;
        font-style: italic;
        padding-left: 200px;
        border-bottom: solid 1px #a28c7e;
    }

    #pun-respect.punbb .main table tr .tcr {
        order: 3;
        flex: 1 0 auto;
    }
}

/**********
* REDIRECT PAGE
**********/

#pun-redirect {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    width: 100%;
    text-align: center;
    border: 0;
}

#pun-redirect:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    height: 100%;
}

#pun-redirect #pun-main {
    width: 630px;
    margin: auto;
    display: inline-block;
    vertical-align: middle;
    text-align: left;
}

@supports (display: flex) {
    #pun-redirect {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #pun-redirect:before {
        display: none;;
    }

    #pun-redirect #pun-main {
        display: block;
    }
}

@media screen and (max-width: 540px) {

}

#pun-live-rusff {
    display: none;
}

.arrows {
    position: absolute;
    right: -17px;
    z-index: 2;
}

.arrows > div {
    position: fixed;
    cursor: pointer;
}

div#ToTop {
    bottom: 50%;
}

div#OnBottom {
    bottom: 50%;
    transform: translateY(60px);
}