:root {
    --color-bg-dark: #181818;
    --color-bg-light: #f5f5f5;
}

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth; /* Плавный скролл */
}

/* Стили для скроллбара в Webkit-браузерах (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px; /* Ширина вертикальной полосы прокрутки */
    height: 12px; /* Высота горизонтальной полосы прокрутки */
}

/* Стили для трека скроллбара */
::-webkit-scrollbar-track {
    background: rgb(33, 30, 30); /* Цвет фона трека */
}

/* Стили для самой полосы прокрутки */
::-webkit-scrollbar-thumb {
    background: #888; /* Цвет полосы прокрутки */
    border-radius: 10px; /* Скругление углов полосы */
    transition: background 0.3s ease; /* Плавное изменение цвета */
}

/* Стили для полосы прокрутки при наведении */
::-webkit-scrollbar-thumb:hover {
    background: #555; /* Цвет полосы при наведении */
}

body {
    background: #f4f4f4;
    color: #333;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* Блок заголовка */
.hero {
    transition: background-image 0.9s ease, filter 0.9s ease; /* Плавный переход для изменения фона */
    box-shadow: inset 0 0 400px rgba(0, 0, 0, 0.5); /* Для виньетки */
    color: white;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.video-background-container {
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.video-background-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    object-position: center;
    object-fit: cover;
}

.hero .container {
    position: absolute;
    z-index: 10;
    width: 800px;
    bottom: 100px;
}

/* Контейнер для боковых стрелок */
.hero-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 10;
}

/* Заголовок и текст */
.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.65);
}

.hero p {
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.5em;
    max-width: 1000px;
    color: rgb(255, 255, 255);
    text-align: left;
}

/* Кнопка-стрелка вниз */
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: white;
    text-decoration: none;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}


/* Блок заголовка */
.next-section {
    color: #000000;
    height: 100vh; /* Заполняем весь экран */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 80px 20px;
    background: white;
}

.next-section h2 {
    font-size: 32px;
    color: white;
}

.games {
    text-align: center;
    align-items: center;
    padding: 100px 20px;
    background-color: var(--color-bg-dark);
}

.games h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: white;
}

.game-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.game {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1300px;
    margin: 0 auto;
}

.game img {
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.game-info {
    max-width: 600px;
    text-align: left;
}

.game-info ul, li {
    color: white;
}

.game h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: white;
}

.game p {
    font-size: 1em;
    color: white;
}

.reverse {
    flex-direction: row-reverse;
}

footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    font-family: Arial, sans-serif;
    margin-bottom: 0;
}

.footer-container {
    max-width: 1200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px;
}

.footer-contact,
.footer-other {
    width: 45%;
}

.footer-contact h3,
.footer-other h3 {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    bottom: 10px;
}

.footer-contact p {
    margin: 20px 0 10px;
}

.footer-other ul {
    list-style-type: none;
    padding: 10px 0;
}

.footer-other ul li {
    margin: 5px 0 10px;
    text-align: center;
    justify-content: center;
}

.footer-other ul li a {
    text-decoration: none;
    transition: color 0.3s ease;
    color: white;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
}

.footer-other ul li a img {
    object-fit: cover;
}

.footer-other ul li a.telegram:hover {
    color: #21cbff;
}

.footer-other ul li a.youtube:hover {
    color: #ff0303;
}

.footer-other ul li a.boosty:hover {
    color: #f5640a;
}


.game-links ul {
    list-style-type: none;
    padding: 20px 0;
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: center;
}

.game-links ul li {
    margin: 5px 10px 10px;
    text-align: center;
    justify-content: center;
}

.game-links ul li a {
    text-decoration: none;
    transition: color 0.3s ease;
    color: white;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.65);
}

.game-links ul li a img {
    object-fit: cover;
}

.game-links ul li a.steam:hover {
    color: #21ffec;
}

.game-links ul li a.itch-io:hover {
    color: #ff6fae;
}

.game-links ul li a.game-jolt:hover {
    color: #0af51e;
}

#language-toggle {
    padding: 12px 12px;
    border: none;
    background-color: #252525;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    width: 150px;
    font-family: "Roboto", sans-serif;
    font-weight: normal;
    font-size: 14px;
}

#language-toggle:hover {
    background-color: #555;
}

.language-block {
    margin-top: 40px;
    margin-bottom: 20px;
}

.language-block label {
    padding-right: 10px;
}

@media (max-width: 960px) and (orientation: portrait) {
    .hero .container {
        position: absolute;
        z-index: 10;
        width: 80%;
        bottom: 100px;
    }

    /* Контейнер для боковых стрелок */
    .hero-navigation {
        position: absolute;
        top: 70%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        transform: translateY(-50%);
        padding: 0 20px;
        z-index: 10;
    }

    .hero p {
        font-size: 20px;
        font-family: "Roboto", sans-serif;
        font-optical-sizing: auto;
        font-weight: 400;
        margin-bottom: 20px;
        line-height: 1.5em;
        max-width: 1000px;
        color: rgb(255, 255, 255);
        text-align: left;
    }

    .footer-container {
        height: auto;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: column;
        padding: 0 20px;
    }

    .footer-contact,
    .footer-other {
        width: 100%;
    }

    .footer-other {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}


@media (max-width: 960px) and (orientation: landscape) {
    .hero .container {
        bottom: 40px;
    }
}

