

/* The game_modal (background) */
.game_modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* game_modal Content */
.game_modal-content {
    border: 1px solid #252525;
    background-image: url(../images/DOUBLING/bg_green.png);
    margin: auto;
    padding: 12px;
    height: 91vh;
    width: 100%;
    max-width: 90vw;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 20px;
}

/* The close_game_popup Button */
.close_game_popup {
    color: #FFFFFF;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 29px;
    top: 29px;
    border-radius: 50%;
    background: linear-gradient(159.08deg, #FF7759 5.69%, #FF0F00 88.61%);
    height: 33px;
    width: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 3px;
}

.close_game_popup:hover + .close-info {
    opacity: 1;
    visibility: visible;
}

.close-info {
    max-width: 355px;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 67px;
    right: 14px;
    padding: 20px 11px;
    color: #FFFFFF;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    background: rgba(32, 32, 32, 0.28);
    backdrop-filter: blur(17px);
    border-radius: 12px;
    transition: .23s;
    text-align: center;
    border: 1px solid #3E3E3E;
}

    .close_game_popup:hover,
    .close_game_popup:focus {
        cursor: pointer;
    }

.game_modal-body {
    border-radius: 20px;
    height: 100%;
    color: #fff;
    padding: 9px 40px;
    display: flex;
    flex-direction: column;
}

    .game_modal-body .text-center {
        text-align: center;
    }

.game_modal-title {
    color: #FFFFFF;
    font-style: normal;
    font-weight: bold;
    font-size: 30px;
    text-transform: uppercase;
    margin: 7px 0;
}

.game_modal-subtitle {
    font-weight: bold;
    font-size: 16px;
    line-height: 24px;
    height: 47px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    max-width: 560px;
    margin: 0 auto;
    text-transform: uppercase;
    color: #D2D2D2;
}

.game_modal-card {
    width: 203.68px;
    height: 318.45px;
    background-image: url(../images/DOUBLING/card_static.png);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.card-title {
    font-weight: 700;
    font-size: 13px;
    line-height: 13px;
    text-align: center;
    color: #FFFFFF;
}

.game_modal-card:first-child {
    transform: rotate(7deg);
    right: -38px;
    height: 287.45px;
    bottom: 15px;
}

.game_modal-card-cont {
    width: 203.68px;
    height: 318.45px;
    position: relative;
    margin: auto;
}

.game_modal-card.opened_b {
    animation: k-opening--b 3s forwards;

}

.game_modal-card.opened_b .card-title {
    display: none;
}

.game_modal-card.opened_r {
    animation: k-opening--r 3s forwards;
}

.game_modal-card.opened_r .card-title {
    display: none;
}

.game_result-content {
    width: 59%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    padding: 29px 3vw 24px;
    position: relative;
    margin-top: 40px;
    flex-wrap: wrap;
    display: flex;
    flex-direction: column;
    background: #101010;
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid #3D3D3D;
}

.game_result-content .bordered_block {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 10px;
}

.bordered_block.disabled .red_or_black {
    background: #1D1D1D !important;
    color: #353535 !important;
    pointer-events: none;
}

.red_or_black {
    height: 65px;
    max-width: 49%;
    width: 100%;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 28px;
    text-transform: uppercase;
    cursor: pointer;
}

.red_block {
    background: linear-gradient(192.31deg, #FF784E 3.72%, #FF1717 86.18%);
}

.black_block {
    background: linear-gradient(192.58deg, #3A3A3A -0.46%, #000000 100.17%);
}

.red_or_black.disabled {
    background: #1D1D1D;
    border: 1px solid #353535;
    color: #353535;
}

.game_result-info {
    max-width: 600px;
    width: 100%;
    align-self: start;
    margin: 0 auto;
}

.game_result {
    height: 147px;
    border: 1px solid #CB9C23;
    border-radius: 74.5px;
    padding: 7px;
    min-width: 403px;
}

.game_result-inner {
    width: 100%;
    height: 100%;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.game_result-title {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 12px;
    color: #FFFFFF;
    width: 100%;
    margin-bottom: 26px;
    margin-top: 17px;
    text-align: center;
}

.game_result-inner div {
    width: 100%;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    padding: 22px 30px;
    color: #828282;
    background: rgba(46, 46, 46, 0.2);
    border: 1px solid #252525;
    backdrop-filter: blur(20px);
    border-radius: 6px;
}

.game_modal-body .jcb {
    justify-content: space-between;
}

.game_modal-body .w-10 {
    width: 8%;
}

.game_modal-body .w-50 {
    width: 49%;
}

.game_modal-body .w-40 {
    width: 39%;
}

.game_modal-body .w-60 {
    width: 53%;
    margin: 0 auto;
}

.game_modal-body .bold {
    font-weight: 600;
}

.game_result-inner .take_btn {
    text-align: center;
    color: #004831;
    font-size: 16px;
    justify-content: center;
}

.game_result-inner .active_btn {
    background: linear-gradient(264.65deg, #00CB6A 0%, #069450 104.06%);
    color: #fff;
    font-weight: 600;
    border: none;
}

.game_result-inner .bold {
    font-size: 16px;
    color: #ffffff;
}

.r_ic, .b_ic {
    background-image: url(../images/DOUBLING/small_cards.png);
    background-repeat: no-repeat;
    background-position-x: center;
}

.r_ic {
    background-position-y: 6px;
}

.b_ic {
    background-position-y: -56px;
}

.win_lose_text {
    width: max-content;
    font-weight: 600;
    font-size: 18px;
    display: none;
    position: absolute;
    bottom: 110%;
    right: 0;
    left: 50%;
    padding: 6px 15px;
    color: #fff;
    backdrop-filter: blur(12px);
    border-radius: 6px;
    transform: translateX(-50%);
}

.winned .win_lose_text {
    display: block;
    background-color: #30A15D;
}

.losed .win_lose_text {
    display: block;
    background-color: #E62E2E;
}

.winn_lose_info_text {
    color: #828282;
    font-size: 12px;
    line-height: 17px;
    margin-top: 22px;
}


@media screen and (max-width: 1300px) {
    .red_or_black {
        padding: 0 16px;
    }
}

@media screen and (max-height: 880px) {

    .game_modal-card {
        width: 163.68px;
        height: 246.45px;
        background-image: url(../images/DOUBLING/card_static.png);
        background-repeat: no-repeat;
        background-size: contain;
        position: absolute;
    }

        .game_modal-card:first-child {
            transform: rotate(7deg);
            right: 0;
            height: 228.45px;
            bottom: 15px;
        }

    .game_modal-card-cont {
        width: 203.68px;
        height: 255.45px;
        position: relative;
        margin: auto;
    }
}
@media screen and (max-height: 780px) {
    .red_or_black {
        height: 50px;
        font-size: 20px;
    }
    .game_modal-title {
        font-size: 25px;
    }
    .game_modal-subtitle {
        font-size: 14px;
        height: 24px;
    }
    .game_result-inner div {
        font-size: 14px;
        padding: 15px 20px;
    }
    .game_result-content {
        padding: 20px 3vw 19px;
        margin-top: 15px;
    }
    .game_result-title {
        font-size: 18px;
    }
}


.losed .win_text {
    color: white;
}


/*-------animations--------*/

@keyframes k-opening--r {
    20% {
        transform: scale(1.4);
    }

    40% {
        transform: scale(1.4) rotateY(360deg);
    }

    50% {
        background-image: url(../images/DOUBLING/card_static.png);
    }

    70% {
        transform: scale(1.4) rotateY(720deg);
    }

    100% {
        transform: scale(1) rotateY(720deg);
        background-image: url(../images/DOUBLING/red_card.png);
    }
}

@keyframes k-opening--b {
    20% {
        transform: scale(1.4);
    }

    40% {
        transform: scale(1.4) rotateY(360deg);
    }

    50% {
        background-image: url(../images/DOUBLING/card_static.png);
    }

    70% {
        transform: scale(1.4) rotateY(720deg);
    }

    100% {
        transform: scale(1) rotateY(720deg);
        background-image: url(../images/DOUBLING/black_card.png);
    }
}

/*--------*/