:root {
    --content-width: 1400px;
    --content-padding: 50px;
}

/* @font-face {
    font-family: ZillaSlab;
    src: url('../fonts/zilla-slab/ttf/ZillaSlab-Regular.ttf')
} */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--background-color);
}

div {
    scroll-margin-top: var(--navbar-height);
}

p,
a,
h1,
h2,
h3,
h4,
h5,
h6,
li,
button {
    font-family: Zilla Slab, Arial, serif;
    font-weight: normal;
    color: var(--text-color);
}

p,
a,
li,
button {
    font-size: 20px;
}

a,
button {
    cursor: pointer;
}

a {
    transition: 0.15s;
}

a:hover {
    color: var(--heading-text-color);
    transition: 0.15s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0;
}

h1 {
    font-size: 42px;
    color: var(--heading-text-color);
}

h2 {

    font-size: 36px;
}

h3 {
    font-size: 30px;
}

button,
.button {
    --button-height: 50px;
    display: inline-block;
    box-sizing: border-box;
    background-color: var(--heading-text-color);
    color: black;
    border: 0;
    height: var(--button-height);
    line-height: calc(var(--button-height) - 5px);
    text-align: center;
    padding: 0 20px;
    border: 2px solid var(--heading-text-color);
}

button:hover,
.button:hover {
    background-color: black;
    color: var(--heading-text-color);

    transition: 0.15s;
}

footer {
    height: 220px;
    background-color: #2D2D2D;

    border-top: 10px solid;
    border-color: var(--heading-text-color);
}

.mobile_only {
    display: none;
}

.text_shadow {
    text-shadow: 2px 2px 5px #000000;
    /* #2D2D2D */
}

.page_content {
    padding-top: var(--navbar-height);
}

.section_content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--content-padding) var(--content-padding);
}

.hero_section {
    min-height: 400px;
    height: 65vh;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero_container {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero_container p {
    font-size: 24px;
}

.hero_background {
    position: absolute;
    margin: 0px;
    padding: 0px;
    left: 0px;
    right: 0px;
    min-height: 100%;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: clip;
    z-index: -10;
}

.hero_background img {
    width: 100vw;
    object-fit: cover;
    object-position: center;
    min-height: 100%;
    /* filter: blur(6px); */
    transform: scale(1);
    /* transform: scale(1.01); */
    animation: scroll-blur linear both;
    /* animation-timeline: view(); */
    animation-timeline: scroll();
    /* animation-range: ; */
    /* animation-range: entry calc(100vh - var(--navbar-height)) exit 75vh; */
    animation-range: 0vh 90vh;
}

.external_link::after {
    content: "\1F855";
    vertical-align: super;
    line-height: 0;
    position: relative;
    font-size: 70%;
    font-weight: bold;
    opacity: 60%;
    margin-left: 2px;
    font-family: "Noto Sans Symbols 2", sans-serif;
}

@keyframes scroll-blur {
    20% {
        opacity: 1;
        filter: blur(0px);
        -webkit-filter: blur(0px);
        scale: 1;
    }

    /* 70% {
        opacity: 0;
    } */

    95% {
        opacity: 0;
    }

    99.99% {
        opacity: 0;
        filter: blur(100px);
        -webkit-filter: blur(100px);
        transform: translate(0, -20vh);
        scale: 1.15;
    }

    /* Ugly fix for unsuported browsers (f.e. Firefox) */
    /* https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timeline#browser_compatibility */
    100% {
        filter: blur(0px);
    }
}

.hero_logo {
    z-index: 1;
    height: auto;
    width: 430px;
}

.hero_section p {
    z-index: 1;
    max-width: 550px;
    text-align: center;
    margin: 15px;
}

.hero_section a {
    z-index: 1;
}

.news_section {
    background-color: var(--background-color)+99;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    animation: news_scroll_opacity linear both;
    animation-timeline: scroll();
}

@keyframes news_scroll_opacity {

    90% {
        background-color: var(--background-color);
    }

    99.99% {
        background-color: var(--background-color);
    }

    /* Ugly fix for unsuported browsers (f.e. Firefox) */
    /* https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timeline#browser_compatibility */
    100% {
        background-color: none;
    }
}

.news_section,
.poll_section {
    width: 100%;
}

.news_section h1 {
    margin-bottom: 15px;
    margin-top: 0;
}

.news_section .section_content {
    padding-bottom: 0px;
}

.news_scroll {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--content-padding) var(--content-padding) var(--content-padding);
}

.news_container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2%;
}

.news_item {
    width: 400px;
    overflow: hidden;
    flex-grow: 1;
    text-overflow: ellipsis;
}

.news_item a,
.news_item img {
    width: 100%;
    overflow: hidden;
}

.news_item_img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    overflow: hidden;
}

.news_item_img:hover {
    transition: ease-in-out 0.1s;
    filter: brightness(1.25);
}

.news_item_title {
    margin: 0;
    text-decoration: none;
}

.news_item_category {
    font-size: 20px;
    display: inline-block;
    margin: 0;
}

.news_item_date {
    display: inline-block;
    font-size: 20px;
    color: var(--heading-text-color);
    margin: 0;
}

.roadmap_section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    height: 400px;
    background-image: url("../images/blur_teaser_1_hd.webp");
    background-size: 200vw auto;

    animation: bg-paralax linear both;
    animation-timeline: scroll();
}

@keyframes bg-paralax {
    from {
        background-position: 50% 60%;
    }

    to {
        background-position: 50% 0%;
    }
}

.roadmap_section h1 {
    margin: 0;
}

.roadmap_section p {
    max-width: 800px;
    margin-top: 10px;
    text-align: center;
}

.roadmap_section .button {
    width: 300px;
}

.poll_section {
    background-color: #2D2D2D;
}

.poll_section h1 {
    margin: 0;
}

.poll_section p {
    margin-top: 0;
}

.poll_container {
    display: flex;
    height: 450px;
}

.showcase_section {
    /* height: 50vh; */
    display: flex;
    flex-direction: row;
    background-color: var(--background-color);
}

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

.showcase {
    /* height: 50vh; */
    width: 50%;
    display: flex;
    flex-grow: 1;
    flex-basis: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

img.showcase {
    /* animation: test linear both; */
    /* animation-timeline: scroll(); */
    /* animation-range: -200vh; */
}

@keyframes test {
    0% {
        translate: -100vw;
        filter: blur(10px);
        -webkit-filter: blur(10px);
    }

    40% {
        translate: 0;
        filter: blur(0);
        -webkit-filter: blur(0);
    }
}

.showcase_text {
    width: 75%;
}

.showcase_text h1,
.showcase_text p {
    margin: 0;
}

.showcase_text button,
.showcase_text .button {
    margin-top: 10px;
}

.store_section {
    overflow: clip;
}

.store_section_container {
    display: flex;
    flex-direction: column;
    align-items: center;

    height: 100%;
    /* backdrop-filter: blur(20px);
    background-image: url("../images/hero/mcv_ricelands.webp");
    animation: bg-paralax linear both;
    animation-timeline: view(); */
}

.store_section_background {
    position: absolute;
    margin: 0px;
    padding: 0px;
    left: 0px;
    right: 0px;
    /* width: 100vw; */
    height: 400px;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: clip;
    z-index: -10;
    /* scale: 1.1; */
    filter: blur(70px);
    -webkit-filter: blur(70px);
}

.store_section_background img {
    width: 100%;
    background-size: cover;
}

.steamStoreIframe {
    margin-bottom: 32px;
}


.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.footer-nav a {
    color: #8A8A8A;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-main {
    display: flex;
    justify-content: space-between;

    max-width: var(--content-width);
    padding: 0 var(--content-padding);
    margin: 25px auto;
}

.footer-company-logo {
    margin: 0;
    width: 240px;
    margin: 10px 0 5px 0;
}

.footer-company-copyright {
    font-size: 16px;
    margin: 0;
}

.footer-socials p {
    margin: 0;
}

.footer-social-links {
    display: flex;
    gap: 10px;
}

.footer-social-links a {
    height: 30px;
    width: 30px;
}

.footer-social-links img {
    height: 100%;
    width: 100%;
}

.error_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - (var(--navbar-height) + 230px));

    background-image: url("/assets/images/hero/mcv_ricelands.webp");
    background-size: cover;
    background-position: center;
}

.error_code {
    margin: 0;
    font-size: 300px;
    color: var(--heading-text-color);
}

.error_description {
    margin-top: 0;
    font-size: 60px;
}



@media only screen and (max-width: 768px) {
    :root {
        --content-padding: 20px;
    }

    h1,
    h2,
    h3,
    h4 {
        margin-bottom: 0;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }

    p {
        margin-top: 8px;
    }

    p,
    a,
    li,
    button,
    .button {
        font-size: 16px;
    }

    .desktop_only {
        display: none;
    }

    .mobile_only {
        display: block;
    }

    button,
    .button {
        --button-height: 50px;
        height: var(--button-height);
        line-height: var(--button-height);
        padding: 0 10px;
    }

    .hero_container p {
        font-size: 20px;
    }

    .hero_logo {
        width: 350px;
    }

    .news_scroll {
        overflow-x: scroll;
        margin: 0;
        padding: 0 0 var(--content-padding) 0;
    }

    .news_container {
        flex-direction: row;
        overflow: visible;
        width: 250%;
        padding: 0 var(--content-padding);
    }

    .news_item {
        width: 100%;
    }

    .news_item_category,
    .news_item_date {
        font-size: 14px;
    }

    /* .roadmap_section {
        height: 200px;
        padding: 0 20px;
    } */

    .showcase_section,
    .showcase_section.reversed {
        flex-direction: column;
    }

    .showcase {
        width: 100%;
        flex-direction: row;
    }

    .showcase_text,
    .roadmap_section {
        width: 100%;
        padding: var(--content-padding) var(--content-padding);
    }

    .showcase_text .button,
    .roadmap_section .button {
        width: 100%;
        margin-top: 15px;
        margin-bottom: 5px;
    }

    .roadmap_section {
        display: inline-block;
        box-sizing: border-box;
        background-image: none;
        height: auto;
    }

    .roadmap_section h1,
    .roadmap_section p {
        text-align: left;
        margin: 0;
        text-shadow: none;
    }

    .steamStoreIframe {
        height: 200px;
    }

    .footer-nav {
        gap: 10px;
    }

    .footer-nav a {
        font-size: 18px;
    }

    .footer-main {
        flex-direction: column-reverse;
        align-items: center;
        gap: 25px;
    }

    .footer-social-links {
        gap: 20px
    }

    .footer-socials p {
        display: none;
    }

    .error_code {
        font-size: 150px;
    }

    .error_description {
        font-size: 30px;
    }
}