html {
    scroll-behavior: smooth;
}

.container {
    display: flex;
    flex-direction: column;
    /* Обеспечивает вертикальное выравнивание элементов внутри контейнера, если требуется */
    /* Центрирует элементы по горизонтали */
    justify-content: center;
    /* Центрирует элементы по вертикали (если высота контейнера задана) */
    width: 100%;
    /* Устанавливает ширину контейнера на 100% от родительского элемента */
    padding: 0 15px;
    /* Добавляет отступы по бокам для предотвращения налипания на края экрана */
    box-sizing: border-box;

}


.elements {
    display: flex;
    flex-wrap: wrap;
    /* Позволяет карточкам переноситься на следующую строку */
    justify-content: space-between;
    /* Центрирует карточки по горизонтали */
    margin: 0 8rem 0 2rem;
}

.item1 {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 220px;
    width: 220px;
    padding: 1rem;
    box-shadow: 0px 0px 9px 2px rgba(34, 60, 80, 0.17);
    margin: 0.8rem;
    border-radius: 10px;
    background-color: white;
    transition: all 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}


.item1:hover {
    color: #000;
    transform: scale(1.05)
}

/* 
.item1:hover {
    transform: scale(1.1);
    background: rgb(255,255,255);
    background: linear-gradient(54deg, rgba(255,255,255,1) 0%, rgba(138,255,228,1) 49%, rgba(105,255,220,1) 100%);
} */

.item1 i {
    font-size: 2em;
    margin-bottom: 2rem;
    color: #000;
}

.item1 p {
    font-size: 1.1rem;
}

.item1 a {
    text-decoration: none;
    outline: none;
    color: #000;
}


.left_block,
.main_block {
    padding: 0.5rem 1.5rem;
    background-color: white;
    box-shadow: 0px 0px 8px 0px rgba(34, 60, 80, 0.26);
    overflow-x: hidden;
}

.left_block {
    max-width: px;
    max-height: 400px;
    margin-right: 1rem;
}

.main_block {
    max-height: 100%;
    width: 65%;
}



.left_block,
.main_block {
    border-radius: 1rem;
}



.custom-scroll {
    scrollbar-width: thin;
    /* толщина скролла */
    scrollbar-color: #0952af #fff;
    /* цвет ползунка и фона */
}

.main_block {
    font-size: 1.3rem;
}

.main_block h2 {
    text-align: center;
    margin-bottom: 1.1rem;
    color: #0056b3;
}

.main_block p {
    text-align: justify;
    padding-left: 1rem;
    text-indent: 20px;
}

.main_block a,
.main_block p a {
    text-decoration: none;
    color: #65afff;
}

.chapter-list h1 {
    font-size: 1.3rem;
    text-transform: uppercase;
    text-align: center;
    color: black;
}

.chapter-list h2 {
    font-size: 1rem;
    text-transform: uppercase;
    text-align: center;
    color: white;
}

.chapter-list ul li {
    /* margin-left: 1rem; */
    text-align: center;
}



.chapter-list ul,
li {
    list-style: none;
}

.subchapter-list li a {
    text-transform: uppercase;
    font-size: 1rem;
    text-decoration: none;
    color: white;
}


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




.accordion-header {
    margin: 0;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
}

.subchapter-list {
    list-style-type: none;
    padding: 0;
    /* Initially hide subchapters */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.subchapter-list li {
    padding: 10px;
    border-top: 2px solid #ddd;
}

.accordion.active .subchapter-list {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
    display: block;
    background-color: #0c6ff1;
    /* Show subchapters when active */
}

.accordion.active .subchapter-list:last-child {
    border-radius: 5px;
}

.pagination_block {
    text-align: center;
    margin-bottom: 1rem;
}

.pagination_block a {
    text-decoration: none;
    color: #fff;
    background-color: #0952af;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1.1rem;
}

.prev_or_next_subchapter_pagination {
    margin-top: 2rem;

}

.prev_or_next_subchapter_pagination a {
    border-radius: 5px;
    padding: 5px 10px;
    color: #fff;
    text-decoration: none;
    background-color: #0056b3;
    box-shadow: 0px 0px 9px 2px rgba(34, 60, 80, 0.17);
    margin-left: 1rem;
    margin-right: 1rem;
}





.accordion {
    width: 100%;
    max-width: 400px;
    margin: 1rem auto;
    border-radius: 5px;
    overflow: hidden;
    font-family: "Oswald";
}

.accordion h1 {
    text-align: center;
    color: #0056b3;
    margin-top: 0;
}

.accordion-list,
.nested-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.accordion-list>li {
    border-bottom: 1px solid #ccc;
}


.accordion-list>li:last-child {
    border-bottom: none;
}

.accordion-toggle {
    font-family: "Oswald";
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    outline: none;
    position: relative;
}

.accordion-toggle:before {
    content: "-";
    position: absolute;
    left: -20px;
}

.nested-list {
    display: none;
    padding-left: 20px;
}

.nested-list li {
    padding: 5px 0;
    font-size: 1rem;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

.nested-list li:last-child {
    border-bottom: none;
}

.accordion-toggle.active+.nested-list {
    display: block;
}

.accordion-toggle:hover {
    background-color: #e6e6e6;
}


.accordion-list button {
    text-transform: uppercase;
    text-align: left;
}

.nested-list li a {
    text-decoration: none;
    color: black;
    text-transform: uppercase;
    margin-left: 1rem;
}


.custom-accordion .accordion-button {
    background-color: #007bff;
    color: white;
    padding: 10px;
    cursor: pointer;
    border: none;
    text-align: left;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.custom-accordion .accordion-button:hover {
    background-color: #0056b3;
}

.custom-accordion .accordion-header {
    margin: 0;
}

.custom-accordion .accordion-content {
    padding: 10px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-top: none;
}

.custom-accordion .accordion-body {
    padding: 15px;
    background-color: white;
}




.accordion-btn {
    font-family: "Oswald";
    color: #0056b3;
    background-color: #fff;
    cursor: pointer;
    text-align: center;
    border: none;
    outline: none;
    font-weight: 500;
    font-size: 1.2rem;
}


.panel {
    padding: 0 10px;
    margin: -1rem 0 0 0.5rem;
    font-size: 1.1rem;
    background-color: white;
    display: none;
}

.panel a {
    text-decoration: none;
    font-weight: 500;
    color: #65afff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.1rem;
}

img {
    display: flex;
    margin: 0 auto;
}


table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background-color: #f2f2f2;
    font-size: 1.1rem;
}

td {
    border: 1px solid #ddd;
    font-size: 1.1rem;
}

td span {
    display: block;
    text-align: right;
}

.buttons {
    display: flex;
    /* width: 100%; */
}

.two-buttons {
    justify-content: space-between;
}

.left-button {
    justify-content: flex-start;
}

.right-button {
    justify-content: flex-end;
}

.pagination-numbers {
    display: inline-flex;
    justify-content: center;
    gap: 5px;
    font-size: 1.1rem;
}

.two-buttons .pagination-numbers {
    justify-content: space-between;
}

.centered {
    justify-content: center;
    /* Центрирование номеров страниц */
    display: flex;
}

.pagination-numbers a {
    padding: 5px 10px;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.current-page {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border-radius: 3px;
    border: 1px solid #007bff;
}



.nested-list a.active {
    background-color: #acd1ff;
}




/* Стили для мобильных устройств */
@media (max-width:768px) {
    .accordion-main-toggle {
        display: block; /* Показываем заголовок аккордеона на мобильных */
    }

    .burger-menu {
        display: block; /* Показываем бургер-меню на мобильных */
    }

    .elements {
        margin: 0;
        justify-content: center;
    }

    .left_block, .main_block {
        border-radius: 0;
    }

    .left_block {
        margin-right: 0;
        margin-bottom: 3rem;
    }

    .main_block {
        width: 100%;
    }
}