 /*Color vars*/
:root {
    --dark-bg-color: #1B1E27;
    --dark-default-color: #0F1218;
    --dark-card-complete: #272E3D;
    --dark-card-review: #07080A;
    --dark-title-color: #6C7281;
    --dark-text-color: #707993;
    --dark-global-text-color: #A8ACB7;
    --dark-link-color: #00CEFF;
    --dark-card-title-color: #CBD9DB;
    --dark-xpoints-color: #00FFEA;
    --dark-button-color: #FFFFFF;
    --dark-button-bg-color: var(--dark-card-complete);
}


 /*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
    font-size: 16px;
    padding-top: 0px;
    background: #fff;
}

a {
    text-decoration: none !important;
}

.btn-default {
    text-decoration: none !important;
}

.alert-notice {
    margin-top: 10px;
}
.alert-hidden-info {
    color: #16a37a;
    border-color: #52b3a1;
    background-color: #FFFFFF;
}

#navbar-collapse .nav.navbar-nav {
    width: 86%;
}

#navbar-collapse > ul > li > a {
    margin-top: 15px;
}

.navbar-nav li {
    padding: 0 10px;
}

.navbar-nav > li > a {
    color: #fff;
}

.navbar li i {
    font-size: 20px;
}

.navbar {
    & .navbar-header {
        & .navbar-brand {
            width: 170px;
            font-weight: bold;
        }
    }
}

.nav-tabs > li > a:hover {
    border-color: blue blue blue;
    background: blue;
}

.nav-tabs > li > a .active {
    border-color: blue blue blue;
    background: blue;
}


p {
    line-height: 1.5;
}

/*
 * Global add-ons
 */

.sub-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
    display: none;
}

h1.heading {
    color: #777;
}

h3.heading {
    margin-top: 5px;
}

/* Top scores block */
.container {
    & > .top-score-block {
        border-top: none !important;
        border-bottom: none !important;
    }
}

.top-score-block {
    font-size: 22px;
    font-weight: bold;
    max-height: 2.5em;
    overflow: hidden;
    margin-top: 0;
}

.top-score-block h1 {
    display: inline-block;
}

.top-score-block .right-item {
    float: right;
    margin-left: 20px;
    margin-top: 25px;
}

.top-score {
    color: #57C9AA;
}

.top-level {
    color: #57A5E9;
}

/* Nav menu */
.navbar li.menu-right-item {
    float: right;
    margin-right: 10px;

    &.far-right {
        margin-right: 0 !important;
    }
}

.user_handle {
    font-size: 14px;
}

/* Top tasks menu */

.tasks-menu {
    color: #000;
    margin: 20px 0 40px;
    padding: 6px 15px;
    border-top: 1px solid #777;
    border-bottom: 1px solid #777;
}

.tasks-menu .task-menu-item {
    margin: 0 20px 0 0;
    display: inline-block;
}
.tasks-menu .task-menu-item.right {
    margin: 0;
    text-align: right;
}

.tasks-menu .task-menu-item a {
    color: inherit;
}

.tasks-menu .task-menu-item.active {
    font-weight: bold;
}

/* Top heading */

.heading > * {
    display: inline-block;
}

.heading > a,
.heading > span {
    margin: 10px 0 5px 0;
    float: right;
}
.heading > h1 {
    margin-top: 10px;
    margin-bottom: 20px;
}

.heading a {
    text-decoration: underline;
}

.heading > span > a {
    margin-top: 9px;
}

/* Tasks list */

.task_list > div {
    padding: 0 10px;
}

.task-item {
    border: 0;
    padding: 0;
    font-size: 14px;
    min-height: 360px;
    position: relative;
    margin-bottom: 20px;
    color: #666 !important;
    background-color: #eee;
    border-radius: 5px !important;
    overflow: hidden;

    & h4 {
        margin-top: 4px;
        margin-bottom: 5px;
        font-size: 16px;
        color: #666;
    }
    & .task_img {
        background: lightgrey;
        width: 100%;
        height: 153px;
        background-position: center;
        background-size: cover;
        position: relative;

        &  .easy-code {
            left: 18px;
            bottom: 2px;
            color: #fff;
            position: absolute;
            text-transform: uppercase;

            & a {
                color: inherit;
            }
        }
    }
    & .discord_role {
        background: gray;
        border-radius: 9px;
        color:#fff;
        margin: 3px 2px;
        display: inline-block;
        font-size: 10px;
        font-weight: bold;
        padding: 1px 7px 2px;
    }
}

/* Task statuses */

.declined {
    background-color: #ffebd6;
}

.review {
    background-color: #d6eaff;
}

.completed_task {
    background-color: #caf7c9;
}

.event {
    background-color: #000000;
    color: #fafafa !important;
}

.event h4 {
    color: #fafafa;
}

.event p {
    color: #aaa;
}

.event_img {
    background: lightgrey;
    width: 150px;
    height: 100px;
    border-radius: 5px;
    background-position: center;
    background-size: cover;
    float: left;
    margin-right: 15px;
    margin-bottom: 15px;
}

.task-bottom {
    width: 100%;
    bottom: 10px;
    padding: 0 17px;
    position: absolute;
}

.task-points {
    color: #57c9aa;
    font-size: 17px;
    padding-top: 3px;
    font-weight: bold;
    display: inline-block;
}

.task-bottom .bottom_access {
    width: 70%;
    float: right
}

.bottom_access input[type=button], .bottom_access input[type=submit] {
    width: 100%;
}

.bottom_access input.btn, .bottom_access input.btn:hover, .bottom_access input.btn:active, .bottom_access input.btn:visited {
    background-color: #57c9aa;
    border-color: #57c9aa;
    color: white;
}

.task-status-box {
    display: block;
    text-align: right;
    padding: 6px 0;
    margin-right: -3px;
}

.task_img_view {
    background: lightgrey;
    width: 100%;
    height: 202.50px;
    border-radius: 5px;
    background-position: center;
    background-size: cover;
    margin-bottom: 10px;
    position: relative;
}

.contract-content .alert {
    margin-bottom: 10px;
}

.user_status {
    font-size: 12px;
    font-weight: bold;
    font-style: italic;
}

.user_status_ok {
    color:green;
}


.edit_task {
    position: absolute;
    top: 0;
    left: 0px;
    color: black;
    padding: 0px;
    border-radius: 16px;
    z-index: 100;
}


.bottom_access {
    bottom: 7px;
}

.task-description {
    margin: 0 18px 8px 18px;
    height: 130px;
    font-size: 14px;
    max-height: 130px;
    overflow: hidden;
}

.task-tags {
    color: #19d;
    margin: 8px 18px 4px 18px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.task-tags .tag {
    display: inline-block;
    margin-right: 5px;
    padding: 3px 0 0 0;
}

.task-tags .tag a {
    color: inherit;
}

.event .task-tags .tag {
    color: #ccc;
}

.ship_user_table {
    font-size: 12px;
}



@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 51px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block;
        padding: 20px;
        overflow-x: hidden;
        overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
        background-color: #f5f5f5;
        border-right: 1px solid #eee;
    }
}

/* Sidebar navigation */
.nav-sidebar {
    margin-right: -21px; /* 20px padding + 1px border */
    margin-bottom: 20px;
    margin-left: -20px;
}

.nav-sidebar > li > a {
    padding-right: 20px;
    padding-left: 20px;
}

.nav-sidebar > .active > a {
    color: #fff;
    background-color: #428bca;
}

/*
 * Main content
 */

.main {
    padding-top: 70px;
}

@media (min-width: 768px) {
    .main {
        padding-right: 40px;
        padding-left: 40px;
    }
}

.main .page-header {
    margin-top: 0;
}

/*
 * Placeholder dashboard ideas
 */

.placeholders {
    margin-bottom: 30px;
    text-align: center;
}

.placeholders h4 {
    margin-bottom: 0;
}

.placeholder {
    margin-bottom: 20px;
}

.placeholder img {
    display: inline-block;
    border-radius: 50%;
}

.border_col {
    padding: 20px;
    border: 1px solid gray;
    margin: 10px;

}

.navbar-nav > li > a {
    font-size: 12px;
    color: #fff;
    margin-top: 10px;
    margin-bottom: 8px;
    padding: 1px 12px 1px 5px;
    background: none;
}

.navbar-nav > li > a:hover {
    background: none;
}

.nav-pills > li > a {
    color: #fff;
    white-space: nowrap;
    border-right: 1px solid #fecd00;
    padding: 1px 30px;
    border-radius: 0;
    text-transform: uppercase;
    background: none;
}

.nav-pills > li > a:hover {
    background: none;
}

.nav-pills > li > a:focus {
    background: none;
}

.nav > li > a:hover, .nav > li > a:focus {
    background: none;
}


.h1_top_index {
    color: #fff;
    font-size: 36px;
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 2px 3px black;
}

.span_top_index {
    color: #fff;
    font-size: 29px;
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 2px 3px black;
}

.span_top_index p {
    margin: 0;
}


.forma_index_start::-webkit-input-placeholder {
    color: #fff;
}

.forma_index_podpis {
    background: url('/images/back_text.png');
}

.forma_index_start::-moz-placeholder {
    color: #fff;
}

/* Firefox 19+ */
.forma_index_start::-moz-placeholder {
    color: #fff;
}

/* Firefox 18- */
.forma_index_start:-ms-input-placeholder {
    color: #fff;
}

.forma_index_podpis::-webkit-input-placeholder {
    color: #fff;
}

.forma_index_podpis::-moz-placeholder {
    color: #fff;
}

/* Firefox 19+ */
.forma_index_podpis::-moz-placeholder {
    color: #fff;
}

/* Firefox 18- */
.forma_index_podpis:-ms-input-placeholder {
    color: #fff;
}

.forma_index_podpis {
    padding-right: 5px;
}


.forma_index_start {
    background: url('/images/back_text.png');
    opacity: 2;
    border-radius: 40px;
    color: #fff;
    border: 0;
}

.preim {
    color: #fff;
    margin-top: 50px;

}

.preim h3 {
    text-align: center;
    font-size: 16px;
    text-transform: uppercase;
}

.preim p {
    font-size: 12px;
    text-align: center;
}

.preim .col-md-3 {
    height: 290px;
}

.btn-doma {
    background: #f5ca44;
    border-radius: 40px;
    color: black;
    padding: 5px 35px;
    margin-top: 20px;
    font-weight: bold;
    position: absolute;
    bottom: 10px;
    left: 50%;
    margin-left: -70px;
}

.dom_img {
    height: 320px;
}

.doma h3 {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: bold;
}

.doma p {
    text-align: left;
    margin: 5px 20px;

}

.doma .col-md-4 {
    height: 580px;
}

.plan_text {

    width: 340px;
    right: 50px;
    color: #fff;
    text-align: center;

}

.news h3 {
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
}

.news {
    font-size: 12px;

}

.bottom_block {
    color: #fff;
}

.bottom_block h3 {
    color: #f5ca44;
    margin: 0;
}


.kak {
    font-size: 13px;
}

.top_filtr {
    background: url('/images/top_filtr.png');
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

.list_tarif.nav-tabs > li > a {
    background-color: #fff;
    border-radius: 6px;
    text-transform: uppercase;
    color: black;
    /*font-weight: bold;*/
    font-size: 16px;
    padding: 3px 8px 3px 8px;
}


.list_tarif.nav-tabs > li.active > a {
    text-transform: uppercase;
    color: #fff;
    /*font-weight: bold;*/
    font-size: 16px;
    padding: 3px 12px 3px 8px;
    border: 0;
}

.list_tarif.nav-tabs > li.active > a:focus {
    color: #fff;
    border: 0;
}

.list_tarif.nav-tabs > li.active > a:hover {
    color: #fff;
    border: 0;
}

.list_tarif.nav-tabs > li.active {
    padding: 5px 8px 5px 8px;
    border: 0;

}

.list_tarif.nav-tabs > li {
    border: 0px;
    padding: 5px 8px 5px 8px;
}


.list_tarif.nav-tabs > li:hover {
    border: 0px;

}

.list_tarif.nav-tabs > li.active > a:hover {
    /*border:1px solid gray;*/
    color: #fff;
    border: 0;
}

.nav-tabs {
    border: 0;
}


.otsyv {
    width: 208px;
    height: 56px;
    background: url('/images/tablichka.png') no-repeat;
    padding: 17px 5px;
}

.navbar-inverse .navbar-brand {
    color: #fff;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.invoice_com_items > thead > tr > td {
    text-align: center;
}

.invoice_com_items > tbody > tr > td {
    text-align: center;
}

.navbar-inverse .navbar-nav > li > a {
    color: #fff;
}

.cron_item {
    font-size: 11px;
}

.img_preview_item {
    width: 200px;
    height: 200px;
    background-position: center;
    background-size: cover;
}

.task-text img {
    max-width: 100%;
}

.task-text blockquote {
    font-size: inherit;
    font-style: italic;
}

html,
body,
.wrapper {
    height: 100%;
}
.content {
    box-sizing: border-box;
    min-height: 80%;

}

.img_avatar_list_task {
    background-size: cover;
    width: 20px;
    height: 20px;
    margin: 0;
    border-radius: 10px;
    display: inline-block;
    background-color: gray;
    vertical-align: middle;
}

.img_avatar_list {
    background-size: cover;
    width: 45px;
    height: 45px;
    margin: 0 ;
    border-radius: 35px;
    display: inline-block;
    background-color: gray;
    vertical-align:middle;
    margin-right: 5px;
}

.img_user_avatar {
    background-size: cover;
    width: 30px;
    height: 30px;
    margin: 0;
    border-radius: 15px;
    display: inline-block;
    background-color: gray;
    vertical-align: middle;
}

.list_task {
    background: #BEBEBE 0% 0% no-repeat padding-box;
    padding: 2px 5px;
}

.list_task_active {
    background: #11A7D6;
    color: #fff;
}

#description-html, #hint-html, #conditions-html, #hidden_text-html, #test-html {
    min-height: 200px;
}

.task-tags .task-chain {
    float: right;
    color: white;
    font-size: 11px;
}

.task-chain-item {
    display: block;
    color: white;
    background-color: #bebebe;
    width: 20px;
    height: 20px;
    float: left;
    text-align: center;
    padding: 2px;
    margin: 0 0 0 1px;
}

.task-chain a {
    color: white;
}

.task-chain-done {
    background-color: #bebebe;
}

.task-chain-validation {
    background-color: #707070;
}

.task-chain-current {
    background-color: #11A7D6;
}

.task-chain-edge {
    display: block;
    float: left;
    width: 9px;
    height: 20px;
}

.task-chain-before {
    width: 13px;
    vertical-align: bottom;
    position: relative;
}

.task-chain-before .dot1 {
    width: 3px;
    height: 3px;
    display:block;
    position: absolute;
    margin: 17px 0 0 9px;
    background-color: #bebebe;
}

.task-chain-before .dot2 {
    width: 3px;
    height: 3px;
    display:block;
    position: absolute;
    margin: 17px 0 0 5px;
    background-color: #bebebe;
}

.task-chain-before .dot3 {
    width: 3px;
    height: 3px;
    display:block;
    position: absolute;
    margin: 17px 0 0 1px;
    background-color: #bebebe;
}

.small-block {
    float: left;
    width: 3px;
    height: 12px;
    margin: 4px 0 4px 1px;
    background-color: #707070;
}

.medium-block {
    float: left;
    width: 4px;
    height: 16px;
    margin: 2px 0 0 1px;
    background-color: #707070;
}

.task-chain-edge.last-available > .medium-block,
.task-chain-edge.last-available > .small-block {
    background-color: #11A7D6 !important;
}

/* Task chain on contract page adjustments */

.task-content-chain .task-chain {
    display: inline-block;
    font-size: 11px;
    margin-left: 10px;;
}

.task-content-chain {
    padding: 0;
    margin: 10px 0;
    vertical-align: middle;
}

.task-content-chain .sub-title {
    display: block;
    float: left;
    padding: 0;
}

p.user-task-status {
    & .completed {
        color: #07CEF8;
    }
    & .in-progress {
        color: #808080;
    }
}

.user_event {
    margin-bottom: 20px;

    & .avatar-small {
        display: inline-block;
        margin-bottom: 3px;
        border: 2px solid gray;
        border-radius: 30px;

        &.completed {
            border-color: #07CEF8;
        }
        &.in-progress {
            border-color: #808080;
        }
    }
}

.clearfix {
    clear: both;
}

.corp_logo {
    background-image: url("../design/img/EXPANSE_UNION_WHITE_50x50.png");
    background-repeat: no-repeat;
    -moz-background-size: cover;
    width: 50px;
    height: 50px;
    position: absolute;
    top:0;
    right: 5px;
}

/* Login page */
/* ========== */

.container:has(.admin-login-container) {
    height: 100%;
    display: grid;
}
.form-signin .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
    box-shadow: none;
}
.admin-login-container {
    height: 440px;
    max-height: 440px;
    width: 440px;
    max-width: 440px;
    margin: auto;
    margin-top: -200px;
    vertical-align: middle;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 17px;
    color: #1F1F1F;
}
.admin-login-container .login-logo {
    width: 210px;
    height: 204px;
    margin: auto;
}
.admin-login-container .logo-img {
    width: 208px;
    height: 202px;
}
.admin-login-container .discord-login-text {
    text-align: center;
    margin-top: 43px;
}
.admin-login-container .discord-login-text input[type="checkbox"] {
    display: none;
}
.admin-login-container .discord-auth-button {
    width: 208px;
    margin: 18px;
    font-size: 17px;
}
.admin-login-container .login-links {
    margin: 0 0 10px 0;
}
.admin-login-container .login-links,
.admin-login-container .login-links a {
    color: #A5A5A5;
    text-align: center;
}
.admin-login-container .login-links a:hover {
    color: #428bca;
}
.admin-login-container .telegram-code-input {
    display: inline;
    width: 100px;
    height: 33px;
    font-size: 15px;
}
.admin-login-container .telegram-submit-button {
    display: inline;
    height: 33px;
    width: 33px;
    font-size: 20px;
    margin: -3px 0 0 0;
    padding: 0;

    & i {
        vertical-align: -1px;
    }
}
.admin-login-container .telegram-auth {
    margin-top: 65px;
    text-align: center;
}
/* End Login Page */

/* Events Page */
.events-table tr:hover {
    background-color: #EEEEEE;
}
.event-buttons {
    width: 40px;
    padding: 4px 2px !important;
}
.event-buttons a {
    font-size: 20px;
}
/* End Events Page */

p.contract-roles {
    line-height: 0.7;
}

.discord_role {
    background: #808080;
    padding: 3px 10px 6px;
    border-radius: 9px;
    font-size: 12px;
    color:#FFFFFF;
    margin: 3px 2px;
    display: inline-block;
}

/* Временные стили пока не разберёмся со стилями бутстрапа */
.card-header {
    font-weight: bold;
    background-color: #EEEEEE;
}

.ph, .ph-fill {
    vertical-align: -0.2em;
}

.btn > i.ph,
.btn > i.ph-fill,
i.ph,
i.ph-fill {
    font-size: 20px;
}

.contract-logo {
    margin-bottom: 10px;
}

.message-flash-on-top {
    margin-top: 10px;
}

input[type="file"] {
    border: none;
}

.contract-photos-list .thumbnail {
    margin-bottom: 0;
}

.contract-photo {
    min-height: 160px;
    max-height: 160px;
}

.contract-photo img.thumbnail {
    max-height: 82px;
}

.contract-submit-body h1 {
    margin-top: 50px;
}

.contract-list .selected-row td {
    background: #DDDDDD;
    border-top: 1px solid #EEEEEE;
}

/*.main > h1:first-child,*/
.container > h1:first-child {
    margin-bottom: 20px;
    margin-top: 50px;
}
.container {
    & h1.contract-name {
        text-transform: none;
        font-size: 30px;
        font-weight: normal;
    }
}

.profile-info {
    margin: 25px auto 10px;

    & > div:has(h1) {
        padding-left: 0;
    }

    & > div:first-child > h1 {
        margin-bottom: 20px;
    }

    & h3 {
        margin: 0;
    }
    & .img_avatar_profile {
        float: none;
        width: 50px;
        height: 50px;
        margin: 10px auto 0;
        border: 2px solid var(--dark-default-color);
        background-color: var(--dark-default-color);
    }

    & .profile-handle {
        margin-top: 17px;
    }

    & .user-status {
        font-size: 18px;
        font-weight: normal;
        margin-left: 10px;
        font-style: italic;
        color: var(--dark-link-color);
    }

    & .top-score-block {
        border-bottom: 1px solid #AAAAAA;
        max-height: inherit;
        margin-bottom: 14px;
        padding: 0 0 8px;

        & .score-item {
            margin-top: 17px;
        }
    }

    & .right-item {
        margin-top: -5px;
    }

    & .middle-block {
        padding: 0;

        & .roles-label {
            font-size: 18px;
        }
    }

    & .right-block {
        padding-right: 0;
    }

    & .setting-row {
        display: flex;
        max-height: 30px;
        align-items: end;
        justify-content: end;
        margin-bottom: 10px;

        & .setting-note {
            align-self: center;
            font-size: 18px;
            padding: 5px;
            margin-right: 3px;
            text-align: right;
            line-height: 0.6em;
            white-space: nowrap;
            overflow: hidden;

            &.avatar {
                font-size: 14px;
            }
        }

        &  .setting-icon {
            align-self: center;
            width: 30px;
            min-width: 30px;
            height: 30px;
            background-size: 30px;
            background-position: center center;

            &.rsi-icon {
                background-image: url("/media/rsi-icon.png");
            }

            &.discord-icon {
                background-image: url("/media/discord-icon-filled.svg");
            }

            &.telegram-icon {
                background-image: url("/media/telegram-icon-filled.svg");
            }

            &.avatar-icon {
                background-image: url("/media/user-profile-icon-filled.svg");
            }
        }

        & .setting-action {
            align-self: center;
            min-width: 32px;
            margin-left: 10px;
            vertical-align: middle;
        }
    }

    & .discord_role {
        border-radius: 13px;
    }
}

/* Editor Styles */
.CodeMirror-code, .editor-preview {
    & h1,
    & .cm-header.cm-header-1 {
        text-transform: uppercase;
        font-size: 22px;
        font-weight: bold;
    }

    & blockquote {
        font-size: 14px;
        font-style: italic;
    }

}

.editor-preview {
    & img {
        max-width: 100%;
    }
}

.article-like-page > p > img {
    max-width: 100%;
}
.article-like-page li {
    margin-top: 10px;
}

.contract-direction-select option:disabled {
    font-weight: bold;
    color: #777777;
}

.footer {
    width: 100%;
    height: auto;
    color: #848484;
    margin-top: 30px;
    background-color: #12111B;
    padding-bottom: 90px;
    text-align: center;

    & .footer-content {
        max-width: 702px;
        margin: 40px auto 0;

        & img {
            width: 94px;
            height: 94px;
            margin-bottom: 16px;
        }
        & p {
            margin: 0 0 20px;

            &.fan-site {
                margin: 0 0 40px;
            }
        }
        & a {
            color: #808080;
        }
    }
}

body > .container:first-child {
    min-height: 80%;
}

details {
    & > summary {
        cursor: pointer;

        & h3 {
            display: inline-block;
            & i {
                font-size: 24px;
                vertical-align: -2px !important;
            }
        }
        & h3.open-icon {
            display: inline-block;
        }
        & h3.close-icon {
            display: none;
        }
    }
}
details[open] {
    & > summary {
        & h3.open-icon {
            display: none;
        }
        & h3.close-icon {
            display: inline-block;
        }
    }
}

/*.photo-paste-text-input {*/
/*    width: auto !important;*/
/*    float: left !important;*/
/*    margin-right: 4px !important;*/
/*}*/
/*.photo-paste-text-copy-button {*/
/*    margin-top: 1px;*/
/*}*/

#globalThemeToggle {
    color: var(--dark-text-color) !important;
}

/* Dark mode */
html.dark {

    & .alert-info {
        color: #75b2d0;
        border-color: #35656f;
        background-color: #243c57;
    }
    & .alert-success {
        color: #8bc48c;
        border-color: #235b41;
        background-color: #173c23;
    }
    & .alert-warning {
        color: #c6ab7b;
        border-color: #6c4c0b;
        background-color: #2f2805;
    }
    & .alert-danger {
        color: #bd577e;
        border-color: #652134;
        background-color: #38161d;
    }
    & .alert-hidden-info {
        background-color: #0f1218;
    }
    & .alert-notice {
        color: var(--dark-text-color);
        border-color: var(--dark-card-complete);
        background-color: var(--dark-default-color);
    }

    & audio, video {
        width: 100%
    }

    & .btn {
        color: var(--dark-button-color);
    }
    & .btn-link {
        color: var(--dark-button-color) !important;
    }
    & .btn-default {
        color: var(--dark-button-color);
        border-color: var(--dark-button-bg-color);
        background-color: var(--dark-button-bg-color);
    }
    & .btn-secondary {
        /*color: var(--dark-button-color);*/
        /*border-color: var(--dark-button-bg-color);*/
        background-color: var(--dark-card-complete);
    }
    & .modal-content {
        background-color: var(--dark-card-complete);
    }

    & .fancybox-skin {
        background-color: var(--dark-button-bg-color) !important;
    }

    & body {
        color: var(--dark-global-text-color) !important;
        background-color: var(--dark-bg-color) !important;

        & .navbar {
            border-bottom: 1px solid var(--dark-card-complete);
        }
        & .navbar-inverse {
            background-color: var(--dark-default-color) !important;
        }
        & .navbar-inverse .navbar-nav > li > a {
            color: #e8e6e3 !important;
        }
        ul.dropdown-menu {
            background-color: var(--dark-bg-color) !important;

            & li > a {
                color: var(--dark-global-text-color) !important;
            }
        }

        & .top-score-block {
            border-top: 1px solid var(--dark-default-color);
            border-bottom: 1px solid var(--dark-card-complete);

            & h2 {
                /*color: var(--dark-global-text-color) !important;*/
            }
            & .top-score {
                color: var(--dark-xpoints-color) !important;
            }
            & .top-level {
                color: var(--dark-link-color) !important;
            }
        }

        & .btn:hover {
            color: #DDDDDD !important;
        }

        & .tasks-menu {
            border-top-color: var(--dark-default-color);
            border-bottom-color: var(--dark-card-complete);

            & .task-menu-item {
                &.active {
                    background: none !important;
                }
                & a {
                    color: #EEEEEE !important;
                }
            }
        }

        & .heading .btn-link {
            color: var(--dark-title-color);
        }

        .table-striped>tbody>tr:nth-of-type(odd) {
            background-color: var(--dark-bg-color);
        }
        .table-striped>tbody>tr:hover {
            background-color: var(--dark-card-complete);
        }

        .img_user_avatar {
            background-color: var(--dark-card-complete);
        }

        & .task_list {
            & .task-item {
                color: var(--dark-text-color) !important;
                background-color: var(--dark-default-color) !important;

                & h4 {
                    color: var(--dark-card-title-color) !important;
                }
                &.completed_task {
                    background-color: var(--dark-card-complete) !important;
                }
                &.declined {
                    background-color: #2C0800 !important;
                }
                &.review {
                    background-color: var(--dark-card-review) !important;
                }
                & .task-bottom .btn-primary {
                    background-color: var(--dark-card-complete) !important;
                }
                & .task-points {
                    color: var(--dark-xpoints-color) !important;
                }

                & .task_img {
                    background-color: #0B0B14;
                }
            }
        }

        & .task-text blockquote {
            border-color: var(--dark-global-text-color) !important;
        }

        .EasyMDEContainer {
            & .editor-toolbar {
                border-color: #3c4144;
            }

            & .editor-preview {
                background-color: #2b2f31;
            }
        }
        & .CodeMirror,
        & .form-control {
            background-color: #2b2f31;
            border-color: #3c4144;
            color: #c8c3bc;
        }
        & .task-tags .tag {
            color: var(--dark-text-color);
        }

        & .task-chain {
            & a {
                color: var(--dark-button-color);
            }
        }
        & .task-chain-item {
            background-color: #181E2F !important;

            &.task-chain-current {
                background-color: var(--dark-card-complete) !important;
            }
        }
        & .task-chain-edge {
            & .medium-block, & .small-block {
                background-color: var(--dark-card-complete) !important;
            }
        }

        & .panel {
            background-color: #2b2f31;
        }
        & .panel-default {
            border-color: #3c4144;
        }

        & .contract-list .selected-row td {
            background-color: #2b2f31 !important;
        }

        & .thumbnail {
            border-color: #3a3e41 !important;
            background-color: #181a1b !important;
        }

        & .table tr td {
            border-color: #3a3e41 !important;
        }
        & .table tr th {
            border-bottom: 2px solid #3a3e41 !important;
        }

        & hr {
            border-color: #35393b !important;
        }

        & h1, & h2, & h3, & h4, & h5, & h6 {
            color: var(--dark-title-color) !important;
        }

        & a {
            color: var(--dark-link-color);
        }

        & .footer {
            color: var(--dark-text-color) !important;
            background-color: var(--dark-default-color) !important;

            & .footer-content {
                & a {
                    color: inherit;
                }
            }
        }

        & .admin-login-container {
            color: var(--dark-global-text-color);

            & .login-links a {
                color: var(--dark-link-color) !important;
            }
        }
    }
}

