:root {
    --light: #ccc8c1;
    --orange: #ff6600;
    --insert-width:530px;
    --insert-margin:50px;
    --game-width:1200px;
}

@font-face {
    font-family: "KixLax";
    src: url("Y1KixLax.otf");
}

@font-face {
    font-family: "Bookman";
    src: url("BOOKOS.ttf");
}

@font-face {
    font-family: "Premios";
    src: url("Premios.otf");
}

body {
    margin: 0;
    background-color: black;
    background-image: url("media/Noise.jpg");
    overflow-x: hidden;
    padding-bottom:20px;
}

h2 {
    font-family: KixLax;
    font-size: 64pt;
    font-weight: 100;
}
p{
    margin:0;
}
h3 {
    margin: 0;
}
h4 {
    margin: 0;
}
h5{
    margin:0;
}
ul {
    margin: 0;
}
#new {
    width: 100%;
    height: 330px;
    background: url("media/NewNewNew.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
}
.side-by-side{
    display:flex;
    width:80%;
}
.hover-reveal{
    
}
.hover-overlay{

}
.section {
    width:100%;
    overflow:hidden;
    text-align:center;
}
.insert + .section{
    width:calc(99% - var(--insert-width) - var(--insert-margin) - 80px);
    padding-right:80px;
}
    .insert + .section + .section {
        width: calc(99% - var(--insert-width) - var(--insert-margin) - 80px);
        padding-right: 80px;
    }
.insert > a > .button{
    width:max-content;
    position:absolute;
    bottom:5%;
    font-size:2em;
    left:30%;
}
.header {
    width: 100%;
    height: 3em;
    margin: 15px 0;
    text-align: center;
    color: var(--light);
    display: flex;
    justify-content: space-between;
}

    .header > .text-buttons {
        padding-right: 0;
        display: flex;
        position: relative;
        transition: padding-right;
        transition-duration: 0.5s;
    }

        .header > .text-buttons > a > .button {
            position: absolute;
            right: 0;
            margin-right: 12px;
            margin-top: 14px;
            transition: opacity;
            transition-duration: 0.5s;
            opacity: 0%;
        }

.section:hover > .header > .text-buttons {
    
}
.section:hover > .header > .text-buttons-100 {
    padding-right: 100px;
}
.section:hover > .header > .text-buttons-140 {
    padding-right: 140px;
}

    .section:hover > .header > .text-buttons > a > .button {
        opacity: 100%;
    }

.header > .text-buttons > h2 {
    margin: 0 1px;
    line-height: 0.6em;
    z-index: 10;
    white-space:nowrap;
}

.header > .halftone {
    height: 100%;
    width: 100%;
}

/*#carousel-wrapper {
    width: 90%;
    overflow-x: scroll;
    margin: auto;
}

#carousel-contents {
    display: flex;
    margin: 10px 0;
    height: 150px;
}*/
/*
            .carousel-item{
                background:white;
                height:100%;
                min-width:250px;
                margin:0 10px;
                position:relative;
            }*/
.halftone {
    /*source: https://css-irl.info/css-halftone-patterns/*/
    --dotSize: 0.2rem;
    --bgSize: 0.7rem;
    --bgPosition: calc(var(--bgSize) / 2);
    background-image: radial-gradient( circle at center, #1e1d1b var(--dotSize), transparent 0 ), radial-gradient(circle at center, #1e1d1b var(--dotSize), transparent 0), linear-gradient(var(--light),var(--light));
    background-size: var(--bgSize) var(--bgSize);
    background-position: 0 0, var(--bgPosition) var(--bgPosition);
}

.main-centered {
    max-width: 1000px;
    margin: 0 auto;
}
.centered{

}
.window-wrapper {
    transform: scale(80%);
    width: max-content;
    transition-duration:2s;
}

.window {
    display: flex;
    filter: drop-shadow(0 0 5px var(--light));
    width:100%;
}

.window-content {
    position: absolute;
    top: 56px;
    font-family: Bookman;
    padding: 5px;
    width: 100%;
    font-size: 1.8em;
}

    .window-content > p {
        margin: 0 5px 10px 2%;
        width:96%;
    }

.window > div {
    height: 315px;
    margin: 0;
    background-size: 100% 100%;
}

.left {
    background: url("media/Window-Left.png");
}

    .left > h2 {
        line-height: 0.74em;
        margin: 0;
        color: var(--light);
        font-size: 4.7em;
        -webkit-text-stroke: 1px #1e1d1b;
        margin-right: 2px;
        width:max-content;
    }

.center {
    background: url("media/Window-Center.png");
    width: 100%;
}

    .center > p {
        font-family: Premios;
        margin: 0;
        padding: 5px 5px 0px 10px;
        font-size: 1.4em;
    }

.right {
    background: url("media/Window-Right.png");
    width: 24px;
}

.vertical-center {
    /*source: https://www.w3schools.com/howto/howto_css_center-vertical.asp*/
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.buttons {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.button {
    font-family: Premios;
    color: var(--light);
    background: #1e1d1b;
    font-size: 1.2em;
    border: 1px solid var(--light);
    outline: 1px solid #1e1d1b;
    overflow: hidden;
    text-align:center;
}

    .button:hover {
        color: var(--orange);
        border: 1px solid var(--orange);
    }

#navbar {
    width: calc(100% - 20px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 10px 25px 10px;
    font-size: 1.5em;
    position:relative;
    z-index:500;
}

a {
    text-decoration: none;
}

#about-contact {
    font-family: Bookman;
    color: var(--light);
    display: flex;
    flex-direction: column;
    text-align: right;
    margin: 6px 0 0 0;
}

    #about-contact > a {
        line-height: 0.75em;
        color: var(--light);
    }
    #about-contact > a:hover{
        color:var(--orange);
    }

h1 {
    font-family: Premios;
    margin: 0 0 0 20px;
    color: var(--light);
}
h1:hover{
    text-shadow:2px 2px 1px var(--orange);
}
#links {
    color: var(--orange);
    font-family: Bookman;
    margin: 2px 0 0 0
}

.links-row {
    display: flex;
    justify-content: flex-start;
}

    .links-row > a {
        margin: 0px 10px;
        line-height: 0.9em;
        color:var(--orange);
    }

        .links-row > a:hover {
            color: var(--light);
        }

.poster-wrapper {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
}

#poster {
    height: 250px;
    transform: rotate(4deg);
    transition-duration:2s;
}

#poster-bg {
    transform: rotate(-6deg);
    height: min-content;
}




.carousel-item {
    height: 200px;
    position: relative;
    transition-property: margin-bottom opacity border-radius;
    transition-duration: 2s;
    margin: 0px 20px;
}

    .carousel-item:hover {
        width: max-content;
    }

        .carousel-item:hover > img, .carousel-item:hover > a > img {
            border-radius: 15px;
        }
    .carousel-item > img, .carousel-item > a > img{
        height: 200px;
        width: auto;
        position: relative;
        z-index: 5;
        border-radius: 0;
        transition-duration: 1s;
        transition-property: border-radius;
    }

        .carousel-item > img + img, .carousel-item > a > img + img {
            position: absolute;
            top: 0;
            left: 0;
            opacity: 0;
            transition: opacity, border-radius;
            transition-duration: 0.5s;
            transition-delay: 0.1s;
        }

    .carousel-item:hover > img + img, .carousel-item:hover > a > img + img {
        opacity: 100%;
        border-radius: 15px;
    }

    .carousel-item > .description {
        position: absolute;
        top:0;
        z-index:100;
        opacity:0;
        transition-property: opacity;
        overflow: hidden;
        width: 100%;
    }
.description {
    background: var(--light);
    width:100%;
    height: 100%;
    text-align: center;
    border-radius: 15px;
    outline: 1px solid var(--light);
    border: 1px solid #1e1d1b;
}

.looping-scroll {
    display: flex;
    animation: scroll-loop 30s ease-in-out infinite;

}
    .looping-scroll:hover {
        animation-play-state: paused;
    }
@keyframes scroll-loop {
    0%{
        margin-left:-80vw;

    }
    50%{
        margin-left:00vw;
    }
    100%{
        margin-left:-80vw;
    }
}
.looping-scroll > .carousel-item > .description{
    width:100px;
}
.near-end > img {
    z-index: 10;
}


.carousel-item:hover > .description {
    display: block;
    opacity:100%;
    filter: drop-shadow(20px 0 40px #1e1d1b);
}
/*.carousel-item:hover ~ .section-description > p {
    color:red;
    content:"poo";
}*/

.design > .description{
    display:none;
    visibility:hidden;
}

.design:hover{
    transform:scale(150%);
    z-index:100;

}

.description > h4 {
    margin: 2px auto 2px auto;
    font-family: Premios;

}

.description > p {
    margin: 0 0 0 5px;
    font-family: Bookman;

}

.description > .date {
    margin: 2px;
    float: right;
    font-family: Premios;
    font-size: 0.7em;
}

.description > .buttons {
    justify-content: space-evenly;
    margin-top: 5px;
}

.description > .buttons > a {
        width: 40%;
    }

.scroll-wrapper {
    /*overflow: hidden;*/
    width: 90%;
    position: relative;
    margin: auto;
}

.scroll-container {

    width: 100%;
    display:flex;/*CHANGE THIS TO TOTAL WIDTH OF ONE CAROUSEL-PRIMARY DIV*/
    flex-direction:row;
    flex-wrap:wrap;
    position: relative;
    justify-content:center;
}


.carousel-primary {
    transition-duration: 1s;
    margin: auto;
}


.carousel-primary,
.carousel-secondary {
    /*left: 100%;
    position: absolute;
    margin: 0 20px 0 0;
    width: min-content;*/
}
/*
                 .carousel-primary:hover + .carousel-secondary{
                     margin-left:400px;
                 }
                    .carousel-primary:has(+.carousel-secondary:hover) {
                        margin-left: 400px;
                    }
                    */

/*.carousel-primary {
    display: flex;
    animation: scroll-horizontal 60s linear infinite;
    animation-delay: -30s;
}

.carousel-secondary {
    animation: scroll-horizontal 60s linear infinite;
    animation-delay: 0s;
    transition: margin-left;
    transition-duration: 0.5s;
    margin-left: 0;
}

.carousel-primary:hover {
    width: 1932px;
}

@keyframes scroll-horizontal {
    0% {
        left: 100%;
    }

    100% {
        left: -100%;
    }
}




.carousel-primary:hover,
.carousel-primary:hover ~ .carousel-secondary {
    -webkit-animation-play-state: paused;
    -moz-animation-play-state: paused;
    -o-animation-play-state: paused;
    animation-play-state: paused;
}

.carousel-secondary:hover {
    -webkit-animation-play-state: paused;
    -moz-animation-play-state: paused;
    -o-animation-play-state: paused;
    animation-play-state: paused;
}


.scroll-container:hover > .carousel-primary:not(:hover) {
    -webkit-animation-play-state: paused;
    -moz-animation-play-state: paused;
    -o-animation-play-state: paused;
    animation-play-state: paused;
}

.scroll{
    width:90%;
    height:250px;
    border:none;
    margin:0 auto;
}
*/


.insert {
    height: 570px;
    width: var(--insert-width);
    /*background: var(--orange);*/
    float:left;
    overflow:hidden;
    margin-top:20px;
    position:relative;
}
.insert-photos {
    display: flex;
    justify-content: space-between;
    padding:50px 5% 0 5%;
}
    .insert-photos > img {
        width: 25%;
        position: relative;
        align-self: center; /*replaces height:auto*/
    }
.insert-photo-1 {
    transform: scale(170%) rotate(-15deg);
}
.insert-photo-2 {
    transform: scale(170%) rotate(3deg);
}
.insert-photo-3 {
    transform: scale(170%) rotate(12deg);
}
.insert-title {
    height: 90px;
    -webkit-text-stroke: #1e1d1b 1px;
}
    .insert-title + h2 {
        font-family: Premios;
        font-size: 2.4em;
        text-align:center;
        margin: 0 0px 0 140px;
    }
    .insert > p{
        font-family:Bookman;
        font-size:1.7em;
        text-align:right;
        margin:0;
    }
        .insert > p + h2 {
            font-family: Premios;
            font-size: 2.4em;
            text-align: center;
            margin: 0 0px 0 140px;
            color: var(--light);
            -webkit-text-stroke: 2px #1e1d1b;
        }
        .insert-title > h2 {
            font-family: Premios;
            color: var(--light);
            margin: auto 0;
            text-align: right;
            font-size: 2.4em;
            line-height: 40px;
        }
.float-left{
    float:left;
    margin-right:10px;
}
.float-right{
    float:right;
    margin-left:10px;
}
#manzanar{
    margin:16px 10px 0 var(--insert-margin);
    background-image: url("media/inserts/Manzanar_BG.png");
    background-size:cover;
    background-position:center;
}

.fade {
    position: fixed;
    top: 0;
    z-index: 50;
    background-position: right;
    background-image: url("media/Fade.png");
    background-repeat: repeat-y;
    background-size: cover;
    width: 200px;
    height: 100vh;
    transition-duration: 2s;
    pointer-events: none;
}
#fade-right {
    right: 0;
    transform: rotate(180deg);
    background-position: right;
}
.side-by-side > div{
    position:relative;
    width:80%;
    height:250px;
    margin:0 auto;
}
.side-by-side > div > .description{
    position:absolute;
    top:0;
    opacity:0;
    transition:0.5s ease-in-out;
}
.side-by-side > div:hover > .description{
    opacity:100%;
}
#photography-portfolio{
    background-image:url("media/web/PhotographyPortfolio_dither.png");
    background-size:cover;
    background-position:center;
    height:250px;
    border-radius:15px;
}
#scrapped-site {
    background-image: url("media/web/ScrappedSite.png");
    background-size: cover;
    background-position: center;
    height: 250px;
    border-radius: 15px;
}
#windows-seven {
    background-image: url("media/web/Windows7.png");
    background-size: cover;
    background-position: center;
    height: 250px;
    border-radius: 15px;
}

.game {
    display: flex;
    background: var(--light);
    border-radius: 15px;
    outline: 1px solid var(--light);
    border: 1px solid #1e1d1b;
    height: calc(300px + 2em);
    width: var(--game-width);
    margin: 10px auto;
    overflow: hidden;
    z-index:500;
    position:relative; /*needed for z index to do anything*/
    text-align:left;
}

.gallery {
    background: #1e1d1b;
    border-radius: 15px;
    overflow: hidden;
    width: 240px;
    min-width: 240px;
}

    .gallery > div > a {
        border: 2px solid transparent;
        border-radius: 15px;
    }

        .gallery > div > a:hover {
            border: 2px solid var(--orange);
        }

.game-body {
    padding: 10px;
    position: relative;
    width: calc(var(--game-width) - 252px);
}

.cover-image {
    width: 100%;
    height: 67%;
    margin: 0;
    text-align: center;
}

    .cover-image > a {
        display: flex;
        height: calc(100% - 4px);
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

        .cover-image > a > img {
            height: 100%;
            flex: none;
        }

.gallery-row {
    display: flex;
    margin: 0;
    height: 33%;
    flex-wrap: nowrap;
    overflow: hidden;
}

.gallery-image {
    height: calc(100% - 4px);
    min-width: 116px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

    .gallery-image > img {
        height: 100%;
        flex: none;
        filter: grayscale(1) sepia(0.1);
    }

.title-row {
    display: flex;
    overflow: hidden;
    height: 50px;
    justify-content: space-between;
}


    .title-row > h4 {
        margin: auto 10px;
        display: none;
    }

.game-title {
    margin: 0;
    inline-size: min-content;
    text-align: center;
    margin: auto 0;
    height: 40px;
    white-space: nowrap;
}

    .game-title > h2 {
        height: 50px;
        margin: 0;
        font-family: Bookman;
        font-weight: bold;
        font-size: 40px;
        line-height: 1em;
    }

.game-body > h3 {
    margin-left: 10px;
    text-align:left;
}

.my-roles {
    display: flex;
    width: 100%;
    overflow: hidden;
    padding-left: 10px;
}

.role {
    width: 100%;
}

.game-description {
    display: flex;
}

    .game-description > div > p {
        padding: 0 0 0 10px;
        width: calc(var(--game-width) - 252px - 130px);
    }

        .game-description > div > p > a {
            color: black;
            font-weight: bold;
            text-decoration: underline;
        }

            .game-description > div > p > a:hover {
                color: var(--orange);
            }

.publish-list {
    margin: 0 0 0 10px;
    width: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.store-logo {
    width: 80%;
    height: auto;
    margin: auto;
}

.hover-shadow:hover {
    filter: drop-shadow(0px 0px 2px rgba(1,1,1,0.5));
}

.awards {
    display: flex;
    height: 50px;
    max-width: 620px;
    justify-content: space-between;
    align-items: center;
}

.award {
    width: 100%;
    height: auto;
    max-height: 50px;
    margin: 0;
}

.awards > a {
    width: 100%;
    height: min-content;
}



.learn-more {
    font-size: 2em;
}

.bottom-pin {
    position: absolute;
    left:10px;
    bottom: 10px;
    height: min-content;
    max-width: calc(100vw - 20px);
}
.image-row {
    display: flex;
    width: 90%;
    margin: 0 auto;
    justify-content: center;
}

.image-row-entry {
    margin: 0 1%;
    text-align: center;
    background: var(--light);
    padding: 10px;
    color: #1e1d1b;
    border-radius: 10px;
    width: 100%;
    max-width: 50%;
}

    .image-row-entry > a {
        min-width: 25%;
        min-height: 100px;
        width: 40%;
        max-height: 150px;
    }

        .image-row-entry > a > .image {
            border: 2px solid #1e1d1b;
            border-radius: 10px;
            box-shadow: inset #1e1d1b 0px 0px 20px 10px;
            max-height: 150px;
            min-width: 25%;
            min-height: 100px;
            background-position: center;
            background-size: cover;
            transition-duration: 0.5s;
            margin: 0 auto;
        }

        .image-row-entry > a:hover > .image {
            box-shadow: inset #1e1d1b 0px 0px 20px 0px;
            transform: scale(105%);
        }

    .image-row-entry > h4 {
        margin: 0 0 5px 0;
    }


@media(max-width:1220px) {
    .gallery {
        max-height: 100%;
        height: 100%;
        margin-bottom: -100%;
        position: absolute;
    }

    .game {
        width: 750px;
        height: min-content;
        position: relative;
        padding-bottom: calc(2em + 10px);
    }

    .bottom-pin {
        bottom: calc(-2em);
    }

    .game-body {
        width: 490px;
        height: min-content;
        margin-left: calc(33% - 10px);
    }

    .title-row {
        flex-wrap: wrap;
        height: auto;
    }

        .title-row > h4 {
            display: block;
        }

    .publish-list {
        display: none;
    }

    .game-description > div > p {
        width: calc(750px - 272px);
    }

    .cover-image {
        height: 50%;
    }

    .gallery-row {
        height: 50%;
        flex-wrap: wrap;
    }

    .gallery-image {
        width: 116px;
        height: calc(50% - 4px);
    }

    .hide-on-small-view {
        display: none;
    }
}

@media(max-width:770px) {
    .game {
        margin:10px auto;
        width: calc(100vw - 42px);
        height: auto;
        flex-direction: column-reverse;
        justify-content: space-between;
    }

    .game-body {
        width: calc(100vw - 82px);
        padding: 0 20px 0 20px;
        margin-left: 0;
    }

    .game-description > div > p {
        width: 100%;
    }

    .gallery {
        display: none;
    }

    .gallery-row {
        display: none;
        height: 0;
    }

    .awards {
        display: none;
    }

    .my-roles {
        margin-bottom: 2.5em;
    }

    .cover-image {
        height: 100%;
    }
}

@media(max-width:370px) {
    .my-roles {
        margin-bottom: 4.5em;
    }

    .game-title {
        white-space: initial;
        height: 80px;
    }
}





@media (max-width:1220px) {
    #navbar {
        width: 88%;
        flex-wrap: wrap;
    }
    #poster{
        height:150px;
    }
    .fade{
        width:100px;
    }
    
}

@media (max-width:850px) {
    #navbar {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

        #navbar > h1 {
            width: 400px;
        }
    #poster{
        height:0px;
    }
    .window-wrapper {
        width:100%;
    }
    .left > h2{
        display:none;
    }
    
    .window-content{
        width:100%;
    }
    .insert {
        float: none;
        margin:10px auto;
    }
} 
@media(max-width:500px){
    
}