/*************************************************************
CODE STRUCTURE BY BLANCHE
**************************************************************

FONTS / ROOT / LINKS
-------------------------------------------------------------*/
@import url(style_cs.1764790078.css);
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,1,0");
@import url("https://kit-pro.fontawesome.com/releases/v5.15.1/css/pro.min.css");
@import url("https://fonts.googleapis.com/css2?family=PT+Mono&display=swap");

/* fonts used in design */
@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

/* regular */
@font-face {
  font-family: Glassure;
  font-weight: 500;
  src: url("https://forumstatic.ru/files/001c/69/9f/19572.woff") format("woff");
}

/***************************************/

:root {
  --bg: url(https://forumstatic.ru/files/001c/69/9f/70059.webp) top center
    no-repeat var(--bg-color);
  --main-w: 1100px;
  --main-p: 25px;

  --title-bg: url();
  --title-h: 280px;

  --font: Rubik;
  --font-fav: Glassure;

  --pun: var(--color-light1);
  --pun1: #d3d3d3;
  --bg-color: var(--color-gray1);

  --color-accent1: #48597d;
  --color-accent2: #5575b5;
  --color-accent3: #506497;
  --color-accent4: #bf803d;
  --color-gray1: #818181;
  --color-gray2: #6b6666;
  --color-dark1: #171717;
  --color-dark2: #;
  --color-dark3: #;
  --color-light1: #d9d9d9;
  --color-light2: #cfcfcf;
  --color-light3: #ebebeb;

  --star: url(https://forumstatic.ru/files/0014/63/3f/45240.svg);

  --notify: var(--color-accent1);
  --link: var(--color-accent2);

  --border1: 1px solid var(--color-gray2);
  --content-icon: "x";

  --prof-w: 230px;
  --profnav-w: 160px;
  --post-p: 50px;
  --usav: 30px;
  --av-gst: url("https://forumstatic.ru/files/001c/69/9f/35717.png?v=1");
  --av-def: var(--av-gst);

  --main-intd-gap: 57px;
  --intd-gap: 15px;
  --main-icon-w: 45px;
  --main-icon-h: 96px;
  --icon-w: 30px;
  --icon-h: 17px;

  --arrows: 150px;

  --ls-w: 1000px;
  --ls-h: 422px;

  --mat: "Material Symbols Outlined";
  --mat1: "Material Symbols Rounded";
  --faw: "Font Awesome 5 Pro";
}

/***************************************/

a {
  text-decoration: none;
  transition: all 0.3s;
  color: var(--link);
}

#pun-admain a,
#MyBookmarks span.scrl {
  color: var(--link) !important;
}

a:hover,
a:focus,
a:active {
  color: var(--color-accent3);
}

:focus {
  outline: none !important;
}

.adlabel,
.adlabel a {
  color: var(--color-light1) !important;
}

/* ETO BAZA: BODYb, PUNb, TITLEb
--------------------------------------------------------------------------------------------------------------------------*/
html,
body {
  margin: 0;
  padding: 0;
}

html * {
  box-sizing: border-box;
  -webkit-text-size-adjust: none;
}

body,
body.redirect-page {
background: var(--bg-color);
}

body:before {
    content: "";
    position: fixed;
    top: 0;
    left: 50%;
    width: /*100vw*/ 1920px;
    height: /*100vh*/ 1420px;
    z-index: -1;
    background: var(--bg);
    will-change: transform;
    transform: translateZ(0) translateX(-50%);
}

@media screen and (min-width: 1921px), screen and (min-height: 1421px) {
  body::before {
      width: 100vw;
        height: 100vh;
    background-size: cover !important;
  }
}

/***************************************/

#pun {
  padding: 299px 50px 109px 50px;
  width: 1200px;
  margin: 161px auto 50px auto;
  border: 2px solid var(--color-dark1);
  background: url(https://forumstatic.ru/files/001c/69/9f/32681.webp) bottom
    no-repeat var(--color-dark1);
  position: relative;
}

#pun:before {
  content: "";
  position: absolute;
  background: url(https://forumstatic.ru/files/001c/69/9f/19623.webp);
  width: 1196px;
  height: 421px;
  top: -55px;
  left: 0px;
}

.punbb {
  position: relative;
  width: var(--main-w);
  background: var(--pun);
  padding: var(--main-p);
  padding-top: 115px;
  font: 400 11px/1 var(--font);
  color: #151515;
  z-index: 1;
}

.punbb:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 69px;
  bottom: -54px;
  left: 0;
  background: url(https://forumstatic.ru/files/001c/69/9f/91696.svg);
  z-index: -1;
}

/***************************************/
#pun-announcement tabla {
  position: absolute;
  top: -400px;
  left: -20px;
  width: calc(100% + 40px);
  height: 400px;
}

#pun-announcement tabla:before,
#pun-announcement tabla:after,
.category h2 span,
#pun-stats h2 span {
  font: 500 150px var(--font-fav);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}
#pun-announcement tabla:before,
#pun-announcement tabla:after {
  content: "DaGORT";
  position: absolute;
  top: 158px;
  left: 18px;
  z-index: -2;
}
#pun-announcement tabla:before {
  background-image: linear-gradient(180deg, #834e15, #eaa257);
  transition: all 0.2s;
}
#pun-announcement tabla:after {
  background-image: linear-gradient(0deg, #834e15, #eaa257);
  opacity: 0;
  transition: all 0.5s;
}

#pun-announcement tabla:hover:before {
  opacity: 0;
  transition: all 1s;
}

#pun-announcement tabla:hover:after {
  opacity: 1;
}

div#pun-announcement:after {
  content: url(https://forumstatic.ru/files/001c/69/9f/73193.webp);
  position: absolute;
  top: -462px;
  left: 269px;
  z-index: -1;
}

#pun-announcement .html-box {
  --parallax-x: 0px;
  --parallax-y: 0px;
  display: block;
}
#pun-announcement .html-box:after {
  content: url(https://forumstatic.ru/files/001c/69/9f/67584.webp);
  position: absolute;
  top: -442px;
  left: 302px;
  z-index: -1;
  transition: transform 0.2s ease-out;
  transform: translate(var(--parallax-x, 0), var(--parallax-y, 0));
  pointer-events: none;
    height: 500px;overflow: hidden;
}

#pun-announcement .html-box:before {
  content: url(https://forumstatic.ru/files/001c/69/9f/17757.webp);
  top: -462px;
  left: 154px;
  position: absolute;
  z-index: -1;
}

/* NAVLINKS / ULINKS
--------------------------------------------------------------------------------------------------------------------------*/
#pun-navlinks .container,
#pun-ulinks .container {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  text-transform: lowercase;
  gap: 10px;
}

#pun-navlinks,
#pun-ulinks {
  position: sticky;
  z-index: 99;
}

#pun-navlinks {
  top: 0;
  margin: 0 -10px;
}

#pun-ulinks {
  top: 45px;
  width: fit-content;
  margin: 0 auto;
}

/* navlinks */
#pun-navlinks .container {
  font-weight: 600;
  font-size: 14px;
  height: 70px;
  padding-top: 20px;
  background: var(--pun);
  text-transform: uppercase;
}

/* ulinks */
#pun-ulinks .container {
  font-weight: 400;
  margin: -25px auto 0px auto;
  width: fit-content;
}

/* links color and animation */
#pun-navlinks a,
#pun-ulinks a:hover {
  color: var(--color-accent1);
}

#pun-ulinks a,
#pun-navlinks a:hover {
  color: var(--color-gray1);
}

/* STATUS
--------------------------------------------------------------------------------------------------------------------------*/
#pun-status .container {
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 5px;
  font-weight: 600;
  position: absolute;
  top: 98px;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#pun-status strong {
  font-weight: 600;
}

#pun-status .container {
  color: var(--color-gray1);
}

#pun-status .container strong,
#pun-status .container a {
  color: var(--color-accent4);
}

/* CATEGORY
--------------------------------------------------------------------------------------------------------------------------*/
.category .container,
.statscon {
  position: relative;
}

.category h2,
#pun-stats h2 {
  margin: 60px auto;
  position: relative;
  background: var(--color-dark1);
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: none;
  width: 100%;
}

.category {
  position: relative;
  width: 1000px;
  margin: auto;
  background: var(--pun1);
}

.category + .category {
  margin-top: 10px;
}

/***************************************/

.category h2 span,
#pun-stats h2 span {
    font-size: 100px;
    position: relative;
    text-transform: uppercase;
    background-image: linear-gradient(179.98deg, #834e15 -57.11%, #eaa257 65.17%);
    user-select: none;
}

.category h2:before,
#pun-stats h2:before {
  width: 770px;
  color: var(--color-light1);
  text-align: justify;
  font-size: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: absolute;
  font-weight: 400;
  line-height: 14px;
  text-align-last: center;
}

/* текст категории */
.category-1 h2:before {
  content: "Из уст в уста с ветром из дома в открытый дом — два слова.";
}

.category-2 h2:before {
  content: "Я перестал верить в богов в тот самый день, как «Горделивая» разбилась в нашем заливе. Я поклялся никогда более не поклоняться богам, способным столь жестоко отправить на дно моих отца и мать. В Королевской Гавани верховный септон все вещал, бывало, что добро и справедливость исходят от Семерых, но то немногое, что я видел из того и другого, проистекало всегда от людей.";
}

.category-3 h2:before {
  content: "Самый важный шаг, который может сделать человек. Это не первый, не так ли? Это следующий. Всегда следующий шаг.";
}

.category-4 h2:before {
  content: "Грибо медленно повернулся, его покрытое шрамами лицо искривилось в ленивой улыбке. Нос у него был сломан, а слепой глаз прикрывала черная повязка. Зато другой полыхал словно все грехи ангелов, а улыбка сулила падение святым. Во всяком случае, святым женского пола.";
}

.category-5 h2:before {
  content: "Феррейро понимал, что умнее было бы промолчать. Но после того, что он увидел, ум казался величайшей глупостью. Просто бесполезная уловка, чтобы не замечать человеческой жестокости.";
}

.category-6 h2:before {
  content: "Прошлое не всегда такое славное и светлое, каким оно нам кажется с высоты прожитых лет, просто люди устроены так, что помнят только лучшее, а все лихое память стирает, жалея их души и сердца.";
}

.category-7 h2:before {
  content: "Из уст в уста с ветром из дома в открытый дом — два слова.";
}

/* текст статистики */
#pun-stats h2:before {
  content: "Он имел дело с троллями, гномами и драконами, но теперь ему предстояло встретиться с совершенно иным, непознанным человеческим видом: с богачами.";
}

/* HASICON / STRUCTURE EVERYWHERE
--------------------------------------------------------------------------------------------------------------------------*/
table {
  width: 100%;
}

.hasicon,
.usertable tbody,
#messages tbody,
#pun-respect .container tbody,
#pun-positive .container tbody,
#pun-online .container tbody,
#pun-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0;
  width: auto;
  text-transform: lowercase;
  font-size: 11px;
}

#pun-index .hasicon {margin-top: 0}

.hasicon tr,
thead tr,
.usertable tr,
#messages tr,
#pun-searchtopics .forum tr,
#pun-respect #pun-main > .section tr,
#pun-positive #pun-main > .section tr,
#pun-online .online-list tr,
.profile-awards-container tr {
  display: grid;
  gap: 10px;
  grid-template-columns: 50% 7% 7% 32%;
  justify-content: space-between;
  position: relative;
  align-items: center;
  border-radius: 5px;
}

tr#title-logo-tr {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/***************************************/

#pun-searchtopics .forum tr {
  grid-template-columns: 40% 20% 6% 26%;
}

.usertable tr {
  grid-template-columns: 20% 32% 6% 6% 10% 10%;
}

#pun-messages .hasicon tr,
#messages thead tr {
  grid-template-columns: 1fr 18% 10% 3%;
  align-items: center;
}

#pun-respect #pun-main > .section tr,
#pun-positive #pun-main > .section tr {
  grid-template-columns: 12% 2% 15% 30% 30%;
}

#pun-online .online-list tr {
  grid-template-columns: 40% 40% 18%;
}

#pun-mod .container tr,
.profile-awards-container tr {
  grid-template-columns: 20% 10% 40% 30%;
}

div#pun-modviewforum .hasicon tr,
div#pun-modviewforum thead tr {
  grid-template-columns: 45% 7% 7% 32% 5%;
}

#pun-modviewforum thead tr {
  height: 24px;
}

.profile-awards-container tr .tcl {
  width: inherit !important;
}

#messages td,
#messages th,
#pun-online .online-list td {
    width: auto !important;
    display: flex;
    justify-content: flex-start;
    flex-direction: row-reverse;
}

#pun-online .tcl.action {
    gap: 3px;
    justify-content: left;
    flex-direction: row;
}

#pun-viewforum td.tcr,
#pun-searchtopics td.tcr,
#pun-modviewforum .tcr {
  display: flex;
  align-items: center;
  justify-items: end;
  justify-content: flex-end;
  gap: 8px;
}

#pun-viewforum td.tcr a,
#pun-searchtopics td.tcr a {
  grid-area: "time";
  white-space: nowrap;
  color: var(--color-dark);order: 1;
}

th {
  text-transform: lowercase;
  text-align: center;
  color: var(--color-gray1);
  font: 600 9px var(--font);
}

th.tcr {
  text-align: right;
}
th.tcl {
  text-align: left;
}

/* fieldset */
fieldset {
  margin: 10px 0 !important;
  padding: 0;
  border: none !important;
}

/* fs-box */
.fs-box.inline {
  display: flex;
  gap: 10px;
  border: 1px solid;
  padding: 10px;
  align-items: center;
  border-radius: 7px;
}

#pun-login .fs-box.inline {
  margin-top: 10px;
  position: relative;
}

.inline .infofield {
  font: 500 9px var(--font);
  text-transform: lowercase;
  text-align: justify;
}

/* PUN-INDEX / PODFORUMS
--------------------------------------------------------------------------------------------------------------------------*/
#pun-index .hasicon tr {
  padding: 0 30px 0 0;
  position: relative;
  gap: 50px;
  grid-template-columns: auto 1fr;
  color: var(--color-gray2);
  margin-left: -33px;
}

/* subforums */
#pun-index .hasicon .isub .tcl {
  padding-left: 0px !important;
}

#pun-viewforum .isub .tcl h3 {
  margin: 0 0;
}

/* left part */

#pun-index .tclcon {
  width: 100%;
  gap: 0 20px;
  display: flex;
  grid-area: for;
  box-shadow: 0 50px 0 inset var(--color-light2);
  padding: 5px 10px;
  position: relative;
  flex-direction: column;
  font-size: 8px;
  font-weight: 500;
}

#pun-index .tcl h3 {
  margin: 0px 0 30px 0;order: 1
}

#pun-index .tcl h3 a {
  color: var(--color-accent1);
  position: relative;
  font-size: 18px;
  font-weight: 600;
}

#pun-index .tcl h3 a:hover {
  color: var(--color-gray2);
}

podfor_name {
  margin: -22px 0 13px 0;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-gray2);order: 2
}

podfor {
    font-size: 10px;
    font-weight: 400;
    line-height: 160%;
    color: var(--color-gray1);
    order: 3;
}

.tclcon .spirit_nav-wrap {
  background: var(--color-light1);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  position: absolute;
  right: 0;
  width: 150px;
  top: 13px;
  flex-direction: column;
}

.tclcon .nav_button {
  color: var(--color-accent4);
  font-size: 7px;
}

.tclcon .nav_button:after {
  background: var(--color-accent1);
}

.tclcon .nav_block .link {
  padding-top: 0;
}

.tclcon .nav_block .link a {
  background: var(--pun1);
  border-color: var(--pun1);
  color: var(--color-gray2);
  padding: 3px;
}

#pun-index .tclcon span,
#pun-index .subforums {
    position: relative;
    display: flex;
    gap: 7px;
    margin: 7px 0 0 0px;
    flex-direction: row;
    justify-content: flex-start;
}

#pun-index .subforums {
    font-size: 0;
    order: 4;
}

#pun-index .tclcon span a,
#pun-index .subforums a {
    color: var(--color-gray2);
    font-size: 10px;
    font-weight: 500;
}

/* right part */
#pun-index .tcr,
#pun-viewforum .isub .tcr {
  display: grid;
  grid-template-columns: 1fr var(--usav);
  grid-template-rows: repeat(2, auto);
  gap: 4px 15px;
  justify-items: end;
  align-items: center;
  justify-content: end;
  text-align: right;
  font-weight: 600;
}

.lastpost-link {
  font-size: 11px;
}

.lastpost {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  grid-row-start: 2;
  grid-column-start: 1;font-size: 8px;
}

/* user-avatar */
.user-avatar {
  margin: 0 !important;
  width: var(--usav) !important;
  height: var(--usav) !important;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-row: -1/1;
  background: var(--color-accent1);
}

.user-avatar a {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100% !important;
  height: 100% !important;
}

.user-avatar,
.avatar-image {
  border-radius: 50% !important;
}

.avatar-image {
  opacity: 1 !important;
  filter: grayscale(1);
  width: 100% !important;
  height: 100% !important;
  mix-blend-mode: soft-light;
}

.isonline {
  background: var(--color-accent1) !important;
  top: auto !important;
  right: auto !important;
  width: 3px !important;
  height: 3px !important;
}

/* ICONb
--------------------------------------------------------------------------------------------------------------------------*/
.intd {
  display: grid;
  gap: var(--intd-gap);
  align-items: center;width: 100%;
}

#pun-index .category .intd {
  gap: var(--main-intd-gap);
  grid-template-columns: var(--main-icon-w) 1fr;
  width: 558px;
  grid-template-areas: "icon for";
}

#pun-viewforum .category .intd,
.forum .intd,
#profile .intd {
  grid-template-columns: var(--icon-w) 1fr;
}

.intd .icon {
  margin: 0;
  position: relative;
}

#pun-index .intd .icon {
  grid-area: icon;
}

#pun-viewforum .category .icon,
.forum .icon,
#profile .intd .icon {
  width: var(--icon-w);
  height: var(--icon-h);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: var(--color-dark1);
  color: var(--color-light1);
  font-weight: 600;
  font-size: 9px;
}

#pun-viewforum .category .icon:before,
.forum .icon:before,
#profile .intd .icon:before {
  content: "old";
}

#pun-index .icon {
  width: var(--main-icon-w);
  height: var(--main-icon-h);
}

#pun-index .icon.inew {
  background: url(https://forumstatic.ru/files/001c/69/9f/68094.png);
}

#pun-viewforum .category .icon.inew,
.forum .icon-new,
#profile .icon-new,
#profile .intd .icon.inew {
  background: var(--color-accent1);
  color: var(--color-light1);
}

#pun-viewforum .category .icon.inew:before,
.forum .icon-new:before,
#profile .icon-new:before,
#profile .intd .icon.inew:before {
  content: "new";
}

.forum .isticky .icon {
  background: var(--color-accent2);
}

.forum .isticky .icon:before {
  content: "imp";
}

.forum .iclosed .icon {
  opacity: 0.5;
}

.forum .iclosed .icon:before {
  content: "cls";
}

/* CRUMBS
--------------------------------------------------------------------------------------------------------------------------*/
.crumbs {
  margin: 40px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  position: relative;
  gap: 4px;
  text-transform: uppercase;
  font-size: 10px;
}

.crumbs a {
  display: flex;
  gap: 4px;
  color: var(--color-gray1);
  font-weight: 500;
}

.crumbs,
.crumbs a:hover {
  color: var(--color-accent4);
}

.crumbs a:after,
#pun-searchposts h3 span a:after {
  content: var(--content-icon);
  opacity: 0.5;
  margin: -1px 0 -1px 0;
  color: var(--color-accent2);
  text-transform: lowercase;
}

#pun-searchposts h3 span a:after {
    text-transform: uppercase;
    margin-left: 3px;
    color: var(--color-light2);
}

#pun-crumbs2 .crumbs {
  margin-bottom: 0;
}

/* STATSCON
--------------------------------------------------------------------------------------------------------------------------*/
#pun-stats .container {
  display: grid;
  grid-template-columns: 150px 150px 250px 1fr;
  text-transform: lowercase;
  gap: 20px 10px;
  margin: 0;
  padding: 0 20px;
}

.statscon .item1,
.statscon .item2,
.statscon .item3,
.statscon .item4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  text-transform: lowercase;
  text-align: center;
  flex-direction: row;
  color: var(--color-gray2);
  background: var(--color-light2);
  padding: 5px;
  gap: 10px;
  font-size: 9px;
  font-weight: 400;
}

#onlinelist a {
  font-weight: 600;
}

.statscon .item1 strong,
.statscon .item2 strong,
.statscon .item3 strong,
.statscon .item4 strong {
  background: var(--color-accent2);
  width: fit-content;
  height: 15px;
  border-radius: 0 10px 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px 10px;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 500;
}

.statscon .item1 strong,
.statscon .item2 strong,
.statscon .item3 strong,
.statscon .item4 strong,
.statscon .item4 strong a {
  color: var(--color-light1);
}

.statscon .item1 {
  grid-column-start: 1;
}
.statscon .item2 {
  grid-column-start: 2;
}
.statscon .item3 {
  grid-column-start: 3;
}
.statscon .item4 {
  grid-column-start: 4;
}

#onlinelist strong {
  font-weight: 500;
}
.statscon .item5 {
  text-align: justify;
  line-height: 15px;
  grid-column: -1/1;
}

.users_24h span {
  margin-top: 10px;
}

#onlinelist > div {
  color: var(--color-gray2);
  font-size: 10px;
  font-weight: 400;
}

#onlinelist > div > a {
  color: var(--color-accent1);
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  width: fit-content;
}

#onlinelist > div > span {
  display: block;
  margin-top: 5px;
}

/* FOOTER
--------------------------------------------------------------------------------------------------------------------------*/
#pun-about {
  display: flex;
  justify-content: center;
  position: relative;
  width: var(--main-w);
  background: url();
  border: var(--border);
  border-top: none;
}

#pun-about .container {
  text-transform: uppercase;
  position: absolute;
  margin-top: 111px;
  width: 100%;
  text-align: center;
  font-size: 8px;
  font-weight: 600;
}

#pun-about,
#pun-about a {
  color: var(--color-light1);
}

/* PROFILEb
--------------------------------------------------------------------------------------------------------------------------*/
.post-author {
  width: var(--prof-w);
  min-height: 65px;
  position: relative;
  height: fit-content;
  z-index: 1;
  background: var(--color-dark1);
  border-radius: 15px;
  padding: 40px 6px 65px 6px;
}

.post[data-group-id="3"] .post-author, #pun-searchposts .post-author, #pun-post .post-author  {
  padding: 20px 6px;
}

.post[data-group-id="4"] .post-author {
  padding-top: 20px;
}

.post-author ul {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 19px;
  background: var(--pun);
  border-radius: 15px;
  border: var(--border1);
}

.post-author li {
  width: inherit;
  position: relative;
}

/* author & title */
.pa-author,
#profile-left #profile-name strong {
  font: 700 14px var(--font) !important;text-align: center; margin: 0;
}

.pa-author strong {
  font-weight: 700;
}

.pa-author,
.pa-author a,
#profile-left #profile-name strong {
  color: var(--color-accent4);
}

.pa-author:hover,
.pa-author a:hover {
  color: var(--color-gray2);
}

li.pa-title, #profile-title strong {
  font-weight: 500;
  font-size: 9px !important;
  color: var(--color-gray1) !important;
  margin-top: 5px;
}

/* avatar */
.pa-avatar {
  margin: 20px 0;
}

.pa-avatar img,
#pa-avatar img {
  max-width: 180px;
  max-height: 180px;
  position: relative;
  z-index: 9;
  box-sizing: content-box;
  outline: 2px solid var(--color-dark1);
}

/* posts/respect */
.pa-respect,
.pa-posts,
.pa-fld2 {
  width: calc(calc(var(--prof-w) - 52px) / 3) !important;
  z-index: 3;
  margin: 40px 0 -65px 0;
  text-align: center;
  display: flex;
  gap: 5px 3px;
  font-size: 10px;
  font-weight: 500;
  flex-wrap: wrap;
  justify-content: center;
  text-transform: lowercase;
}

.pa-respect,
.pa-respect a,
.pa-posts,
.pa-fld2 {
  color: var(--color-gray1);
}

.pa-respect .fld-name,
.pa-posts .fld-name,
.pa-fld2 .fld-name {
  position: relative;
  z-index: 9;
  width: 100%;
  font-size: 8px;
}

.pa-respect .fld-name,
.pa-respect .fld-name a,
.pa-posts .fld-name,
.pa-fld2 .fld-name {
  color: var(--color-gray1);
}

.pa-respect > a {
  width: 100%;
  height: 100%;
  position: absolute;
}

/* FLDb */
a.lz1 {
  font-weight: 600;
  font-size: 10px;
  padding: 0 10px 10px 10px;
  width: fit-content;
  border-bottom: 1px solid rgb(85 117 181 / 15%);
  color: #494949;
}
a.lz1:hover {
  color: var(--color-dark1);
}

.pa-fld1, #pa-fld1 strong {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  margin-bottom: 25px;
}

lz2 {
  font-size: 9px;
  line-height: 15px;
  color: var(--color-gray1) !important; font-weight: 400;
  text-transform: lowercase;
  text-align: justify;
}

lz2 a {
  font-weight: 700;
  color: var(--color-accent2);
}

lz2:before,
lz2:after {
  content: url(https://forumstatic.ru/files/001c/69/9f/77888.svg?v=1);
  position: absolute;
}

lz2:before {
  margin-top: -12px;
  left: -10px;
}

lz2:after {
  bottom: -12px;
  right: -10px;
  transform: scale(-1, -1);
}

plash {
  background: url(https://forumstatic.ru/files/001c/69/9f/53379.png?v=1);
  display: flex;
  flex-direction: column;
  color: var(--color-light);
  width: 218px;
  height: 30px;
  align-items: center;
  justify-content: center;
}

plash b,
plash i {
  letter-spacing: 0.15em;
  color: var(--color-light1);
  font: 300 9px var(--font);
}

.pa-fld4 {
  margin: 0 -20px -20px -20px;
  border-radius: 0 0 15px 15px;
  overflow: hidden;
  width: 230px !important;
}

inq {
  background-image: url(https://forumstatic.ru/files/001c/69/9f/72629.png?v=1);
background-position: 0px 1px !important;
  width: 20px !important;
  height: 20px !important;
}

clg {
  background-image: url(https://forumstatic.ru/files/001c/69/9f/45247.png?v=1);
}

chr {
  background-image: url(https://forumstatic.ru/files/001c/69/9f/45304.png?v=1);
background-position: 0px 1px !important;
}

arst {
  background-image: url(https://forumstatic.ru/files/001c/69/9f/25475.png?v=1);
background-position: 0px -1px !important;
}

grd {
  background-image: url(https://forumstatic.ru/files/001c/69/9f/24058.png?v=1);
background-position: 0px 1px !important;
}

ntrl {
  background-image: url(https://forumstatic.ru/files/001c/69/9f/41336.png?v=1);
}

crm {
    background-image: url(https://forumstatic.ru/files/001c/69/9f/65830.png?v=1);
    background-position: 3px -1px !important;
}

.pa-fld3, #pa-fld3 strong {
  position: absolute !important;
  top: -12px;
  display: flex;
  justify-content: center;
  width: 26px !important;
  height: 26px;
  background: var(--pun);
  border: 1px solid var(--color-dark1);
  border-radius: 50%;
  align-items: center;
}

.pa-fld3 a, #pa-fld3 a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pa-fld3 strong {
    left: calc(var(--prof-w)/2 - 12px);
}

inq,
clg,
chr,
arst,
grd,
ntrl, crm {
  width: 22px;
  height: 22px;
  background-position: center;
  background-repeat: no-repeat;
}

li.pa-fld5 {
  position: absolute;
  z-index: -1;
  top: 0px;
  left: 0px;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
}

prof_bg {
  width: 230px;
  height: 80px;
  display: block;
}

prof_bg.one {
  background: url(https://forumstatic.ru/files/001c/69/9f/73502.png?v=1);
}
prof_bg.two {
  background: url(https://forumstatic.ru/files/001c/69/9f/65120.png?v=1);
}
prof_bg.three {
  background: url(https://forumstatic.ru/files/001c/69/9f/70067.png?v=1);
}

/* online */

.pa-active.online:before, #pa-online:before {
  content: url(https://forumstatic.ru/files/001c/69/9f/61049.png?v=1);
  position: absolute;
  top: -22px;
  left: 0;
  width: 100%;
}

.pa-active, #viewprofile #profile-left #pa-online {
  width: 186px !important;
  height: 29px;
  position: absolute !important;
  bottom: -29px;
  overflow: hidden;font-size: 0;
}

#viewprofile #profile-left #pa-online {
    bottom: 11px;
}

/* ip */
.pa-ip {
  margin-top: 10px;
  display: block;
  font: 500 8px var(--font);
}
.pa-ip,
li.pa-ip a {
  color: var(--color-dark1);
}

/* QUOTEb / SPOILERb / TEXTAREA
--------------------------------------------------------------------------------------------------------------------------*/
.quote-box,
.code-box,
/*blockquote,
.blockcode,*/
textarea,
.inner,
.modal-inner,
.editBookmark,
#MyBookmarks,
.hvStickerPackModal,
#post-mentions #mentions-area {
  box-shadow: 0px -5px 0 var(--color-dark1) !important;
  border: var(--border1) !important;
  background: var(--pun) !important;
  border-radius: 0 0 5px 5px !important;
}

.quote-box,
.code-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 30px 0px;
  position: relative;
}

.code-box {
  align-items: flex-end;
}
.quote-box.hide-box {
  align-items: flex-start;
}
.quote-main {
  border-radius: 15px 15px 0 0 !important;
  box-shadow: none !important;
}
.quote-main:after {
  content: url(https://forumstatic.ru/files/001c/69/9f/74558.png?v=1);
  width: 100%;
  overflow: hidden;
  height: 10px;
  bottom: -12px;
  left: -1px;
  position: absolute;
  border: var(--border1);
}

td .spoiler-box {
  margin: 20px 0px;
}

a.qc-post-link:before {
  font: 100 11px var(--mat);
  content: "\e0e6";
  vertical-align: middle;
  display: inline-block;
  margin: -3px 0 -3px 0;
}

a.qc-post-link img {
  display: none;
}

cite,
.code-box .legend,
.spoiler-box > div {
  display: block;
  position: relative;
  margin: -6px -1px -1px -1px;
  z-index: 9;
  background: var(--color-dark1) !important;
  padding: 7px 60px 5px 60px !important;
  text-transform: uppercase;
  text-align: center;
  font: 700 8px/1 var(--font);
}
.spoiler-box > div {
  width: calc(100% + 2px);
  transition: all 0.2s;
  border-radius: 0 0 5px 5px;
}

cite,
cite a,
.spoiler-box > div,
.code-box .legend,
.code-box .legend a {
  color: var(--color-accent4);
}

cite,
.spoiler-box > div.visible {
  clip-path: polygon(0 0, 100% 0, calc(100% - 65px) 100%, 65px 100%);
  width: 520px;
  border-radius: 0;
}

.code-box .legend {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 65px 100%);
  width: 260px;
  padding-right: 20px !important;
}

.hide-box cite {
  clip-path: polygon(0 0, 100% 0, calc(100% - 65px) 100%, 0 100%);
  width: 300px;
  padding-left: 20px !important;
}

cite:before,
cite:after,
.spoiler-box > div.visible:before,
.spoiler-box > div.visible:after,
.code-box .legend:before {
  content: url(https://forumstatic.ru/files/001c/69/9f/25985.png);
  bottom: -2px;
  position: absolute;
}

.hide-box cite:before {
  content: none;
}

cite:before,
.spoiler-box > div.visible:before,
.code-box .legend:before {
  left: 48px;
}

cite:after,
.spoiler-box > div.visible:after {
  right: 48px;
  transform: scale(-1, 1);
}

blockquote,
.blockcode {
  padding: 18px 30px !important;
  position: relative;
  margin: 0;
  width: 100%;
  overflow: visible !important;
  line-height: 150%;
}

.scrollbox {
  overflow: auto;
  max-height: 60px;
}

.scrollbox pre {
  margin: 0;
  font: 500 10px Pt Mono;
}

/* textareab */
textarea {
    overflow: auto;
    font: 500 11px/15px Verdana !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    margin-top: 10px;
    position: relative;z-index: 9;
}

textarea#reputationText {border: var(--border1) !important}

.hashelp p.inputfield.required + p {
  border-top: var(--border1);
}

/* FORMA OTVETA
--------------------------------------------------------------------------------------------------------------------------*/
#pun-viewtopic #post {
  margin-top: 20px;
}

#pun-viewtopic .post-box #post,
#pun-viewtopic .post-box fieldset {
  margin: 0 !important;
  padding: 0;
}

.post-box {
  height: 100%;
}

#post .areafield {
  margin: 0;
}

#pun-edit #post .areafield span.input a {
  margin: 10px 0;
  display: block;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  font: 500 11px var(--font);
}

.hashelp {
    position: relative;
    border: var(--border1);
    border-radius: 0 0 5px 5px;
    box-shadow: 0px -5px 0 var(--color-dark1) !important;
    display: grid;
    padding: 10px;
}

#pun-profile .hashelp {margin-top: 20px}

#main-reply {
  height: 200px;
}

.grippie {
  margin-top: 5px;
}

/* CUSTOM FORM-BUTTONS WITH WRITTEN SYMBOLS © BLANCHE. free for use only with copy */
#form-buttons {
  display: grid;
  grid-template-columns: 150px 1fr;
  position: relative;
  height: 25px;
  box-sizing: border-box;
  clip-path: polygon(0 0, 100% 0, calc(100% - 50px) 100%, 50px 100%);
  background: var(--color-dark1);
  padding: 0 60px;
  align-items: center;
  margin: -16px 20px 0 20px;
  grid-row-start: 1;
}

#form-buttons table {
  width: 100% !important;
}

#form-buttons tr {
  width: 100%;
  display: flex;
  height: 18px;
  justify-content: space-between;
}

#plng,
#form-buttons td {
  display: flex;
  justify-content: center;
  gap: 3px;
  align-items: center;
  height: 18px;
  box-sizing: border-box;
  color: var(--color-light2);
  opacity: 0.7;
}

#form-buttons td {
  font: 500 15px var(--mat);
  background-image: none !important;
  width: inherit !important;
  cursor: pointer;
  transition: all 0.5s;
}

#plng {
  text-transform: lowercase;
  color: var(--color-accent4);
  font-size: 9px;
}

#plng,
#form-buttons td:hover {
  opacity: 1;
}

#form-buttons td img {
  z-index: 9;
}

#form-buttons td:before {
  position: absolute;
}

#button-font:before {
  content: "\e264";
}

#button-size:before {
  content: "\eae2";
}

#button-bold:before {
  content: "\e238";
}

#button-italic:before {
  content: "\e23f";
}

#button-underline:before {
  content: "\e249";
}

#button-strike:before {
  content: "\e257";
}

#button-transL:before {
  content: "\e8e2";
}

#button-indent:before {
  content: "\e23e";
}

#button-left:before {
  content: "\e236";
}

#button-center:before {
  content: "\e234";
}

#button-right:before {
  content: "\e237";
}

#button-justify:before {
  content: "\e235";
}

#button-link:before {
  content: "\e157";
}

#button-spoiler:before {
  content: "\e875";
}

#button-sspoiler:before {
  content: "\ef9e";
}

#button-image:before {
  content: "\e412";
}

#button-imagetwo:before {
  content: "\e3f4";
}

#button-video:before {
  content: "\e1c4";
}

#button-hide:before {
  content: "\e898";
}

#button-quote:before {
  content: "\e625";
}

#button-code:before {
  content: "\ead1";
}

#button-html:before {
  content: "\ef54";
}

#button-color:before {
  content: "\e40a";
}

#button-table:before {
  content: "\f088";
}

#button-smile:before {
  content: "\e87d";
}

#button-sticker:before {
  content: "\e813";
}

#button-keyboard:before {
  content: "\f028";
}

#button-addition:before {
  content: "\e145";
}

#button-mask:before {
  content: "\e853";
}

#floatbut:before {
  content: "\e3b5";
}

#button-ChangeСase:before {
  content: "\e262";
}

/* tags */
#tags .container,
#float {
  overflow-y: auto;
  padding: 10px !important;
  height: 225px;
  text-transform: lowercase;
  z-index: 99999 !important;
  top: 19px !important;
  margin: 0px 74px 0 70px;
  color: var(--color-dark1);
  background: var(--pun);
  border-radius: 0 0 5px 5px;
  border: var(--border1);
}

#tags .container div + div {margin-top: 7px;}

#font-area {
  display: flex;
  flex-wrap: wrap;
  border-radius: 0 0 0 10px;
  gap: 4px 15px;
  flex-direction: column;
}

#font-area div,
#size-area div,
#addition-area div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  transition: all 0.5s;
  margin: -5px;
  padding: 5px;
  position: relative;
  border-radius: 5px;
}

#font-area div:hover,
#size-area div:hover,
#addition-area div:hover {
  background: #cdcdcd;
  color: var(--color-accent3);
}

#font-area div img,
#size-area div img {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
}

#font-area span,
#size-area span,
#addition-area div {
  height: auto !important;
}

#uploaded-images img {
  object-fit: cover;
}

#image-area,
#color-area,
#video-area,
#spoiler-area {
  height: auto !important;
}

#spoiler-area a,
#image-area a {
  color: inherit;
}

#float {
  left: 43%;
  z-index: 2;
  height: auto;
  position: absolute;
  display: none;
}

/* INPUT / BUTTONS
--------------------------------------------------------------------------------------------------------------------------*/
input,
select,
option,
.hvStickerPackModalTab {
  background: var(--pun) !important;
  border: var(--border1) !important;
  font: 400 9px/1 var(--font) !important;
  padding: 5px 10px !important;
  color: var(--color-dark1) !important;
  transition: all 0.2s;
}

select,
optin {
  text-transform: lowercase;
}

#topic-modmenu {
  margin-top: 20px;
}

/* button */
.button,
.hvStickerPackModalTab {
  cursor: pointer;
  padding: 7px 12px 5px 12px !important;
  text-transform: uppercase;
  font-weight: 700 !important;
  border-radius: 0 0 3px 3px;
  color: var(--color-gray2) !important;
  box-shadow: 0 -3px 0 var(--color-dark1);
  font-size: 8px !important;
}

.submit {
  box-shadow: 0 -3px 0 var(--color-accent1);
  color: var(--color-accent1) !important;
}

.button:hover,
.hvStickerPackModalTab:hover {
  box-shadow: 0 -3px 0 var(--color-dark1), 0 20px 0 var(--color-dark1) inset;
  border-color: var(--color-dark1) !important;
  color: var(--color-accent4) !important;
}
.submit:hover {
  box-shadow: 0 -3px 0 var(--color-accent1), 0 20px 0 var(--color-accent1) inset;
  border-color: var(--color-accent1) !important;
  color: var(--color-light2) !important;
}

#imageupload-left input[type="button"] {
  width: auto !important;
}

/* POST-LINKS / LINKST / LINSKB
--------------------------------------------------------------------------------------------------------------------------*/
.post-links {
    width: calc(100% + 20px);
    padding-right: 40px !important;
}

.endpost .post-links {
    padding-right: 10px !important;
}

.post-links ul {
  text-align: right;
  margin: 0;
}

#pun-searchposts .post-links ul {
  text-align: left;
}

#pun-searchposts .post:last-child .post-links {
  margin-bottom: 10px;
}

#pun-searchposts h3 strong {
  position: absolute;
  right: 10px;
}

#pun-searchposts #fntSlider {
    position: absolute;
    right: 30px;
}

.post-links li {
  display: inline-block;
}

.pl-email {
  float: left;
}

.pl-reply,
.pl-quiet_quote {
  margin-left: 10px;
}

.post-links li + li {
  margin-left: 8px;
}

.pl-email + .pl-email {
  margin-left: 10px;
}

#pun-viewtopic h3,
#pun-searchposts h3,
#pun-multimove h3,
#pun-post h3 {
  margin: 0;
}

.post h3 span,
.linkst,
.linksb,
.post-links {
  position: relative;
  background: var(--color-dark1);
  height: 30px;
  margin: 0 -10px;
  padding: 11px 10px;
}

.post h3 span,
.linkst,
.linksb {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.linkst {
  margin-bottom: 20px;
}
.linksb {
  margin-top: 20px;
}

.post h3 span,
.pagelink,
.postlink a,
.subscribelink a,
#pun-viewforum .modmenu strong,
.postlink .button,
.post-links {
  font: 600 9px var(--font) !important;
  text-transform: uppercase;
}

.postlink .button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: fit-content !important;
    padding: 0 !important;
}

.post h3 span a {
  font-size: 10px !important;
}
.post h3 span,
.post h3 span a,
.postlink a,
.post-links a,
.subscribelink a,
.postlink .button {
  color: var(--color-accent1);
}

.post h3 span a:hover,
.postlink a:hover,
.post-links a:hover,
.subscribelink a:hover,
.postlink .button:hover {
  color: var(--color-accent2);
}

.post h3 span strong,
.pagelink a {
  font-weight: 600;
  color: var(--color-accent4);
}

.post h3 span {
  flex-direction: row-reverse;
  padding-left: calc(var(--prof-w) + var(--post-p) + 30px) !important;
    margin-top: -59px;
}

#pun-searchposts .post:first-of-type h3 span {
  margin-top: -80px;
}

#pun-viewtopic .linkst {
  padding-right: 50px;margin-bottom: -40px;
}

.postlink a,
.postlink span {
  height: 100%;
  display: flex;
  align-items: center;
}

a.permalink {
  order: 1;
}

.postlink {
  display: flex;
  gap: 10px;
  align-items: baseline;
  height: 13px;
}

#pun-messages .postlink {
  height: auto;
}

.pagelink {
  order: 1;
  display: flex;
  align-items: center;
  padding: 1px !important;
  border: 1px solid var(--color-accent1);
  border-radius: 10px;font-size: 0 !important;
}

.pagelink .page-container {  display: flex;
  align-items: center;}

.postlink {
  order: 3;
  width: auto !important;
}
.subscribelink {
  order: 2;
}

#pun-viewforum noindex {
  order: 3;
}

.pagelink strong,
.pagelink a {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagelink strong,
.pagelink a:hover {
  background: var(--color-accent1);
  color: var(--color-dark1) !important;
}

.post-links a,
.pagelink,
.postlink,
.post h3 span a,
.post h3 span strong,
.pl-select {
  position: relative;
  z-index: 9;
}

#pun-multimove .post-links ul {
    margin-top: -5px;
}

/* PAGES: VIEWTOPIC / POST / PUN-POST
--------------------------------------------------------------------------------------------------------------------------*/
.post + .post,
.post + div + .post {
  margin-top: 30px;
}

.post > .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--post-p);
  justify-content: center;
  position: relative;
  padding-top: 20px !important;
}

.post, #poll-special {
    padding-top: 70px;
    margin-top: -40px !important;
}

#poll-special {padding-bottom: 50px;}

/* rating */

.post-vote .container,
.post-rating .container {
  margin: 0 !important;
  padding: 0 !important;
}

.post-vote .container {
  margin-right: 10px !important;
}

.post .post-rating a,
.post .post-vote a {
  font: 500 12px var(--font) !important;
  color: var(--color-gray2);
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  z-index: 1;
  border: var(--border1);
  width: 50px;
  height: 20px;
  border-radius: 0 0 3px 3px;
}

.post-rating a:before,
.post-vote a:before {
  transition: all 0.2s;
  content: "";
  width: 13px;
  height: 13px;
  background: var(--color-accent4);
}
.post-rating a:before {
  mask: url(https://forumstatic.ru/files/001c/87/b2/93258.svg);
  -webkit-mask: url(https://forumstatic.ru/files/001c/87/b2/93258.svg);
}
.post-vote a:before {
  mask: url(https://forumstatic.ru/files/001c/87/b2/27615.svg);
  -webkit-mask: url(https://forumstatic.ru/files/001c/87/b2/27615.svg);
}

.post .post-rating a:hover,
.post .post-vote a:hover {
  background: var(--color-light2);
}

.mylike .post-rating a:before {
  background: var(--color-gray1);
  opacity: 0.7;
}

.post-body {
  display: block;
  width: calc(100% - var(--prof-w) - var(--post-p));
  position: relative;
  padding: 0px 25px 0 0;
}

.post-content {
  width: 100%;
  text-align: justify;
  margin-bottom: 10px;
}

.post-content img.postimg {
  vertical-align: middle;
}

.post-content table {
  table-layout: fixed;
}

.post-content table td {
  border: none !important;
  vertical-align: top;
}

.post-content p {
  margin: 0;
  text-align: justify;
  font: normal 11px/150% verdana, arial, helvetica, sans-serif;
}

.post-content p + p {
  padding-top: 10px;
}

.modmenu {
  text-transform: lowercase;
  margin: 20px 0;
  font: 500 10px var(--font);
}

#topic-users-in a {
  text-transform: lowercase;
  font-size: 10px;
}

#topic-users-in span,
.modmenu strong {
  font-weight: 400 !important;
}

#topic-users-in a:after {
  content: ",";
  margin-right: 2px;
}

#pun-modviewforum .modmenu p.container {
  display: grid;
  grid-template-columns: 1fr 80px 50px 60px 50px;
}

#pun-modviewforum .modmenu p.container .button {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--color-accent1) !important;
}

.formsubmit {
  display: flex;
  gap: 10px;
  align-items: center;
  text-transform: lowercase;
  margin: 20px 0 0 0;
}

#profile1 > p > input {
  margin-left: 123px;
}

#post-form ~ .post {
  margin-top: 40px;
}

#pun-post #post-preview legend span,
#pun-userlist legend span,
#pun-search legend span,
.modal-inner legend span,
#pun-delete legend span {
  display: block !important;
  margin-bottom: 10px;
}

#pun-login label {
  white-space: nowrap;
}

#pun-post .post h3 span {
  margin-top: 0px;
}

#pun-messages h3 {
  margin: 0;
}

#pun-messages h3 span {
    margin-top: -40px;
}

/* font size */
.settings_wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: fit-content;
}

.slide_button {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  gap: 7px;
  color: var(--color-accent3);
}

.slide_button:after {
  content: "шрифт";
}

.slide_block {
  display: none;
  font: 700 italic 13px var(--font);
  text-transform: lowercase;
  position: absolute;
  top: calc(100% + 10px);
  background: var(--color-light2);
  padding: 5px;
  border-radius: 2px;
  color: var(--color-dark3);
}

div#chfont {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

div#chfontsize {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  font-style: normal;
}

.fsizeplus,
.fsizeminus {
  font-size: 14px;
  cursor: pointer;
}

div#chfont select {
  position: relative;
}

/* fntslider */
.FNTslider {
  width: 160px;
  height: 1px;
  background: var(--color-gray2);
  z-index: 1;
}
.FNTslider .before {
  height: 1px;
  margin: 0px 0 0 0px;
  background: var(--color-accent4);
}
.FNTslider .thumb {
    width: 10px;
    height: 10px;
    position: relative;
    top: -6px;
    cursor: pointer;
    background: var(--color-dark1);
    border: var(--border1);
}

/* new theme */
.required label,
.datafield .input,
.selectfield label,
.inputfield label,
.inputfield.required.longinput,
#pun-admain legend span,
#setmods dt {
  background-color: transparent !important;
  font: 500 9px var(--font) !important;
  text-transform: lowercase;
  display: inline-block;
  margin-bottom: 7px;
}

.required label {
  margin-right: 5px;
}

p.checkfield {
  text-transform: lowercase;
}

.inputfield.required.longinput:last-child {
  display: flex;
  align-items: center;
}

/* checkboxes */
p[class="checkfield"] *,
div[class="checkfield"] *,
fieldset[class="radiofield"] * {
  vertical-align: middle;
  font: 400 10px var(--font);
  padding: 2px 0;
  display: inline-block;
}

/* PAGES: VIEWFORUM, SEARCHPOSTS, ETC
--------------------------------------------------------------------------------------------------------------------------*/
.pagestext a {
  color: var(--link) !important;
}

#pun-viewforum .category {
  margin-bottom: 10px;
}

#pun-searchposts h3 span {
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
  gap: 3px;
}

#pun-reputation .inner {
  font: 500 10px var(--font);
  text-transform: lowercase;
}

#pun-reputation .inner td.tc2 {
  padding: 7px 0;
}

.forum .tclcon a,
.forum .tcr a {
  color: var(--color-accent1) !important;
}

.forum td.tc2,
.forum td.tc3 {
  text-align: center;
}

#pun-main #move_posts_form thead tr,
#pun-main #move_posts_form tbody tr {
  grid-template-columns: 1fr 10px;
  display: grid !important;
  width: calc(100% - 25px) !important;
}

#move_posts_form thead,
#move_posts_form tbody {
  display: flex !important;
  flex-direction: column;
  gap: 7px;
}

/* PAGES: VIEWPROFILEb
--------------------------------------------------------------------------------------------------------------------------*/
#viewprofile tr {
    display: grid;
    grid-template-columns: var(--prof-w) 1fr;
    align-items: center;
    position: relative;
    border-radius: 15px;
    background: var(
  --color-dark1);
}

#profile-signature tr {
  display: block;
  margin: 0px 0 0 0;
  border: none !important;
  background: none !important;
}
#profile-signature {
  margin-top: -10px;
}

#profile-signature ul {
  border: none !important;
  padding: 0px !important;
}

/* left part */
#viewprofile #profile-left {
    width: inherit !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    justify-content: center;
    padding: 19px !important;
    background: var(--pun);
    margin: 40px 6px !important;
    z-index: 1;
    border-radius: 15px;
    border: var(--border1);
}

#viewprofile #profile-left li {
  color: var(--color-dark1);
}

#pa-avatar {
  margin: 15px 0;
}

#profile-left #profile-name strong {
  text-transform: lowercase;
}

#pa-edit a {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 0;
    background: var(--pun);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    border: var(--border1);
    color: var(--color-dark1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#pa-edit a:before {
    font: 500 15px var(--mat1);
    content: '\ef40';
}

#pa-edit a:hover {color: var(--color-accent4)}

/* right part */
#profile-right {
  width: 100% !important;
  padding: 20px !important;
  gap: 20px;
  overflow: visible !important;
  background: var(--pun);
  justify-content: space-around;
  height: 100%;
  box-sizing: border-box;
  align-items: flex-start;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--border1) !important;
}

#profile-right li {
    display: flex;
    text-transform: lowercase;
    flex-direction: column;
    align-items: center;
    border: var(--border1);
    border-radius: 5px;
    height: 100%;
    padding: 15px;gap: 15px;
}

#profile-right li > span {
    text-transform: uppercase;
    padding: 5px 15px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent2);
    font-size: 9px;
    font-weight: 600;
    border-radius: 10px;
    line-height: 1;
}

#profile-right li > span,
#profile-right li > span a {
  color: var(--color-light1);
}

#profile-right li > strong {
    text-align: center;
    font-weight: 400;
    font-size: 10px;padding: 0 !important
}

#profile-right strong,
#profile-right strong a {
  color: var(--color-gray1) !important;
}

#pa-fld1 {
    position: relative;
    width: 100%;
}

#pa-fld1 lz2:after {
    bottom: 22px;
}

#pa-posts {
  order: 1;
}

#pa-respect {
  order: 2;
}

#pa-positive {
  order: 3;
}

#pa-fld2 {
  order: 4;
}

#pa-posts strong {
  display: flex;
  flex-direction: column;
}

#pa-register-date {
  order: 8;
}

#pa-time-visit {
  order: 9;
}

#pa-last-post {
  order: 10;
}

#pa-last-visit {
  order: 11;
}

#profile-right #pa-email {
  order: 12;
}

#pa-email strong {
  display: flex;
  gap: 5px;
}

#pa-name {
  order: 9;
}

#pa-birthdate {
  order: 10;
}

#pa-location {
  order: 11;
}

li#pa-fld5 {
    top: 0px;
    border-radius: 15px 0px 0 0;
    overflow: hidden;
    position: absolute;
    left: 0;border: none;padding: 0;
}

li#pa-fld4 {
    position: absolute;
    bottom: 40px;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

li#pa-fld3 {
  order: 3;
}

li#pa-fld3 img {
  width: 150px;
  object-fit: cover;
  height: 30px;
}

li#pa-fld2 strong {
  text-align: justify;
}

/* inside */
#profilenav,
#pun-adnav {
  float: left;
  width: var(--profnav-w);
  font: 600 10px var(--font);
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

#profilenav ul,
#pun-adnav ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#profile fieldset,
.adformal {
  padding: 20px;
}

#pun-profile fieldset,
#pun-profile .adfs-box {
  text-transform: lowercase;
  font: 500 11px var(--font);
  letter-spacing: 0.5px;
  margin-left: var(--profnav-w) !important;
}

#profile fieldset fieldset {
  margin-left: 0px !important;
  padding: 0px;
}

#filetable thead tr {
  display: table-row;
}

#pun-profile #profile {
  min-height: 280px;
}

span.files-page-select select {
  padding: 0px 7px;
}

/* PAGES: USERLIST, RESPECT, ONLINE
--------------------------------------------------------------------------------------------------------------------------*/
.usertable .container {
  margin: 20px 0;
}

.usertable td,
.usertable th {
  text-align: center;
}

.usertable .tcl,
#pun-respect .tcl,
#pun-positive .tcl {
  text-align: left;
}

#pun-respect #pun-main > .section td,
#pun-respect #pun-main > .section th,
#pun-positive #pun-main > .section td,
#pun-positive #pun-main > .section th {
  width: auto !important;
  text-align: center;
  overflow: hidden;
}

/* userlist */
.username,
td.pmtc22 {
  display: grid;
  grid-template-columns: 36px auto;
  grid-template-areas: "ava user";
  gap: 10px;
  align-items: center;
}

#pun-online .username {
  display: block !important;
}

#pun-online th.tcl.action {
  white-space: nowrap;
}

/*td.pmtc22 {
justify-content: end;
}*/

.usersname,
td.pmtc22 a,
#pun-viewforum td.tcr .byuser,
#pun-searchtopics td.tcr .byuser {
    grid-area: user;
    order: 2;
}

#pun-viewforum td.tcr .user-avatar,
#pun-searchtopics td.tcr .user-avatar {order: 3;} 

.usersname a {
  color: var(--color-accent1);
}

/* PAGES: MESSAGESb
--------------------------------------------------------------------------------------------------------------------------*/
#pun-messages .hasicon {
  margin: 0 0 10px 0;
}

#pun-messages .post-links {
    margin-bottom: 13px;
    padding-right: 10px !important;
}

#pun-messages li.pa-author {
  order: 1;
}

#pun-messages li.pa-avatar.item2 {
  order: 3;
}

#pun-messages li.pa-posts {
  order: 5;
}

#pun-messages li.pa-title {
  order: 2;
}

#pun-messages li.pa-online,
#pun-messages .indOnline {
  order: 4;
}

#pun-messages .pa-posts:before,
#pun-messages .pa-posts:after {
  left: -65px;
}

.postlink.long .new-topic {
  padding: 0 !important;
}

#profile.formal.messages-container .container {
  min-height: 70px;
}

#notify-settings {
  font: 400 9px var(--font);
  text-transform: lowercase;
  margin-left: calc(var(--profnav-w) + 15px);
}

input#OnOff_Notify {
  margin-top: -2px;
}

#volSlider.vol_slider {
  margin-top: 1px;
}

/* SCROLLBAR / SELECTION
--------------------------------------------------------------------------------------------------------------------------*/
::-webkit-scrollbar  {
  width: 5px;
  height: 5px;
}

#pun *::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

body::-webkit-scrollbar-track {
  background: var(--bg-color);
}

#pun *::-webkit-scrollbar-track {
  background: var(--color-light2);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent1);
}
/* selection */
::selection,
.highlight-text {
  background: #b6bac5 !important;
}

/* HIDDEN ELEMENTS
--------------------------------------------------------------------------------------------------------------------------*/
.acchide,
h1,
#pun-navlinks h2,
#pun-status h2,
#pun-ulinks h2,
.multipage .topic h2,
form#post.container legend span,
.post-sig dt span,
.crumbs strong,
.divider hr,
#pun-userlist .main h2,
#pun .modlist,
.stickytext,
.closedatafield,
#pun-viewforum #pun-main h2,
#pun-announcement h2,
#pun-modviewforum h2,
#pun-break4,
#pun-messages .post-sig,
.tipsy-arrow,
.clearer,
#pun-searchtopics #pun-main h2,
.num_msg:before,
#topic-users-in a:last-child:after,
#topic-modmenu span,
#pun-viewforum .modmenu span,
#post-form h2,
#pun-index thead,
#profile thead,
#pun-index .tcr br,
#pun-index .tc2,
#pun-index .tc3,
.lastedit,
.pa-reg,
.pa-gifts,
.pa-replies,
.sharelink,
.pl-share,
.pl-reports,
#viewprofile-next #profilenav,
#pa-invites,
#profile-gifts,
#pun-live-rusff,
.crumbs em,
#pun-searchposts em,
#pun-searchtopics .modmenu,
.bubble:after,
#pun-post .topic h2,
.hide-box .qcn,
#topic-feed,
.modal-inner h2 span,
.catleft,
.catright,
#button-files_rusff,
#button-graffiti_rusff,
#pun-index .subforums em,
.reactions-root,
.qcn,
.pa-ip .fld-name,
#pun-searchposts h3 span a:last-child:after,
#pun-index .tclcon span a:last-child:after,
#pun-index .subforums a:last-child:after,
.mylike .post-vote,
#button-smile,
#chfontbut,
#pa-name,
#pa-birthdate,
#pa-location,
.postlink .closed,
.pa-respect img,
#pa-fld5 > span,
#pa-fld4 > span,
#pa-fld1 > span,
#pa-fld3 > span,
news .activists.one a:nth-child(4),
#pun-index .tclcon br,
.post #togglePreview {
  display: none !important;
}

.pun-modal.unread-notifications .modal-inner h2 span,
.pun-modal.rating_theme h2 span {
  display: inline-block !important;
}

/* MOBILE / MOZILLA
--------------------------------------------------------------------------------------------------------------------------*/
@-moz-document url-prefix() {
  * {
    scrollbar-width: thin;
  }
  #form-buttons {
    margin-bottom: -2px;
  }
}

/*html{min-width: 1200px!important;}для мобил*/
@media screen and (max-device-width: 480px) {
  /*  a,
  a:hover,
  a:focus,
  a:active,*/
  #pun-status,
  .crumbs,
  #pun-stats ul.container,
  .modmenu .container,
  #pun-index .tcr .lastpost,
  #pun-respect td,
  #pun-respect th,
  #pun-positive td,
  #pun-positive th,
  #pun-viewforum td,
  #pun-searchtopics td,
  .quote-box a,
  .quote-box,
  .code-box a,
  .code-box {
    -webkit-text-size-adjust: none;
  }
  .hashelp center div a button,
  .button,
/*  input,*/
  select {
    appearance: none !important;
    -webkit-appearance: none !important;
  }
  .go-up,
  .go-down {
    display: none !important;
  }

body:before {display: none;}
body {background: var(--bg); background-attachment: fixed !important; background-size: cover !important;}
.hscroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; 
  will-change: transform;
  scroll-behavior: smooth; 
}

#pun {padding-right: 0;padding-left: 0;width: var(--main-w);box-sizing: content-box;}

#pun:before {
    width: 1100px;
    background-position: center;
}

#pun-announcement tabla {
    left: 0;
    width: 100%;
}

tabla_n {
    left: 0;
}

tabla_q {
    right: 20px;
}

tabla_a {
    right: 20px;
}

#pun-announcement .activists.one {
    left: 20px;
}

#pun-announcement .activists.three {
    right: 20px;
}
}
