@import url(./cookieConsent.css);

:root {
    --content-width: 1400px;
    --content-padding: 50px;
    --footer-height: 220px;
    --footer-border-height: 10px;
    --footer-total-height: calc(var(--footer-height) + var(--footer-border-height));
    --page-content-min-height: calc(100vh - var(--navbar-height) - var(--footer-total-height));
    --hero-height: 65vh;
}

html {
    scroll-behavior: smooth;
}

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

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

sub,
sup {
    line-height: 0;
}

p,
a,
h1,
h2,
h3,
h4,
h5,
h6,
li,
th,
td,
button,
label {
    font-family: var(--font-family);
    font-weight: normal;
    color: var(--text-color);
}

p,
a,
li,
button {
    font-size: 1rem;
}

a,
button {
    cursor: pointer;
}

a {
    color: var(--text-color);

    &:hover {
        color: var(--primary-color);
        text-decoration-line: underline;
        transition: 0.15s;
    }
}

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

h1.page-title,
h2.page-title,
h3.page-title,
h4.page-title,
h5.page-title,
h6.page-title {
    margin-bottom: 16px;
}

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

h2 {

    font-size: 36px;
}

h3 {
    font-size: 30px;
}

.text__disclaimer {
    font-style: italic;
    opacity: 0.75;
}

button,
.button {
    --button-height: 2.75rem;
    display: inline-block;
    box-sizing: border-box;
    background-color: var(--primary-color);
    color: black;
    height: var(--button-height);
    line-height: calc(var(--button-height) - 0.25rem);
    text-align: center;
    padding: 0 0.75rem;
    border: 2px solid var(--primary-color);
    text-decoration-line: none;

    &:hover {
        background-color: black;
        color: var(--primary-color);
        text-decoration-line: none;
        transition: 0.15s;
    }
}

.crumb {
    color: var(--text-color);
    /* opacity: 0.75; */

    font-family: var(--font-family);

    a {
        text-decoration: none;
    }
}

.info_box {
    box-sizing: border-box;
    width: 100%;
    padding: 8px;
    margin-block: 8px;
    border: 1px solid;
    background-color: var(--primary-color);

    &.warning {
        background-color: #bc0f0f;

        p,
        a {
            color: white
        }
    }

    p,
    a {
        margin: 0;
        font-size: 18px;
        color: black;
    }
}



footer {
    height: 220px;
    background-color: var(--background-alt-color);

    border-top: 10px solid;
    border-color: var(--primary-color);

    a {
        text-decoration: none;
        color: var(--text-color);

        &:hover {
            text-decoration-line: none;
            color: var(--primary-color);
            transition: 0.15s;
        }
    }
}

.mobile_only {
    display: none;
}

.hidden {
    display: none;
}

.highlight {
    color: var(--heading-text-color);
}

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

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

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

.media_viewer {
    display: grid;
    grid-template-areas: "stack";
    overflow-x: clip;
    width: 100%;
    z-index: 200;
    position: fixed;
    width: 100%;
    height: 100vh;

    &>* {
        grid-area: stack;
        overflow-x: hidden;
    }

    .media_viewer_background {
        z-index: 205;
        background-color: #00000070;
        backdrop-filter: blur(100px);
    }

    .media_viewer_content {
        display: flex;
        box-sizing: border-box;
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        /* * {
            z-index: 210;
        } */

        .carousel {
            .carousel_overlay {
                z-index: 220;

                .carousel_close_button {
                    display: block;
                }

                .carousel_nav_container.carousel_nav_button {
                    z-index: 250;
                }

                .carousel_step_container.carousel_step {
                    z-index: 251;
                }
            }

            .carousel_item_container {
                max-width: 100vw;
                max-height: 100vh;
                z-index: 210;

                .carousel_item {
                    display: flex;
                    justify-content: center;

                    * {
                        width: 100vw;
                    }
                }
            }
        }
    }
}

.carousel {
    max-width: 100%;

    .carousel_content {
        display: grid;
        grid-template-areas: "stack";
        overflow-x: clip;
        width: 100%;
        max-height: 100%;
        aspect-ratio: 16/9;

        &>* {
            grid-area: stack;
            overflow-x: hidden;
        }

        .carousel_overlay {
            z-index: 100;

            display: grid;
            grid-template-areas: "stack";
            overflow-x: clip;

            &>* {
                grid-area: stack;
                overflow-x: hidden;
            }

            .carousel_media_viewer_open {
                z-index: 102;
                width: 100%;
                height: 100%;
            }

            .carousel_close_button,
            .carousel_nav_button {
                pointer-events: bounding-box;
                --size: 50px;
                display: block;
                z-index: 103;
                backdrop-filter: blur(0);
                height: var(--size);
                width: var(--size);
                margin: 10px;
                /* border-radius: calc(var(--size)/2); */
                color: #ffffff00;


                user-select: none;
                -webkit-user-select: none;
                -ms-user-select: none;

                transition-duration: 150ms;

                /* temp */
                text-align: center;
                line-height: var(--size);
                font-weight: bold;
            }

            .carousel_close_button {
                display: none;
            }

            &:hover {
                --duration: 150ms;

                .carousel_nav_container .carousel_nav_button,
                .carousel_close_button {
                    transition-duration: var(--duration);
                    backdrop-filter: blur(var(--glass-blur));
                    background-color: #00000070;
                    color: #ffffffff;

                    &:hover {
                        cursor: pointer;
                        background-color: var(--heading-text-color);
                        color: black;
                    }
                }

                .carousel_title.active {
                    transition-duration: var(--duration);
                    backdrop-filter: blur(var(--glass-blur));
                    background-color: #00000070;
                    color: #ffffffff;
                }
            }

            .carousel_title {
                width: fit-content;
                margin: 8px;
                padding: 4px 8px;
                color: #ffffff00;
                font-size: 1em;
                backdrop-filter: blur(0);
            }



            .carousel_close_button {
                z-index: 150;
                justify-self: end;
            }

            .carousel_nav_container {
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .carousel_step_container {
                display: flex;
                gap: 5px;
                justify-content: center;
                align-items: flex-end;
                margin-bottom: 15px;

                .carousel_step {
                    pointer-events: bounding-box;
                    --size: 15px;
                    display: block;
                    z-index: 102;
                    width: var(--size);
                    height: var(--size);
                    border: white 1px solid;
                    /* border-radius: calc(var(--size)/2); */
                    box-sizing: border-box;
                    backdrop-filter: blur(var(--glass-blur));

                    &.active {
                        background-color: white;
                    }

                    &:hover {
                        cursor: pointer;
                        background-color: var(--heading-text-color);
                        border-color: var(--heading-text-color);
                    }
                }
            }
        }

        .carousel_item_container {
            display: flex;
            width: 100%;
            overflow: hidden;
            aspect-ratio: 16/9;

            .carousel_item {
                min-width: 100%;
                transition-duration: 500ms;
                transition-timing-function: ease-in-out;
                background-color: #000000;

                img,
                video,
                iframe {
                    width: 100%;
                    height: 100%;
                }
            }
        }
    }

    .carousel_title {
        display: none;
        font-size: 1.5rem;
        text-align: center;
        margin-block: 8px;
        color: var(--heading-text-color);

        &.active {
            display: block;
        }
    }

}

.article_title {
    margin-top: 30px;

    h1 {
        margin-top: 0;
    }

    .crumb {
        color: var(--text-color);

        .crumb-current {
            opacity: 0.75;
        }
    }

    .title__date {
        margin-top: 0;
        opacity: 0.75;
    }
}

.article_section {
    max-width: 900px;
    margin-inline: auto;
    padding: var(--content-padding) var(--content-padding);

    img {
        width: 100%;
    }
}

.hero_section {
    height: var(--hero-height);
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.hero_container {
    display: flex;
    height: 100%;
    max-height: var(--hero-height);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

.parallax {
    display: grid;
    grid-template-areas: "stack";
    height: var(--hero-height);
    overflow-x: clip;
}

.parallax>* {
    grid-area: stack;
    overflow-x: hidden;
}

.parallax>img,
.parallax>video {
    z-index: -100;
    height: 100vh;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    animation: scroll-blur linear both;
    -webkit-animation: scroll-blur linear both;
    animation-timeline: scroll();
    animation-range: 0vh 90vh;
}

.video-control {
    --vc-text-size: 16px;
    float: right;
    transform: translateY(-45px);
    padding: 8px;
    margin-inline: 15px;
    width: fit-content;
    color: var(--text-color);
    background-color: #00000050;
    font-family: var(--font-family);
    font-size: var(--vc-text-size);
    line-height: var(--vc-text-size);
    text-align: center;
    backdrop-filter: blur(var(--glass-blur));
    cursor: pointer;
}

.video-control:hover {
    color: var(--primary-color);
    background-color: #000000;
    transition-duration: 200ms;
}

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

.hero_background img {
    left: 0;
    right: 0;
    max-width: fill-available;
    max-width: -webkit-fill-available;
    max-width: -moz-available;
    object-fit: cover;
    object-position: center;
    min-height: 100%;
    transform: scale(1);
    animation: scroll-blur linear both;
    -webkit-animation: scroll-blur linear both;
    animation-timeline: scroll();
    animation-range: 0vh 90vh;
}

.external_link::after {
    content: "\1F855";
    display: inline-block;
    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;
    text-decoration: none;
}

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

    95% {
        opacity: 0;
        -webkit-opacity: 0;
    }

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

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

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

    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 (i.e. Firefox) */
    /* https://developer.mozilla.org/en-US/docs/Web/CSS/animation-timeline#browser_compatibility */
    100% {
        filter: blur(0px);
    }
}

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

    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 (i.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();
}

.news_section .section_content {
    display: flex;
    justify-content: space-between;
}

@keyframes news_scroll_opacity {

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

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

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

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

.news_section h2 {
    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;

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

    a,
    p {
        font-size: 1.25rem;
    }

    a {
        text-decoration: none;
        color: var(--text-color);

        &:hover {
            text-decoration-line: none;
            color: var(--primary-color);
            transition: 0.15s;
        }
    }
}

.news_item:hover {
    transform: scale(1.01);
}


.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 {
    display: inline-block;
    margin: 0;
}

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

news_page-button {
    float: right;
}

.video_section {
    background-color: var(--background-color);
}

.video_section h2 {
    margin: 0;
}

.video_section .section_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.youtube_embed {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    border: none;
}

.showcase .youtube_embed {
    box-sizing: border-box;
    padding: 20px;
}

.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 h2 {
    margin: 0;
}

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

.roadmap_section .button {
    width: 300px;
}

.pagination_container {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 32px 0;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-inline: auto;
}

.pagination a,
.pagination p {
    --size: 35px;
    display: block;
    margin: 0;
    text-decoration: none;
    text-align: center;
    float: left;
    user-select: none;
    box-sizing: border-box;
    width: var(--size);
    height: var(--size);
    line-height: var(--size);
}

.pagination a.active,
.pagination p.active {
    background-color: var(--primary-color);
    color: #000000;
}

.pagination a.disabled,
.pagination p.disabled {
    color: var(--text-disabled-color);
}

.poll_section {
    background-color: var(--background-alt-color)
}

.poll_section h2 {
    margin: 0;
}

.poll_section p {
    margin-top: 0;
}

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

.showcase_section {
    padding: 50px 0;
    background-color: var(--background-color);

    &.horizontal {
        display: flex;
        flex-direction: row;

        box-sizing: border-box;

        margin-inline: auto;
        padding-inline: 20px;
        max-width: 1800px;
        gap: 20px;

        .showcase_item {
            flex-direction: column;
            gap: 10px;

            img {
                width: 100%;
                aspect-ratio: 16/9;
                padding: 0;
            }

            .showcase {
                width: 100%;

                .showcase_text {
                    width: 100%;

                    p {
                        margin-top: 0;
                        font-size: 1.5rem;
                        width: 100%;
                        text-align: center;
                    }
                }
            }
        }
    }
}

.showcase_item {
    display: flex;
    flex-direction: row;
    max-width: var(--content-width);
    margin-inline: auto;
    background-color: var(--background-color);
}

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

.showcase {
    width: 50%;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

img.showcase,
.showcase .carousel {
    box-sizing: border-box;
    padding: 20px;
}

@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 h2,
.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;
}

.store_section_background {
    position: absolute;
    margin: 0px;
    padding: 0px;
    left: 0px;
    right: 0px;
    height: 400px;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: clip;
    z-index: -10;
    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;
    font-size: 1.25rem;
}

.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 {
    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%;
}

.footer-bottom {
    display: flex;
    justify-content: center;

    gap: 16px;
    width: auto;
    padding-bottom: 16px;
}

.footer-bottom a {
    color: #8A8A8A;

    &:hover {
        color: #ffffff;
    }
}


.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: 200px;
    color: var(--heading-text-color);
}

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

@media only screen and (max-height: 768px) {
    :root {
        --hero-height: 90vh;
    }

    .hero_container {
        p {
            font-size: 1rem;
            margin: 5px;
            max-width: 450px;
        }

        .hero_logo {
            width: 260px;
        }

    }
}

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

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

    h1.page-title,
    h2.page-title,
    h3.page-title,
    h4.page-title,
    h5.page-title,
    h6.page-title {
        margin-bottom: 8px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    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;
    }

    .button.external_link::after {
        color: black;
        opacity: 100%;
    }

    .button:hover.external_link::after {
        color: var(--primary-color);
    }

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

    .hero_logo {
        width: 350px;
    }

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

    .news_container {
        flex-direction: row;
        overflow: visible;
        width: 250%;
    }

    .news_item {
        width: 100%;
    }

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

    .news_page-button {
        height: 35px;
        line-height: 35px;
    }

    .video_section .section_content {
        padding-bottom: 0;
        padding-inline: 0;
    }

    .video_section .section_content .youtube_embed {
        box-sizing: border-box;
        padding: 20px;
    }

    .showcase_section {
        padding: 0;
    }

    .showcase_item,
    .showcase_item.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: 1rem;
    }

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

    .footer-company-copyright {
        text-align: center;
    }

    .footer-social-links {
        gap: 10px;
        max-width: 100vw;
    }

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

    .footer-socials p {
        display: none;
    }

    .error_code {
        font-size: 150px;
    }

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