﻿h1 {
    font-size: 1.75rem !important;
}

h2 {
    font-size: 1.5rem !important;
}

h3 {
    font-size: 1.3rem !important;
}

h4 {
    font-size: 1.2rem !important;
}

h5 {
    font-size: 1.15rem !important;
}

h5 {
    font-size: 1.1rem !important;
}

/* Set padding to keep content from hitting the edges */
.inline-block {
    display: inline-block;
}

.display-none {
    display: none !important;
}

.bd-callout {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #eee;
    border-left-width: .25rem;
    border-radius: .25rem;
}

.btn-outline-none {
    outline: none !important;
    box-shadow: none !important;
}

.brand-link {
    background: none !important;
    background-color: transparent !important;
    color: #fff !important;
    text-decoration: none !important;
}

.cursor {
    cursor: pointer;
}

.bold {
    font-weight: bold;
}

.gray {
    color: #aaaaaa;
}

.text-donate {
    color: #e45f5f !important;
}

.donate a {
    color: #ffd800 !important;
}

    .donate a:hover {
        color: #ffff88 !important;
    }

.donate-example {
    border-bottom: 1px dotted #5cb85c;
    cursor: pointer;
    color: #5cb85c;
    margin-right: 0.6em;
}

.update-info, .update-info a {
    color: #ffd800 !important;
}

.update-info a {
text-decoration: underline;
}

.update-info a:hover {
    color: #ffff88 !important;
}

.update-info-version {
    margin-left: 7px;
}

.update-info-normal {
    display: flex;
}

.update-info-short {
    display: none;
}

.question_link {
    display: inline-block;
    padding: 0.5rem;
    margin: 0.1rem;
    width: 3.5rem;
    text-align: center;
}

.question_link:hover {
    background-color: #428bca;
    color: #ffffff;
}

#question-state-legend .badge {
    font-size: 0.8rem;
}

#question_pager .pager {
    list-style: none;
}

.bg-danger2 {
    color: #ffffff;
}

.bg-warning2 {
    color: #ffffff;
}

.bg-success2 {
    color: #ffffff;
}

.bg-info2 {
    color: #ffffff;
}

.bg-not-approved {
    color: #ffffff;
}

.bg-approved {
    color: #ffffff;
}

.bg-in-process {
    color: #ffffff;
}

.bg-different {
    color: #ffffff;
}

.bg-dispute {
    color: #ffffff;
}

.text-pseudo-wrong {
    color: darkslateblue;
}

.bg-pseudo-success, .list-group-item-pseudo-success {
    box-shadow: inset 4px 0 0 0 slateblue;
    border-radius: 0 !important
}

.legend > div {
    margin-bottom: 1px;
    line-height: 30px;
}

.legend-item-success {
    color: #00a28a;
    width: 30px;
    height: 30px;
    text-align: center;
}

.legend-item-pseudo-success {
    color: slateblue;
    width: 30px;
    height: 30px;
    text-align: center;
}

#test-qrcode {
    margin-bottom: 10px;
}

#test-url {
    display: inline-block !important;
}

#answers-block .radio {
    margin-bottom: 1.0em;
    padding: 5px;
}

#answers-block .radio-success {
    border-radius: 4px;
    background-color: #dff0d8;
    color: #00a28a;
}

#answers-block .radio-mistake {
    border-radius: 4px;
    background-color: indianred;
    color: white;
}

#test-control-buttons {
    margin-bottom: 2em;
}

#btn-commit-question, #btn-view-answer {
    margin-top: 1em;
}

.result-block {
    font-size: 200%;
    margin-bottom: 30px;
}

.result-stat-block {
    font-size: 120%;
    width: inherit;
}

#search-results li {
    margin-bottom: 1.5em;
}

#search-results .highlight {
    background-color: #ffff88;
    display: inline !important;
}

.validation-summary-errors ul {
    list-style-type: none;
    padding: 0;
}

ol.multi-level {
    counter-reset: section;
    list-style: none;
    padding-left: 0;
}

    ol.multi-level > li > h2 {
        font-size: 1.5em; /* Соответствует h2 */
        font-weight: bold;
        margin: 0; /* Убирает стандартные отступы заголовка */
        padding-left: 1.5em; /* Отступ для номера */
        position: relative;
        margin-bottom: 0.5em;
    }

        ol.multi-level > li > h2::before {
            content: counter(section) ". ";
            counter-increment: section;
            position: absolute;
            left: 0;
            top: 0;
        }

    ol.multi-level > li:last-child {
        margin-bottom: 1.4em;
    }

    /* Стили для вложенных списков (второй уровень) */
    ol.multi-level ol {
        counter-reset: subsection;
    }

        ol.multi-level ol li::before {
            content: counter(section) "." counter(subsection) " ";
            counter-increment: subsection;
            margin-right: 0.6em;
        }

        /* Стили для третьего уровня */
        ol.multi-level ol ol {
            counter-reset: subsubsection;
        }

            ol.multi-level ol ol li::before {
                content: counter(section) "." counter(subsection) "." counter(subsubsection) " ";
                counter-increment: subsubsection;
            }

.site-version {
    font-size: 0.8rem !important;
}

@media print {
    body {
        -webkit-print-color-adjust: exact !important;
    }

    #answers-block .list-group-item-success {
        background-color: #dff0d8 !important;
        color: #00a28a !important;
    }

    #answers-block .list-group-item-pseudo-success {
        background-color: lavender !important;
        color: darkslateblue !important;
    }
}

@media (max-width: 1280px) {
    .update-info-normal {
        display: none;
    }

    .update-info-short {
        display: flex;
    }
}

@media (max-width: 1000px) {
    .donate-text {
        display: none;
    }
}

@media (max-width: 767px) {
    .donate-text {
        display: inline-block;
    }
}

@media (max-width: 576px) {
    .btn-label {
        display: none;
    }
}