* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'EpilepsySans';
    src: url('/css/fonts/EpilepsySans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Comicoro';
    src: url('/css/fonts/ComicoroRu_0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

main {
    flex: 1;
}

html,
body {
    margin: 0;
    background-color: #051711;
    font-family: 'EpilepsySans', sans-serif;
    font-size: 24px;
    line-height: 24px;
    color: #D9E2E6;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

a {
    color: #D9E2E6;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.block {
    background-color: #334655;
    border-radius: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 25px;
    display: flex;
    gap: 20px;
}

.block_small {
    border-radius: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 15px;
    justify-content: left;
    display: flex;
    gap: 20px;
}

#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 150vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 50;
}

.star {
    position: absolute;
    will-change: transform;
    display: block;
}

.block_small_image {
    width: 350px;
    height: 200px;
    border-radius: 13px;
}

.block_image {
    width: 350px;
    height: 350px;
    border-radius: 13px;
    margin-left: auto;
}

.game-image {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 13px;
    transition: opacity 0.3s;
    margin-left: auto;
}

.header {
    position: sticky;
    top: 25px;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 94px;
}

.footer {
    position: sticky;
    top: 25px;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 94px;
}

.footer_sites {
    font-family: 'Comicoro', sans-serif;
    font-size: 40px;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 94px;
}

.footer_text {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 45px;
}

.header-shadow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 118px;
    z-index: 999;
}

.shadow_image {
    width: 150%;
    height: 105%;
}

.text_header {
    font-family: 'Comicoro', sans-serif;
    font-size: 40px;
}

.text_header_logo {
    font-family: 'Comicoro', sans-serif;
    font-size: 64px;
    padding-top: 7px;
    padding-bottom: 7px;
}

.block_json_text {
    justify-content: left;
    display: flex;
    gap: 10px;
}

.text_accent {
    color: #EDDFAB;
}

.parallax-object {
    position: absolute;
    z-index: 100;
}

.button {
    color: #EDDFAB;
}

.games-list {
    line-height: 30px;
}

.block_news {
    background-color: #334655;
    border-radius: 15px;
    margin-top: 25px;
    margin-bottom: 15px;
    padding: 25px;
}

.news_item {
    margin-top: 40px;
    padding: 30px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, background 0.25s ease;
}

.news_item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.news_title {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.news_date {
    font-size: 16px;
    color: #bbb;
    margin-bottom: 20px;
}

.news_image {
    width: 100%;
    border-radius: 14px;
    margin: 18px 0;
    object-fit: cover;
}

.news_text {
    white-space: pre-line;
    line-height: 1.6;
    font-size: 18px;
    margin-top: 10px;
}

#news_container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.news-wrapper {
    max-width: 900px;
    margin: 140px auto 0 auto;
    padding: 20px;
}

.news-item {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.25s ease, background 0.25s ease;
}

.news-item img {
    width: 200px;
    height: auto;
    border-radius: 15px;
}

.news-item h3 {
    margin: 0;
    font-size: 20px;
}

.news-item p {
    margin-top: 10px;
    line-height: 1.4;
}

.content-wrapper {
    max-width: 600px;
    width: 100%;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin-bottom: 25px;
    text-align: center;
}

.logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.title-wrapper {
    margin-top: 25px;
    margin-bottom: 25px;
}

.language-title {
    font-family: 'Comicoro', sans-serif;
    font-size: 32px;
    color: #EDDFAB;
}

.language-selection {
    margin-top: 25px;
}

.language-link {
    display: block;
    color: #D9E2E6;
    text-decoration: none;
    font-size: 24px;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    background-color: #495e6a;
    transition: background-color 0.3s ease;
    text-align: center;
}

.language-link:hover {
    background-color: #61798A;
}

@media (max-width: 600px) {
    .language-title {
        font-size: 28px;
    }

    .language-link {
        font-size: 20px;
    }

    .logo {
        width: 120px;
    }
}

@media (max-width: 900px) {

    html,
    body {
        font-size: 18px;
        line-height: 22px;
    }

    .container {
        width: 100%;
        padding: 0 14px;
    }

    .header {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        text-align: center;
    }

    .footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }

    .text_header_logo {
        font-size: 34px;
    }

    .text_header {
        font-size: 26px;
    }

    .block,
    .block_small {
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap: 18px;
    }

    .news-item {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .news-item img {
        width: 100%;
        max-width: 320px;
        height: auto;
        margin-bottom: 20px;
    }

    .news-text {
        width: 100%;
    }

    .block img,
    .block_small img {
        width: 100%;
        max-width: 320px;
        height: auto;
        margin: 0 auto;
    }

    .block_image {
        width: 260px;
        height: 260px;
        object-fit: cover;
    }

    .game-image {
        width: 260px;
        height: 260px;
    }

    .games-list {
        text-align: left;
        font-size: 18px;
    }
}

@media (max-width: 480px) {

    html,
    body {
        font-size: 16px;
    }

    .text_header_logo {
        font-size: 28px;
    }

    .text_header {
        font-size: 22px;
    }

    .footer_sites {
        font-size: 22px;
        gap: 20px;
    }

    .header-shadow img {
        width: 200%;
    }

    .footer {
        gap: 2px;
    }
}