
/*doubling*/

/* 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 */
    overflow: inherit;
}

/* game_modal Content */
.game_modal-content {
    background-image: url(../images/DOUBLING/bg_green.png);
    margin: auto;
    padding: 8px;
    height: 98vh;
    width: 98%;
    max-width: 367px;
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: top center;
    position: relative;
    border-radius: 25px;
    max-height: 653px;
}

/* The close_game_popup Button */
.close_game_popup {
    color: #ffffff;
    float: right;
    font-size: 21px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 20px;
    border-radius: 50%;
    background: linear-gradient(159.08deg, #FF7759 5.69%, #FF0F00 88.61%);
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 22;
}

.close-info {
    max-width: 90%;
    opacity: 1;
    visibility: visible;
    position: absolute;
    top: 58px;
    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;
    animation: k-hiding 4s forwards;
    z-index: 2;
}

.close-info_triangle {
    top: -14px;
    position: absolute;
    display: block;
    height: 14px;
    width: 24px;
    overflow: hidden;
    z-index: 4;
    right: 14px;
}

.close-info_triangle:before {
    content: "";
    display: block;
    height: 20px;
    width: 20px;
    transform: rotate(45deg);
    margin-top: 6px;
    background: rgb(32, 32, 32);
    backdrop-filter: blur(17px);
    border: 2px solid #3F4346;
}

    .close_game_popup:hover,
    .close_game_popup:focus {
        cursor: pointer;
    }

.game_modal-body {
    border: 1px solid #252525;
    border-radius: 19px;
    height: 100%;
    color: #fff;
    padding: 9px 3px 0;
    display: flex;
    flex-direction: column;
}

.text-center {
    text-align: center;
}

.game_modal-title {
    color: #FFFFFF;
    font-style: normal;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    margin: 7px 0;
}

.game_modal-subtitle {
    font-weight: bold;
    font-size: 12px;
    line-height: 24px;
    height: 47px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    max-width: 90%;
    margin: 0 auto;
    text-transform: uppercase;
    line-height: 1.4;
    color: #D2D2D2;
}

.game_modal-card {
    width: 141px;
    height: 220px;
    background-image: url(../images/DOUBLING/card_static.png);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.card-title {
    font-weight: 700;
    font-size: 10px;
    line-height: 12px;
    text-align: center;
    color: #FFFFFF;
}

    .game_modal-card:first-child {
        transform: rotate(7deg);
        right: 0;
        height: 205.45px;
        bottom: 15px;
    }

.game_modal-card-cont {
    width: 174.68px;
    height: 225.45px;
    position: relative;
    margin: 30px auto 0;
}

.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 {
    border-radius: 16px;
    align-items: center;
    padding: 8px 0 3px;
    position: relative;
    margin-top: auto;

}

.bordered_block {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 9px 7px 8px;
    margin-bottom: 4px;
    background: rgba(46, 46, 46, 0.2);
    border: 1px solid #252525;
    backdrop-filter: blur(20px);
    border-radius: 9px;
    border: 1px solid #252525;
}


.bordered_block.disabled .red_or_black {
    background: #1D1D1D !important;
    color: #353535 !important;
    pointer-events: none;
}

.red_or_black {
    height: 36px;
    width: 49%;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 72px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 17px;
    text-transform: uppercase;
    border-radius: 6px;
}

.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 {
    width: 100%;
    align-self: start;
    border-radius: 0 0 16px 16px;
    padding-bottom: 8px;
}

.game_result-inner {
    height: 100%;
    padding: 4px 3px;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
}

.game_result-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 12px;
    color: #FFFFFF;
    width: 100%;
}

.game_result-inner div {
    height: 36px;
    left: 749px;
    top: 785px;
    font-size: 12px;
    text-transform: uppercase;
    border: 1px solid #252525;
    display: flex;
    align-items: center;
    padding: 0 3px 0 7px;
    color: #828282;
    margin-bottom: 4px;
    width: 100%;
    background: rgba(46, 46, 46, 0.2);
    border: 1px solid #252525;
    box-sizing: border-box;
    backdrop-filter: blur(20px);
    border-radius: 6px;
}

.jcb {
    justify-content: space-between;
}

.w-10 {
    width: 8%;
    height: 47px !important;
    margin: 2px !important;
    padding: 0 15px !important;
}

.w-100 {
    width: 100%;
    height: 57px !important;
}

.w-40 {
    width: 39%;
}

.w-60 {
    width: 59%;
}

.bold {
    font-weight: 600;
}

.game_result-inner .take_btn {
    text-align: center;
    color: #004831;
    font-size: 14px;
    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: 14px;
    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 {
    max-width: 75%;
    width: max-content;
    font-weight: 600;
    font-size: 12px;
    display: none;
    position: absolute;
    bottom: 103%;
    right: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 15px;
    color: #fff;
}

.winned .win_lose_text {
    display: block;
    background-color: #30A15D;
}

.losed .win_lose_text {
    display: block;
    background-color: #E52E2E;
}

.winn_lose_info_text {
    color: #828282;
    font-size: 13px;
    text-align: left;
    padding: 0 8px;
}

.left_text {
    margin-right: auto;
    display: block;
}

#game_modal_btn {
    margin-top: 14px;
    margin-bottom: 14px;
    background: transparent;
    border: 1px solid #FFFFFF;
    box-shadow: none;
}

@media screen and (max-height:655px ) {
    .game_modal-card {
        width: 142px;
        height: 220px;
        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: -23px;
            height: 161.45px;
            bottom: 0;
        }

    .game_modal-card-cont {
        width: 168.68px;
        height: 166.45px;
        position: relative;
        margin: 4px auto 0;
        padding-left: 21px;
    }

    /*.game_modal-content {
        background-size: 262px, contain;
        background-position: center 184px, center;
    }*/

    .win_lose_text {
        bottom: 100%;
    }

    .game_modal-subtitle {
        height: auto;
    }
}

.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);
    }
}

@keyframes k-hiding {
    0% {
        opacity: 1;
        visibility: visible;
    }

    90% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/*--------*/