/*************************************************************
A - SETUP
**************************************************************/

/* A1 Import the colour scheme
-------------------------------------------------------------*/

@import url(//forumstatic.ru/files/001c/7b/31/97386.css);
@import url(style_cs.1750013774.css);

/* Template container
-------------------------------------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: var(--text-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, Cantarell, Oxygen, Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    overflow-y: scroll;
    overflow-x: hidden;
    background: var(--body-bg);
}

#pun {
    margin: 0 auto;
    position: relative;
    width: 1000px;
    padding-top: var(--header-height);
}

/* Details
-------------------------------------------------------------*/
ul {
    list-style: none;
}

/* Header title
-------------------------------------------------------------*/
#pun-title .title-logo,
#pun-title #title-logo-table {
    display: none;
}

.pun-title__container {
    position: fixed;
    height: var(--header-height);
    top: 0px;
    left: 0px;
    right: 0px;
    z-index: var(--zindex-header);
    background: var(--header-bg);
    transition: box-shadow 0.2s, transform 0.2s;
    padding: 8px 30px;
    border-bottom: 0px;
}

.scrolled .pun-title__container {
    box-shadow: 0 2px 6px var(--shadow-color);
}

.usermenu-group {
    float: right;
}

.usermenu-group button {
    background: none;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.usermenu-avatar {
    margin: -2px 5px -2px -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
    vertical-align: top;
    background-color: var(--avatar-bg);
    font-weight: normal;
    --size: 24px;
    width: var(--size);
    height: var(--size);
    font-size: calc(var(--size) / 2);
    border-radius: 100%;
}

.usermenu-label {
    transition: margin-right .1s;
}

.navigation-group {
    float: right;
}

.guest-menu,
.navigation-menu {
    display: flex;
    flex-direction: row;
    gap: var(--gap);
}

.navigation-menu {
    margin-right: 20px;
}

.guest-menu > li > a,
.navigation-menu > li > a {
    display: inline-block;
    margin-bottom: 0;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    white-space: nowrap;
    line-height: 20px;
    padding: 8px 13px;
    border-radius: var(--border-radius);
    -webkit-user-select: none;
    user-select: none;
    color: var(--button-color);
    border: 0;
    transition: transform .5s;
}

.guest-menu > li > a:hover,
.navigation-menu > li > a:hover {
    transform: scale(115%);
}

.navigation-menu > li > a {
    font-size: 16px;
    padding: 10px 13px;
}

.guest-menu > li > a {
    background: var(--button-bg);
}

.forum-title {
    float: left;
    vertical-align: top;
    font-size: 18px;
    font-weight: normal;
    margin: 0 15px 0 0;
    line-height: 34px;
}

/* Navigation links
-------------------------------------------------------------*/
#pun-navlinks ul,
#pun-ulinks ul {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: var(--gap);
}

#pun-navlinks h2,
#pun-ulinks h2 {
    display: none;
}

#pun-ulinks ul {
    font-size: 85%;
    text-transform: lowercase;
}

/* Announcement
-------------------------------------------------------------*/
#pun-announcement h2 {
    display: none;
}

/* User index info
-------------------------------------------------------------*/
#pun-status {
    padding: 12px 12px;
}

#pun-status .container span {
    padding-right: var(--gap);
}

#pun-status h2 {
    display: none;
}

#pun-crumbs1,
#pun-crumbs2 {
    padding: 12px 12px;
}

#pun-crumbs1 strong,
#pun-crumbs2 strong {
    display: none;
}

/* Main content
-------------------------------------------------------------*/
#pun-viewtopic #pun-ulinks {
    margin-bottom: 115px;
}

#pun-main h1 {
    display: none;
}

#pun-main .topic {
    padding: 12px;
}

#pun-viewtopic #pun-main h1 {
    display: block;
    background: var(--hero-bg);
    text-align: center;
    color: var(--hero-color);
    padding-top: 30px;
    padding-bottom: 30px;
    font-size: 22px;
    font-weight: normal;
    position: absolute;
    margin: 0;
    top: calc(var(--header-height) + 1.5em);
    width: 100vw;
    min-width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.linksb,
.linkst {
    display: flex;
    padding: 12px;
}

.linksb {
    flex-direction: row-reverse;
}

.linksb .pagelink,
.linkst .pagelink {
    display: flex;
    align-items: center;
    gap: 5px;
}

.linksb .postlink,
.linksb .postlink.long,
.linkst .postlink,
.linkst .postlink.long {
    text-align: right;
    width: 100%;
}

.linksb > *,
.linkst > * {
    flex: 1 1 auto;
}

.subscribelink {
    position: absolute;
    margin-top: -9em;
}

.postlink a {
    display: inline-block;
    margin-bottom: 0;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    white-space: nowrap;
    line-height: 20px;
    padding: 2px 13px;
    border-radius: var(--border-radius);
    -webkit-user-select: none;
    user-select: none;
    color: var(--button-color);
    background: var(--button-bg);
    border: 0;
}

.postlink a:hover {
    background: var(--button-bg);
    color: var(--link-color);
}

/* Moderate sections
-------------------------------------------------------------*/
.modmenu .container {
    display: flex;
}

.modmenu .container > * {
    flex: 1 1 auto;
}

.modmenu {
    padding: 12px;
}

.modmenu .container > span {
    text-align: right;
}

.modmenu .container > strong a {
    display: inline-block;
    margin-bottom: 0;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    white-space: nowrap;
    line-height: 20px;
    padding: 2px 13px;
    border-radius: var(--border-radius);
    -webkit-user-select: none;
    user-select: none;
    color: var(--button-color);
    background: var(--button-bg);
    border: 0;
}

.modmenu .container > strong a:hover {
    color: var(--link-color);
}

#topic-users-in .container {
    text-align: left;
    gap: 5px;
}

#topic-users-in .container > * {
    flex: 0 0 auto;
}

/* Statistics
-------------------------------------------------------------*/
#pun-stats {
    padding: 12px 12px;
}

.statscon .container {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.statscon .container > li {
    padding: 12px 12px;
    width: calc(50% - (var(--gap) * 2));
    text-align: center;
    font-size: 11px;
    background: var(--control-bg);
    margin: 0 var(--gap) var(--gap);
}

.statscon .container > li > strong {
    display: block;
}

.online-list__container {
    display: flex;
    align-items: flex-start;
    max-height: 90px;
    overflow-y: auto;
}

.online-list__container ul li {
    text-align: left;
}

.stats-list__container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats-list__container ul {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.stats-list__container ul > li {
    width: 25%;
}

.stats-list__container ul > li > span {
    display: none;
}

.statscon .item1 > strong::before {
    display: block;
    content: "\f086";
    font-family: 'Font Awesome 5 Free';
    font-size: 14px;
    font-weight: normal;
}

.statscon .item2 > strong::before {
    display: block;
    content: "\f4ad";
    font-family: 'Font Awesome 5 Free';
    font-size: 14px;
    font-weight: normal;
}

.statscon .item3 > strong::before {
    display: block;
    content: "\f0c0";
    font-family: 'Font Awesome 5 Free';
    font-size: 14px;
    font-weight: 900;
}

.statscon .item4 > strong::before {
    display: block;
    content: "\f234";
    font-family: 'Font Awesome 5 Free';
    font-size: 14px;
    font-weight: 900;
}

.statscon .container > li.users_24h {
    width: 100%;
    text-align: left;
}

.statscon .container > li.statistics {
    width: 100%;
    text-align: left;
    background: transparent;
}

/* Misc
-------------------------------------------------------------*/
.hidden {
    display: none;
}

.json {
    display: none;
}

.divider hr {
    display: none;
}

#pas_remember {
    top: 50px !important;
}

#pun-about {
    padding: 12px 12px;
    text-align: center;
}

.custom_tag.checkbox {
    display: inline-flex;
    align-items: center;
}

.custom_tag.checkbox .pretty {
    display: inline-flex;
}

/* Links
-------------------------------------------------------------*/
a {
    cursor: pointer;
    color: var(--link-color);
    text-decoration: none;
    transition: .5s;
}

a:hover {
    color: var(--muted-color);
    background: none;
    text-decoration: none;
}

/* Loading
-------------------------------------------------------------*/
#loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: var(--zindex-loader);
    background: var(--body-bg);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: auto;
}

.loading-overlay__spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 5px solid var(--body-bg-light);
    border-top-color: var(--secondary-color);
    animation: spin 0.8s linear infinite;
}

.changes-loaded #loading-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Dropdown
-------------------------------------------------------------*/
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: var(--zindex-dropdown);
    min-width: 160px;
    padding: 8px 0;
    margin: 7px 0;
    background: var(--body-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 6px var(--shadow-color);
    list-style: none;
    text-align: left;
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.5;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu > li > a,
.dropdown-menu > li > button,
.dropdown-menu > li > span {
    padding: 8px 15px;
    display: flex;
    width: 100%;
    color: var(--text-color);
    border-radius: 0;
    border: 0;
    background: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: none;
    text-align: left;
    font-size: 13px;
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
    align-items: center;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > button:hover {
    background: var(--control-bg);
}

.dropdown-separator {
    margin: 8px 0;
    background-color: var(--control-bg);
    height: 1px;
}

li > a.has-icon {
    padding-left: 40px;
}

a.has-icon .link-icon {
    float: left;
    margin-left: -25px;
    margin-top: 2px;
    margin-right: 10px;
    width: 16px;
    text-align: center;
}

/* Categories and forums
-------------------------------------------------------------*/
.category {
    margin: 10px 0;
}

.category > h2,
.forum > h2,
#pun-stats > h2 {
    padding: 12px 24px;
    text-align: center;
}

.category table,
.forum table {
    width: 100%;
}

.category table tr,
.forum table tr {
    margin-bottom: 10px;
}

.forum > h2 {
    display: none;
}

.forums-category__block {
    background: var(--control-bg);
    padding: 10px;
}

.tcl {
    width: 50%;
}

.tclcon .acchide {
    display: none;
}

.tc2,
.tc3 {
    width: 10%;
}

.tcr {
    width: 30%;
}

.forums-category {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    padding: 12px 12px;
}

.forums-category__block {
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: row;
    gap: var(--gap);
}

.forums-category__title{
    width: 45%;
}

.forums-category__title h3 {
    font-size: 16px;
    font-weight: bold;
}

.forums-category__title .byuser {
    font-size: 13px;
    font-weight: normal;
}

.forums-category__stats {
    width: 20%;
}

.forums-category__last-post {
    width: 35%;
    text-align: right;
}

/* Posts and topics
-------------------------------------------------------------*/
.topic > h2 {
    display: none;
}

.post {
    margin: 8px 0;
}

.post .container {
    display: flex;
    flex-wrap: wrap;
}

.post-author {
    width: 20%;
}

.post-body {
    width: 80%;
}

.post-links {
    width: 100%;
}

.post-links > ul {
    display: flex;
}

.post-links > ul > * {
    padding: 10px;
}

.pa-author .acchide,
.post-links .acchide {
    display: none;
}

.post-links .pl-delete {
    margin-left: auto;
}

#pun-live-rusff {
    display: none;
}

/** Profile
-------------------------------------------------------------*/
#profilenav {
    padding: 10px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    width: 200px;
    float: left;
}

#profilenav h2 span {
    color: var(--primary-color);
    font-size: 1.1em;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    padding-bottom: 5px;
}

#profilenav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#profilenav ul li {
    margin: 6px 0;
}

#profilenav ul li a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.2s;
    padding: 6px 10px;
    display: block;
    border-radius: var(--border-radius);
}

#profilenav ul li a:hover {
    background-color: var(--button-bg-hover);
    color: var(--text-on-dark);
    text-shadow: 0 0 5px var(--primary-color);
}

#profilenav ul li.isactive {
    background-color: var(--button-bg);
}

#profilenav ul li.isactive a {
    color: var(--button-color);
}

#viewprofile .container {
    display: flex;
    gap: var(--gap);
    flex-wrap: wrap;
    padding: 12px;
    margin: 10px 0;
}

#viewprofile .container table {
    font-size: 13px;
    width: 100%;
}

#viewprofile .container > ul {
    width: 100%;
}

#profile-left {
    text-align: center;
    width: 30%;
}

#profile-left,
#profile-right {
    padding: 12px;
}

#profile-right {
    width: 70%;
}

#profile-left li,
#profile-right li {
    margin-bottom: 10px;
    list-style: none;
}

#profile-left strong,
#profile-right strong {
    color: var(--light-content-color);
}

#profile-right li strong {
    padding-left: 5px !important;
}

#pa-avatar img {
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
}

#profile-gifts {
    background-color: var(--control-bg-light);
    padding: 10px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    text-align: center;
    color: var(--muted-color);
}

#profile-right a {
    color: var(--link-color);
}

#profile-right a:hover {
    color: var(--button-primary-bg);
    text-shadow: 0 0 4px var(--primary-color);
}

#profilenav ul li a:hover,
#profile-right a:hover {
    transition: all 0.3s ease-in-out;
    transform: scale(1.03);
}

#profile-title {
    font-size: 80%;
}

#pa-online {
    font-size: 70%;
}

#pa-ua .user-agent {
    display: flex;
    gap: 5px;
    font-size: 0.8em;
    justify-content: center;
    margin-top: 12px;
}

#pa-ua .user-agent i {
    color: var(--primary-color);
}

div#profile-signature {
    background-color: var(--control-bg-light);
    padding: 12px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    color: var(--muted-color);
}

div#profile-signature ul {
    border: none;
    padding-top: 0;
}

/* Forms
-------------------------------------------------------------*/
#post-form {
    margin: 12px 0;
    padding: 12px;
}

#post-form #tags {
    position: relative;
}

#post-form #tags > .container[id] {
    position: absolute;
    right: 6px;
    top: 6px;
    z-index: 2;
    background: var(--body-bg);
    padding: 12px;
    border-radius: var(--border-radius);
}

button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    margin-bottom: 0px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    line-height: 20px;
    user-select: none;
    color: var(--button-color);
    white-space: nowrap;
    padding: 8px 13px;
    border-radius: var(--border-radius);
    background: var(--button-bg);
    border-width: 0px;
    border-style: initial;
    border-color: initial;
}

textarea {
    color: var(--text-color);
    background-color: var(--control-bg);
    padding: 8px;
}

select,
input {
    color: var(--control-color);
    background-color: var(--control-bg);
    border: none;
    border-radius: var(--border-radius);
    padding: 8px;
}

fieldset {
    border: 0;
}

/* Admin
-------------------------------------------------------------*/
.adminmain {
    margin-top: 20px;
}

.adformal {
    background: var(--control-bg) !important;
    border-radius: var(--border-radius);
    border: none !important;
}

.adformal h2,
#pun-adnav h2 {
    background: var(--control-bg) !important;
    color: var(--muted-color) !important;
    border: 0 !important;
}

.adcontainer {
    border: 0 !important;
}

#pun-admain fieldset {
    border: none !important;
}


#pun-admain fieldset p {
    background: var(--control-bg) !important;
    border-color: var(--control-bg) !important;
    color: var(--text-color);
}

#pun-admain fieldset .handle {
    background: var(--body-bg) !important;
    border-color: var(--control-bg) !important;
    border-radius: var(--border-radius);
}

#pun-admain legend {
    color: var(--muted-color) !important;
}

#pun-admain legend span {
    background: transparent !important;
}

.adformal select,
.adformal input {
    background: var(--body-bg);
}

#pun-admain a {
    color: var(--text-color) !important;
}

/* Chronology
-------------------------------------------------------------*/
.chronology-filter__tabs {
    display: flex;
    margin-bottom: 10px;
    position: sticky;
    top: 52px;
    background: var(--header-bg);
}

.chronology-section {
    margin: 6px 0;
}

.chronology-section__header {
    display: flex;
    background: var(--hero-bg);
    text-align: center;
    color: var(--hero-color);
    padding: 5px 10px;
    font-size: 18px;
    font-weight: normal;
    border-radius: var(--border-radius);
}

.chronology-section-event__comments,
.chronology-section__review {
    display: none;
    margin-top: 10px;
    padding: 8px;
}

.chronology-section-event__comments {
    border-top: 1px dotted var(--muted-color);
}

.chronology-section__review.visible {
    display: block;
}

.chronology-section-event__comments.visible {
    display: block;
}

.chronology-section-event__comment {
    font-style: italic;
    margin-bottom: 5px;
}

.chronology-section-event__comment:last-child {
    margin-bottom: 0;
}

.chronology-section__events {
    margin: 15px 0;
}

.chronology-section__event {
    padding: 4px 8px;
    border-left: 3px solid var(--link-color);
    margin-bottom: 8px;
}

.chronology-filter__tabs .custom_tag.checkbox {
    flex: none;
    margin-left: auto;
}

.chronology-spoiler {
    margin-right: 12px;
    padding: 0;
}

.chronology-spoiler::before {
    display: block;
    content: "\f07c";
    font-family: 'Font Awesome 5 Free';
    font-size: 14px;
    font-weight: normal;
}

.section-hide .chronology-spoiler::before {
    content: "\f07b";
}

.chronology-filter_tab {
    display: flex;
    align-items: center;
}

.chronology-filter_tab .fa-icon {
    padding-right: 6px;
}
