
/* Top Content */

.topContainer, .bottomContainer {
    display: flex;
    flex-wrap: wrap;
}

.topContainer {
    margin-bottom: 10px;
}

.topText {
    position: relative;
    width: 80%;
    padding: 8px;
}

.simVersions {
    border: 1px solid var(--ultra-light-grey);
    border-radius: 6px;
    padding: 10px 5px;
}

.simVersions ul {
    padding: 0;
    margin: auto;
    text-align: center;
    list-style: none;
}

.simVersions ul li {
    margin-left: 20px;
    display: inline-block;
}

.compat-native {
    color: var(--free-green);
    font-weight: bold;
}

.compat-full {
    color: var(--free-green);
    font-weight: bold;
}

.compat-wip {
    color: var(--link-blue);
    font-weight: bold;
}

.compat-none {
    color: var(--alert-red);
    font-weight: bold;
}


.topDetails {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    position: relative;
    width: 20%;
    padding: 8px;
}

.releaseDate, .version, .links, .resources {
    display: block;
    text-align: center;
    position: relative;
    top: 0;
    padding: 8px;
    height: 40px;
    width: 100%;
    margin: 3px;
    transition: all 0.2s ease;
}

.version:hover, .links:hover, .resources:hover {
    cursor: pointer;
    background-color: var(--dark-grey);
    color: white;
}

.releaseHigh {
    background-color: var(--fries-gold);
    color: white;
}

.version {
    background-color: var(--ultra-light-grey);
}

.version-open {
    background-color: var(--dark-grey) !important;
    color: white;
}

.links {
    background-color: var(--link-blue);
    color: white;
}

.free {
    background-color: var(--free-green);
}

.resources {
    background-color: var(--ultra-light-grey);
}

/* Gallery  */


.gallery-scroller {
    display: grid;
    position: relative;
    grid-template-rows: min-content;
    gap: 20px;
    grid-auto-flow: column;
    grid-auto-columns: 27%;
    width: 100%;
    overflow-x: auto;
    scrollbar-width:thin;
    overscroll-behavior-inline: contain;
}

.gallery-item {
    display: inline-block;
    overflow: hidden;
    height: 14vw;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.snaps-inline {
    scroll-snap-type: inline mandatory;
}

.snaps-inline > * {
    scroll-snap-align: start;
}

/* Pop-ups */

#blackBg {
    position: fixed;
    align-items:center;
    z-index: 30;
    top: 0;
    background-color: rgba(0, 0, 0, 0.749);
    backdrop-filter: blur(2px);
    width:100%;
    height: 100vh;
    display: none;
    opacity: 0;
    transition: all .2s ease;
}

#zoom {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    object-fit: cover;
    display: none;
    box-shadow: 0px 0px 40px black;
}

#links-popup {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    max-width: 500px;
    background-color: white;
    padding: 8px;
    box-shadow: 0px 0px 40px black;
    display: none;
}

#changelog-popup {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    max-height: 80%;
    overflow-y: scroll;
    background-color: white;
    padding: 8px;
    box-shadow: 0px 0px 40px black;
    display: none;
}

#resources-popup {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    max-height: 80%;
    max-width: 500px;
    overflow-y: scroll;
    background-color: white;
    padding: 8px;
    box-shadow: 0px 0px 40px black;
    display: none;
}

.linkItem, .resItem {
    width: 100%;
    text-align: center;
    padding: 10px;
}

.linkItem a, .resItem a {
    color: var(--dark-grey);
    text-decoration: none;
    transition: color 0.2s ease;
}

.linkItem a:hover, .resItem a:hover {
    color: var(--link-blue);
}

.popuph2 {
    width: 100%;
    text-align: center;
}

.logTitle {
    width: 100%;
    text-align: center;
    font-weight: bold;
    background-color: var(--ultra-light-grey);
    padding: 8px;
}

.logTitle:hover {
    cursor: pointer;
}

.logItem {
    font-size: 12px;
    margin-bottom: 5px;
}

.logItemDetails {
    display: none;
}

/* Bottom Content */

.bottomText {
    position: relative;
    width: 65%;
    padding: 8px;
}

.bottomMore {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    position: relative;
    width: 35%;
    padding: 8px;
}

/* Trailers and Reviews */

.columnMore {
    width: 100%;
}

.itemMore {
    padding: 4px;
}

.itemMore a {
    text-decoration: none;
    color: var(--dark-grey);
    transition: color 0.2s ease;
}

.itemMore a:hover {
    color: var(--link-blue);
}

.icon {
    width: 25px;
}

.small-text {
    font-size: 12px;
}


/* RESPONSIVE */

@media screen and (max-width: 1650px) {
    .topText {
        width: 70%;
    }
    .topDetails {
        width: 30%;
    }
}

@media screen and (max-width: 1200px) {
    .topText {
        width: 65%;
    }
    .topDetails {
        width: 35%;
    }
    .gallery-scroller {
        grid-auto-columns: 35%;
    }
    .gallery-item {
        height: 18vw;
    }
}

@media screen and (max-width: 1000px) {
    .topText, .topDetails {
        width: 100%;
    }
    .releaseDate, .version, .links, .resources {
        font-size: 12px;
        display: inline-grid;
        padding: 2px;
        align-items: center;
        width: calc(50% - 6px);
    }
    .itemMore {
        font-size: 14px;
    }
    .small-text {
        font-size: 10px;
    }
}

@media screen and (max-width: 850px) {
    .bottomText, .bottomMore {
        width: 100%;
    }
    .columnMore {
        width: 50%;
    }
    .simVersions ul li {
        font-size: 13px;
    }
}

@media screen and (max-width: 650px) {
    .simVersions ul li {
        margin-left: 0;
    }
}

@media screen and (max-width: 550px) {
    .releaseDate, .version, .links, .resources {
        height: 60px;
    }
    .itemMore {
        font-size: 12px;
    }
    .simVersions ul li {
        font-size: 9px;
    }
}