@keyframes fade-out {
    0% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
#games_listing_container {
    text-align: center;
}
.m_games#games_listing_container {
    display: none;
}
#games_listing_container #filter_container {
    list-style-type: none;
    background-color: #732793;
    padding: 20px;
    padding-bottom: 0px;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
}
#filter_container .category {
    display: inline-block;
    color: #ffffff;
    padding: 5px 10px;
    padding-bottom: 20px;
    margin-bottom: 0px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9vw;
    margin-right: 0.8vw;
    border-bottom: 3px solid rgba(0, 0, 0, 0);
}
.hp_games #filter_container .category[data-category="Specialty"], .hp_games #filter_container .category[data-category="Scratch Cards"] {
    display: none;
}
#filter_container .category:last-child {
    margin-right: 0px;
	display:none;
}
.category .category_icon {
    width: 2vw;
    height: 2vw;
    margin: 0 auto;
    background-size: 200% 1.5vw;
    background-repeat: no-repeat;
    background-position: 0px 5px;
}
.category.activeCategory .category_icon {
    background-position: 100% 5px;
}
#filter_container .category.activeCategory, #filter_container .category:hover {
    color: #09d6db;
    border-bottom: 3px solid #09d6db;
}
#filter_container #game_search {
    position: absolute;
    right: 20px;
    width: 13%;
    min-width: 50px;
    padding: 10px;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 50px;
    background-image: url(../img/search.png);
    background-repeat: no-repeat;
    background-position: 90% center;
    background-size: 20px;
    color: #000000;
}
#game_container {
    text-align: center;
}
#game_container .game {
    width: 18.4%;
    display: inline-block;
    margin-right: 2%;
    margin-bottom: 20px;
    background-color: #ffffff;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
    vertical-align: top;
}
#game_container .game.margin_right {
    margin-right: 0px;
}
.game .game_img {
    width: 100%;
}
.game .game_badge {
    position: absolute;
    top: 10px;
    left: -10px;
    width: auto;
    min-width: 5vw;
    height: 1.8vw;
    border-radius: 0px 10px 10px 0px;
    font-weight: 500;
}
.game .game_badge.hot {
    background-color: #ffef00;
}
.game .game_badge.new {
    background-color: #09d6db;
    color: #ffffff;
}
.game .game_badge span {
    line-height: 1.8vw;
    font-size: 0.8vw;
    font-weight: bold;
}
.game .game_title {
    font-size: 0.9vw;
    font-weight: 600;
    line-height: 1.1em;
    color: #3f4043;
    padding: 15px 5px;
    margin-bottom: 0px;
    text-align: center;
}
.game.hide {
    display: none;
}
.game.activeGame {
    animation: fade-in 1s;
    opacity: 1;
}
.image_container {
    position: relative;
}
#game_container .game:hover .game_overlay {
    display: block;
}
#game_container .game:hover .game_badge {
    opacity: 0;
}
.game .game_overlay {
    background-color: rgba(0,0,0,0.85);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    display: none;
    animation: fade-in 0.2s;
}
.game .game_overlay a {
    display: inline-block;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #ffef00;
    background-image: url("../img/play.png");
    background-position: center;
    background-size: 30px;
    background-repeat: no-repeat;
    margin-top: calc(50% - 35px);
    pointer-events: none;
}
.game .game_overlay:hover a {
    pointer-events: initial;
}
.game .game_overlay a:hover {
    transform: scale(1.2);
}
#games_listing_container #all_games_button, #mobile_games_listing #all_games_button {
    padding: 0.5vw 2.1vw;
    border-radius: 50px;
    font-weight: 700;
    background-color: #09d6db;
    color: #ffffff;
    font-size: 1.05vw;
    display: inline-block;
    margin-top: 50px;
}
#games_listing_container #all_games_button:hover, #mobile_games_listing #all_games_button:hover {
    transform: scale(1.1);
}

@media (max-width: 1300px) and (min-width: 981px) {
    #games_listing_container {
        width: 90%;
    }
}

@media screen and (max-width: 1024px) {
    #mobile_games_listing {
        width: 90%;
        margin: 0 auto;
        text-align: center;
    }
    #mobile_games_listing #mobile_title {
        font-size: 30px;
        color: #732793;
        font-weight: 800;
    }
    #mobile_games_listing #filter_container {
        padding-left: 20px;
        padding-right: 20px;
        overflow-x: scroll;
        white-space: nowrap;
        width: 111%;
        background-color: #732793;
        position: relative;
        left: -5.5%;
        margin-bottom: 20px;
    }
    .hp_games#mobile_games_listing #filter_container {
        display: none;
    }
    .all_games#mobile_games_listing .category[data-category="Scratch Cards"] {
        display: none;
    }
    #mobile_games_listing #game_search {
        width: 80%;
        border-radius: 50px;
        background-image: url(../img/search.png);
        background-repeat: no-repeat;
        background-position: 90% center;
        background-size: 20px;
        color: #000000;
        display: inline-block;
    }
    .all_games #mobile_games_listing #game_search {
        position: relative;
        right: initial;
        top: initial;
    }
    #filter_container .category {
        font-size: 13px;
        padding-bottom: 10px;
    }
    .category .category_icon {
        width: 25px;
        height: 25px;
        background-size: 200% 20px;
    }
    #game_container {
        padding-top: 20px;
    }
    #game_container .game {
        width: 49%;
        margin-right: 2%;
    }
    .game .game_badge {
        left: -3px;
    }
    #mobile_games_listing #all_games_button {
        margin-top: 25px;
        font-size: 16px;
        padding: 10px 40px;
    }
    .game .game_title {
        padding: 10px 5px;
        font-size: 13px;
        line-height: 17px;
		text-overflow: ellipsis;
		white-space: nowrap;
		overflow: hidden;
    }
}

/* tablet */
@media screen and (min-width: 700px) and (max-width: 1025px) {
    #game_container .game {
        width: 32%;
    }
    #mobile_games_listing #game_search {
        width: 50%;
    }
}