body {
    background-color: #141414;
    overflow-x: hidden;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding-top: 70px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/static/img/bg.png");
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    z-index: -1;
    transform: scale(1.1); /* Запобігає білим краям при розмитті */
}

body.main-page-view {
    background: transparent !important;
    padding-top: 0;
}

body.main-page-view::before {
    display: none;
}

button {
    background: linear-gradient(to right, #FFA600, #FFBB00);
    width: 90%;
    height: 45px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: black;
    /* Додано для видимості тексту на кнопці */
}

h1,
h2 {
    margin: 20px 0;
}

p {
    margin: 10px 0;
}

a {
    text-decoration: none;
    color: white;
}

iframe {
    width: 100%;
    border: none;
    min-height: 100px;
    display: block;
}

/* Лоадер */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #141414;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    --grad: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: 
        var(--grad) top/8px 8px no-repeat,
        conic-gradient(#0000 30%,#ffa516);
    -webkit-mask: var(--grad);
    mask: var(--grad);
    animation: l13 1s infinite linear;
}

@keyframes l13 {
    100% {
        transform: rotate(1turn)
    }
}

/* Стилі для хедера (Flexbox) */
header {
    padding: 10px;
    background-color: #161616;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    /* Розносить лого і меню */
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.logo-container img {
    height: 40px;
    width: auto;
    display: block;
}

/* Стилі для горизонтальної навігаційної панелі на великих екранах */
.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    /* Горизонтальне меню */
    gap: 20px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #FFA600;
}

/* Приховуємо кнопку гамбургера на великих екранах за замовчуванням */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.menu-toggle i {
    display: flex;
    align-self: start;
}

footer {
    margin: 0;
    padding: 40px 0;
    background-color: #161616;
    box-sizing: border-box;
    width: 100%;
}

footer .social {
    text-align: center;
    padding-bottom: 25px;
    font-size: 24px;
    text-decoration: none;
}

footer .social a {
    border: 1px solid #ccc;
    border-radius: 30%;
    width: 40px;
    height: 40px;
    line-height: 38px;
    display: inline-block;
    text-align: center;
    margin: 0 6px;
    opacity: 0.75;
}

footer .social a:hover {
    opacity: 1.0;
}

footer .social .fa-telegram {
    color: #29a0dc;
}

footer .social .fa-youtube {
    color: #ff0000;
}

footer .social .fa-instagram {
    color: #e1306c;
}

footer .copyright {
    margin-top: 5px;
    text-align: center;
    font-size: 13px;
    color: #aaa;
}

@media (max-width: 768px) {

    /* Показуємо гамбургер-кнопку */
    .menu-toggle {
        display: block;
    }

    /* Приховуємо горизонтальне меню за замовчуванням */
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        /* Висота хедера + невеликий відступ */
        left: 0;
        width: 100%;
        background-color: #161616;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        text-align: left;
    }

    /* Меню, коли воно активне (показується) */
    .nav-menu.active {
        display: block;
    }

    /* Робимо список вертикальним */
    .nav-menu ul {
        flex-direction: column;
        padding: 10px 5%;
    }

    .nav-menu li {
        margin: 0;
    }

    /* Стилізуємо посилання як блок, щоб вони займали всю ширину */
    .nav-menu a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #222;
    }

    /* Прибираємо нижню межу на останньому елементі */
    .nav-menu li:last-child a {
        border-bottom: none;
    }
}
