*,
*::before,
*::after {
    box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
    :root {
        scroll-behavior: smooth;
    }
}

:root {
    --bg-color: #352113;
}

body {
    font-family: "Jost", montserrat, sans-serif;
    background-color: var(--bg-color);
    color: #d5b491;
    font-size: 20px;
}

a {
    color: #ffffff
}

a:hover {
    color: #ffffff;
    text-decoration: none;
}

h1,
h2,
h3 {
    font-family: "Jost", serif;
    margin: 0 0 2rem 0;
    font-weight: 600;
}

.links a:hover {
    text-decoration: dashed underline
}

.row {
    margin-top: 4em;
    margin-bottom: 4em
}

.release.row {
    margin-top: 0
}

#release {
    position: absolute;
    bottom: 2vh;
    width: 100%
}

.release {
    text-align: center;
    font-size: 3.5vh;
    color: #313539
}

.release-row {
    display: none
}

@media screen and (min-aspect-ratio:2/1) {
    #release {
        display: none
    }

    .release-row {
        display: flex;
        margin-top: 0;
        margin-bottom: 0
    }
}

.wishlist p {
    text-align: center;
    font-size: 1rem;
}

.wishlist a {
    color: #313539;
    font-weight: 700
}

.wishlist.row {
    margin-top: 1em
}

.info {
    text-align: center;
    margin: 30px auto 60px;
    width: 600px;
    max-width: 100%;
}

.info h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem
}

.social-links p {
    display: inline-block;
    font-size: 1.1em
}

.store-links a {
    background-color: #000;
    display: inline-block;
    border-radius: 10px;
    flex: 1;
    margin-left: 15px;
    margin-right: 15px;
    max-width: 300px;
    margin-top: 8px;
    margin-bottom: 8px;
    transition-property: box-shadow;
    transition-duration: .2s
}

.store-links a:hover {
    box-shadow: 0 0 0px 2px #eda9684d;
}

.store-links.row {
    margin-bottom: 0;
    margin-top: 0
}

.store-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.store-links-2 {
    width: 700px;
    max-width: 100%;
}

.store-links a {
    width: 300px;
    min-width: 250px;
    margin: 5px 10px;
}

@media screen and (max-width: 990px) {
    .store-links a {
        width: 300px;
        min-width: 300px;
    }
}

@media screen and (max-width: 767px) {
    .store-links {
        flex-direction: column;
    }

    .store-links a {
        width: 300px;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        max-width: calc(100% - 20px);
    }
}

.store-links img {
    height: 30px;
    margin-left: 10px;
    margin-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    box-sizing: initial
}

.social-links img {
    height: 40px;
    margin-left: 20px;
    margin-right: 20px
}

.store-links p {
    display: inline-block;
    font-size: 1.1em
}

.trailer-video {
    position: relative;
    height: auto;
    padding-bottom: 56.25%
}

.trailer-video iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0
}

#ratings img {
    height: 100px
}

.jumbotron {
    padding: 0;
    margin-bottom: 0;
    height: 80vh;
    /* Shrink height a bit more to show entirity of the vertical if we can */
    height: calc(min(80vh, 100vw * (9 / 16)));
    background-color: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 40px;
    width: 2560px;
    /* Try to avoid stretching the bg so wide for ultrawide that you can't see enough vertically */
    width: calc(max(80vh*(25 / 9), 2000px));
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.banner-container {
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 1600px;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.logo-container {
    margin-left: 50%;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: center;
    font-family: "Jost", serif;
    color: white;
    text-shadow: 4px 5px 10px #5f270b87, 3px 3px 0 rgba(0, 0, 0, 0.6);
    padding-left: 30px;
    padding-right: 80px;
}

.logo-container h1 {
    width: 600px;
    max-width: 100%;
    display: inline-block;
}

.logo-container h1 img {
    width: 100%;
    height: auto;
    /* Prevent being too big on super short screens */
    max-height: 38vh;
}

.logo-container h2 {
    font-size: 2.5rem;
}

.logo {
    filter: drop-shadow(4px 5px 10px #5f270b87) drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.6));
}

.footer-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 2em;
    flex-wrap: wrap;
}

.footer-logos > a {
    margin: 1em;
}

@media (min-width: 768px)
{
    .footer-logos img {
        transform: scale(calc(var(--data-expand)));
    }
}

.bg,
.bg img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    /* focal point is 35% from the left, and also focus slightly lower so that more of the tree trunk remains visible */
    object-position: 35% 60%;
}

.scrim {
    pointer-events: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* gradient from transparent version of --bg-color to --bg-color */
    --transparent-bg: color-mix(var(--bg-color) transparent 0%);
    background: linear-gradient(180deg, transparent 0%, var(--bg-color) 100%);
}

@media (max-width: 991px) 
{
    .logo-container h2 {
        font-size: 1.5rem;
    }
}

/* Stack the logo on narrow screens */
@media (max-width: 991px) and (max-aspect-ratio: 3 / 2)
{
    .bg,
    .bg img {
        object-position: 20% 50%;
    }

    .logo-container {
        margin-left: 0;
        width: 100%;
    }

    .logo-container h1 {
        position: absolute;
        padding: 0 30px;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo-container h2 {
        position: absolute;
        top: 40px;
        width: 100%;
        left: 0;
        padding: 0 30px;
        font-size: 2.3rem;
    }

    .jumbotron
    {
        height: 80vh;
        max-height: 80vh;
        height: auto;
        width: 100%;
        aspect-ratio: 11/16;
    }
}

@media (max-width: 640px)
{
    .logo-container h2 {
        font-size: 1.8rem;
    }
}

/* Drop the logo down below the tree if there's enough room */
@media (max-width: 991px) and (max-aspect-ratio: 3 / 2) and (min-height: 600px)
{
    .jumbotron
    {
        margin-bottom: 85px;
    }

    .logo-container h1 {
        bottom: -85px;
    }
}

.jumbotron .bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* height: 90%;
    min-width: 100%;
    min-height: 58.99vw;
    margin-left: 50%;
    transform: translateX(-50%) */
}

.jumbotron-container {
    z-index: 1;
    width: 100%;
    height: 100%;
    position: absolute;
}

footer {
    padding: 30px;
}

footer {
    z-index: -1;
}

footer p {
    margin-top: 2em;
    margin-bottom: .5em;
    font-size: .8em;
}

.screenshots a {
    padding: 10px;
    display: block;
}

.screenshots img {
    width: 100%;
    display: block;
}

.screenshots > div {
    padding: 0 0px;
    display: flex;
    flex-wrap: wrap;
}

@media screen and (min-width: 768px) {    
    .screenshots a {
        width: 50%;
        display: block;
    }
}