@keyframes pulse {
    0% {
        transform: scale(1.0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1.0);
    }
}
.game-index-title{
    color: #fff;
    margin-top: 30px;
}

.game-index-title:first-child{
    margin-top: 0;
}
.game-index-game{
    display: inline-block;
    width: 200px;
    margin-right: 17px;
}
.main-game{
    visibility: visible;
    display: block;
    position: relative;
}
.play-mobile-game,
.mobile-logo,
.mobile-rotate{
    display: none;
}

.play-desktop-game {
    display: block;
    width: 332px;
    height: 332px;
    overflow: hidden;
    box-shadow: 0 6px 10px rgba(0,0,0,.4);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1111;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 30px;
}
.play-desktop-game:after {
    content: '';
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    position: absolute;
    left: 0;
    top: 0;
    border-radius: var(---default-radius);
}
body.playing .play-desktop-game {
    display: none;
}
.play-desktop-center {
    position: absolute;
    text-align: center;
    transform: translate(0,-50%);
    width: 100%;
    top: 50%;
    z-index: 2;
}
.play-desktop-center i {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #fff;
    line-height: 50px;
    border-radius: 50px;
    color: var(--main-color);
    text-align: center;
    font-size: 26px;
    box-shadow: 0 2px 15px rgba(111,111,111,.5);
    box-sizing: border-box;
    padding-left: 5px;
    animation: pulse 2s ease 0s infinite;
}
.play-desktop-center span {
    display: block;
    text-align: center;
    color: #fff;
    font-size: 18px;
    margin-top: 0;
    font-weight: bold;
    text-shadow: 0 0 4px rgba(0,0,0,0.6);
}
.game-container {
    width: 100%;
}
.crazygamescom .play-desktop-game {
    top: calc(50% - 22.5px);
}

.game-container .related-games {
    width: calc(100% - 800px);
}
.game-container .related-games .grid-container {
    margin: 0;
    justify-content: start;
}
.game-container .related-games .game-logo-related, .game-container .related-games .thumb {
    margin-bottom: 0;
}
.game-details picture {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
}
.game-details img {
    object-fit: cover;
}
.game-details h1 {
    font-size: 16px;
    line-height: 1.5 !important;
    margin: 0 0 0 15px;
}
.game-details-content {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.game-details-content h1 {
    color: #222222;
}
.play-mobile-game {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.play-mobile-game img {
    display: none;
}
.game-container .game-details {
    position: absolute;
    width: 100%;
    bottom: 0;
    height: 65px;
    line-height: 45px;
    background: #fff;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 0 0 10px 10px;
}
.game-container .game-details, .game-container .fullscreen .game-details {
    background: #f9f9f9;
}
#game-fullscreen {
    color: var(--main-bg-color);
    position: relative;
}
#game-fullscreen:hover {
    color: var(--main-color);
    cursor: pointer;
}
.icon-resize-full, .icon-resize-normal, .icon-gamepad {
    background-image: url("../img/icon/fullscreen.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 26px;
    height: 26px;
    display: block;
}
.icon-resize-full:hover, .icon-resize-normal:hover, .icon-gamepad:hover {
    opacity: 0.8;
}
.icon-gamepad {
    width: 28px;
    height: 28px;
}
.icon-resize-normal {
    background-image: url("../img/icon/minimize.png");
}
.icon-gamepad {
    background-image: url("../img/icon/console.png");
}
#game-instructions {
    color: var(--main-bg-color);
    position: relative;
    margin-right: 10px;
}
#game-instructions:hover {
    color: var(--main-color);
    cursor: pointer;
}
#iframe-game-play {
    width: 100%;
    height: 100%;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
}
.game-container .game-iframe-container {
    position: relative;
    background: #000000;
    width: 100%;
    height: calc(100% - 65px);
    display: block;
}
.crazygamescom .game-container .game-iframe-container {
    height: calc(100% - 20px);
}
.game-container .main-game-content {
    border-radius: 10px;
    overflow: hidden;
    height: 665px;
    position: relative;
    box-shadow: 0 6px 8px rgba(0, 0, 0, .3);
    margin-left: auto;
    margin-right: auto;
}
.mobile-1 .game-container .game-iframe {
    width: auto !important;
    min-width: 44%;
    transform: translateX(-50%);
    left: 50% !important;
}
.game-container .fullscreen .game-iframe-container {
    padding-bottom: 0 !important;
    background: #121212;
}
.crazygamescom .game-container .main-game-content {
    height: 620px;
    overflow: hidden;
}
.crazygamescom .game-container .fullscreen .game-iframe-container {
    height: calc(100% - 20px)!important;
}
.panel-guide {
    display: none;
    position: absolute;
    width: 400px;
    max-height: 400px;
    background-color: #2d343f;
    bottom: 0;
    right: 10px;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    z-index: 99999;
    pointer-events: initial;
    transform: translate(0, -10px);
}
.panel-guide .quit {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 1px 8px 4px;
    border-radius: 15px;
    background-color: #9ea1a5;
    cursor: pointer;
    width: 30px;
    height: 30px;
    text-align: center;
}
.panel-guide .title {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 16px;
    font-weight: 700;
}
.panel-guide .content {
    margin-top: 30px;
    padding: 15px 0 0 0;
    overflow-y: auto;
    max-height: 360px;
    background: transparent;
    font-size: 13px;
    border-top: 1px solid var(--border-color);
}
.panel-guide .content > *:last-child {
    margin-bottom: 0;
}
.panel-guide .content h2, .panel-guide .content h3 {
    font-size: 16px;
}
.icon-play, .play-desktop-center i {
    background-color: #FFFFFF;
    background-image: url("../img/icon/play.webp");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 3px center;
    padding: 0;
}
.game-details .rating {
    position: absolute;
    right: 10px;
    width: auto;
    color: var(--main-color);
    top: 50%;
    transform: translate(0, -50%);
}
@media screen and (min-width: 1300px) {
    .game-container .main-game-content {
        width: 920px;
    }
}
@media screen and (max-width: 1100px) {
    .game-container .main-game-content {
        float: none;
        margin-right: auto;
        margin-left: auto;
        width: 100%;
    }
}
@media screen and (max-width: 600px), screen and (max-height: 600px) and (orientation: landscape) {
    body.play .panel-guide .content {
        margin-top: 35px;
    }
    .game-container .game-iframe {
        display: none;
        position: fixed !important;
    }
    .game-container .game-details .rating {
        display: none;
    }
    .game-container .main-game-content {
        overflow: visible;
        width: 100% !important;
        height: 0 !important;
        margin: 0 !important;
        position: relative;
    }
    .play-desktop-game {
        display: none;
    }
    .game_not_available {
        display: none;
    }
    .game-details h1 {
        font-size: 20px;
    }
    .game-container .game-details {
        background: none;
        width: calc(100% - 115px);
        display: none;
    }
    .centered-container, .game-container {
        width: 100%;
        box-sizing: border-box;
    }
    .play-mobile-game {
        box-sizing: border-box;
        display: block;
        max-height: 332px;
        width: calc(100% - 10px);
        height: 0;
        padding-bottom: 100%;
        margin: 12px auto 10px auto;
        position: relative;
        border-radius: 30px;
        overflow: hidden;
        box-shadow: 0 6px 10px rgba(0, 0, 0, .4);
    }
    .play-mobile-game.disabled-mobile, .play-mobile-game.disabled-mobile img{
        filter: grayscale(1);
    }

    .play-mobile-game .play-action,
    .play-mobile-game.disabled-mobile .play-action-disabled{
        display: block;
    }

    .play-mobile-game.disabled-mobile .play-action,
    .play-mobile-game .play-action-disabled{
        display: none;
    }
    .play-mobile-center {
        position: absolute;
        text-align: center;
        transform: translate(0, -50%);
        width: 100%;
        top: 50%;
        z-index: 2;
    }
    .play-mobile-center i {
        display: inline-block;
        width: 50px;
        height: 50px;
        line-height: 50px;
        border-radius: 50px;
        color: var(--main-color);
        text-align: center;
        font-size: 26px;
        box-shadow: 0 2px 15px rgba(111, 111, 111, .5);
        box-sizing: border-box;
        padding-left: 5px;
        animation: pulse 2s ease 0s infinite;
    }
    .play-mobile-center span {
        font-size: 20px;
        display: block;
        text-align: center;
        color: #fff;
        padding: 10px 0;
        margin-top: 0;
        font-weight: bold;
    }
    .play-mobile-game:after {
        position: absolute;
        content: "";
        display: block;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, .4);
        z-index: 1;
    }
    :not(:root):fullscreen .crazygamescom:after,
    body.playing .crazygamescom:after {
        content: '';
        width: 100%;
        bottom: 0;
        height: 45px;
        background: #000;
        position: absolute;
        left: 0;
        z-index: 222222;
    }
    :not(:root):fullscreen .game-container .game-iframe,
    body.playing .game-container .game-iframe {
        height: calc(100% - 53px) !important;
        display: block;
    }
    body.playing .header {
        display: none;
    }
    body.playing .mobile-logo {
        display: block !important;
        width: 60px;
        height: 45px;
        position: fixed;
        top: 24px;
        left: 0;
        z-index: 101;
        background: var(--main-color);
        border-radius: 0 45px 45px 0;
        padding: 0 7px;
        box-sizing: border-box;
        box-shadow: 0 0 15px rgba(111, 111, 111, .5);
    }
    body.playing .mobile-logo img {
        object-fit: contain;
        float: left;
        width: 100%;
        height: 100%;
    }
    :not(:root):fullscreen .game-details,
    body.playing .game-details {
        width: 100%;
        bottom: 0;
        z-index: 999999;
        background: #f9f9f9;
        position: fixed;
        left: 0;
        top: inherit;
        right: inherit;
        height: auto;
        border-radius: 0;
        padding: 0;
        display: block;
    }
    :not(:root):fullscreen .game-container .game-details h1,
    body.playing .game-container .game-details h1 {
        color: #333333 !important;
        font-size: 13px;
        margin-left: 10px;
    }
    :not(:root):fullscreen .game-container .game-details img,
    body.playing .game-container .game-details img {
        height: 33px;
        display: block;
        padding: 5px;
        margin: 0;
        object-fit: contain;
    }
    :not(:root):fullscreen .game-container .panel-guide .content,
    body.playing .game-container .panel-guide .content {
        font-size: 13px;
    }
    :not(:root):fullscreen .game-container .panel-guide .title,
    body.playing .game-container .panel-guide .title {
        font-size: 16px;
        left: 10px;
    }
    :not(:root):fullscreen .game-container .panel-guide,
    body.playing .game-container .panel-guide {
        position: fixed;
        bottom: 0;
        width: 300px;
        padding: 10px;
        transform: translate(0, -45px);
    }
    :not(:root):fullscreen .game-container .game-details .rating #game-instructions,
    body.playing .game-container .game-details .rating #game-instructions {
        top: 0;
    }
    :not(:root):fullscreen .game-container .game-details .rating #game-fullscreen,
    body.playing .game-container .game-details .rating #game-fullscreen {
        display: none;
    }
    :not(:root):fullscreen .game-container .game-details .rating,
    body.playing .game-container .game-details .rating {
        display: block;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }
    .game-container .game-iframe-container {
        background: none;
    }
    body.playing .game-container .game-iframe-container, .game-container .game-iframe {
        background: #000000;
    }
    body.playing .game-container .game-iframe-container {
        position: fixed !important;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 11;
    }
    body.playing .crazygamescom .game-container .game-iframe {
        height: calc(100% - 8px) !important;
    }
    body.playing .game-container .game-iframe {
        min-width: 100%;
    }
}
@media screen and (max-height: 480px), screen and (max-height: 480px) and (orientation: portrait){
    .centered-container, .game-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .play-mobile-game {
        border-radius: var(---default-radius);
        padding-bottom: 40%;
        max-width: 100%;
        max-height: 100%;
        width: 90%;
        float: none;
    }
    body.playing .game-container .game-iframe-container {
        --minHeight: 100dvh;
        --height: 100dvh;

        --width: 100vw;
        background: #fff !important;
        left: 0 !important;
        min-height: var(--minHeight, 100vh);
        position: fixed !important;
        top: 0 !important;
        z-index: 99 !important;

        height: var(--height, 100%);
        width: var(--width, 100%);
    }
    .game-container .game-details {
        background: none;
        height: 100px;
        padding: 0;
        margin: 0;
        width: calc(100% - 115px);
    }
    .game-details h1 {
        color: #FFFFFF !important;
    }
    body.playing .game-container .game-details {
        display: none !important;
    }
    body.playing .game-container .game-iframe {
        height: 100% !important;
    }
    .game-container .related-games .grid-container {
        justify-content: center;
        margin: 10px 10px 15px;
        grid-gap: 17px;
    }
    .game-container .related-games .grid-container > * {
        display: none !important;
        margin: 0 !important;
    }
    .game-container .related-games .grid-container > *:nth-child(1)
    {
        display: block !important;
    }
}
.game_not_available {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    text-transform: uppercase;
    color: #ddd;
}

body.play .grid-footer {
    max-width: 1270px;
    margin: 0 auto;
    width: 100%;
}

.play_wrap_728x90 {
    display: flex;
    justify-content: center;
}

.play_wrap_728x90 > div {
    margin-top: 17px;
    max-width: 970px;
    display: flex;
    width: 100%;
    text-align: center;
    justify-content: center;
}

#adContainer {
    /*display: none;*/
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

#adContainer > div {
    width: 100%;
    height: 100%;
}

body.playing #adContainer {
    z-index: 101;
}

body.vda_done #adContainer {
    z-index: 0;
    display: none;
}
#content {
    /*display: none;*/
    position: absolute;
    /*width: 100%;*/
    /*height: 100%;*/
    left: 0;
    top: 0;
}
