* {
    padding: 0;
    margin: 0;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    font-family: "Inter", sans-serif;
}

/* Стилі для хедера */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    margin-bottom: 4%;
    top: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 58px !important;
    margin-bottom: 3%;
    margin-top: 1%;
}


h2 {
    font-size: 40px !important;
    margin-bottom: 2%;
    margin-top: 6%;
}

h3 {
    font-size: 24px;
    margin-bottom: 1%;
    margin-top: 3%;
}

li {
    margin-bottom: 2%;
}

main {
    margin-top: 2%;
}

table {
    width: 100%;
    margin-top: 4%;
    margin-bottom: 5%;
    border-collapse: collapse;
    background-color: rgb(15, 15, 15);
    border-radius: 20px;
    font-size: 20px;
}

p {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 1%;
}

th,
td {
    padding: 20px;
    border: 1px solid #dddddd;
    text-align: left;
    border-radius: 20px;
}

th {
    background-color: #141414;

}

ul {
    margin: 0;
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 1%;
    padding-left: 20px;
    line-height: 30px;
}

ol {
    margin: 0;
    padding-left: 20px;
    line-height: 30px;
}


.logo {
    display: flex;
    align-items: center;
    padding: 10px;
}

.logo img {
    height: 54px;
    margin-right: 10px;
}

.project-name {
    font-size: 20px;
    color: #ffffff;
    /* Чорний текст назви */
    font-weight: bold;
}

/* Права частина хедера (посилання або пошук) */
.header-right {
    display: flex;
    align-items: center;
}

.header-right a {
    color: #888;
    /* Сірий текст */
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
}

.header-right a:hover {
    color: #000;
    /* Чорний текст при наведенні */
}

/* Стилі для блоку пошуку */
.search-box {
    display: flex;
    align-items: center;
    background-color: #1b1b1b;
    padding: 5px 10px;
    border-radius: 20px;
}

.search-box input {
    border: none;
    background: none;
    outline: none;
    padding: 5px;
    color: #555;
}

.search-box input::placeholder {
    color: #888;
    /* Сірий placeholder */
}

/* Підсвічування активного пункту */
.left-sidebar a {
    color: #434343;
    text-decoration: none;
    display: block;
    padding: 10px 0;
}

.left-sidebar a.active {
    color: #ffffff;
}

.right-sidebar {
    position: fixed;
    top: 70;
    left: 0px;
    height: 100%;
    font-size: 18px;
    line-height: 30px;
    border-top: none;
    padding: 20px;
    border-left: none;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.left-sidebar {
    position: fixed;
    right: 0px;
    border-top: none;
    padding: 20px;
    border-right: none;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.right-sidebar a {
    color: #434343;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.left-point.active {
    color: #ffffff;
}


/* Центральний блок з контентом */
.content {
    flex-grow: 1;
    padding-left: 5%;
    padding-right: 5%;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Правий сайдбар */

.flex-block {
    display: flex;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    /* Вирівнювання кнопок по різні сторони */
    margin-top: 20px;
    gap: 20%;
    margin-bottom: 10%;
    margin-top: 10%;
    /* Відступ від верхнього контенту */
}

.nav-buttons button {
    background-color: #00000000;
    width: 30%;
    border: none;
    color: white;
    padding: 20px 40px;
    border-top: 1px #fff solid;
    border-left: 1px #fff solid;
    border-right: 5px #fff solid;
    border-bottom: 5px #fff solid;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;

    /* Заокруглені краї */
}

.nav-buttons button:hover {
    background-color: #222222;
    /* Трохи темніший відтінок при наведенні */
}

.burger-menu {
    display: none;
}

.menu {
    display: none;
}

@media (max-width: 560px) {
    .burger-menu {
        display: block;
        flex-direction: column;
        cursor: pointer;
        margin-right: 4%;
        transition: all 0.3s ease-in-out;
    }

    .burger-menu .line {
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 4px 0;
        transition: all 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    }

    /* Коли бургер активний, лінії перетворюються на хрестик */
    .burger-menu.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        /* Плавний поворот */
        transition: all 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    }

    .burger-menu.active .line:nth-child(2) {
        opacity: 0;
        /* Зникнення другої лінії */
        transform: scale(0);
        /* Додано плавне зменшення */
        transition: all 0.3s ease-in-out;
    }

    .burger-menu.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        /* Плавний поворот */
        transition: all 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    }

    /* Анімація при натисканні */
    .burger-menu .line:nth-child(1),
    .burger-menu .line:nth-child(3) {
        transform-origin: center;
        /* Точка обертання в центрі лінії */
    }




    nav.menu {
        display: none;
        /* Сховати меню за замовчуванням */
        top: 100;
        /* Відстань від верху */
        left: 0;
        padding-left: 2%;
        right: 0;
        background-color: #33333300;
        border-bottom: #222222 solid 2px;
        color: #fff;
        transition: max-height 0.5s ease-in-out;
        /* Анімація висоти */
        overflow: hidden;
        /* Сховати вміст, який виходить за межі */
    }

    .menu.active {
        display: block;
        /* Показати меню, коли активне */
    }

    .menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .menu ul li {
        padding: 6px;
    }

    .menu ul li {
        color: #fff;
        text-decoration: none;
    }

    .menu a {
        color: #434343;
        text-decoration: none;
    }

    .right-sidebar {
        display: none;
    }

    .left-sidebar {
        display: none;
    }

    h1 {
        font-size: 42px !important;
        margin-bottom: 3%;
        margin-top: 10%;
    }

    h2 {
        font-size: 30px !important;
        margin-bottom: 6%;
        margin-top: 16%;
    }

    h3 {
        font-size: 20px;
        margin-bottom: -1%;
        margin-top: 6%;
    }

    li {
        margin-bottom: 2%;
    }

    p {
        font-size: 16px;
        line-height: 26px;
        margin-bottom: 1%;
    }

    .content {
        width: 94%;
    }

    ul {
        font-size: 14px;
        list-style: none;
        padding: 3px;
    }

    table li {
        font-size: 14px;
        line-height: 24px;
    }

    table {
        font-size: 14px;
        margin-top: 12%;
    }

    th,
    td {
        padding: 6px;
    }

    li {
        font-size: 16px;
    }

    ol {
        font-size: 14px;
        padding: 3px;
        list-style: none;
    }

    .nav-buttons button {
        font-size: 16px;
        width: 100%;
        padding: 16px 26px;
        text-align: center;
    }

    .nav-buttons {
        gap: 10%;
        margin-top: 32%;
    }

    nav li {
        font-size: 22px;
    }

    .menu.active {
        color: #ffffff;
    }

    .scroll-to-top {
        display: block !important;
    }

   

    .scroll-to-top {
        position: fixed;
        bottom: 20px;
        background-image: url('./img/right.png');
        background-size: cover;
        left: 44.4%;
        width: 50px;
        height: 50px;
        background-color: #000;
        color: #fff;
        border: none;
        border-radius: 50%;
        font-size: 24px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: opacity 0.3s ease-in-out;
        opacity: 0;
        /* Приховано за замовчуванням */
        pointer-events: none;
        /* Неактивна за замовчуванням */
    }

    .scroll-to-top.show {
        opacity: 1;
        pointer-events: auto;
        /* Кнопка стає активною при показі */
    }

    .scroll-to-top:hover {
        background-color: #333;
        /* Трохи світліший фон при наведенні */
    }
}

/* Коли меню активне, перетворюємо бургер на хрестик */
.burger-menu.active .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .line:nth-child(2) {
    opacity: 0;
    /* Приховуємо середню лінію */
}

.burger-menu.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.scroll-to-top {
    display: none;
}