﻿.games {
    overflow: hidden;
    height: 100%;
    width: 100%;
    position: relative;
}

.games .carousel-pages {
    position: absolute;
    bottom: 0px;
    width: 100%;
	margin: auto;
}

.game-items {
    /*height: 100%;*/
    /*width: 5000px;*/
    transform: translateX(0);
    transition: all ease-out 0.2s;
}

.game-items .game-content {
    opacity: 0;
    transform: translateY(-20px);
    transition: all ease-in-out 0.3s;
}

.game-items .current .game-content {
    transform: translateY(0);
    opacity: 1;
}

.click-area {
    display: none;
    /*background-color: rgba(255, 0, 0, 0.2);*/
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 3;
    cursor: url(/Images/nextCursor.png) 32 32, auto;
    pointer-events: fill;
}

.click-area.prev {
    left: 0;
    cursor: url(/Images/prevCursor.png) 32 32, auto;
}

.click-area.next {
    right: 0;
    cursor: url(/Images/nextCursor.png) 32 32, auto;
}

.games article {
    float: left;
    position: relative;
    width: 100vw;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    /*background-image: url(/Images/Games/Survival/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;*/
    transition: transform ease-in-out 0.6s;
    /*text-align: center;*/
}

.games article:before {
    content: '';
    display: block;
    /*background-color: 0;
    background: linear-gradient(to bottom, 0, 0);*/
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 0%;
}

.games article:after {
    position: absolute;
    display: block;
    content: '';
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 0%;
    pointer-events: none;
    /*background: linear-gradient(to bottom, 0, 0, 0);*/
}

.games article.current {
    pointer-events: auto;
    opacity: 1;
    z-index: 2;
}

.games article .play-button {
    transform: scale(1);
}

.games article.current .play-button:hover {
    transform: scale(1.2);
}

.games article content {
    z-index: 1;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /*margin-bottom: 110px;*/
}

.games article content:after {
    content: '';
    clear: both;
    display: table;
}

.games article content .column {
}

.games article content div .play-button {
    margin-top: 0px;
}

/*.game-content > p {
    display: none;
}*/

.close {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    background-image: url(../Images/closeMenuIcon.png);
    background-position: center;
    background-repeat: no-repeat;
    width: 30px;
    height: 40px;
    background-size: contain;
    opacity: 0.5;
    transition: all ease-in-out 0.2s;
}

.close:hover {
    opacity: 1;
}

.close > span {
    display: none;
}

@media (min-width: 1230px) {
    .games .nav-arrows {
    display: block;
    }
	
	.games .carousel-pages {
	bottom: 0px;    
}

}

@media (min-width: 1025px) {

    .games article {
        background-position: 0% 0;
    }

    .games article content {
        position: relative;
        max-width: 990px;
        padding: 0 20px;
        margin: auto;
        z-index: 4;
        text-align: left;
    }

    /*.game-content > p {
        display: block;
        margin: 1rem 0;
    }*/

    .game-content .button {
        display: inline-block
    }

    .games article content .game-content,
    .games article content .video-content {
        width: 50%;
        float: left;
    }

    .games article content:after {
        display: table;
        clear: both;
        clear: both;
    }

    .games .nav-arrows {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 0;
        z-index: 3;
    }

    .nav-arrows.fixed {
        position: fixed;
    }
	
	.games .carousel-pages {
	bottom: 0px;
}
}