/* Download fonts
-------------------------------------------------------------*/
@import url('http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400i,600,800|Playfair+Display:400,900&subset=cyrillic');

/*! normalize.css v3.0.2 | MIT License | git.io/normalize
Tweaked a little bit
-------------------------------------------------------------*/

*, *:before, *:after {
  box-sizing: border-box;
}

audio, canvas, progress, video{
  display:inline-block;
  vertical-align:baseline;
}

audio:not([controls]) {
  display: none;
  height: 0
}

[hidden], template {
  display: none
}

a {
  background-color: transparent
}

a:active, a:hover {
  outline: 0
}

abbr[title] {
  border-bottom: 1px dotted
}

b, strong {
  font-weight: bold
}

dfn {
  font-style: italic
}

h1 {
  font-size: 2rem;
  margin: 0.67em 0
}

mark {
  background: #ff0;
  color: #000
}

small {
  font-size: 80%
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline
}

sup {
  top: -0.5em
}

sub {
  bottom: -0.25em
}

img {
  border: 0
}

svg:not(:root) {
  overflow: hidden
}

figure {
  margin: 1em 40px
}

hr {
  box-sizing: content-box;
  height: 0
}

pre {
  overflow: auto
}

code, kbd, pre, samp {
  font-family: monospace, monospace;
  font-size: 1rem
}

button, input, optgroup, select, textarea {
  color: inherit;
  font: inherit;
  margin: 0
}

button {
  overflow: visible
}

button, select {
  text-transform: none
}

button, html input[type="button"], input[type="reset"], input[type="submit"] {
  -webkit-appearance: button;
  cursor: pointer
}

button[disabled], html input[disabled] {
  cursor: default
}

button::-moz-focus-inner, input::-moz-focus-inner {
  border: 0;
  padding: 0
}

input {
  line-height: normal;
}

input[type="checkbox"], input[type="radio"] {
  box-sizing: border-box;
  padding: 0
}

input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
  height: auto
}

input[type="search"] {
  -webkit-appearance: textfield;
  box-sizing: content-box
}

input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em
}

legend {
  border: 0;
  padding: 0
}

textarea {
  overflow: auto
}

optgroup {
  font-weight: bold
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed !important;
}

td, th {
  padding: 0
}

/* Deal with browser defaults and wonkiness
-------------------------------------------------------------*/
:root {
  font: 62.5% sans-serif;
}

* {
  box-sizing: border-box;
  line-height: 1;
  -webkit-backface-visibility: hidden;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  font: inherit;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-size: 100%;
  font-family: 'Open Sans', verdana, arial, helvetica, sans-serif;
  background-color: #eaeaea;
}

.punbb * {
  margin: 0
}

.punbb ul, .punbb dl, .punbb li, .punbb dd, .punbb dt {
  padding: 0;
  list-style: none
}

.punbb img {
  border:none
}

.punbb .main table {
  width: 100%;
  border: none;
}

.checkfield input[type="checkbox"], .radiofield input[type="radio"] {
  margin: 0 0.3rem;
}

p[class="checkfield"] *,
div[class="checkfield"] *,
fieldset[class="radiofield"] * {
  height: 1.8em;
  vertical-align: middle
}

/* Font Setup
-------------------------------------------------------------*/
.punbb {
  font-size: 1.2rem;
}

.punbb h1, .punbb h2 {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
}

.punbb h1 span, .punbb h2 span {
  position: relative;
  padding: .3rem 2rem;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.1rem;
  text-align: center;
}

#pun-index h2 {
  position: relative;
  width: 100%;
  margin: 1rem 0 1.5rem;
  padding: 0;
  background-color: transparent;
}

#pun-index h2 span {
  margin: 0;
  padding: .25em .5em .4em;
  font-weight: 900;
  font-size: 2rem;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  text-align: center;
  background-color: #fff;
  z-index: 2;
}

#pun-index h2:nth-of-type(even) span {
  text-align: right;
}

.punbb h3, .punbb h4 {
  font-size: 1.5rem;
  font-weight: normal;
}

.punbb .main .tcl a {
  flex-grow: 0;
  flex-shrink: 0;
  -ms-text-size-adjust: 125%;
  -moz-text-size-adjust: 125%;
  -webkit-text-size-adjust: 125%;
}

#pun-index .main h3 {
  -ms-text-size-adjust: 150%;
  -moz-text-size-adjust: 150%;
  -webkit-text-size-adjust: 150%
}

.punbb pre {
  font: 1.2rem/140% monaco, 'bitstream vera sans mono', 'courier new', courier, monospace
}

.punbb address, .punbb em {
  font-style: normal;
}

.punbb .post-content em {
  font-style: italic;
}

.punbb .post-content em.bbuline {
  font-style: normal;
  text-decoration: underline;
}

.punbb optgroup {
  font-weight: bold;
}

.punbb textarea, .punbb input, .punbb select, .punbb optgroup {
  font: 1.2rem 'Open Sans', verdana, arial, helvetica, sans-serif;
  background: rgba(255, 248, 228, .25);
  border: 2px solid transparent;
  box-shadow: 0 .1rem .1rem 0px rgba(174, 174, 174, 1);
}

/* Float clearing and hidden items
-------------------------------------------------------------*/
#pun:after, .punbb .container:after, .punbb .post-links ul:after, .punbb .main div.inline:after, .punbb .post-box:after, .punbb .linksb:after {
  clear: both;
  content: ".";
  display: block;
  height: 0;
  visibility: hidden;
  overflow:hidden;
  line-height: 0.0;
  font-size: 0;
}
  
.acchide, #pun-index #pun-main h1, #pun-navlinks h2, #pun-pagelinks h2, #pun-status h2, #pun-ulinks h2, .punbb .forum h2, .punbb .multipage .topic h2, .punbb dl.post-sig dt span, .punbb p.crumbs strong, .punbb .divider hr, .punbb .required label em, .punbb .formsubmit label, .punbb .submitfield label, .punbb .modmenu label, #pun-userlist .main h2 {
  font-size: 0;
  height: 0;
  width: 0;
  line-height: 0.0;
  position:absolute;
  left: -9999px;
  overflow: hidden
}

/* Basic page layout and borders
-------------------------------------------------------------*/
#pun {
  position: relative;
  width: 100%;
  max-width: 94rem;
  margin: 10rem auto 0;
}
  
#pun > .punbb {
  display: flex;
  flex-direction: column;
  height: auto;
  margin-top: 34rem;
  margin-bottom: 2rem;
  padding: 2rem 0.5rem 1rem;
  background: #fff;
  box-shadow: inset 0px 1rem 0px 0px #a6979c;
}

.punbb > * {
  order: 4;
}

#html-header {
  order: 2;
}

#pun-navlinks {
  order: 1;
}

#pun-announcement {
  /* order: 3; */
  padding: 0;
  margin: 0;
}

#pun-redirect, #pun-maint {
  margin: 50px 20% 12px 20%;
  width: auto;
  float: none;
}

.punbb .section, .punbb .main {
  margin-bottom: 1em;
}

.punbb .main > * {
  padding: 0.4em 1.5em 0.6em;
}

.punbb .main .info,
.punbb .main > .category,
.punbb .main > .topic {
  padding: 0;
}

.punbb .main .category > .container {
  padding: 0;
  padding-left: 1.5em;
}

.punbb .category, .punbb .post {
  margin-top: 1.5rem;
}

.punbb .section, .punbb .forum, .punbb .formal, .punbb .modmenu, .punbb .info, .punbb .category, .punbb .post, .punbb .container, .punbb .section h2, #pun-main h1, #pun-main h2, #pun-stats h2, #pun-debug h2 {
  border: none;
}

/* #pun-post .topic {
  margin-top: 1em;
} */

/* Parsed Content, Signatures and Scroll Boxes
-------------------------------------------------------------*/
.punbb .post-content {
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 1.3rem;
  overflow: hidden;
  -ms-text-size-adjust: 160%;
  -moz-text-size-adjust: 160%;
  -webkit-text-size-adjust: 160%
}

.punbb .post-content abbr {
  text-decoration: none !important;
  border-bottom: 1px dashed #a6979c;
}

.punbb .post-rating p {
  margin-top: 1rem;
  font-size: 1.1rem;
  line-height: 2;
  color: #5d5c5c;
}

.punbb .post-content p,
.punbb .post-content td p {
  margin: 0;
  padding: 0.5em 0 !important;
  line-height: 1.75; 
}

.punbb .post-content table {
  margin: 0 !important;
}

.punbb .post-content p *, .punbb .post-content td p *,
.punbb .post-content .quote-box + p:first-line {
  line-height: 1.5;
}

.punbb .post-content .blockcode, .punbb .post-content blockquote {
  width: 100%;
  overflow: hidden;
}

.punbb .post-content .scrollbox {
    width: 100%;
    height: auto !important;
    max-height: 10em;
    max-width: 100%;
    overflow: auto;
    margin: 0 0 1em;
}

.punbb .post-content pre {
  padding: 0 0.5em 0 0;
  width: 100%;
  height: auto; 
  white-space: pre-wrap;              /* CSS3 browsers  */
  white-space: -moz-pre-wrap !important; /* 1999+ Mozilla  */
  white-space: -pre-wrap;             /* Opera 4 thru 6 */
  white-space: -o-pre-wrap;            /* Opera 7 and up */
  word-wrap: break-word;
  overflow: auto;     
}

.post-content .spoiler-box blockquote.visible {
  border-top: 1px solid rgba(166, 151, 156, .25);   
}

hr {
  display: block;
  width: 100%;
  margin: 0.5em 0 !important;
  padding: 0;
  border: none;
  border-top: 1px solid rgba(166, 151, 156, .25);
  opacity: 1 !important;
}

.char_basic hr {
  margin-bottom: 0 !important;
}

.post-content .spoiler-box blockquote.visible {
  display: block;
  margin: 1em 0 -0.5em 0 !important;
  padding-top: 0.5em;
  width: 100%;
}

.punbb .post-content .quote-box, .punbb .post-content .code-box {
  margin: 1rem 0;
  padding: 1rem 1.5rem;
  background: rgba(166, 151, 156, .1);
}

.punbb .quote-box cite,
.punbb .code-box strong.legend {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1rem;
  font-style: normal;
  font-weight: bold;
  margin: 0 0 1em 0;
  padding: 0.7em 0 1.5em 0;
  border-bottom: 1px solid rgba(166, 151, 156, .25);
}

.punbb .spoiler-box > div {
    padding: 0 2em 0 0 !important;
    background-position: right center !important;
    line-height: 1.5;
}

.punbb .spoiler-box div > span {
    line-height: 1.5 !important;
}

.punbb .post-content img.postimg {
  margin: 0 !important;
  vertical-align: middle;
}



.punbb .post-sig {
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: center;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  color: #5d5c5c;
}

.punbb .post-sig dt {
  margin: 1.5rem auto .5rem;
  width: 90%;
  display: block;
  content: '';
  border-top: 1px solid rgba(166, 151, 156, .2);
  height: 1px;
}

.punbb .post-sig dd {
  display: block;
  padding: 0.5em 0;
}

.punbb .post-sig dd * {
  line-height: 1.5;
}

.punbb .post-sig dd > p:first-of-type {
  padding-top: 0 !important;
}

.punbb .post-sig dd > p:last-of-type {
  padding-bottom: 0 !important;
}

/* Information boxes
-------------------------------------------------------------*/

.punbb .info-box {
  padding: 1em 1.5em 1em 1.5em;
  border: 1px solid rgba(0,0,0,.1);
  margin: 0 0 1em 0;
}

.punbb .info-box * {
  padding: 0 0 0.5em 0;
}

.punbb #pun-main .info-box .legend {
  font-weight: bold;
}

/* Pagination and posting links
-------------------------------------------------------------*/
.punbb .linkst, .punbb .linksb {
  position: relative;
  width: 100%;
  height: auto;
  margin: 2rem 0 1.5rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: space-between;
  align-items: center;
}

.linkst noindex {
  display: inline-block;
  width: 45%;
}

.linkst .pagelink, .linksb .pagelink {
  width: 50%;
}

.linksb .pagelink {
    order: 0;
    flex: 0 1 auto;
    -ms-grid-row-align: auto;
        align-self: auto;
}

.linksb .postlink, .linksb noindex {
  order: 1;
  flex: 0 1 auto;
  -ms-grid-row-align: auto;
      align-self: auto;
}

.linkst .postlink, .linksb .postlink {
  width: 45%;
  text-align: right;
  font-weight: bold;
}

#pun-viewforum .linkst .postlink, #pun-viewforum  .linksb .postlink {
  width: 100% !important;
}

.subscribelink {
  order: 2;
  flex: 0 1 auto;
  -ms-grid-row-align: auto;
      align-self: auto;
  width: 100%;
  padding: 0.5em 0;
  text-align: right;
}

/* Form layout
-------------------------------------------------------------*/

.punbb .formal .container {
  padding: 1em 0;
}

.punbb .formsubmit {
  margin: 1em 0;
  font-weight: bold;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #a6979c;
}

.punbb .formsubmit input, .punbb .formsubmit a, .punbb .formsubmit span {
  margin: 0 0.5em 0 0;
}

.punbb fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1em 0
}

.punbb fieldset legend {
  padding: 0;
  margin: 0;
  font-size: 1.2rem
}

.punbb fieldset fieldset {
  border: none;
}

.punbb .fs-box {
  padding: 0;
}

.punbb .inline .inputfield,
.punbb .inline .selectfield,
.punbb .inline .passfield {
  float: left;
  margin-right: 1em;
}

.punbb .inline .infofield {
  clear: both
}

.punbb .required label, .punbb .datafield span.input {
  font-weight: bold
}

.punbb .datafield span.input a {
  font-weight: normal
}

.punbb .areafield span.input, .punbb p.longinput span.input {
  display: block;
  padding: 0 12em 0 0;
  height: 100% /* For IE */
}

.punbb textarea, .punbb .longinput input {
  width: 64%;
  margin: 0
}

.punbb .hashelp {
  position: relative
}

.punbb .helplinks {
  display: block;
  position: absolute;
  top: 1em;
  right: 0;
  font-weight: normal;
  width: 36%
}

.punbb #profile .helplinks {
  top: 1.5em
}

.punbb .helplinks span {
  display: block;
  padding-bottom: 0.2em;
}

#pun-post .formal .info-box li {
  padding-left: 4px;
  list-style-type: square;
  list-style-position: inside;
  line-height: 1.5;
  margin: 0
}

/* Table layout
-------------------------------------------------------------*/
.punbb .main .tcl {
  overflow: hidden;
  text-align: left;
  width: 50%;
}

.punbb .main .tc2, .punbb .main .tc3, .punbb .main .tcmod {
  text-align: center;
  width: 10%;
}

.punbb .main .tcr {
  overflow: hidden;
  width: auto;
  -ms-text-size-adjust: 125%;
  -moz-text-size-adjust: 125%;
  -webkit-text-size-adjust: 125%
}

#pun-searchtopics .main .tcl,
#pun-modviewforum .main .tcl {
  width: 40%;
  height: 6rem;
}

#pun-userlist .main .tcl {
  width: 30%;
}

#pun-userlist .main .tc2,
#pun-searchtopics .main .tc2 {
  text-align: left;
  width: 20%;
}

#pun-userlist .main .tc3,
#pun-searchtopics .main .tc3 {
  text-align: center;
  width: 13%
}

#pun-userlist .main .tc3:last-of-type,
#pun-searchtopics .main .tc3:last-of-type {
  text-align: right;
}

#pun-debug table .tcl {
  width: 15%;
  white-space: normal
}

#pun-debug .tcr {
  width: 90%;
  white-space: normal
}

#pun-index .tcl {
  padding-bottom: 1em;
}

#pun-index .tcl h3 {
  width: 100%;
  margin-bottom: .5rem;
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1.25;
  font-family: "Playfair Display", serif;
  letter-spacing: .1rem;
  white-space: nowrap;
}

#pun-index .tcl h6 {
  font: 1.1rem Georgia, serif;
  font-weight: normal;
  text-transform: lowercase;
  color: #b5b5b5;
  letter-spacing: 1px;
}

#poll-special table {
  width: 100% !important;
}

#poll-special table tbody td:nth-of-type(2) {
  padding: 0 1em 0 2em !important;
}

#poll-special table tbody td:nth-of-type(3) {
  width: 15% !important;
  text-align: right !important;
}

#pun-index .forumdesc {
  font-size: 1.2rem;
  line-height: 1.5;
  margin: .5rem 0 1rem;
}

#pun-index .forumdesc em {
  font-style: italic;
}

#pun-index .forumdesc_links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  min-width: 0;
  margin: .25rem 0;
  padding: .5rem 0;
  font-size: .8rem;
  font-family: "Playfair Display", serif;
  line-height: 1.5;
  letter-spacing: .1rem;
  text-transform: uppercase;
  text-align: center;
  border-top: 1px solid rgba(166, 151, 156, .25);
  border-bottom: 1px solid rgba(166, 151, 156, .25);
}

#pun-index .forumdesc_links li {
  display: inline-block;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;
  margin: .25rem .2rem;
  white-space: nowrap;
}

#pun-index .forumdesc_links li:after {
  display: inline-block;
  content: ' \25CF';
  margin-left: .3rem;
  white-space: nowrap;
  color: #4f414a;
}

#pun-index .forumdesc_links li:last-of-type:after,
#pun-index .forumdesc_links + br {
  display: none;
}

#pun-index .forumbanners {
  width: 100%;
  max-height: 37px;
  overflow: auto;
  text-align: center;
  background-color: #dce0d2;
  border-top: 3px solid #dce0d2;
  border-bottom: 3px solid #dce0d2;
}

#pun-index .forumbanners > a img:last-of-type {
  margin-right: 3px;
}

.punbb td span.youposted {
  font-weight: bold;
  margin-left: -1em;
  position: absolute;
}

.punbb td .modlist {
  display: block;
  padding-top: 0.3em
}

.punbb .main td {
  border: none;
  min-height: 5rem;
  padding: 0.5em;
  line-height: 1.5;
}

.punbb .post-content td {
  border: none !important;
  padding: 0 0.5em !important;
  box-sizing: content-box;
}

.punbb .post-content td:first-of-type {
  padding-left: 0 !important;
}

.punbb .post-content td:last-of-type {
  padding-right: 0 !important;
}

.punbb .main th {
  border: none;
  padding: 1em 0.5em;
  font-size: 1rem;
  text-align: center;
}

.punbb .main .tcl {
  border: none
}

.punbb tbody.hasicon td.tcl {
  padding-left: 0;
  min-height: 5rem;
}

.punbb div.icon {
  display: block;
  position: absolute;
  float: left;
  border: none;
  background: url(http://forumfiles.ru/files/0019/9c/cb/14050.png) top center no-repeat;
  height: 50px;
  width: 50px;
  padding: 0;
  margin: 0;
}

#pun-index div.icon {
  margin-top: -.25rem;
}

.punbb .iclosed div.icon {
  background: url(http://forumfiles.ru/files/0019/9c/cb/66821.png);
}

.punbb .isticky div.icon {
  background: url(http://forumfiles.ru/files/0019/9c/cb/22676.png);
}

.punbb .inew div.icon {
  background: url(http://forumfiles.ru/files/0019/9c/cb/68024.png);
}

.punbb div.tclcon {
  min-height: 5rem;
  padding-left: 7rem;
  padding-top: 1.5rem;
  line-height: 1.5;
  -ms-text-size-adjust: 125%;
  -moz-text-size-adjust: 125%;
  -webkit-text-size-adjust: 125%;
}

.punbb div.tclcon .byuser {
  display: inline-block;
  flex-grow: 0;
  flex-shrink: 0;
  margin-left: 6px;
}

.punbb div.tclcon .newtext {
  display: inline-block;
  margin-right: 6px;
}

.punbb div.tclcon .newtext:after {
  display: block;
  content: '';
  width: 100%;
}

#pun-index div.tclcon {
  position: relative;
  font-size: 1rem;
  font-family: 'Open Sans', Verdana, sans-serif;
  padding: 0.5em 1em 1em;
  margin-left: 6em;
  z-index: 5;
}

#pun-modviewforum div.icon, #pun-searchtopics div.icon {
  top: 50%;
  left: 0;
  -webkit-transform: translateY(-50%) translateZ(0);
          transform: translateY(-50%) translateZ(0);
}

#pun-modviewforum .tcl, #pun-searchtopics .tcl {
  position: relative;
  padding-left: 5em;
}

#pun-modviewforum th.tcl, #pun-searchtopics th.tcl {
  padding-left: 6em;
}

/* Respect
-------------------------------------------------------------*/
#pun-respect table {
  border-collapse: separate;
  border-spacing: .5rem;
}

#pun-respect .tc2 {
  display: none;
}

#pun-respect .tc3 {
  position: relative;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#pun-respect .tc3:nth-child(2n) {
  width: 35% !important;
}

#pun-respect td.tc3:nth-child(2n) {
  border: 3px double #a6979c;
  background-color: rgba(166, 151, 156, .1);
}

span.removeReputation {
  position: absolute;
  top: 6px;
  right: -21px;
  float: none;
}

#pun-respect .tcr {
  width: 30% !important;
  padding-left: 26px;
  text-align: right;
}

/* Topics
-------------------------------------------------------------*/
.punbb .post .container,
.punbb .post h3 {
  border: none;
}

.punbb .post h3 {
  font-size: 1.2rem;
  line-height: 1;
  position: relative;
  z-index: 5;
  top: .5rem;
  box-sizing: border-box;
  padding: 0.5rem 2rem 0.5rem 1rem;
  display: block;
  margin: 0 0 0 23rem;
  border: none;
}

#pun-searchposts .post h3 span a {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1.1;
  position: relative;
  top: 2px;
}

#pun-searchposts .post h3 span a:nth-of-type(1) {
  text-overflow: ellipsis;
  max-width: 120px;
}

#pun-searchposts .post h3 span a:nth-of-type(2) {
  text-overflow: ellipsis;
  max-width: 200px;
}

.punbb .post h3 strong {
  float: right;
  width: auto;
  text-align: right;
}

.punbb .post h3 strong:before {
  content: '#';
}

#pun-searchposts .post h3 strong {
  position: relative;
  top: 2px;
}

.punbb .post .post-author {
  float: left;
  width: 20rem;
  margin: -1.5em 0 0 1em;
  overflow: hidden;
}

.punbb .post .post-author ul {
  display: flex;
  flex-direction: column;
  padding: 0 0 0.5em;
  line-height: 1.5;
  font-size: 1.1rem;
}

.punbb .post-author li {
  position: relative;
  order: 2;
  padding: 0 1em;
  line-height: 1.4;
  text-align: center;
  z-index: 2;
}

.punbb .post-author li.pa-author,
.punbb .post-author li.pa-title,
.punbb .post-author li.pa-avatar,
.punbb .post-author li.pa-fld1 {
  order: 0;
}

.punbb .post-author li.pa-awards {
  order: 1;
  margin-bottom: .25rem;
  padding: 0;
  font-weight: 900;
  font-size: 8px;
}

.punbb .post-author li.pa-awards,
.punbb .post-author li.pa-awards span,
.punbb .post-author li.pa-awards br {
  display: none;
}

.punbb .post-author li.pa-awards span.mini_awards_label {
  display: block;
  padding: .2rem;
  font-size: inherit;
  line-height: inherit;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: #a6979c;
  background-color: rgba(166, 151, 156, .1);
  cursor: pointer;
}

.punbb .post-author li.pa-awards span.mini_awards {
  padding: .5rem;
}

.punbb .post-author li.pa-awards a {
  display: inline-block;
}

.punbb .post-author .pa-author,
#viewprofile #profile-left #profile-name strong {
  padding-top: .4em;
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1.25;
  font-family: "Playfair Display", serif;
  letter-spacing: .1rem;
  text-align: center;
}

#viewprofile #profile-left #profile-name {
  margin-bottom: 0;
}

#viewprofile #profile-left #profile-name strong {
  padding-top: 1rem;
  padding-bottom: 0;
}

.punbb .pa-avatar.item2 {
  position: relative;
  width: 100%;
  margin: 0 auto 1rem;
  padding: 0;
  text-align: center;
  background-color: #a0cdc6;
  box-shadow: 0px 1rem 0px 0px rgba(160, 205, 198, .15);
  z-index: 1;
}

.punbb .pa-avatar.item2 img {
  position: relative;
  top: 1rem;
  left: 0;
  height: auto;
  max-width: 180px;
  max-height: 180px;
  margin: 0;
  padding: 0;
  box-sizing: content-box;
  box-shadow: 0px 0px 0px 2px #fff8e4,
              inset 0px 0px 0px 180px #a6979c;
}

.punbb .post-author .pa-online {
  line-height: 1.5;
  border: none;
  font-weight: bold;
  text-align: center;
  margin: 0.5em 0;
}

.punbb .post-author .pa-author,
.punbb .post-author .pa-title,
#viewprofile #profile-left #profile-name,
#viewprofile #profile-left #profile-title {
  background-color: rgba(160, 205, 198, .15);
}

#pun-searchposts .post-author .pa-author,
#pun-post .post-author .pa-author {
  padding-bottom: .75rem;
}

.punbb .post-author .pa-online strong,
.punbb .post-author .pa-title,
#viewprofile #profile-left #profile-title {
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  line-height: 1;
} 

.punbb .post-author .pa-title,
#viewprofile #profile-left #profile-title {
  padding: .5rem .3em .75em;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  text-transform: lowercase;
  color: #a6979c;
}

.pa-title + .pa-posts,
.pa-title + .pa-ip {
  margin-top: .3rem;
}

#viewprofile #profile-left #profile-title {
  padding-top: 0;
  margin-bottom: 0;
}

.pa-title + .pa-fld1 {
  margin-bottom: .5rem;
  padding-top: .5rem;
  font-size: 0;
  font-variant: normal;
  line-height: 0;
  text-indent: 100%;
  white-space: nowrap;
}

/* lz shit */
.char {
  font-size: 1.1rem;
  letter-spacing: normal;
  text-indent: 0;
  white-space: normal;
}

.char,
.char > * {
  line-height: 1.25;
  color: #000;
}

.pa-fld1 .char {
  padding: .5rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
  border: 1rem solid rgba(160, 205, 198, .15);
  border-top: none;
}

.char .char_basic .name {
  display: block;
  padding-bottom: .1rem;
  font-weight: 900;
  font-size: 1.2rem;
}

.char .char_basic em {
  display: block;
  margin: 0.5rem 0 0;
  padding: .7rem 0;
  font-size: .8rem;
  font-family: "Playfair Display", serif;
  font-style: normal;
  letter-spacing: .1rem;
  text-transform: uppercase;
  border-top: 1px solid rgba(166, 151, 156, .25);
  border-bottom: 1px solid rgba(166, 151, 156, .25);
}

.pa-fld1 .char .char_spoiler {
  margin-top: .5rem;
  padding: .2rem;
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: #a6979c;
  background-color: rgba(166, 151, 156, .1);
  cursor: pointer;
}

.pa-fld1 .char .char_spoiler.char_spoiler--open {
  margin-top: 0;
}

.pa-fld1 .char .char_spoiler:before {
  content: "Подробнее";
}

.pa-fld1 .char .char_spoiler.char_spoiler--open:before {
  content: "Скрыть";
}

.pa-fld1 .char > div:not(.char_basic):not(.char_spoiler) {
  padding-top: .5rem;
  height: auto;
}

.pa-fld1 .char .char_info {
  display: none;
}

#viewprofile #profile-right li div.char {
  width: 100%;
  max-width: 20rem;
  margin-left: 1em;
  padding: 1rem 0 .5rem;
  border: 3px double #a6979c;
  background-color: rgba(166, 151, 156, .1);
}

#viewprofile #profile-right li div.char .char_basic {
  text-align: center;
}

#viewprofile .char_info {
  margin: .5rem 0;
}

.char_info em {
  font-style: italic;
}

.punbb .post-author .pa-replies {
  text-align: center;
  padding: 0.5em 1em;
}

.punbb .post-author .pa-respect a:first-of-type {
  font-size: 0;
  font-variant: normal;
  line-height: 0;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.pa-respect a:nth-of-type(2) img {
  display: none;
}

.punbb .post-author .pa-respect a:first-of-type:before {
  display: inline-block;
  content: 'Лайков';
  letter-spacing: normal;
  text-indent: 0;
  line-height: 1.4rem;
  font-size: 1.1rem;
}

.pa-respect a:nth-of-type(2):before {
  position: relative;
  top: .15rem;
  content: '\2764';
  font-weight: normal;
  font-size: 1.5rem;
  line-height: 1.4rem;
  cursor: pointer;
  -webkit-text-size-adjust: 150%;
}

.punbb .post-body {
  margin-left: 23rem;
  margin-right: 1rem;
  border: none;
  position: relative;
  top: -1.5em;
  padding: 1.5rem 0 0.5rem 0;
}

.punbb .post-box {
  padding: 1rem;
}

.punbb fieldset .post-box {
  margin-bottom: 1em;
}

.punbb .post-links {
  width: 100%;
  padding: 1.5rem 1rem;
  border: none;
  background-color: #eaeaea;
  box-shadow: -1.05rem 0px 0px 0px #eaeaea,
               1.05rem 0px 0px 0px #eaeaea;
}

#pun-messages .post-links {
  box-shadow: none;
}

.punbb .post-links ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-end;
  align-items: flex-end;
}

.punbb .post-links li {
  display: inline;
  margin: 0;
}

.punbb .post-links li:not(:last-of-type) {
  margin-right: 1rem;
}

.punbb .post-links li:not(:first-of-type) {
  margin-left: 1rem;
}

.punbb .post-links li a {
  font-weight: 900;
  font-size: 1rem;
  font-family: 'Open Sans', Verdana, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  white-space: nowrap;
  text-shadow: 1px 1px 0px #fff, 2px 2px 0px #fff;
  -webkit-font-smoothing: subpixel-antialiased;
}

.pl-reports {
  order: 2;
}

.pl-email {
  order: 1
}

.pl-delete, .pl-quote, .pl-edit {
  order: 3;
}

.pl-email:nth-of-type(2) {
  margin-right: auto !important;
}

#pun-searchposts  .post-links li:first-of-type,
div[id*='pun-multi'] .post-links li:first-of-type {
  margin-left: auto;
}

.punbb .clearer {
  clear: both;
  height: 0;
  font-size: 0;
}

/* Moderator Menu and Else
-------------------------------------------------------------*/
.punbb .modmenu .container {
  margin-top: 1.5em;
  padding: 0.5em 0;
  text-align: right;
}

.punbb .modmenu strong, .punbb .modmenu a {
  height: 1.8em;
  line-height: 1.8;
}

.punbb .modmenu .container strong {
  float: left;
}

.punbb .modmenu input {
  margin-left: 1em;
}

div[id*='pun-multi'] form[method='post'] {
  padding: 0;
}

div[id*='pun-multi'] .modmenu .container {
  padding: 0.5em 1.5em;
}

div[id*='pun-multi'] .checkfield label {
  position: relative;
  top: -2px;
}

#topic-users-in a:after {
  content: ',';
  color: black;
}

/* Message boxes
-------------------------------------------------------------*/
.punbb .info .container {
  padding: 0.8em 1.5em;
  line-height: 1.5;
}

.punbb .info .container .backlink {
  padding-top: 0.8em;
}

/* MESSAGES
-------------------------------------------------------------*/
#pun-messages #post-form .checkfield {
  display: inline-block !important;
  width: 100% !important;
  padding: 0.5em 0;
  box-sizing: border-box;
  text-align: right;
}

#pun-messages .post h3 {
  margin: 0;
  text-align: center;
  padding: 0 0 1em 0;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  top: -3em;
}

#pun-messages .post h3 span {
  padding: 0 0 0.25em 0;
  color: #a6979c;
}

#pun-messages .inputfield {
  text-align: center;
}

#pun-messages .inputfield:first-of-type {
  margin-top: 1em;
}

#pun-messages #messages .pmtcl1 {
  padding-left: 0 !important;
  width: 25%;
}

#messages fieldset {
  padding: 0 0 0 1em;
}

#messages .postlink input.button {
  float: right;
  text-align: right;
  margin: 0.1em 0;
}

#pun-messages .post-links ul li.pl-email {
  margin-left: auto !important;
}

#messages div.icon {
  margin-left: 0;
}

#messages div.icon:after {
  border: none;
  width: 22px;
  border-bottom: 1px solid rgb(207, 207, 207);
  box-shadow: 0px -1px 0px 0px rgb(122, 122, 122);
  margin: 53px 0 0 2px;
}

#messages .tclcon {
  padding-left: 6.5rem;
}

#messages .pmtc22 {
  height: auto;
}

#messages .pmtc22 a {
  white-space: pre-wrap;
  white-space: -moz-pre-wrap !important;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
}

#messages .pmtc24 {
  padding: 0.9em 1em 0.5em !important;
}

#pun-messages fieldset:first-of-type {
  position: relative;
}

#pun-messages fieldset:first-of-type legend {
  position: relative;
  width: 100%;
  text-align: center;
  font-size: 1.6rem;
  font-family: "Playfair Display", serif;
  letter-spacing: .1rem;
  line-height: 1;
  padding: 0;
  margin: 1em auto 1em 0;
  font-weight: 700;
}

#pun-messages .post-box {
  margin: 0;
  padding: 1em;
}

#pun-messages .post-body {
  margin: 2.5em 0 0;
  padding: 0;
}

#messages .linksb {
  padding: 1em 0.5em 1em 0;
}

#pun-messages .post-author {
  width: 100%;
  float: none;
  padding: 5px;
  margin: 0 auto;
  background-color: rgba(166, 151, 156, .125);
}

 #pun-messages .post-author ul {
  padding: 0 5px 0 110px;
  position: relative;
  min-height: 105px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: stretch;
  align-items: flex-start;
}

#pun-messages .post-author li {
  width: 100%;
  text-align: right;
  position: relative;
  order: 1;
  flex: 0 0 auto;
  align-self: flex-end;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#pun-messages .post-author .pa-avatar {
  padding: 0;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  text-align: left;
  order: 0;
  flex: 0 0 auto;
  -ms-grid-row-align: stretch;
      align-self: stretch;
  margin: 0;
  position: absolute;
  left: 5px;
  top: 3px;
  background-color: transparent;
  box-shadow: none;
}

#pun-messages .post-author .pa-avatar img {
  width: 91px;
  height: auto;
  position: relative;
  top: 1px;
}

#pun-messages .post-author .pa-author {
  position: relative;
  padding: 0;
  margin: -5px 0 -5px;
  text-align: left;
  line-height: 2;
  background-color: transparent;
}

#pun-messages .post-author .pa-title {
  position: relative;
  line-height: 1;
  padding: 0.7em 1em;
  margin: 0 0 0.75em 0;
  text-align: left;
}

#pun-messages .post-author .pa-online {
  margin: 0.3em 0 0;
  text-align: right;
}

#pun-messages .post-author .pa-reg, #pun-messages .post-author .pa-posts {
  font-size: 1rem;
}

/* Profile
-------------------------------------------------------------*/
#profile .container {
  margin: 0 0 1em;
  padding-left: 19em;
  line-height: 1.5;
}

#profile fieldset * {
  line-height: 1.5;
}

#profile em {
  display: block;
  margin: -0.5em 0 1em;
}

#profilenav {
  float: left;
  position: relative;
  top: 1em;
  width: 17em;
  margin-left: -23.5rem;
  display: inline;
}

#profilenav li {
  padding: 0.5em 1em;
  padding-left: 1.5em;
  font-weight: 400;
  letter-spacing: 1px;
}

#profilenav li.isactive {
  box-shadow: inset 0.5em 0 0 0 #a0cdc6;
}

#profilenav li.isactive a {
  font-weight: 900;
  color: #50424b;
}

#viewprofile ul, #profilenav ul {
  padding-bottom: 0.5em;
  box-sizing: border-box;
}

#viewprofile h2, #profilenav h2 {
  margin: 0 auto 0.5em;
  font-weight: bold;
  text-align: center;
}

#viewprofile {
  position: relative;
}

#viewprofile #profile-left {
  display: block;
  width: auto;
  position: relative;
  text-align: center;
  padding: 0.5rem 0;
  line-height: 1.5;
  font-size: 1.1rem;
}

#viewprofile li, #setmods dl {
  padding: 0 0 0 16em;
  padding-bottom: 0.5rem;
}

#viewprofile li span {
  float: left;
  text-align: right;
  width: 18em;
  margin-left: -15em;
  padding: 0.5em 1em;
  font-weight: bold;
}

#setmods dt {
  float: left;
  width: 14em;
  margin-left: -16em;
  padding: 0.8em 1em;
  font-weight: bold;
  display: inline;
}

#viewprofile li strong, #viewprofile li div, #setmods dd {
  display: block;
  padding: 0.5em 0.5em;
  font-weight: normal;
}

#viewprofile #profile-right li div {
  padding: 0 1.5em;
  text-align: left;
}

#viewprofile #profile-left li div {
  margin-top: 1rem;
  margin-bottom: .5rem;
  padding-bottom: 1rem;
  background-color: #a0cdc6;
  box-shadow: 0px -1rem 0px 0px rgba(160, 205, 198, .15);
}

#viewprofile #profile-left li div img {
  margin-top: -1rem;box-shadow: 0px 0px 0px 2px #fff8e4
}

.punbb img.avatardemo {
  float: right;
  margin: 0 0 1em 2em
}

#profile-uploads, #profile-uploads tbody, #profile-uploads tr {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

#profile-uploads td {
    display: inline-block !important;
    margin: 0.25em 0.25em;
    min-width: 100px !important;
}

#profile-uploads td:first-of-type {
    margin-left: 0;
}

#profile-uploads td:last-of-type {
    margin-right: 0;
}

#profile-uploads input[type=checkbox] {
    margin: 5px 0 0 5px !important;
}

#profile-uploads {
    margin-bottom: 1em;
}

/* User list
-------------------------------------------------------------*/
#pun-userlist .formal, #pun-userlist .formal .container {
  border: none;
}

#pun-userlist .usertable .container {
  padding: 1em 0;
}

/* Logo and description
-------------------------------------------------------------*/
#html-header {
  position: relative;
  top: 0;
  left: -.5rem;
  width: calc(100% + 1rem);
  height: 24rem;
  margin-top: -26rem;
}

/* #pun-title table {
  position: relative;
  top: -7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 39.6rem;
  height: 35rem;
  display: block;
  margin-top: -24rem;
  background-image: url(http://forumfiles.ru/files/0019/9d/29/49532.png);
  background-repeat: no-repeat;
  z-index: 2;
} */

.holyheader_container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  align-content: stretch;
  justify-content: stretch;
  height: 100%;
}

.holyheader {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.holyheader * {
  z-index: 3;
}

.holyheader em {
  font-style: italic;
}

.holyheader h4 {
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1.5;
  font-family: "Playfair Display", serif;
  letter-spacing: .1rem;
}

.holyheader--right {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 62rem;
  padding-right: 25rem;
  background-color: #a0cdc6;
}

.holyheader--left {
  justify-content: space-between;
  flex-grow: 1;
  padding-left: 7rem;
  text-align: center;
  background-color: #fff8e4;
}

.holyheader_logo {
  position: absolute;
  left: 66%;
  top: 50%;
  -webkit-transform: translate(-66%, -50%);
          transform: translate(-66%, -50%);
  margin-top: -3.5rem;
  width: 396px;
  height: 350px;
  padding: 0;
  pointer-events: none;
  z-index: 2;
}

.holyheader_image {
  position: relative;
  z-index: 2;
}

h4.holyheader_rating {
  position: absolute;
  top: 77.5%;
  left: 5.25rem;
  -webkit-transform: translateY(-77.5%);
          transform: translateY(-77.5%);
  font-size: 3.2rem;
  color: #a5969c;
  text-shadow: 1px 1px 0px #fff, 2px 2px 0px #fff;
  z-index: 3;
}

.portraits {
  flex-grow: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  align-content: space-between;
  justify-content: space-between;
  width: 100%;
  height: 6rem;
}

.holyheader--right .portraits {
  padding-right: 2rem;
  margin-bottom: 1.5rem;
}

.holyheader--left .portraits {
  padding: 0 .5rem;
}

.portraits.characters {
  height: 6.5rem;
}

.portrait {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border-radius: 50%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.portrait a,
.portrait img {
  width: auto;
  height: 100%;
  min-height: calc(100% + 2px);
  border-radius: 50%;
}

.portrait img,
.holyfriends img {
  opacity: .8;
  transition: all .3s ease;
  cursor: pointer;
  -webkit-filter: grayscale(100%);
          filter: grayscale(100%);
}

.holyfriends img:hover,
.portrait img:hover {
  opacity: 1;
  -webkit-filter: grayscale(0%);
          filter: grayscale(0%);
}

.portraits--right .portrait {
  background-color: #fff8e4;
}

.portraits--left .portrait {
  background-color: #a0cdc6;
}

.portrait--character {
  width: 6.5rem;
  height: 6.5rem;
}

.portrait--search {
  width: 6rem;
  height: 6rem;
}

.holyheader_quote {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  max-height: 35.5rem;
  min-height: 0;
  min-width: 0;
  padding: 0 .6rem;
  padding-right: 0;
  overflow: hidden;
}

.holyheader_quote .quote-content {
  -ms-grid-row-align: center;
  align-self: center;
  height: auto;
  max-height: 35.5rem;
  padding-right: 1.4rem;
  line-height: 1.5;
  overflow: auto;
}

ul.holyheader_navlinks {
  margin-bottom: .5rem;
  padding-left: 3.5rem;
  font-size: .8rem;
  font-family: "Playfair Display", serif;
  line-height: 1.5;
  letter-spacing: .1rem;
  text-transform: uppercase;
}

.holyheader_navlink {
  display: inline-block;
}

.holyheader_navlink:after {
  content: ' \25CF';
  color: #4f414a;
}

.holyheader_navlink:last-of-type:after {
  display: none;
}

.holyheader_news {
  padding: .5rem 0;
}

.holyheader_news p {
  line-height: 1.2;
  padding-top: .5rem;
}

/* Footer 
-------------------------------------------------------------*/
#html-footer {
  margin: 0.25rem 0;
  padding: 0 .75rem;
  text-align: center;
}

.holyfriends {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  line-height: 2;
}

.holyfriends a {
  display: inline-block;
}

/* Page navigation
-------------------------------------------------------------*/
#pun-pagelinks {
  position: absolute;
  top: -15px;
  left: 0;
  margin: 0;
  border: none;
  padding: 0;
  width: 100%;
}

#pun-pagelinks .container {
  background: transparent;
  border: none;
  padding: 0
}

#pun-pagelinks .container li {
  display: inline
}

#pun-pagelinks li a, #pun-pagelinks a:link, #pun-pagelinks a:hover {
  height: 2em;
  line-height: 2em;
  padding: 0;
  font-size: 1.2rem;
  margin-left: -9999px;
  display: block;
  float:left;
  width: 100%;
}

#pun-pagelinks a:active, #pun-pagelinks a:focus {
  position: relative;
  margin: 0
}

#pun-pagelinks li a span {
  display: block;
  margin: 0 1em
}

/* Forum navigation
-------------------------------------------------------------*/
#pun-navlinks {
  position: absolute;
  top: -34rem;
  left: 0rem;
  width: 100%;
  height: 10rem;
  z-index: 3;
}

#pun-navlinks .container {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

#pun-navlinks li {
  display: inline;
  padding-left: 1.5rem;
}

#pun-navlinks li:first-of-type {
  padding-left: 0;
}

#pun-navlinks li a {
  padding: 0.2em 0;
}

#pun-navlinks li a,
li#navindex:after {
  font-weight: 900;
  font-size: 1rem;
  font-family: 'Open Sans', Verdana, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  white-space: nowrap;
  text-shadow: 1px 1px 0px #fff, 2px 2px 0px #fff;
  -webkit-font-smoothing: subpixel-antialiased;
}


#navadmin, #navadv {
  padding-left: 0;
  order: 1;
}

li#navadmin a,
li#navadv a {
  font-size: 1.1rem;
  cursor: pointer;
}

li#navawards,
#navindex span,
#navuserlist span,
#navpm a span,
#navadmin span {
  display: none;
}

li#navindex {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  margin-right: auto;
}

#navindex:after {
  content: "Боги. 2018. Апокалипсис?..";
  margin-left: 1em;
  color: #a1a1a1;
}

li#navindex a {
  font-size: 24px;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.25rem;
}

#navindex a:before {content:'Holy Sh!t';}
#navuserlist a:before {content:'Персонажи';}
#navpm a:before {content:'Почта';}
#navadmin a:before {content:'АдЪ';}

/* User links
-------------------------------------------------------------*/
#pun-ulinks  {
  margin: 2rem 1rem 2rem;
  z-index: 4;
}

#pun-ulinks .container {
  padding: 0.05em 1.5em 0.25em;
  text-align: center;
  -ms-text-size-adjust: 150%;
  -moz-text-size-adjust: 150%;
  -webkit-text-size-adjust: 150%
}

#pun-ulinks li, #pun-ulinks li a {
  display: inline;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

#pun-ulinks li a {
  margin: 0;
  -webkit-font-smoothing: subpixel-antialiased;
}

#pun-ulinks li:not(:first-of-type) a {
  margin-left: 1em;
}

/* Welcome box
-------------------------------------------------------------*/
#pun-status, #pun-status .container {
  border: none;
  margin: 0;
}

#pun-status .container {
  padding: 1em 1.5em;
}

#pun-status span {
  padding: 0;
  line-height: 1.5;
  white-space: nowrap;
}

#pun-status span:nth-of-type(1) {
  display: block;
}

#pun-status span:nth-of-type(2) {
  display: block;
  float: left;
}

#pun-status span:last-of-type:after {
  content: ' ';
  font-size: 0;
  height: 0;
  width: 0;
  clear: both;
}

/* Breadcrumbs and Breaks
-------------------------------------------------------------*/
#pun-crumbs1, #pun-crumbs2 {
  font-weight: bold;
  overflow: hidden;
  margin: 0;
}

#pun-crumbs2 p.container, #pun-crumbs1 p.container {
  border: none;
  padding: 1em 1.5em;
  font-size: 1.2rem;
}

#pun-break1, #pun-break4 {
  height: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Footer
-------------------------------------------------------------*/
/* Announcement
-------------------------------------------------------------*/
/* Statistics
-------------------------------------------------------------*/
#pun-stats .container {
  padding: 1em;
  -ms-text-size-adjust: 160%;
  -moz-text-size-adjust: 160%;
  -webkit-text-size-adjust: 160%
}

#pun-stats li.item1, #pun-stats li.item2 {
  float: left;
  clear: both;
  line-height: 1.5;
}

#pun-stats li.item3, #pun-stats li.item4 {
  text-align: right;
  line-height: 1.5;
}

li#onlinelist {
  margin: 1.5em 0;
  float: left;
  width: 100%;
}

li#onlinelist div {
  padding: 0;
  line-height: 1.5;
}

li#onlinelist:nth-child(6) {
  margin: 0;
}

/* Quick Jump - About
-------------------------------------------------------------*/
#pun-qjump {
  margin: 0;
  border: none;
  width: 50%;
  position: relative;
  float: left;
}

#pun-qjump .container {
  border: none;
  background: transparent;
  padding: 1em 0;
  }

#pun-about {
  margin: 0;
}

#pun-about .container {
  text-align: right;
  line-height: 2;
  padding: 0 1.5em;
}

/* Help file
-------------------------------------------------------------*/
#pun-help .formal .info-box h3.legend {
  padding-bottom: 0;
  margin-bottom: 0.8em;
}

#pun-help .formal .info-box h3.legend span {
  padding-bottom: 0.6em;
  display: block;
  font-size: 1.2rem;
}

#pun-help .formal p, #pun-help .formal dd {
  margin-bottom: 1em
}

#pun-help .formal ul, #pun-help .formal dl {
  padding: 0 0 0 1em
  }

#pun-help .formal li {
  padding: 0;
  line-height: 1.3;
  }

#pun-help .formal li * {
  vertical-align: text-top
}

#pun-help .formal dt span {
  font: 1.4rem/120% monaco, "bitstream vera sans mono", "courier new", courier, monospace
}

#pun-help .formal .parsedmsg, #pun-help .formal .parsedmsg .incode {
  padding-bottom: 0;
}

/* Post Preview
-------------------------------------------------------------*/
#pun-edit #post {
    padding: 0;
    box-sizing: border-box !important;
}

fieldset#post-preview {
  padding: 0;
  margin: 2em 0 1em 0;
  box-sizing: border-box !important;
  border: 1px solid rgba(0,0,0,.05);
}

fieldset#post-preview legend {
    display: none !important;
}

fieldset#post-preview .fs-box {
    width: 100%;
    box-sizing: border-box !important;
    margin: 0 auto;
}

fieldset#post-preview .post-box {
    width: 100%;
    padding: 0;
    box-sizing: border-box !important;
}

fieldset#post-preview .post-content {
    width: 100%;
    margin: auto;
    padding: 0.5em 1.5em;
    box-sizing: border-box !important;
}

/* &#209;&#234;&#240;&#232;&#239;&#242; &#240;&#224;&#241;&#248;&#232;&#240;&#229;&#237;&#237;&#238;&#227;&#238; &#239;&#229;&#240;&#229;&#237;&#238;&#241;&#224; &#241;&#238;&#238;&#225;&#249;&#229;&#237;&#232;&#233; */
.pgl, .forum_name {
  margin-bottom: .8em;
}

/* Form Buttons and Textarea
-------------------------------------------------------------*/
input:not([type='radio']):not([type="checkbox"]), select, textarea {
  margin: 0 0 0.75em 0 !important;
  padding: 0.25em 0.5em 0.3em;
}

#keyboard-span input {
  box-shadow: none;
  margin: 0.1em !important;
  padding: 0 0.5em !important;
  box-sizing: border-box;
  border: none;
}

#keyboard-span input:nth-of-type(13), #keyboard-span input:nth-of-type(14) {
  position: relative;
  top: 1px;
}

#keyboard-span input:nth-of-type(28), #keyboard-span input:nth-of-type(29) {
  display: none;
}

del {
  background-color: transparent !important;
}

textarea#main-reply {
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto !important;
  padding: 0.5em;
  font-size: 1.3rem;
  line-height: 1.5;
  background: white;
  background-color: rgba(255, 248, 228, .25);
  border-color: transparent;
  box-shadow: 0 .3rem 1rem 0px rgba(174, 174, 174, .5);
  -ms-text-size-adjust: 160%;
  -moz-text-size-adjust: 160%;
  -webkit-text-size-adjust: 160%;
}

label {
  display: block;
  line-height: 2 !important;
  font-weight: bold;
}

.input + label, .checkfield > label,
input[type='radio'] + label, input[type='checkbox'] + label  {
  display: inline;
  font-weight: normal;
}

input[type='radio'], input[type='checkbox'] {
  position: relative;
  top: 1px;
}

p > label + br {
  display: none;
}

fieldset legend {
  display: block;
  width: 100%;
}

fieldset legend span {
  display: block;
  width: 100%;
  padding: 0.5em 0 1em;
  text-align: center;
  text-transform: lowercase;
  letter-spacing: .1rem;
}

#pun-main fieldset:first-of-type legend span {
  padding-top: 0;
}

#pun-reputation input, #pun-report input,
#video-area-actions a, #image-area-actions a, .punbb .formsubmit input,
input[type="submit"] {
  position: relative;
  padding: 1.25em 1.5em;
  background-color: #50424b;
  font-weight: bold;
  font-size: .8rem;
  font-family: "Open Sans", verdana, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  border-radius: .5rem;
  transition: all .3s ease;
  color: white;
  z-index: 5;
}

#pun-reputation input:hover, #pun-report input:hover,
#video-area-actions a:hover, #image-area-actions a:hover,
.punbb .formsubmit input:hover,
input[type="submit"]:hover {
  -webkit-transform: translateY(-.1rem);
          transform: translateY(-.1rem);
}

input[type="submit"] {
  border: none;
  padding: 1em 1.25em !important;
}

#image-area-actions a,
.punbb .formsubmit input {
  margin: 0 0.75em 0 0 !important;
}

#video-area-actions a {
  margin: 0 -0.75em 0 0 !important;
}

#image-area-actions {
  padding: 1em 0 0.25em 0 !important;
}

#video-area-actions {
  padding: 0 0 1em 0;
}

textarea#video-area-tinp, textarea#image-area-tinp {
  margin-top: 1em !important;
  border: none !important;
}

input + a, input + a + a {
  margin-left: 1em !important;
}

#form-buttons {
    margin: 2.5em 0 0.5em 0;
}

#form-buttons table, .punbb .formal textarea {
    box-sizing: border-box;
    margin: 0 auto;
}

#form-buttons table {
    text-align: center;
    margin: 0 auto -1em;
}

#form-buttons td {
    background: none !important;
    display: inline-block;
    min-height: 1.25em;
    min-width: 1.25em;
    text-align: center;
    margin: -0.5em 1em 1.5em;
}

#form-buttons td img {
    z-index: 10;
    height: 1em !important;
    position: relative;
}

#form-buttons td:before {
  font-family: FontAwesome;
  position: absolute;
  margin-top: 0.5em;
  margin-left: 0.15em;
  font-size: 1.4rem;
  z-index: 1;
  color: #495443;
  transition: all 0.3s ease;
}

#button-font:before { content: '\f031'; }
#button-size:before { content: '\f034'; }
#button-bold:before { content: '\f032'; }
#button-italic:before { content: '\f033'; }
#button-underline:before { content: '\f0cd'; }
#button-strike:before { content: '\f0cc'; }
#button-left:before { content: '\f036'; }
#button-center:before { content: '\f037'; }
#button-right:before { content: '\f038'; }
#button-link:before { content: '\f0c1'; }
#button-spoiler:before { content: '\f0fe'; }
#button-image:before { content: '\f083'; }
#button-video:before { content: '\f03d'; }
#button-hide:before { content: '\f023'; margin-left: 0.4em !important; }
#button-quote:before { content: '\f10e'; }
#button-code:before { content: '\f121'; }
#button-color:before { content: '\f040'; }
#button-table:before { content: '\f0ce'; }
#button-smile:before { content: '\f118'; }
#button-keyboard:before { content: '\f11c'; margin-left: 0 !important; }
#button-addition:before { content: '\f150'; }
#button-audio:before { content: '\f028';}
#button-coub:before { content: '\f26c';}
#button-mask:before { content: '\f21b';}

#font-area, #size-area, #color-area, #table-area, #smilies-area, #image-area, #imageup-area, #imageattach-area, #keyboard-area, #video-area, #addition-area {
  top: auto !important;
  position: absolute;
  display: none;
  right: 1.4em !important;
  margin-top: 1.4em;
  margin: 1em 0;
  padding: 1em;
  background-color: #eaeaea;
  padding: 1em 1em 0.5em !important;
  border-bottom: 5px solid #a6979c;
  z-index: 5;
}

#font-area, #size-area, #addition-area {
  width: auto !important;
}

#uploaded-images {
  max-width: 343px;
}

#image-area {
  width: 580px !important;
}

#pun-report .inner, #pun-reputation .inner, #pun-admin-award-form .inner {
  background: #fff;
}

#pun-report .tc2, #pun-report .tcl,
#pun-reputation .tc2, #pun-reputation .tcl {
  padding: 0.75em 1em 0.5em;
}

#pun-report .tc2, #pun-reputation .tc2 {
  vertical-align: middle !important;
}

#charcounter, #fastsubmit {
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-weight: bold;
  line-height: 1;
  color: #7f807a;
  padding: 5px 0;
}

#fastsubmit {
  display: inline-block;
  margin-left: 6px;
}

#charcounter {
  text-align: right;
}

#fastsubmit strong,
#charcounter span {
  color: #000;
}

.small-text {
  font-style: normal;
  font-size: 1rem;
}

/* Move Posts Vol.2 */
#move_posts_form .stt-inner {
  background: #edf0e4;
  border-radius: 10px;
  box-sizing: border-box;
}

#move_posts_form .stt-inner > div {
  box-sizing: border-box;
  padding: 1em 1.5em 0;
}

#move_posts_form h1 {
  position: relative;
}

#move_posts_form span.closer9 {
  float: none !important;
  position: absolute;
  font-size: 1.5rem !important;
  right: 2px;
  top: 0;
  margin-top: 1px;
}

#move_posts_form .stt-inner table.container, #move_posts_form table.container thead {
  width: 100% !important;
  display: block;
}

#move_posts_form table.container tbody {
  display: block;
  width: 100% !important;
  height: 16em !important;
}

#move_posts_form .stt-inner thead th.tcl, #move_posts_form .stt-inner td.tcl {
  width: 90% !important;
}

#move_posts_form .stt-inner thead th.tc2 {
  display: block;
  position: absolute;
  right: 8px;
}

.pgl, .forum_name {
  text-align: center;
}

#move_posts_form #afterMove > div {
  line-height: 1.5 !important;
}

/* Important & Closed Themes
-------------------------------------------------------------*/
.isticky .tcl a:first-of-type:before,
.inewisticky .tcl a:first-of-type:before,
.iclosed .tcl a:first-of-type:before {
  margin-right: 0.4em;
  font-weight: normal;
}

.inewisticky .tcl a:first-of-type:before,
.isticky .tcl a:first-of-type:before {
  content:'\25CF';
}

.iclosed .tcl a:first-of-type:before {
  content: '\25CB';
}

.iclosed.inewisticky .tcl a:first-of-type:before,
.isticky.iclosed .tcl a:first-of-type:before {
  content:'\25CF  \25CB';
}

.inewisticky .tcl strong a:before,
.iclosed.inew .tcl strong a:before {
    display: inline !important;
}

.pun-modal.move_posts_form .modal-inner {
  background-color: #eaeaea;
  padding: 1em 1em 0.5em !important;
}

/* Custom btn script */
.smile-custom__container {
  width: 80%;
  margin-bottom: 2rem;
}

.smile-custom__container a {
  cursor: pointer;
}

.smile-custom-main__wrapper {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  padding: 1rem;
  background-color: #eaeaea;
  max-height: 180px;
  overflow: auto;
}

#smile-container-close {
  flex-grow: 0;
  flex-shrink: 0;
}

.smile-custom-btn {
  display: inline-block;
  position: relative;
  padding: 1em 1.5em;
  background-color: #a6979c;
  font-weight: bold;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: #fff;
  transition: all .3s ease;
  opacity: .75;
  z-index: 5;
}

.smile-custom-btn#smile-container-close {
  flex-grow: 0;
  flex-shrink: 0;
}

.smile-custom-btn#smile-container-close,
.smile-custom-btn.smile-custom-btn--active {
  color: #fff;
  opacity: 1;
}

.smile-custom-btn:not(:first-of-type) {
  margin-left: .2rem;
}

.punbb a.smile-custom-btn:hover,
.punbb a.smile-custom-btn:focus,
.punbb a.smile-custom-btn:active {
  color: #fff;
  background-color: #a0cdc6;
}

#navpm span.num_msg {
  margin-top: -16px;
}

#navpm span.num_msg:before {
  top: 12px;
  z-index: -1;
}

/* Links
-------------------------------------------------------------*/
.punbb a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.punbb .post-author .pa-author a, .punbb .pa-author a, 
#pun-ulinks a, #pun-ulinks a:visited,
#pun-messages .post-author .pa-author a,
.punbb .post-links li a:hover, .punbb .post-links li a:focus, .punbb .post-links li a:active,
#html-footer .copyright a:hover, #html-footer .copyright a:focus,  #html-footer .copyright a:active,
#form-buttons td:hover:before, #form-buttons td:active:before,
#form-buttons td:focus:before,
.punbb a:link, .punbb a:visited {
  color: #4f414a;
}

.punbb .post-content a:link, .punbb .post-content a:visited {
  color: #749590;
}

.punbb .post-links li a, .punbb .post-links li a:visited,
#pun-navlinks a, #pun-navlinks a:visited,
#profilenav a, #profilenav a:visited {
  color: #a6979c;
}

.punbb .holyheader--right a:hover,
.punbb .holyheader--right a:active,
.punbb .holyheader--right a:focus {
  color: #fff8e4;
}

.punbb a:hover, .punbb a:focus, .punbb a:active,
.punbb .post-content a:hover,
.punbb .post-content a:focus,
.punbb .post-content a:active  {
  color: #a0cdc6;
}

.punbb .post-author .pa-author a:hover, .punbb .pa-author a:hover, 
.punbb .post-author .pa-author a:focus, .punbb .pa-author a:focus, 
.punbb .post-author .pa-author a:active, .punbb .pa-author a:active, 
#pun-ulinks a:active, #pun-ulinks a:focus, #pun-ulinks a:hover  {
  color: #a6979c;
}

#pun-navlinks a:active, #pun-navlinks a:focus, #pun-navlinks a:hover,
#profilenav a:active, #profilenav a:focus, #profilenav a:hover {
  color: #4f414a;
}

/* Scrollpage Arrows
-------------------------------------------------------------*/
.scrollarrows {
  position: fixed;
  left: calc(50% + 94rem / 2 + 4rem);
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  font-size: 1rem;
  -ms-text-size-adjust: 150%;
  -moz-text-size-adjust: 150%;
  -webkit-text-size-adjust: 150%;
  color: #a6979c;
  z-index: 100000 !important;
}

@media screen and (max-width: 1300px) {
  .scrollarrows {
    left: auto;
    right: 1rem;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
  }
}

.scrollarrows span {
  display: block;
  width: 0;
  margin: 1em;
  border: 1.5em solid transparent;
  transition: all .3s ease;
  cursor: pointer;
}

.scrollarrows span:hover {
  color: #a0cdc6;
}

.scrollarrows span:first-of-type {
  border-top: none;
  border-bottom-width: 3em;
  border-bottom-color: inherit;
}

.scrollarrows span:last-of-type {
  border-bottom: none;
  border-top-color: inherit;
  border-top-width: 3em;
}

/*safari "hacks"*/
.scrollarrows span:first-of-type:hover {
  border-bottom-color: #a0cdc6;
}

.scrollarrows span:last-of-type:hover {
  border-top-color: #a0cdc6;
}

/* HVSS Styles
 -----------------------------------------------------*/
.hv-mask-field .description {
  font-weight: 400;
  font-style: italic;
}

.hv-control input.button:not(:last-of-type) {
  margin-right: 1rem !important;
}

/* Scrollbar, Selection, Focus
 -----------------------------------------------------*/
::-webkit-scrollbar {
  background: rgba(0,0,0, .1);
  width: .8rem;
  height: .8rem;
}

::-webkit-scrollbar-thumb:vertical,
::-webkit-scrollbar-thumb:horizontal {
  background-color: #a0cdc6;
  width: .8rem;
  height: .8rem;
}

::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
  display: none;
}

:focus {
  outline-color: #a0cdc6;
}

::-moz-focus-inner {
  border: 0;
  display: none;
}

::-moz-selection {
  color: #fff;
  background-color: #a0cdc6;
}

::selection {
  color: #fff;
  background-color: #a0cdc6;
}


/* Delete Unnecessary Elements
-------------------------------------------------------------*/

#pun-messages .post-author:after, #topic-users-in a:last-child:after,
.pl-website, p.lastedit, #pun-title h1,
.stickytext, .closedatafield, .closedtext, .inewisticky .tcl .tclcon a:before, .inew .tcl .tclcon a:before, .tcl span a:before, a.sharelink {
  display: none;
}

li.pa-gifts, #pun-register .social, #pun-login .social, span.modlist,
#pun-index .main thead, #pun-viewforum .main thead, #pun-main div.catleft, #pun-main div.catright,
#pun-announcement h2, li.pl-share, #pun-live-rusff, #post-form h2, #post-form fieldset legend, 
.punbb .datafield br, .pl-email:nth-of-type(3) {
  display: none !important;
}