* {
    --error_color: #A53B00;
    --accept_color: #177708;
    --info_color: #67C9EC;
    --main_background_color: #111111;
    --sub_background_color: #1B1B1B;
    --border_color: #333333;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 400px;
}

.form_description {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form_description > span {
    line-height: 23px;
    font-size: 16px;

}

.content_title {
    font-size: 25px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
    color: #FFFFFF;
    margin-bottom: 10px;

}

.content_title span,
.content_title span a {
    font-size: 18px;
    line-height: 22px;
    color: #AEAEAE;
    text-decoration: none;
}

.content_header {

}

.content_subtitle {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
    font-size: 20px;
    line-height: 22px;
    max-width: 329px;
    margin-bottom: 10px;
    font-weight: 500;
}

.content_subtitle .help-info {
    width: 25px;
    height: 25px;
}

.content_subtitle .help-info img,
.content_subtitle .help-error img {
    width: 25px;
    height: 25px;
}

.content_subtitle * {
    font-size: 16px;
    line-height: 23px;
}

.form_fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    width: 100%;
}

.form_fields.grid {
    display: grid;
    grid-template-columns: max-content max-content;

}

.form_block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 450px;
    width: 100%;
}

.form_fields.grid > .form_block {
    width: 335px;
}

.form_fields__element {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.input_field {
    background-color: #1B1B1B;
    border: none;
    border-radius: 8px;
    height: 40px;
    width: 250px;
    padding-left: 13px;
    padding-right: 30px;
    overflow-x: hidden;
    -webkit-appearance: none;
}

.input_field[type='date'] {
    padding-right: 10px;
}

.input_field:user-invalid {
    border: 1px solid red;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    display: none;
}

.input_field::placeholder {
    color: #6A6A6A;
    font-size: 18px;
}

.input_field.error {
    border: 1px solid var(--error_color);
}

.form_fields__element input[type='button'],
.form_fields__element input[type='input'] {
    background-color: #111111;
    border: 2px solid #333333;
    border-radius: 8px;
    height: 40px;
    width: 138px;
    padding: 0 12px;

    color: #FFFFFF;
    font-size: 16px;
    transition: .3s;
}

.form_fields__element input[type='button']:hover {
    border: 2px solid #FFFFFF;
}

.form_fields__element input[type='button'].disabled {
    border: 2px solid #333333;
    color: #6A6A6A;
}

.form_fields__input {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.form_fields__input.wrap {
    flex-wrap: wrap;
}


.form_fields__input.token, .form_fields__input.token .input_field {
    max-width: 355px;
}

.input_field {
    max-width: 248px;
    text-overflow: ellipsis;
}

.input_field.textarea {
    max-width: 100%;
    width: 100%;
    height: 150px;
    padding: 10px;
}

.token-img {
    margin-left: -50px;
    width: 24px;
    height: 12px;
    display: none;
}

button.short {
    width: 104px;
}

button:hover {
    border: 2px solid #FFFFFF;
    cursor: pointer;
}


button:disabled {
    border: 2px solid #333333;
    color: #6A6A6A;
    cursor: default;
}

.form_fields__input img.show {
    display: block;
}

.form_fields__element_name {
    align-items: center;
    gap: 5px;
    color: #AEAEAE;
    font-size: 16px;
    line-height: 20px;
}

.form_fields__element_name .link {
    font-size: 16px;
}


.form_fields__element_message {
    font-size: 16px;
}

.form_fields__element_message.error {
    color: var(--error_color);
}

.form_fields__element_message.accept {
    color: var(--accept_color);
}

.form_fields__element_button {

}

.form_fields__element_slider {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.form_fields__element_slider .form_fields__element_name {
    max-width: 330px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 36px;
    height: 20px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
    width: 36px;
    height: 20px;
    background-color: #1b1b1b;
    border: 1px solid white;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    bottom: 2px;
    left: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #67C9EC;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}


.token_block {
    display: flex;
    flex-direction: column;
    gap: 30px;
    border: 2px solid #3F3F3F;
    border-radius: 15px;
    padding: 20px;
    max-width: 417px;
    width: 100%;
}

.token_block.amount {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px;
    justify-content: space-between;
}

.token_block.link {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    margin-bottom: 20px;
    transition: .3s ease;
}

.token_block.link:hover {
    border: 2px solid #FFFFFF;
    cursor: pointer;
}

.token_block.card {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
    row-gap: 10px;
}

.token_block__row {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.token_block__row.end {
    justify-content: flex-end;
    gap: 10px;
}

.token_block input[type=text] {
    width: 355px;
}

.token_info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    max-width: 400px;
}

.token_info h2 {
    font-size: 25px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
    color: #FFFFFF;
}


.question {
    position: relative;
    display: flex;
    justify-content: center;
}

.question-text {
    margin-top: 2px;
    color: #111111;
    background-color: var(--info_color);
    border-radius: 43px;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    padding: 3px 10px;
    cursor: pointer;
}

*:hover > .tooltip,
*:hover > .tooltip:before,
.tooltip:hover {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.tooltip {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    top: 37px;
    background: #1B1B1B;
    min-width: 250px;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 17px 15px;
    visibility: hidden;
    opacity: 0;
    z-index: 100;
    transition: opacity .3s ease-in-out, visibility 0s linear .3s;
}

/*.tooltip:before {*/
/*    z-index: 1;*/
/*    content: '';*/
/*    width: 10px;*/
/*    height: 10px;*/
/*    position: absolute;*/
/*    left: calc(50% - 5px);*/
/*    top: -10px;*/
/*    border-left: 5px solid transparent;*/
/*    border-right: 5px solid transparent;*/
/*    border-bottom: 8px solid #333333;*/
/*    visibility: hidden;*/
/*    opacity: 0;*/
/*    transition: opacity .3s ease-in-out, visibility 0s linear .3s*/
/*}*/

ul.tooltip-text {
    padding-left: 18px;
}

.tooltip-text {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
}

.tooltip-text a {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--info_color);
    text-decoration: none;
}

.tooltip-button {
    align-self: flex-end;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    cursor: pointer;
    text-align: right;

    color: #67C9EC;
}

.help-info {
    position: relative;
    display: inline;
    justify-content: center;
}

.help-info-ico {
    height: 18px;
    margin-bottom: -4px;
}

.help-error {
    position: relative;
    display: inline;
    justify-content: center;
}

.help-error > .tooltip {
    border: 1px solid #A53B00;
}

.help-error > .tooltip:before {
    border-bottom: 8px solid #A53B00;
}

.help-error-ico {
    height: 18px;
    margin-bottom: -3px;
}

.error-message {
    color: var(--error_color);
}

.error-block {
    border: 2px solid var(--error_color);
}

.error-message.hide {
    display: none;
}

.toggler {
    transition: .3s ease;
    transform-box: view-box;
}

.toggler.show {
    transform: rotate(180deg);
}


.header__subgroup {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
}

.button-element > a {
    text-decoration-line: underline;
    text-decoration-color: #111111;
    transition: .2s ease;
}

.button-element:hover > a {
    text-decoration-color: #F7F7F7;
}


.button-element {
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.button-element .avatar {
    width: 30px;
    border-radius: 50%;
}

.news-dropdown {
    display: flex;
    gap: 50px;
    flex-direction: column;

    position: absolute;
    width: 335px;
    top: 40px;
    padding: 20px;
    right: 0;
    background: var(--sub_background_color);
    border-radius: 10px;
    border: 1px solid var(--border_color);
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    transition: .3s ease;

    cursor: unset;
}

@media (max-width: 560px) {
    .news-dropdown {
        left: 0;
        right: unset;
    }
}


.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 720px;
}

.news-list .news-element {
    border: 2px solid #272727;
    border-radius: 10px;
    padding: 16px 20px;
}

.news-element {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.create_datetime {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: #AEAEAE;
}


.news-title {
    font-size: 18px;
    display: block;
}

.news-title.accept {
    color: var(--accept_color);
}

.news-title.error {
    color: var(--error_color);
}

.news-text {
    font-size: 16px;
    display: block;
    max-height: 72px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    color: #AEAEAE;
    font-size: 14px;
}

.news-show-button {
    font-size: 14px;
    color: #AEAEAE;
    text-decoration-line: underline;
    text-decoration-color: #AEAEAE;
}

.news-block-footer {
    display: flex;
    justify-content: space-between;
}


.profile-dropdown {
    display: flex;
    gap: 16px;
    flex-direction: column;

    position: absolute;
    width: 170px;
    top: 45px;
    padding: 20px;
    right: 5px;
    background: var(--sub_background_color);
    border-radius: 10px;
    border: 1px solid var(--border_color);
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    transition: .3s ease;

    cursor: unset;
}

.profile-dropdown.show {
    visibility: visible;
    opacity: 1;
}

.profile-dropdown-element {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 7px;
    cursor: pointer;
}

.profile-dropdown-element:hover .profile-dropdown-title {
    border-bottom: 1px solid white;
}

.profile-dropdown-title {
    text-decoration: none;
    text-align: right;
    border-bottom: 1px solid #1B1B1B;
    transition: border .3s ease;
}


.history_manage {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.history_manage select {
    background: #1B1B1B;
    height: 40px;
    width: 248px;
    padding-left: 8px;
    border-radius: 8px;
    line-height: 22px;
    border: 1px solid #1B1B1B;
}


.history_list {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    gap: 10px;
}

.song-element {
    border: 2px solid #272727;
    border-radius: 10px;
    display: grid;
    grid-template:
        "A B C"
        "A D D";
    grid-template-columns: 120px auto auto;
    column-gap: 18px;
    row-gap: 5px;
    padding: 8px;
    min-height: 106px;
    max-width: 600px;
}

.song-element.hide {
    display: none;
}

.song-element.no-image {
    grid-template:
        "B C"
        "D D";
    grid-template-columns: auto 60px;
    padding-left: 15px;
}

.song-element .song-name {
    grid-area: B;
    overflow-wrap: anywhere;
}

.song-element .song-name > a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    margin-top: 5px;
    text-decoration: none;
}

.song-element .song-img {
    grid-area: A;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 90px;
}

.song-element .song-img .vid-time {
    position: absolute;
    right: 5px;
    bottom: 5px;

    background: #000000;
    padding: 4px;
    font-size: 14px;
    line-height: 14px;
}


.song-element .song-img > img {
    width: 120px;
    height: 90px;
    border-radius: 5px;
}

.song-element .song-img .preview-img {
    width: 120px;
    height: 90px;
    border-radius: 5px;
}

.song-element .song-sub-info {
    grid-area: D;
    display: grid;
    padding-bottom: 5px;
    row-gap: 5px;
    position: relative;
    grid-template-columns: 1fr;
}

.song-initiator {
    justify-self: start;
}

.song-sum {
    justify-self: start;
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.song-date, .song-initiator, .song-sum > span, .donate-initiator, .fee, .song-sum > span .fee {
    font-size: 14px;
    line-height: 17px;
    color: #AEAEAE;
    overflow-wrap: anywhere;
}

.song-date {
    text-align: right;
}

.song-sum > span {
    color: #FFD700;
}

.song-element .coin-type {
    width: 25px;
    height: 25px;
    grid-area: C;
    padding: 3px;
}

.song-element .coin-type.donate {
    background-image: url("/static/images/player/money_coin.svg");
}

.song-element .coin-type.reward {
    background-image: url("/static/images/player/channel_coin.svg");
}


.filter_block {
    max-width: 330px;
    background: #1B1B1B;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 41px;
    align-items: flex-start;
    align-self: flex-start;
}

.select {
    position: relative;
    width: 248px;
}

.select > .ico {
    position: absolute;
    top: calc(50% - 3px);
    right: 10px;
    transition: transform .3s;
}

.select > input {
    width: 248px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #1B1B1B;
    background: #1B1B1B;
    font-size: 18px;
    line-height: 22px;
    padding: 13px;
    cursor: pointer;
}

.select.dark > input {
    background-color: #111111;
}

.select > input.active ~ .select_variants {
    height: fit-content;
    z-index: 1;
}

.select .select_variants {
    width: 248px;
    border-radius: 8px;
    margin-top: 10px;
    background: #1B1B1B;
    height: 0;
    overflow: hidden;
    position: absolute;
    transition: height 0.3s;
    cursor: pointer;
    overflow-y: auto;
    max-height: 200px;
}

.select.dark .select_variants {
    background-color: #111111;
}

.select > input.active + .ico {
    transform: rotate(180deg);
}

.select .select_variant {
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.select .select_variant input {
    appearance: none;
    margin: 13px 5px;
}

.select .select_variant input:checked + label {
    color: #FFFFFF;
}


.select .select_variant label {
    color: #AEAEAE;
    width: 100%;
    cursor: pointer;
    line-height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    white-space: nowrap;
}

.select .select_variant:hover label {
    color: #FFFFFF;
}


@media (max-width: 600px) {
    .song-element {
        grid-template:
            "B B B"
            "A D D"
            "A C C";
        grid-template-columns: 120px auto 30px;
    }

    .song-element.no-image {
        grid-template:
            "B C"
            "D D";
        grid-template-columns: auto 30px;
    }

    .song-element .song-date {
        text-align: left;
    }

    .song-element .song-sub-info {
        flex-direction: column;
        row-gap: 10px;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: center;
    }

    .history_manage {
        flex-direction: column;
        row-gap: 30px;
    }

    .history_manage input[type='button'] {
        margin-left: 0;
        width: 107px;

    }

    .token_block {
        padding: 15px 17px;
    }

    .token_block__row {
        flex-direction: column;
        row-gap: 10px;
        align-items: flex-start;
    }

    .token_block__row.end {
        align-items: flex-end;
        gap: 10px;
    }
}


.custom-checkbox {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.custom-checkbox + label {
    display: inline-flex;
    align-items: center;
    user-select: none;
    font-size: 16px;
    cursor: pointer;
}

.custom-checkbox + label::before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 1px solid #adb5bd;
    border-radius: 5px;
    margin-right: 12px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
    cursor: pointer;
}

.custom-checkbox:checked + label::before {
    border-color: #67C9EC;
    background-color: #1B1B1B;
    background-image: url("/static/ico/checkbox.svg");
    width: 25px;
}

.custom-radio {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

/* для элемента label связанного с .custom-radio */
.custom-radio + label {
    display: inline-flex;
    align-items: center;
    user-select: none;
}

/* создание в label псевдоэлемента  before со следующими стилями */
.custom-radio + label::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid #FFFFFF;
    border-radius: 50%;
    margin-right: 0.5em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
}

.custom-radio:checked + label::before {
    border-color: #67C9EC;
    background-color: #1B1B1B;
    background-image: url("/static/ico/radioButton.svg");
}

.filter_rows {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.short_input {
    width: 118px;
    height: 40px;
    background: #111111;
    border-radius: 8px;
    padding: 0 13px;
    border: none;
    -webkit-appearance: none;
}

.short_input_block {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    display: none;
}

.reward_name {
    color: #67C9EC;
}

#words-array {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-height: 215px;
    overflow-y: scroll;
}

#deleteAllWords {
    font-size: 14px;
    cursor: pointer;
    color: #AEAEAE;
    width: fit-content;
}

#deleteAllWords:hover {
    color: white;
}

.word-block {
    background: #1B1B1B;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 8px;
    cursor: default;
}

.word-block span {
    font-size: 12px;
    line-height: 15px;
    word-break: break-all;
}

.word-block img {
    width: 10px;
    transition: .3s;
    opacity: 0.5;
    cursor: pointer;
}

.word-block img:hover {
    opacity: 1;
}


.list-block {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: #1B1B1B;
    border-radius: 15px;
    max-width: 400px;
    min-width: 300px;
    padding: 35px;
}

.list-header {
    font-size: 16px;
    line-height: 20px;
    color: #AEAEAE;
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.list-item {
    font-size: 18px;
    line-height: 22px;
    color: #FFFFFF;
    width: fit-content;
    border-bottom: 2px solid #1B1B1B;
    transition: border .2s ease;
    cursor: pointer;
    text-decoration: none;
}

.list-item:hover,
.list-item.current {
    border-bottom: 2px solid #67C9EC;
}


.pagination {
    margin: 20px auto;
    cursor: default;
}

.pagination .button {

}

#profile-button:hover #profile-block {
    visibility: visible;
    opacity: 1;
}

#news-button.active #news-block {
    visibility: visible;
    opacity: 1;
}

#news-button.active .toggler {
    rotate: 180deg;
}


.table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.table-element {
    display: grid;
    grid-column-gap: 10px;
    grid-row-gap: 5px;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 10px;
}


.table-element.donate {
    grid-template:
        "A D"
        "C D"
        "B D";
    grid-template-columns: 240px auto;
}

.table-element.withdrawal {
    grid-template:
        "A B C";
    justify-content: space-around;
    justify-items: center;
    grid-template-columns: 1fr 1fr 1fr;
}

.table-head {
    background: #252525;
}

.table-A {
    grid-area: A;
}

.table-B {
    grid-area: B;
}

.table-C {
    grid-area: C;
}

.table-D {
    grid-area: D;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.amount {
    color: #009a1b;
}

.yt-icon {
    width: 20px;
}

.donate-amount {
    font-size: 45px;
    color: var(--info_color);
    font-weight: 600;
}

.percent {
    color: var(--info_color)
}


.ban_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ban_body {
    max-width: 900px;
    width: 100%;
    background: #1B1B1B;
    border-radius: 10px;
    padding: 30px;
}

.ban_message {
    font-size: 24px;
    line-height: 32px;
    text-align: center;
}

.ban_submessage {
    font-size: 18px;
    line-height: 32px;
    text-align: center;
}

.server_error {
    text-align: center;
    font-size: 72px;
}


.popup {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: #131313dd;
    left: 0;
    top: 0;
    z-index: 100;
    display: flex;
    opacity: 0;
    align-items: center;
    justify-content: center;
    transition: .3s;
    visibility: hidden;
}

.popup.show {
    opacity: 1;
    visibility: visible;
}


.popup_content {
    padding: 20px;
    max-width: 600px;
    height: min-content;
    background: #1b1b1b;
    z-index: 200;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 50px;
    position: relative;
}

.popup_buttons {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.popup_buttons.v {
    flex-direction: column;
    width: 100%;
    gap: 20px;
}

.popup_accept {
    background: var(--info_color);
    color: black;
    font-weight: 500;
}

.popup_text {
    font-size: 24px;
}

.popup_subtext {
    text-align: center;
}

.link *, .link {
    color: #67C9EC;
    text-decoration: none;
}


textarea {
    resize: none;
}


.rule-block,
.add-rule-block {
    display: flex;
    justify-content: center;
    border: 1px solid #3F3F3F;
    border-radius: 8px;
    background: #1C1C1C;
    padding: 10px;
    cursor: pointer;
    width: 250px;
    transition: .3s;
}

.add-rule-block {
    background: transparent;
    border: 1px solid #3F3F3F;
    opacity: .7;
}

.add-rule-block:hover {
    opacity: 1;
}


.rule-block:hover {
    border: 1px solid white;
}

.rule-block.active {
    border: 1px solid #67C9EC;
}


.rules-list {
    padding: 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    column-gap: 10px;
    align-content: flex-start;
    justify-content: center;
}


.rule-form {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: start;
}

.rule-form > .form_fields {
    display: none;
}

.rule-form > span {
    display: inline;
}

.rule-form.show {
    justify-content: flex-start;
}

.rule-form.show > .form_fields {
    display: flex;
    max-width: 600px;
}

.rule-form.show > span {
    display: none;
}


.rules-settings {
    display: grid;
    grid-template-columns: 3fr 7fr;
    border: 2px solid #3F3F3F;
    border-radius: 8px;
}


.dialog_popup {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #131313dd;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 101;
    transition: .3s;
}

/* Popup style  target */

.dialog_popup.target {
    opacity: 1;
    visibility: visible;
    overflow-y: scroll;
}

.popup__body {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;

}

.popup__content {
    background-color: #1B1B1B;
    border-radius: 20px;
    color: #000;
    max-width: 900px;
    width: 95%;
    padding: 30px;
    position: relative;
}

.popup__content .search-container {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    margin-bottom: 20px;
    gap: 20px;
}

.popup__content .search-container .input_field {
    background: #111111;
}

img {
    cursor: pointer;

}

.popup_close {
    position: absolute;
    right: 10px;
    top: 0px;
    height: 20px;
    cursor: pointer;
    color: white;
    transition: color .3s;
}

.popup_close:hover {
    color: #c8c8c8;
}

.popup__close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
    cursor: pointer;
}

.popup__text {
    margin: 20px 0;
}


#gifContainer {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-flow: dense;
    overflow-y: auto;
}

#gifContainer.empty {
    display: block;
}

.vertical {
    grid-column-end: span 1;
}

.horizontal {
    grid-column-end: span 2;
}

.gif {
    align-items: center;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    position: relative;
    justify-content: center;

}

.gif img {
    min-width: 100%;
    min-height: 100%;
    flex-shrink: 0;
}


.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 85%;
    height: 6px;
    outline: none;
    opacity: 0.8;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 100px;
}

.range-slider:hover {
    opacity: 1;
}

.range .range-label {
    margin-top: 0px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #67C9EC;
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid white;
}

.range-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #67C9EC;
    cursor: pointer;
}

.text_preview {
    width: 100%;
    max-width: 100%;
    min-height: 150px;
    padding: 10px;
    background-color: white;
    background-image: linear-gradient(45deg, #c4c4c4 25%, transparent 25%, transparent 74%, #c4c4c4 75%, #c4c4c4),
    linear-gradient(45deg, #c4c4c4 25%, transparent 25%, transparent 74%, #c4c4c4 75%, #c4c4c4);
    background-size: 10px 10px;
    background-position: 0 0, 15px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.text_preview span {
    font-weight: bold;
    text-align: center;
    word-break: break-word;
}

details {
    width: 100%;
}

.details-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

details summary {
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-style: dotted;
    color: white;
    cursor: pointer;
    font-size: 16px;
    line-height: 20px;
}

details[open] summary {
    padding-bottom: 10px;
}


#fileName:hover {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-style: dotted;
}

#fileName:hover:after {
    content: ' X';
    cursor: pointer;
}

.audio-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.audio-block .button-block {
    display: grid;
    grid-template-columns: 1fr 3fr 4fr;
    justify-content: flex-start;
    align-items: center;
}

.audio-block .button-block a {
    justify-self: flex-end;
}


.button:disabled .help-info {
    display: unset;
}

.button .help-info {
    display: none;
}


.file-upload {
    background: url("/static/ico/upload.svg") no-repeat;
}


.moderator_add_block {
    display: flex;
    flex-direction: row;
    align-items: end;
    gap: 10px;
}

.moderator_add_block .form_fields__element {
    width: initial;
}


.moderator_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.moderator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 600px;
    padding: 10px;
    align-items: center;
    gap: 5px;
}

.moderator_buttons {
    justify-self: end;
    display: flex;
    gap: 10px;
}

.blocked_track {
    display: flex;
    gap: 5px;
    max-width: 800px;
    padding: 5px;
    border: 2px solid #272727;
    border-radius: 10px;
}

.blocked_track div {
    display: flex;
    gap: 5px;
    flex-direction: column;
    justify-content: space-around;
}

.blocked_track .track_title {
    text-decoration: none;
    line-height: 22px;
    max-height: 44px;
    overflow: hidden;
}

.blocked_obj {
    padding: 5px 0px;
    display: grid;
    justify-items: start;
    grid-template-columns: minmax(min-content, 300px) minmax(100px, 1fr);
    align-items: center;
}

.blocked_obj.accounts {
    grid-template-columns: min-content minmax(min-content, 200px) minmax(100px, 1fr);
    column-gap: 5px;
}

.blocked_obj.accounts img {
    width: 25px;
}

.blocked_obj.users {
    grid-template-columns: min-content minmax(min-content, 300px) minmax(100px, 1fr);
    column-gap: 5px;
}

.blocked_obj.users img {
    width: 25px;
}

.blocked_obj a {
    line-break: anywhere;
    text-decoration: none;
}

.message-ico {
    width: 20px;
    filter: brightness(0) saturate(100%) invert(78%) sepia(47%) saturate(1889%) hue-rotate(1deg) brightness(107%) contrast(103%);
}

.account-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account-element {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border: 2px solid var(--border_color);
    padding: 5px;
    border-radius: 8px;
    max-width: 417px;
    transition: 0.3s;
}

.account-element-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-element-logo img {
    width: 35px;
}

.account-element-name {

}

.account-element-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 75px;
    justify-content: flex-end;
}

.goal-widgets-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.goal-widget {
    display: grid;
    align-items: center;
    justify-items: center;
    grid-template:
    "A B D"
    "C B D";
    grid-template-columns: 1fr 1fr 140px;
    border: 2px solid var(--border_color);
    padding: 5px;
    border-radius: 8px;
    max-width: 700px;
    transition: 0.3s;
}

.goal-widget.paused {
    opacity: .5;
}

.goal-widget:hover {
    border: 2px solid white;
}

.goal-widget-name {
    grid-area: A;
    justify-self: start;
}

.goal-widget-amount {
    grid-area: B;
    color: #AEAEAE;
    font-size: 16px;
    line-height: 20px;
    justify-self: start;
}

.goal-widget-end-date {
    grid-area: C;
    color: #AEAEAE;
    font-size: 16px;
    line-height: 20px;
    justify-self: start;
}

.goal-widget-buttons {
    grid-area: D;
    justify-self: end;
}


.notification {
    position: fixed;
    bottom: 20px;
    right: -400px;

    max-width: 380px;

    background-color: #3F3F3F;
    padding: 10px;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: 30px auto;
    transition: .5s ease-out;
    z-index: 5000;
}

.notification.show {
    right: 10px;
}

.notification-type {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.notification.good .notification-type {
    background-image: url("/static/ico/ok.svg");
}

.notification.bad .notification-type {
    background-image: url("/static/ico/error-ico.svg");
}



@media (max-width: 919px) {

    .goal-widget {
        grid-template:
        "A A A"
        "B B D"
        "C C D";
        justify-items: start;
    }

    .rules-settings {
        grid-template-columns: none;
    }

    #gifContainer {
        grid-template-columns: repeat(2, 1fr);
    }

    .audio-block .button-block {
        grid-template-columns: 1fr 2fr;
        row-gap: 20px;
    }

    .audio-block .button-block:last-child {
        grid-column-end: span 2;
    }

    .token_info {
        flex-wrap: wrap;
    }
}

@media (max-width: 1063px) {
    .rules-settings {
        grid-template-columns: none;
    }

    #gifContainer {
        grid-template-columns: repeat(2, 1fr);
    }

    .audio-block .button-block {
        grid-template-columns: 1fr 2fr;
        row-gap: 20px;
    }

    .audio-block .button-block:last-child {
        grid-column-end: span 2
    }

    .form_fields.grid {
        display: flex;
        flex-direction: column;
    }

    .moderator {
        grid-template-columns:  1fr;
        row-gap: 10px;
    }

    .moderator_permissions {
        flex-wrap: wrap;
    }

    .moderator_add_block {
        flex-direction: column;
        align-items: start;
    }
}

@media (min-width: 920px) {
}


@media (max-width: 1200px) {
}

.horizontal-bar {
    display: flex;
    flex-wrap: wrap;
}

.horizontal-bar-link {
    text-decoration: none;
    border-bottom: 2px solid #252525;
    padding: 15px 25px;
    font-size: 18px;
    text-align: center;
    flex-grow: 1.5;
    transition: .3s;
}

.horizontal-bar-link:hover, .horizontal-bar-link.active {
    border-bottom: 2px solid var(--info_color);
}

.content_description {
    line-height: 24px;
    font-weight: 300;
}

.auth-button {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 0px;
    text-align: center;
    line-height: 20px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    transition: .3s ;
    cursor: pointer;
    text-decoration: none;
}


.vk-button {
    background-color: #0077FF;
}

.vk-button:hover {
    background-color: #0071F2;
}

.twitch-button {
    color: white;
    gap: 5px;
    background-color: rgb(145, 70, 255);
}

.twitch-button img {
    width: 25px;
}

.twitch-button:hover {
    background-color: rgb(145,70,255, .7)
}

.vkpl-button {
    gap: 5px;
    color: white;
    background-color: #0077FF;
}

.vkpl-button img {
    width: 29px;
}

.vkpl-button:hover {
    background-color: #0077ffba;
}