/**
Theme Name: RD Games
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rd-games
Template: astra
*/

:root {
    --white: #FFFFFF;
}

.ast-container:has(.archive-game),
.ast-container:has(.single-game) {
    flex-direction: column;
    padding: 16px 0;
    max-width: var(--game-content-width, 314px);
}
@media (min-width: 1871px) {
    :root {
        --game-content-width: 1854px;
    }
}
@media (min-width: 1541px) and (max-width: 1870.9px) {
    :root {
        --game-content-width: 1524px;
    }
}
@media (min-width: 1321px) and (max-width: 1540.9px) {
    :root {
        --game-content-width: 1304px;
    }
}
@media (min-width: 1211px) and (max-width: 1320.9px) {
    :root {
        --game-content-width: 1194px;
    }
}
@media (min-width: 991px) and (max-width: 1210.9px) {
    :root {
        --game-content-width: 980px;
    }
}
@media (min-width: 111px) and (max-width: 990.9px) {
    :root {
        --game-content-width: 760px;
    }
}

/* Grid */
.archive-game .grid-block {
    margin: -8px;
}
.archive-game .grid-item {
    float: left;
    margin: 8px;
}
.archive-game .game-item {
    height: var(--size);
    width: var(--size);
}

/* Game */
.game-item {
    background: var(--white);
    box-shadow: 0px 7px 10px 4px rgba(93, 107, 132, 0.3);
    border-radius: 16px;
    min-height: var(--size);
    min-width: var(--size);
    transition: transform .6s;
    will-change: transform, box-shadow;
}
.game-item--small {
    --size: 94px;
}
.game-item--medium {
    --size: 204px;
}
.game-item--large {
    --size: 314px;
}
.game-link {
    color: currentColor;
    position: relative;
}
.game-link:hover,
.game-link:focus {
    color: currentColor;
}
.game-link:after {
    background: linear-gradient(#0000 25%, rgba(0, 0, 0, .3));
    border-radius: 16px;
    bottom: 0;
    content: "";
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity .3s;
    will-change: opacity, box-shadow;
    height: 100%;
    width: 100%;
    z-index: 1;
}
.game-title {
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    padding: 6px;
    pointer-events: none;
    position: absolute;
    left: 0;
    bottom: 0;
    opacity: 0;
    text-align: center;
    transform: translateY(8px);
    transition: transform .3s .1s, opacity .3s .1s;
    width: 100%;
    z-index: 2;
}
.game-image {
    border-radius: 16px;
    width: 100%;
}
.game-item:hover {
    transform: scale(1.04) translateY(-4px);
    transition-duration: .3s;
}
.game-item:hover .game-link:after {
    box-shadow: 0px 12px 16px 8px rgba(93, 107, 132, .3);
    opacity: 1;
}
.game-item:hover .game-title {
    opacity: 1;
    transform: translate(0);
}

/* Single Game */
.single-game .grid-block {
    --cellSpacing: 16px;
    display: grid;
    grid-auto-flow: row dense;
    justify-content: center;
    grid-gap: var(--cellSpacing);
    grid-template-columns: repeat(var(--gridTemplateColumns, 3), 94px);
    grid-template-rows: repeat(auto-fill, 94px);
}
.game-single-post {
    display: flex;
    justify-content: center;
    grid-area: igc;
}
.game-single-post .type-game {
    display: flex;
    flex-direction: column;
    padding: 0;
}
.game-player {
    flex-grow: 1;
}
.game-iframe {
    height: 100%;
    width: 100%;
}
.game-header {
    background: var(--white);
    display: flex;
    justify-content: space-between;
    padding: 12px;
    height: 64px;
}
.game-name-block {
    display: flex;
    column-gap: 8px;
}
.game-name-block .game-image {
    background: #ccc;
    border-radius: 8px;
    height: 40px;
    width: 40px;
}
.game-name-block .game-image img {
    box-shadow: none;
    border-radius: 8px;
}
.game-name {
    font-size: 20px;
    line-height: 24px;
}
.game-author {
    display: block;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: .3px;
}
.game-no-link {
    background-color: #F1F9FF;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* Advertisement */
.ads-item {
    display: flex;
    align-items: center;
}
.ads-wrapper {
    background: rgba(255, 255, 255, .5);
    overflow: hidden;
}
.ads-title {
    font-size: 9px;
    line-height: 2;
    letter-spacing: 1px;
    opacity: .7;
    text-align: center;
    text-transform: uppercase;
}
.ads-vertical {
    grid-area: av;
    flex-direction: column;
    justify-content: center;
    height: 644px;
    width: 204px;
}
.ads-vertical > .ads-wrapper {
    height: 600px;
    width: 160px;
}
.ads-horizontal {
    grid-area: ah;
    position: relative;
    height: 94px;
    width: 754px;
}
.ads-horizontal > .ads-wrapper {
    height: 90px;
    width: 728px;
}
.ads-horizontal > .ads-title {
    font-size: 8px;
    line-height: 1;
    position: absolute;
    right: 0;
    top: 50%;
    transform: rotate(90deg) translateX(50%) translate(-4px, 16px);
    transform-origin: center right;
}
.ads-square {
    flex-direction: column;
    justify-content: center;
    height: 314px;
    width: 314px;
}
.ads-square > .ads-wrapper {
    height: 250px;
    width: 300px;
}

@media (min-width: 1871px) {
    .single-game .grid-block {
        --gridTemplateColumns: 17;
        grid-template-areas: "... ... igc igc igc igc igc igc igc igc igc igc ir0 ir0 as as as" "av av igc igc igc igc igc igc igc igc igc igc ir0 ir0 as as as" "av av igc igc igc igc igc igc igc igc igc igc ir1 ir1 as as as" "av av igc igc igc igc igc igc igc igc igc igc ir1 ir1 ... ... ..." "av av igc igc igc igc igc igc igc igc igc igc ... ... ... ... ..." "av av igc igc igc igc igc igc igc igc igc igc ... ... ... ... ..." "av av ... ... ... ah ah ah ah ah ah ah ... ... ... ... ..."
    }
    .game-single-post .type-game {
        height: 644px;
        width: 1031px;
    }
}

@media (min-width: 1541px) and (max-width: 1870.98px) {
    .single-game .grid-block {
        --gridTemplateColumns: 14;
        grid-template-areas: "... igc igc igc igc igc igc igc igc igc igc as as as" "... igc igc igc igc igc igc igc igc igc igc as as as" "... igc igc igc igc igc igc igc igc igc igc as as as" "... igc igc igc igc igc igc igc igc igc igc ir0 ir0 ..." "... igc igc igc igc igc igc igc igc igc igc ir0 ir0 ..." "... igc igc igc igc igc igc igc igc igc igc ir1 ir1 ..." "... ... ... ... ah ah ah ah ah ah ah ir1 ir1 ..."
    }
    .ads-vertical {
        display: none;
    }
    .game-single-post .type-game {
        height: 644px;
        width: 1031px;
    }
}

@media (min-width: 1321px) and (max-width: 1540.98px) {
    .single-game .grid-block {
        --gridTemplateColumns: 12;
        grid-template-areas: "... igc igc igc igc igc igc igc igc as as as" "... igc igc igc igc igc igc igc igc as as as" "... igc igc igc igc igc igc igc igc as as as" "... igc igc igc igc igc igc igc igc ir0 ir0 ..." "... igc igc igc igc igc igc igc igc ir0 ir0 ..." "... ... ah ah ah ah ah ah ah ir1 ir1 ..." "... ... ... ... ... ... ... ... ... ir1 ir1 ..."
    }
    .ads-vertical {
        display: none;
    }
    .game-single-post .type-game {
        height: 534px;
        width: 836px;
    }
}

@media (min-width: 1321px) {
    .ads-square {
        grid-area: as;
    }
    .single-game .ir0 {
        grid-area: ir0;
    }
    .single-game .ir1 {
        grid-area: ir1;
    }
}

@media (max-width: 1320.98px) {
    .ads-square {
        display: none;
    }
}

@media (min-width: 1211px) and (max-width: 1320.98px) {
    .single-game .grid-block {
        --gridTemplateColumns: 11;
        grid-template-areas: "... igc igc igc igc igc igc igc igc av av" "... igc igc igc igc igc igc igc igc av av" "... igc igc igc igc igc igc igc igc av av" "... igc igc igc igc igc igc igc igc av av" "... igc igc igc igc igc igc igc igc av av" "... ... ah ah ah ah ah ah ah av av"
    }
    .game-single-post .type-game {
        height: 534px;
        width: 836px;
    }
}

@media (min-width: 991px) and (max-width: 1210.98px) {
    .single-game .grid-block {
        --gridTemplateColumns: 9;
        grid-template-areas: "... igc igc igc igc igc igc av av" "... igc igc igc igc igc igc av av" "... igc igc igc igc igc igc av av" "... igc igc igc igc igc igc av av" "ah ah ah ah ah ah ah av av" "... ... ... ... ... ... ... av av"
    }
}

@media (max-width: 990.98px) {
    .ads-vertical {
        display: none;
    }
}

@media (min-width: 111px) and (max-width: 1210.98px) {
    .game-single-post .type-game {
        height: 424px;
        width: 640px;
    }
}

@media (min-width: 111px) and (max-width: 990.98px) {
    .single-game .grid-block {
        --gridTemplateColumns: 7;
        grid-template-areas: "... igc igc igc igc igc igc" "... igc igc igc igc igc igc" "... igc igc igc igc igc igc" "... igc igc igc igc igc igc" "ah ah ah ah ah ah ah"
    }
}

@media (max-width: 767.98px) {
    .ast-container:has(.single-game) {
        overflow-y: auto;
    }
    .single-game .grid-block {
        justify-content: flex-start;
    }
}