main > .container {
    padding: 70px 15px 20px;
}
main > .container-fluid {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.параметри2 {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    max-width: 600px;
    margin: 20px auto;
}

.параметри2 dt {
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

.параметри2 dd {
    margin: 0;
    padding: 5px 0 10px 20px;
    color: #555;
}

.параметри2 .тег {
    font-family: monospace;
    background-color: #eee;
    padding: 2px 4px;
    border-radius: 3px;
}

.параметри2 .значення {
    font-style: italic;
    color: #007BFF;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #4CAF50;
    color: white;
    position: sticky;
    top: 0;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

@media (max-width: 600px) {
    table, th, td {
        display: block;
        width: 100%;
    }

    th, td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    th::before, td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 10px;
        font-weight: bold;
        text-align: left;
    }

    th:last-child, td:last-child {
        border-bottom: 2px solid #4CAF50;
    }
}

dl {
            max-width: 800px;
            margin: 20px auto;
            background: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        dl {
            margin: 0;
        }
        dt {width: 200px}
        dt, dd {
            margin: 0;
            padding: 10px 0;
        }

        dt {
            font-weight: bold;
            color: #333;
            margin-top: 20px;
        }

        dd {
            color: #555;
            margin-left: 20px;
        }

        dt::after {
            content: ":";
            margin-right: 10px;
        }

        dt, dd {
            display: inline;
        }

        dt::before {
            content: "\A";
            white-space: pre;
        }

        @media (max-width: 600px) {
            dl {
                padding: 10px;
            }

            dt, dd {
                display: block;
                margin: 0 0 10px 0;
            }

            dt::after {
                margin-right: 0;
            }

            dt::before {
                content: "";
                white-space: normal;
            }
        }
        .active {
    font-weight: bold;
    color: #4CAF50;
}
        .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .tags span {
            display: inline-block;
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: bold;
            color: #fff;
        }

        .html {
            background-color: #e44d26; /* HTML5 кольори */
        }

        .css {
            background-color: #264de4; /* CSS3 кольори */
        }

        .так {
            background-color: #4CAF50; /* Зелені для позитивного результату */
        }

        .ні {
            background-color: #f44336; /* Червоні для негативного результату */
        }

        .tags span::before {
            content: attr(data-label) ": ";
            font-weight: normal;
            color: #000;
        }


.related-articles {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.related-articles li {
    padding: 5px 10px;
    margin-bottom: 0;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.related-articles li a {
    text-decoration: none;
    color: #333;
}

/*.related-articles li:hover {
    background-color: #e9e9e9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}*/

/*.related-articles li.active {
    background-color: #4CAF50;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.related-articles li.active a {
    color: white;
}*/

ul {
    padding: 0;
}

/* Адаптивні стилі */
@media (max-width: 768px) {
    .page-content {
        padding: 15px;
    }

    .related-articles li {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .page-content {
        padding: 10px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .related-articles li {
        padding: 6px 10px;
        font-size: 12px;
    }
}
.faq-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.faq-section h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.faq-list {
    list-style: none;
    padding: 0;
}

.faq-list li {
    margin-bottom: 15px;
}

.faq-list li strong {
    display: block;
    font-size: 1.2em;
    margin-bottom: 5px;
    cursor: pointer;
}

.faq-list li .faq-answer {
    display: none;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .main-content {
        width: 100%;
        padding: 10px;
    }

    .faq-section h2 {
        font-size: 1.5em;
    }

    .faq-list li strong {
        font-size: 1.1em;
    }
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.article-list li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.article-list li a:hover {
    color: #007bff;
}


.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list li {
    padding: 15px 20px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.article-list li:hover {
    background-color: #f1f3f5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-list li a {
    text-decoration: none;
    color: #007bff;
    font-weight: 600;
    transition: color 0.3s ease;
}

.article-list li a:hover {
    color: #0056b3;
}

.sidebar {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.sidebar h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.no-padding {
    padding: 0 !important;
    margin: 0 !important;
}

/* Адаптивні стилі */
@media (max-width: 768px) {
    .page-content {
        padding: 15px;
    }

    .article-list li {
        padding: 12px 15px;
        font-size: 14px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.3em;
    }
}

@media (max-width: 576px) {
    .page-content {
        padding: 10px;
    }

    .article-list li {
        padding: 10px 12px;
        font-size: 12px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.2em;
    }
}

/* Основні стилі для footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Стилі для контейнера всередині footer */
footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Стилі для посилань у footer */
footer a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

footer a:hover {
    color: #3498db;
}

/* Стилі для логотипу */
footer .logo {
    margin-bottom: 10px;
}

/* Стилі для соціальних іконок */
footer .social-icons {
    margin-top: 10px;
}

footer .social-icons a {
    margin: 0 5px;
    display: inline-block;
    transition: transform 0.3s;
}

footer .social-icons a:hover {
    transform: scale(1.1);
}

/* Стилі для нижньої частини з копірайтом */
footer .footer-bottom {
    margin-top: 20px;
    font-size: 12px;
    color: #95a5a6;
}

/* Адаптивні стилі */
@media (max-width: 768px) {
    footer .container {
        flex-direction: column;
    }

    footer a {
        margin: 5px 0;
    }
}


.section {
    background-color: #fff;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section h2 {
    margin-top: 0;
/*    color: #007BFF;*/
}

.tag-list {
    list-style: none;
    padding: 0;
}

.tag-list li {
    margin-bottom: 10px;
}

.tag-list a {
    text-decoration: none;
    color: #007BFF;
}

.tag-list a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
/*    color: #333;*/
/*    text-align: center;*/
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

h2 {
/*    font-size: 2em;*/
    margin-bottom: 15px;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

ul.article-list {
    list-style-type: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

ul.article-list li {
    background: #fff;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

ul.article-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

ul.article-list li a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    font-size: 1.1em;
}

ul.article-list li a:hover {
    text-decoration: underline;
}

ul.article-list li::before {
/*    content: '•';*/
    color: #007bff;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.page-body {
    background: #fff;
    /* padding: 20px; */
    margin: 20px auto;
    border-radius: 10px;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
    /* max-width: 800px; */
}

.code-example {
    background: #272822;
    color: #f8f8f2;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.code-example code {
    display: block;
    white-space: pre;
}


.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0 0 20px;
    list-style: none;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #007bff;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.sidebar {
    background: #fff;
    border-right: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    max-height: calc(100vh - 200px);
    overflow: scroll;
}

.sidebar h2 {
    font-size: 1.25em;
    margin-bottom: 15px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
/*    margin: 10px 0;*/
}

.sidebar ul li a {
    text-decoration: none;
    color: #007bff;
    display: block;
    padding: 0px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar ul li a:hover,
.sidebar ul li.active a {
/*    background-color: #007bff;*/
/*    color: #fff;*/
}

.main-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.page-body p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.page-body h3 {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #007bff;
}

.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.page-body table th,
.page-body table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.page-body table th {
/*    background-color: #f8f8f8;*/
}

.page-body pre {
    background: #272822;
    color: #f8f8f2;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.faq-section {
    margin-top: 30px;
}

.faq-section h2 {
    font-size: 1.75em;
    margin-bottom: 20px;
    color: #333;
}

.faq-list {
    list-style-type: none;
    padding: 0;
}

.faq-list li {
    margin-bottom: 15px;
}

.faq-list li strong {
    display: block;
    font-size: 1.2em;
    color: #007bff;
}

.faq-list li p {
    margin: 5px 0 0 20px;
    font-size: 1em;
    line-height: 1.5;
}

.more {
    font-size: 1.1em;
    margin-top: 20px;
}

.more a {
    color: #007bff;
    text-decoration: none;
}

.more a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .sidebar {
        border-right: none;
        border-bottom: 1px solid #ddd;
        margin-bottom: 20px;
    }

    .main-content {
        margin-top: 20px;
        padding: 0;
        box-shadow: none;
    }
    .section {
        padding: 0;
        box-shadow: none;
    }

}

.sidebar ul h3 {
    font-size: 16px;
    padding: 10px;
}

.sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 15px;
    max-height: 85vh;
    overflow-y: auto;
}

.sidebar h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #343a40;
    text-align: center;
}

.sidebar h3 {
    font-size: 1.25em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #495057;
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 1;
    padding-top: 15px;
    padding-bottom: 5px;
}

.related-articles {
    list-style: none;
    padding: 0;
}

.related-articles li {
/*    margin-bottom: 10px;*/
}

.related-articles a {
    text-decoration: none;
    color: #007bff;
    font-size: 1em;
    display: block;
    padding: 5px 10px;
    border-radius: 4px;
}

.related-articles a:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

.related-articles a code {
    background-color: #e9ecef;
    padding: 2px 4px;
    border-radius: 4px;
}

.related-articles .active a {
    font-weight: bold;
    color: #212529;
    background-color: #e9ecef;
}

.no-padding {
    padding: 0;
}

.sticky {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
}