:root {
    overflow-x: hidden;
}

html::-webkit-scrollbar {
    display: none;
}

html {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */

    background-color: #181a1b;
    font-family: 'Cabin', sans-serif;
}

header {
    overflow-x: hidden;
    background-color: black;
    position: absolute;
    display: flex;
    justify-content: center;
    align-content: center;
    overflow-y: hidden;
    margin-left: -8px;
    margin-top: -8px;
    min-width: 100%;
    top: 0;
    filter: drop-shadow(0 10px 0.5rem rgba(0, 0, 0, 0.425));
}

header video {
    position: absolute;
    transform: translate(0, -30%);
    object-fit: cover;
    filter: blur(0.25rem);
    z-index: 10;
    min-width: 100%;
}

header img {
    filter: drop-shadow(0 10px 0.5rem rgba(0, 0, 0, 0.425));
    margin-top: 3rem;
    margin-bottom: 3rem;
    max-width: calc(14rem + 8vw);

    position: relative;
    animation: float 5s ease-in-out infinite;
    z-index: 11;
}

@keyframes float {
    0% {
        transform: translate(0, 5px);
    }

    50% {
        transform: translate(0, 15px);
    }

    100% {
        transform: translate(0, 5px);
    }
}

.main {
    padding-top: 1rem;
    position: relative;
    margin-left: -8px;
    margin-right: -8px;
    margin-bottom: -8px;
    color: white;
    display: block;
    justify-content: center;
    align-content: center;
    text-align: center;
    background-color: #181a1b;
    z-index: 12;
    height: fit-content;

}

.contentwrapper {
    background-color: #121415;
    max-width: 84rem;
    min-width: 84rem;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem;
    padding-top: 0.5rem;
    border-radius: 1rem;
    padding-bottom: 0.5rem;
}


.features {
    display: inline-block;
    text-align: left;
    font-size: large;
    vertical-align: top;
    margin-right: 15rem;
    margin-top: -1rem;
    margin-bottom: 5rem;
}

.features p {
    margin-top: -0.4rem;
}

.features img {
    max-width: 2rem;
    margin-right: 0rem;
    margin-top: 0.5rem;
    vertical-align: bottom;
}

#trailer {
    filter: drop-shadow(10px 10px 0.5rem rgba(0, 0, 0, 0.425));
}

.screenshots {
    margin-top: 2rem;
    padding-bottom: 10rem;
}

.screenshots img {
    max-width: calc(18rem + 2vw);
    border: 0.25rem solid pink;
    border-radius: 1rem;
    margin: 0.25rem;
    cursor: pointer;
}

.contribs {
    margin-top: 2rem;
    padding-bottom: 10rem;
}



footer {
    background-color: black;
    margin-top: 1rem;
    padding: 0.8rem;
    border-top: 0.25rem solid white;
    bottom: 0;
    position: fixed;
    width: 100%;
    filter: drop-shadow(0 -10px 0.5rem rgba(0, 0, 0, 0.425));
    position: fixed;
    left:0;
    right:0;
    z-index: 10;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 1.2rem;
    font-weight: bold;
    font-size: larger;
    position: relative;
}

footer a::before {
    content: '';
    position: absolute;
    width: 100%;
    border-radius: 2px;
    background-color: pink;
    bottom: 0;
    left: 0;
    transform-origin: center;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
    box-sizing: border-box;
    height: 0.15rem
}

footer a:hover::before {
    transform-origin: center;
    transform: scaleX(1);
}

footer a:visited {
    color: white;
}

footer a:hover {
    color: pink;
    transition: all 0.3s ease;
}

footer a:focus {
    color: pink;
    transition: all 0.1s ease;
}

footer a:active {
    color: pink;
    transition: all 0.1s ease;
}


.disclaimer {
    font-size: small;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: lighter;
}

hr {
    color: lightpink;
    background-color: pink;
    height: 0.05rem;
    border:none;

    /* make it so it only appears on half of thr screen in the middle */
    width: 50%;
    margin-left: auto;
    margin-right: auto;

}


#gallery-preview:hover {
    transform: scale(1.05);
}

.slider {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    position: absolute;
    transition: all 0.3s ease;
    bottom: 0;
    top: calc(12rem + 2vw);
    height: calc(12rem + 2vw + 3rem)
}

.slider img {
    max-width: calc(18rem + 2vw);
    border: 0.25rem solid pink;
    border-radius: 1rem;
    margin: 0.25rem;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in;
    opacity: 1;
}

#gallery-preview button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: pointer;
    right: 0.5rem;
}

#gallery-preview button:hover {
    color: pink;
}


#gallery-preview, #view-contrib {
    border: 0.25rem solid pink;
    border-radius: 1rem;
    max-width: 60%;
    min-height: 16rem;
    object-fit: cover;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    cursor: pointer;
    background-color: black;
    width: calc(30rem + 2vw);
    height: calc(12rem + 2vw);
    overflow: hidden;
    display: flex;
    margin: 2rem auto 10rem;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    filter: drop-shadow(10px 10px 0.5rem rgba(0, 0, 0, 0.425));
}



.slider img.active {
    opacity: 1;
}

#gallery-preview h2 {
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: pointer;
    right: 0.5rem;
    margin-bottom: 3.5rem;

}

#gallery-preview h2:hover {
    color: pink;
    text-underline: pink;
    cursor: pointer;

}

#view-contrib button {
    position: absolute;
    top: 52%;
    left: 80%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: pointer;

}

#view-contrib h2 {
    position: absolute;
    left: 50%;
    top: 1%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: pointer;
    right: 0.5rem;
    white-space: nowrap;
}

#view-contrib img {
    top: 10%;
    left: 20%;
}


#view-contrib h2:hover {
    color: pink;
    text-underline: pink;
    cursor: pointer;
}

#view-contrib button:hover {
    color: pink;
}

#view-contrib:hover {
    transform: scale(1.05);
}

.access-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}


/* fix the slider so it appears on the left side of the screen */
.slider {
    position: absolute;
    height: 100%;
    width: 50%;
    background-color: black;
    border-radius: 1rem;
    margin: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    left: 0;
    right: 0;
    overflow: visible;
    z-index: 1;
    filter: drop-shadow(10px 10px 0.5rem rgba(0, 0, 0, 0.425));
    /* move it down in the div */
    top: calc(1.35rem + 0.4vw);
}

/* fix the button so it appears on the right side of the screen */
#gallery-preview button {
    position: absolute;
    right: 0;
    transform: translate(50%, -50%);
    margin-right: 5.35rem;
}


@media only screen and (max-width: 1500px) {
    * {
        overflow-x: visible;
    }

    .main {
        flex-wrap: wrap;
    }

    #view-contrib {
        margin-top: 1rem;
        position: relative;

    }

    #gallery-preview {
        margin-top: 1rem;
        position: relative;

    }

    .access-buttons {
        max-width: 100%;
    }


}

@media only screen and (max-width: 780px) {
    * {
        overflow-x: hidden;

    }

    iframe {
        transform: scale(0.75);
    }

    .contentwrapper {
        border: 0.25rem solid pink;
    }
}


@media screen and (max-width: 1500px) {
    *::-webkit-scrollbar {
        display: none;
    }

    *::-webkit-scrollbar-track {

    }

    *::-webkit-scrollbar-thumb {
        /*
        background-color: #888;
        transition: opacity 0.2s;
        opacity: 0;
        */
        display: none;
        visibility: hidden;
    }


    * {
        overflow-x: hidden;
    }
    .features {
        text-align: left;
        align-content: center;
        display: block;
        /* about 40% in rem */
        /* center this div */
        margin: 0 auto;
        font-size: small;
        /* align the features to the center, essentially always aligned to h2 here*/
        align-items: center;

        border: 0.25rem solid pink;
        border-radius: 1rem;
        min-width: auto;
        max-width: 50%;
        min-height: 16rem;
        object-fit: cover;
        transition: all 0.3s ease;
        position: relative;
        z-index: 1;
        cursor: pointer;
        background-color: black;

        width: calc(30rem + 2vw);

        /* make the div slightly bigger than the text */
        padding: 1rem;
        padding-top: 0.1rem;
        margin-bottom: 1rem;
    }

    .features h2 {
        /* center the "content" text inside the div */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    /* in this smaller screen size, the gallery preview and contributors divs are too big, so we need to make them smaller */

    #gallery-preview {
        width: calc(30rem + 2vw);
        height: calc(12rem + 2vw);
        font-size: small;
    }

    #view-contrib {
        width: calc(30rem + 2vw);
        height: calc(12rem + 2vw);
        font-size: small;
    }

    .slider {
        display: none;
    }

    .access-buttons {
        max-width: 100%;
    }

    .contentwrapper {
        background-color: #121415;
        border: 5px solid hotpink;
        max-width: 84rem;
        min-width: 30rem;
        margin-left: auto;
        margin-right: auto;
        padding: 3rem;
        padding-top: 0.5rem;
        border-radius: 1rem;
        padding-bottom: 0.5rem;
        overflow-x: hidden;
        width: 50%;
    }

    #gallery-preview {
        margin-right: 10px;
    }

    iframe {
        transform: scale(0.85);
        margin: 0 auto;

    }

}

@media screen and (max-width: 940px) {
    iframe {
        /* make sure its centered */
        transform: scale(0.75);
        align-content: center;
        margin-left: -2.2rem;
    }

    .contentwrapper {
        transform:  scale(0.75);
        margin-top: -8rem;
    }
}

@media screen and (max-width: 590px) {
    .contentwrapper {
        transform:  scale(0.75);
        margin-left: -2.5rem;
    }
}

@media screen and (max-width: 500px) {
    .contentwrapper {
        transform:  scale(0.65);
        margin-left: -2.5rem;
        margin-top: -13rem;
    }
}

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

@media screen and (max-width: 500px) {
    .gallerymain {

    }

    .gallerymain img {
        max-width: 20rem;
    }

    .screenshots {
        margin: 0 0 0 0;
        padding: 0 0 0 0;
    }

    /* we can just scale them down */
    .screenshots img {
        transform: scale(0.75);
    }

    .gm2 {
        text-align: left;
    }
}


@media screen and (max-width: 620px) {
    /* now we need support for smaller screens for contributors */
    #view-contrib {
        width: calc(20rem + 2vw);
        height: calc(12rem + 2vw);
    }

    /* we can just make the divs and it's content inside of it smaller */

    .contribs {
        align-content: center;
        font-size: 1.2rem;
        text-align: left;
        display: block;
        /* about 40% in rem */

        /* align the features to the center, essentially always aligned to h2 here*/
        align-items: center;
        max-width: 60%;
        width: calc(20rem + 2vw);
        height: calc(12rem + 2vw);
    }

    .contribs h1 {

        font-size: 1.1rem;
        text-align: left;
    }
}

.slidercontrib img {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 50%;
}
