#loading-layer {
    background: #000;
    padding: 20px;
    text-align: center;
    color: #fff;
    border-radius: 2px
}

#dropmenudiv {
    display: inline-block;
    min-width: 220px!important;
    background: var(--bg2);
    box-shadow: 0 2px 15px rgb(61 61 61 / 8%);
    padding: 15px;
    border-radius: 20px;
    opacity: 1!important;
    font-size: 13px;
}

#dropmenudiv a {
    display: block;
    padding: 10px;
}

#dropmenudiv a:hover {
    background: var(--bg);
    color: #000;
    border-radius: 10px;
}

/* FAST EDIT */
.dlepopupnewsedit input, .dlepopupnewsedit textarea {
    background: var(--bg2);
    margin-bottom: 20px;
}

.dlepopupnewsedit .xfieldsrow > b {
    display: inline-block;
    margin-bottom: 15px;
}

.xfieldscolleft {
    float: left;
    width: 30%
}

.xfieldscolright {
    float: left;
    width: 70%
}

.qq-uploader {
    position: relative;
    width: 100%;
}

.qq-upload-button {
    display: inline-block;
    background: var(--color1);
    color: var(--text1);
    padding: 14px 20px;
    border-radius: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    cursor: pointer;
}

#uploadedfile_poster {
    display: flex;
    align-items: center;
}

.uploadedfile {
    border: 2px solid var(--bg2);
    border-radius: 10px;
    padding: 15px;
    width: 180px;
    height: auto;
    text-align: center;
}

.uploadedfile .uploadimage {
    cursor: move;
}

.sortable-ghost {
    opacity: 0.4;
}

.uploadedfile .info {
    white-space: nowrap;
    overflow: hidden;
}

.uploadedfile .info a ~ a {
    margin-left: 10px;
}

/* INFO */
.attention {
    position: relative;
    padding: 20px 30px;
    background: var(--color1);
    color: var(--text1);
    border-radius: 10px;
    margin-bottom: 40px;
    font-size: 14px;
    line-height: 18px;
    grid-column: 1/-1;
}

/* NAVIGATION */
.navigation {
    grid-column: 1/-1;
    text-align: center;
    margin: 0 auto;
    margin-top: 30px;
}

.navigation a, .navigation span, .navigation-ajax a {
    display: inline-block;
    background-color: #2d7c66;
    border-radius: 6px;
    min-width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    margin-right: 10px;
    margin-bottom: 20px;
    cursor: pointer;
}

.navigation span {
    background: #15e636;
    color: var(--text1);
}

.navigation a:hover, .navigation-ajax a:hover {
    color: #fff;
}

.navigation .navigation-ajax a, .navigation .navigation-ajax span {
    width: 200px;
}

/* EMOJI */
.emoji {
    vertical-align: middle;
    width: 20px;
    height: 22px;
}

.emoji_box {
    width: 100%;
    max-width: 250px;
}

.emoji_list {
    display: flex;
    align-items: center;
    width: 100%;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'NotoColorEmoji', 'Segoe UI Symbol', 'Android Emoji', 'EmojiSymbols';
    font-size: 20px;
    padding: 10px 0;
    margin-bottom: 10px;
    overflow: auto;
}

.emoji_list::-webkit-scrollbar {
    height: 5px;
}

.emoji_list::-webkit-scrollbar-thumb {
    background-color: #e9e9e9;
}

.emoji_symbol {
    cursor: pointer;
}

.native-emoji {
    font-size: 10px;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'NotoColorEmoji', 'Segoe UI Symbol', 'Android Emoji', 'EmojiSymbols';
}

/* RATING */
.rating, .unit-rating {
    width: 150px;
    height: 32px;
}

.rating {
    font-size: 11px;
}

.unit-rating, .unit-rating li a:hover, .unit-rating li.current-rating {
    background-image: url(../dleimages/rating.png);
    -webkit-background-size: 30px auto;
    background-size: 30px auto;
}

.unit-rating {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    background-position: 0 -30px;
}

.unit-rating li {
    text-indent: -90000px;
    padding: 0;
    margin: 0;
    float: left;
}

.unit-rating li a {
    display: block;
    width: 30px;
    height: 30px;
    text-decoration: none;
    border: 0 none !important;
    text-indent: -9000px;
    z-index: 17;
    position: absolute;
    padding: 0;
}

.unit-rating li a:hover {
    background-position: 0 -60px;
    z-index: 2;
    left: 0;
}

.unit-rating a.r1-unit {
    left: 0;
}

.unit-rating a.r1-unit:hover {
    width: 30px;
}

.unit-rating a.r2-unit {
    left: 30px;
}

.unit-rating a.r2-unit:hover {
    width: 60px;
}

.unit-rating a.r3-unit {
    left: 60px;
}

.unit-rating a.r3-unit:hover {
    width: 90px;
}

.unit-rating a.r4-unit {
    left: 90px;
}

.unit-rating a.r4-unit:hover {
    width: 120px;
}

.unit-rating a.r5-unit {
    left: 120px;
}

.unit-rating a.r5-unit:hover {
    width: 150px;
}

.unit-rating li.current-rating {
    background-position: 0 0;
    position: absolute;
    height: 30px;
    display: block;
    text-indent: -9000px;
    z-index: 1;
}

/* COMMENTS */
.dle-comm form {
    background: var(--bg2);
    color: var(--text);
    padding: 30px;
    border-radius: 10px;
}

.dle-comm form textarea {
    background: none;
    border-bottom: 2px solid var(--light);
    padding: 10px 0 20px 0;
    border-radius: 0;
}

.dle-comm form textarea + .dle-form_flex {
    margin-top: 20px;
}

.dle-comm form input[type="text"] {
    background: var(--bg);
}

.dle-comm_submit {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

@media (max-width: 860px) {
    .dle-comm_submit {
        display: block;
    }
}

.dle-comm_submit button i {
    margin-right: 5px;
}

#dle-comments-list > div:not(#comment, #dle-ajax-comments) + div {
    border-top: 2px solid var(--light);
    padding-top: 10px;
    margin-top: 10px;
}

.dle-comm_item_head, .dle-comm_meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    margin-top: 10px;
}

.dle-comm_meta a:hover {
    color: var(--color1);
}

.dle-comm_item_head {
    margin-top: unset;
    margin-bottom: 20px;
}

.dle-comm_item_head img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 15px;
}

.dle-comm_item_title a {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

@media (max-width: 860px) {
    .dle-comm_item_title span {
        font-size: 12px;
    }
}

.dle-comm_meta [type="checkbox"] {
    margin-left: auto;
}

.dle-comm_rating {
    margin-left: auto;
}

.dle-comm_rating .fa-thumbs-up {
    color: #3cd458;
    margin-right: 5px;
}

.dle-comm_rating .fa-thumbs-down {
    color: #ff4954;
    margin-left: 5px;
}

.dle-comm_meta a + a {
    margin-left: 20px;
}

.mass_comments_action {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

@media (max-width: 860px) {
    .mass_comments_action {
        text-indent: -9999px;
    }
}

.mass_comments_action select {
    margin-right: 20px;
}

/* PODSVETKA V CODE */
pre code {
    display: block;
    padding: 10px;
    background: var(--bg2);
    border: 1px solid var(--light);
    overflow: auto;
    white-space: pre;
}

.hljs-comment, .hljs-quote {
    color: #a0a1a7;
    font-style: italic;
}

.hljs-doctag, .hljs-keyword, .hljs-formula {
    color: #a626a4;
}

.hljs-section, .hljs-name, .hljs-selector-tag, .hljs-deletion, .hljs-subst {
    color: #e45649;
}

.hljs-literal {
    color: #0184bb;
}

.hljs-string, .hljs-regexp, .hljs-addition, .hljs-attribute, .hljs-meta-string {
    color: #50a14f;
}

.hljs-built_in, .hljs-class .hljs-title {
    color: #c18401;
}

.hljs-attr, .hljs-variable, .hljs-template-variable, .hljs-type, .hljs-selector-class, .hljs-selector-attr, .hljs-selector-pseudo, .hljs-number {
    color: #986801;
}

.hljs-symbol, .hljs-bullet, .hljs-link, .hljs-meta, .hljs-selector-id, .hljs-title {
    color: #4078f2;
}

.hljs-emphasis {
    font-style: italic;
}

.hljs-strong {
    font-weight: bold;
}

.hljs-link {
    text-decoration: underline;
}

.scriptcode,.text_spoiler,.title_quote,.title_spoiler {
    padding: 20px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
}

blockquote, .quote {
    position: relative;
    background: var(--bg);
    border-radius: 10px;
    padding: 30px 30px 30px 80px;
    border: none;
}

blockquote:before, .quote:before {
    content: '"';
    position: absolute;
    top: 30px;
    left: 20px;
    font-size: 100px;
    line-height: 100px;
    font-weight: 700;
    color: #52ca9e;
}

/* FORM */
.dle-form_float {
    position: relative;
}

.dle-form_float + div {
    margin-top: 20px;
}

.dle-form_float label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 15px 20px;
    pointer-events: none;
    transition: 0.2s;
}

.dle-form_float input:focus + label, .dle-form_float input:valid + label {
    font-size: 12px;
    top: -10px;
    opacity: 0.8;
}

.dle-form_float input {
    background: var(--bg);
    transition: 0.2s;
    height: 49px;
}

.dle-form_float input:focus, .dle-form_float input:valid {
    padding-top: 22px;
    padding-bottom: 10px;
}

.dle-form {
    max-width: 800px;
}

.dle-form_flex, .dle-form_flexno .xfields {
    display: flex;
    align-items: center;
}

@media (max-width: 860px) {
    .dle-form_flex {
        display: block;
    }
}

.dle-form_flex + .dle-form_flex, .dle-form_flex + .dle-form_flexno, .dle-form_flexno + .dle-form_flexno, .dle-form_flexno + .dle-form_flex, .dlecomments-editor + .dle-form_flex {
    margin-top: 20px;
}

@media (max-width: 860px) {
    .dle-form_flexno .addnews {
        display: block;
        margin-bottom: 10px;
    }
}

.dle-form_flex > label {
    display: inline-block;
    width: 25%;
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 860px) {
    .dle-form_flex > label {
        width: 100%;
        margin-bottom: 20px;
    }
}

.dle-form_flexno > label:not(.checkbox > label) {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

.dle-form_flex input + input {
    margin-left: 10px;
}

@media (max-width: 860px) {
    .dle-form_flex input + input {
        margin-left: 0;
        margin-top: 20px;
    }
}

.dle-form_flex select option {
    border-radius: 5px;
    padding: 5px 30px;
}

.dle-form_flex select option:checked {
    background-color: var(--bg2);
}

.dle-form_flex + button, .dle-form_flexno + button {
    margin: 20px 0;
}

.dle-form_flex button + button, .dle-form_flex .dle-form_protec {
    margin-left: 20px;
}

@media (max-width: 860px) {
    .dle-form_flex .dle-form_protec {
        margin-left: 0;
    }
}

.dle-form_protec label {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

/* VOTE */
#dle-question {
    display: inline-block;
    border: 2px solid var(--bg);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center ;
    margin-right: 10px;
}

.dle-vote {
    border: 2px solid var(--color1);
    border-radius: 10px;
    padding: 30px;
    margin: 20px 0;
}

.dle-vote_title {
    display: flex;
    align-items: center;
}

.dle-vote_title h3 {
    margin-bottom: 0;
    margin-left: 20px;
}

.dle-vote_title i {
    font-size: 22px;
    color: var(--color1);
}

.pollanswer {
    display: block;
    margin-top: 20px;
}

.pollanswer:first-child {
    margin-top: 0;
}

.dle-vote_grade {
    font-weight: 500;
    opacity: 0.6;
    margin-bottom: 20px;
}

.dle-vote_list {
    display: inline-block;
    font-size: 15px;
    line-height: 1.7;
    margin: 20px 0;
}

.pollprogress,.voteprogress {
    background: var(--dark);
    height: 6px;
    margin: 15px 0;
    border-radius: 2px;
    overflow: hidden;
}

.pollprogress span,.voteprogress span {
    display: block;
    background: var(--color1);
    text-indent: -9999px;
}

.pollallvotes {
    display: none;
}

/* SEARCH */
#fullsearch {
    grid-column: 1/-1
}

#fullsearch div, #searchinput {
    margin: 0!important;
    width: 100%!important;
}

#fullsearch #dofullsearch {
    display: none;
}

#fullsearch table {
    margin-bottom: 30px;
}

/* DLE ATTACH */
.dle-atta {
    background: var(--color1);
    color: var(--text-color);
    padding: 20px;
    border-radius: 10px;
    justify-content: space-between;
    align-items: center;
}

.dle-atta h4 {
    margin-bottom: 10px;
}

.dle-atta span {
    font-size: 14px;
}

.dle-atta a {
    display: inline-block;
    background-color: #0d6efd;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
}

/* DLE STATS */
.dle-stats_top {
    background: var(--bg2);
    padding: 30px;
    margin-bottom: 30px;
}

.dle-stats_top li {
    position: relative;
    margin: 10px 0;
    margin-top: 15px;
    padding-left: 30px;
}

.dle-stats_top li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    background-color: #3394e6;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.dle-stats_top li:nth-child(1):before {
    background-color: #f6a71a;
}

.dle-stats_top li:nth-child(2):before {
    background-color: #ce3f28;
}

.dle-stats_top li span {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.dle-stats h2 {
    margin-bottom: 10px;
}

.dle-stats p {
    border-top: 1px dotted #d5d5d5;
    margin: 10px 0;
    padding-top: 10px;
}

.dle-stats p > b {
    float: right;
}

/* DLE MODAL */
.ui-widget-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    opacity: 0.5;
}

.ui-dialog {
    position: absolute;
    background: var(--bg2);
    box-shadow: 0 8px 40px -10px rgb(0 0 0 / 30%);
    padding: 30px;
    border-radius: 20px;
    width: 420px;
    line-height: 1.6;
    cursor: move;
    z-index: 999;
}

.ui-dialog-titlebar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.ui-dialog-title {
    font-size: 18px;
    font-weight: bold;
}

.ui-dialog-titlebar-close {
    position: relative;
    width: 35px;
    height: 35px;
    line-height: 35px;
    color: var(--bg2);
    cursor: pointer;
}

.ui-dialog-titlebar-close:before {
    content: "\f00d";
    position: absolute;
    background: var(--bg);
    color: var(--text);
    border-radius: 10px;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    font-family: "Font Awesome 6 Pro";
    font-weight: 400;
    font-size: 20px;
}

.ui-dialog-titlebar-close:hover:before {
    background: var(--color1);
    color: var(--text1);
}

.ui-dialog-buttonset {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.ui-dialog-buttonset button {
    display: inline-block;
    background: var(--color1);
    color: var(--text1);
    border-radius: 10px;
    padding: 15px 20px;
    cursor: pointer;
}

.ui-dialog-buttonset button:hover {
    background: var(--color2);
    color: var(--text1);
}

.ui-dialog-buttonset button + button {
    margin-left: 10px;
}

/* DLE USER */
.dle-user {
    background: var(--bg2);
    border: 5px solid var(--bg2);
    border-radius: 20px;
    margin-bottom: 20px;
}

.dle-user > img:first-child {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.dle-user_content {
    align-items: center;
    justify-content: space-between;
    padding: 20px 90px;
}

@media (max-width: 860px) {
    .dle-user_content {
        padding: 30px;
    }
}

.dle-user_profile {
    margin-top: -60px;
    text-align: center;
}

.dle-user_profile > img {
    width: 150px;
    height: 150px;
    border: 5px solid var(--bg2);
    border-radius: 20px;
    margin-bottom: 10px;
}

@media (max-width: 860px) {
    .dle-user_profile > img {
        width: 100px;
        height: 100px;
    }
}

.dle-user_profile h3 {
    margin-bottom: 0;
}

.dle-user_profile span {
    font-size: 14px;
}

@media (max-width: 860px) {
    .dle-user_detal {
        margin: 30px 0;
    }
}

.dle-user_detal span {
    display: block;
    padding: 5px 0;
}

.dle-user_link a {
    display: block;
    background: var(--color1);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
}

@media (max-width: 860px) {
    .dle-user_link a {
        display: inline-block;
        width: 100%;
    }
}

.dle-user_link a:hover {
    background: var(--color2);
}

.dle-user_link a + a {
    margin-top: 10px;
}

/* PM PAGE */
.pm-page > .pm-page {
    margin-top: 20px;
}

.pm-page .dle-comm_item {
    background: var(--bg2);
    padding: 20px;
    border-radius: 10px;
}

.pm-page_lists {
    align-items: center;
    margin-bottom: 20px;
}

.pm-page_lists li + li {
    margin-left: 10px;
}

.pm-page_lists a {
    display: inline-block;
    background: var(--bg2);
    padding: 10px 20px;
    border-radius: 10px;
}

@media (max-width: 860px) {
    .pm-page_lists a {
        padding: 10px;
    }
}

.pm-page_lists a:hover {
    background: var(--color1);
    color: var(--text1)
}

.pm-page_status {
    position: relative;
    background: var(--bg2);
    padding: 20px;
    border-radius: 10px;
}

.pm_progress_bar {
    background: var(--bg);
    box-shadow: inset 0 2px 5px rgb(0 0 0 / 10%);
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
}

.pm_progress_bar span {
    display: block;
    background: var(--color1);
    box-shadow: 0 0 15px 5px var(--color1);
    font-size: 0;
    text-indent: -2000em;
    height: 20px;
    overflow: hidden
}

.pm select {
    width: 100%;
    margin-bottom: 10px
}

.pm td.pm_head,.pm td.pm_list,.userstop td {
    border-bottom: 2px solid var(--bg2);
    padding: 12px 20px;
}

@media (max-width: 860px) {
    .pm_list.pm_from, .pm td:nth-child(3) {
        display: none;
    }
}

table.pm,table.userstop {
    width: 100%;
    margin-bottom: 0;
    font-size: 14px;
}

table.pm select {
    width: 175px
}

@media (max-width: 860px) {
    .pm-page tbody tr td:nth-child(1) {
        display: none;
    }
}