/* GAMBLE START */
.gamble {
    position: absolute;
    display: none;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transition-duration: 0.6s;
    transition-duration: 0.6s;
    z-index: 2;
}

.gamble._disabled {
    opacity: 0;
}

.gambleLogo {
    width: 496px;
    height: 112px;
    margin: 0 auto;
}

.gambleMainInfo {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    width: 800px;
    height: 102px;
    margin: 0 auto;
}

.gambleBalance,
.gambleWin {
    position: absolute;
    width: 199px;
    height: 80px;
    text-align: center;
    margin-top: 16px;
}

.gambleBalance {
    left: 0;
}

.gambleWin {
    right: 0;
}

.gambleDoubleTo {
    position: absolute;
    left: 0;
    right: 0;
    width: 276px;
    height: 102px;
    text-align: center;
    margin: 0 auto;
}

.gambleLabel,
.gambleLabelBig {
    position: relative;
    width: 100%;
    text-align: center;
    color: var(--color3);
    text-shadow: 0 2px 4px #000000;
    z-index: 1;
}

.gambleLabel {
    font-size: 24px;
    line-height: 26px;
}

.gambleLabelBig {
    font-size: 28px;
    line-height: 30px;
}

.gambleLabel.currency {
    font-size: 16px;
    padding-left: 4px;
}

.gambleLabelBig.currency {
    font-size: 24px;
    padding-left: 6px;
}

.gambleValue,
.gambleValueBig {
    display: block;
    position: absolute;
    bottom: 0;
    text-align: center;
}

.gambleValue {
    width: 199px;
    height: 51px;
    line-height: 51px;
    font-size: 33px;
    font-weight: bold;
}

.gambleWin.winAnimation .gambleValue {
    -webkit-animation: valueAnimation 0.2s;
    animation: valueAnimation 0.2s;
}

@-webkit-keyframes valueAnimation {
    0%,
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    50% {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
        color: #ffff00;
        text-shadow: 0 0 33px #fff;
    }
}

@keyframes valueAnimation {
    0%,
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    50% {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
        color: #ffff00;
        text-shadow: 0 0 33px #fff;
    }
}

.gambleValueBig {
    width: 276px;
    height: 70px;
    line-height: 70px;
    font-size: 53px;
    font-weight: bold;
}

.gambleBtns {
    position: absolute;
    top: 312px;
    left: 0;
    right: 0;
    width: 1016px;
    height: 344px;
    margin: 0 auto;
}

.gambleBtnRibbon {
    position: absolute;
    top: 32px;
    left: -120px;
    width: 560px;
    height: 144px;
    z-index: 1;
}

.gambleBtnRibbon.ribbon2 {
    left: unset;
    right: -120px;
    transform: scaleX(-1);
}

.gambleRedBtn,
.gambleBlackBtn {
    position: absolute;
    top: 0;
    width: 337px;
    height: 154px;
    line-height: 154px;
    font-size: 45px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px #000;
    letter-spacing: 1px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    z-index: 1;
}

.gambleRedBtn {
    left: 0;
    -webkit-animation: teaseGambleBtns 1s infinite;
    animation: teaseGambleBtns 1s infinite;
}

.gambleBlackBtn {
    right: 0;
    -webkit-animation: teaseGambleBtns 1s infinite;
    animation: teaseGambleBtns 1s infinite;
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

@-webkit-keyframes teaseGambleBtns {
    0%,
    100% {
        -webkit-filter: brightness(1);
        filter: brightness(1);
    }

    50% {
        -webkit-filter: brightness(1.3);
        filter: brightness(1.3);
    }
}

@keyframes teaseGambleBtns {
    0%,
    100% {
        -webkit-filter: brightness(1);
        filter: brightness(1);
    }

    50% {
        -webkit-filter: brightness(1.3);
        filter: brightness(1.3);
    }
}

.gambleRedBtnMask,
.gambleBlackBtnMask {
    opacity: 0;
    -webkit-filter: brightness(1.3);
    filter: brightness(1.3);
}

.gambleRedBtnMask {
    left: 0;
    -webkit-animation: teaseGambleBtnsGlow 1s infinite;
    animation: teaseGambleBtnsGlow 1s infinite;
}

.gambleBlackBtnMask {
    right: 0;
    -webkit-animation: teaseGambleBtnsGlow 1s infinite;
    animation: teaseGambleBtnsGlow 1s infinite;
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

@-webkit-keyframes teaseGambleBtnsGlow {
    0%,
    100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

@keyframes teaseGambleBtnsGlow {
    0%,
    100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.gambleRedBtn:hover:not(.noHover),
.gambleBlackBtn:hover:not(.noHover),
.gambleRedBtn:active,
.gambleBlackBtn:active,
.gambleRedBtn._disabled,
.gambleRedBtn._disabled:hover:not(.noHover),
.gambleBlackBtn._disabled,
.gambleBlackBtn._disabled:hover:not(.noHover),
.gambleRedBtn._hover,
.gambleBlackBtn._hover,
.gambleRedBtn._hover + .gambleRedBtnMask,
.gambleBlackBtn._hover + .gambleBlackBtnMask {
    -webkit-animation: none;
    animation: none;
}

.gambleRedBtn:active,
.gambleBlackBtn:active {
    line-height: 158px;
}

.gambleRedBtn._disabled,
.gambleRedBtn._disabled:hover:not(.noHover),
.gambleBlackBtn._disabled,
.gambleBlackBtn._disabled:hover:not(.noHover) {
    line-height: 154px;
    color: #282828;
    text-shadow: 0 2px 4px #3c3c3c;
    cursor: default;
}

.gambleRedBtnMask,
.gambleBlackBtnMask {
    position: absolute;
    top: 0;
    width: 337px;
    height: 154px;
    padding: 60px;
    margin: -60px;
    z-index: 0;
}

.gambleRedBtn:hover:not(.noHover) + .gambleRedBtnMask,
.gambleBlackBtn:hover:not(.noHover) + .gambleBlackBtnMask,
.gambleRedBtn:active + .gambleRedBtnMask,
.gambleBlackBtn:active + .gambleBlackBtnMask {
    opacity: 1;
}

.gambleRedBtn._disabled + .gambleRedBtnMask,
.gambleRedBtn._disabled:hover:not(.noHover) + .gambleRedBtnMask,
.gambleBlackBtn._disabled + .gambleBlackBtnMask,
.gambleBlackBtn._disabled:hover:not(.noHover) + .gambleBlackBtnMask {
    background: none;
}

.gambleHalfBtn,
.gambleCollectBtn {
    position: absolute;
    bottom: 0;
    width: 222px;
    height: 89px;
    line-height: 89px;
    font-size: 28px;
    font-weight: bold;
    color: #000000;
    text-shadow: 0 2px 4px #ffdc5d;
    letter-spacing: 1px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    z-index: 1;
}

.gambleHalfBtn {
    left: 88px;
}

.gambleCollectBtn {
    right: 88px;
}

.gambleHalfBtn:active,
.gambleCollectBtn:active {
    line-height: 93px;
}

.gambleHalfBtn._disabled,
.gambleCollectBtn._disabled,
.gambleHalfBtn._disabled:hover:not(.noHover),
.gambleCollectBtn._disabled:hover:not(.noHover),
.gambleHalfBtn._disabled:active,
.gambleCollectBtn._disabled:active {
    line-height: 89px;
    color: #282828;
    text-shadow: 0 2px 4px #3c3c3c;
    cursor: default;
}

.gambleCards {
    position: absolute;
    top: 244px;
    left: 0;
    right: 0;
    width: 276px;
    height: 400px;
    margin: 0 auto;
    z-index: 1;
}

.gambleCardTeaser {
    position: relative;
    width: 192px;
    height: 281px;
    padding: 44px;
    margin: -44px -2px;
    opacity: 0.8;
}

.gambleActualCard {
    -webkit-perspective: 1000;
    -moz-perspective: 1000;
    -ms-perspective: 1000;
    perspective: 1000;
    -ms-transform: perspective(667px);
    -moz-transform: perspective(667px);
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
}

.gambleActualCard._reveal .gambleCardBack {
    -webkit-backface-visibility: visible;
    -moz-backface-visibility: visible;
    -ms-backface-visibility: visible;
    backface-visibility: visible;
    -webkit-transform: rotateY(0deg);
    -moz-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    transform: rotateY(0deg);
}

.gambleActualCard._reveal .gambleCardFront {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.gambleActualCard,
.gambleCardFront,
.gambleCardBack {
    position: absolute;
    top: 0;
    left: 42px;
    width: 192px;
    height: 281px;
}

.gambleCardRevealer {
    position: relative;
    -moz-transform: perspective(667px);
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: 0.2s;
    -moz-transition: 0.2s;
    -ms-transition: 0.2s;
    transition: 0.2s;
}

.gambleCardFront,
.gambleCardBack {
    position: absolute;
    top: 0;
    left: 0;
    -webkit-transform: rotateY(0deg);
    -moz-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: -webkit-transform 0.2s;
    -moz-transition: -moz-transition 0.2s;
    -o-transition: -o-transform 0.2s;
    -ms-transition: -ms-transform 0.2s;
    transition: transform 0.2s;
}

.gambleCardFront {
    left: 0;
    -webkit-transform: rotateY(0deg);
    -ms-transform: rotateY(0deg);
    z-index: 2;
}

.gambleCardBack {
    left: 0;
    -webkit-transform: rotateY(-180deg);
    -moz-transform: rotateY(-180deg);
    -o-transform: rotateY(-180deg);
    -ms-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
}

.gamblePrevious {
    position: absolute;
    bottom: 0;
    height: 92px;
}

.gamblePrevious .gambleLabel {
    display: block;
    bottom: 0;
    width: 100%;
    margin-bottom: 1px;
}

.gamblePreviousCard {
    float: left;
    width: 44px;
    height: 65px;
    box-shadow: 0 0 12px #343c82;
    margin-right: 14px;
}

.gamblePreviousCard:last-of-type {
    margin-right: 0;
}

.gamblePreviousCard .item {
    width: 100%;
    height: 100%;
}

.gambleAttempts,
.gambleDefaultRisk,
.gambleTicker {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    margin: 0 auto;
}

.gambleDefaultRisk {
    z-index: 10;
    color: #fff;
    text-shadow:
        0 0 2px #000,
        0 0 2px #000,
        0 0 2px #000;
    font-weight: normal;
    bottom: 4px;
    font-size: 20px;
    line-height: 20px;
}

body[language='ka'] .gambleDefaultRisk,
body[language='ka-GE'] .gambleDefaultRisk,
body[language='el'] .gambleDefaultRisk,
body[language='el-GR'] .gambleDefaultRisk {
    font-size: 16px;
}

.gambleAttempts {
    top: 196px;
    font-size: 28px;
    line-height: 28px;
    color: var(--color3);
    text-shadow: 0 2px 4px #000000;
    z-index: 2;
}

.gambleAttempts strong {
    font-weight: normal;
    color: #ffffff;
}

.gambleTicker {
    bottom: 24px;
    font-size: 24px;
    line-height: 24px;
    -webkit-animation: blinkTicker 1s infinite;
    animation: blinkTicker 1s infinite;
}

@-webkit-keyframes blinkTicker {
    0%,
    100% {
        opacity: 0;
    }
    35%,
    65% {
        opacity: 1;
    }
}

@keyframes blinkTicker {
    0%,
    100% {
        opacity: 0;
    }
    35%,
    65% {
        opacity: 1;
    }
}
/* GAMBLE END */

/****************** gambleBtns ********************/

.gamble .btn {
    background-image: url(../Gamble/Graphics/SpriteSheets/btns.png?_t=20250304233133);
    background-repeat: no-repeat;
    --blackBtn_ACTIVE: -1px -147px;
    --blackBtn_DIS: -340px -277px;
    --blackBtn_NORMAL: -1px -303px;
    --blackBtn_OVER: -679px -277px;
    --btnGlow: -563px -1px;
    --btnRibbon: -1px -1px;
    --redBtn_ACTIVE: -340px -433px;
    --redBtn_DIS: -1px -459px;
    --redBtn_NORMAL: -679px -433px;
    --redBtn_OVER: -1px -615px;
    --smallBtn_ACTIVE: -1px -771px;
    --smallBtn_DIS: -1px -862px;
    --smallBtn_NORMAL: -225px -771px;
    --smallBtn_OVER: -225px -862px;
}

/*******************************************************/

.gambleBtnRibbon {
    background-position: var(--btnRibbon);
}

.gambleBlackBtn {
    background-position: var(--blackBtn_NORMAL);
}

.gambleBlackBtn:hover:not(.noHover) {
    background-position: var(--blackBtn_OVER);
}

.gambleBlackBtn:active:not(.breakNot) {
    background-position: var(--blackBtn_ACTIVE);
}

.gambleBlackBtn._disabled,
.gambleBlackBtn._disabled:hover:not(.noHover),
.gambleBlackBtn._disabled:active:not(.breakNot) {
    background-position: var(--blackBtn_DIS);
}

.gambleRedBtnMask,
.gambleBlackBtnMask {
    background-position: var(--btnGlow);
}

.gambleRedBtn {
    background-position: var(--redBtn_NORMAL);
}

.gambleRedBtn:hover:not(.noHover) {
    background-position: var(--redBtn_OVER);
}

.gambleRedBtn:active:not(.breakNot) {
    background-position: var(--redBtn_ACTIVE);
}

.gambleRedBtn._disabled,
.gambleRedBtn._disabled:hover:not(.noHover),
.gambleRedBtn._disabled:active:not(.breakNot) {
    background-position: var(--redBtn_DIS);
}

.gambleHalfBtn,
.gambleCollectBtn {
    background-position: var(--smallBtn_NORMAL);
}

.gambleHalfBtn:hover:not(.noHover),
.gambleCollectBtn:hover:not(.noHover) {
    background-position: var(--smallBtn_OVER);
}

.gambleHalfBtn:active:not(.breakNot),
.gambleCollectBtn:active:not(.breakNot) {
    background-position: var(--smallBtn_ACTIVE);
}

.gambleHalfBtn._disabled,
.gambleCollectBtn._disabled,
.gambleHalfBtn._disabled:hover:not(.noHover),
.gambleCollectBtn._disabled:hover:not(.noHover),
.gambleHalfBtn._disabled:active:not(.breakNot),
.gambleCollectBtn._disabled:active:not(.breakNot) {
    background-position: var(--smallBtn_DIS);
}

/****************** gambleFields ********************/

.gamble .field {
    background-image: url(../Gamble/Graphics/SpriteSheets/fields.png?_t=20250304233133);
    background-repeat: no-repeat;
    --balanceWinField: -1px -187px;
    --doubleToField: -1px -115px;
    --gambleLogo: -1px -1px;
}

/*******************************************************/

.gambleLogo {
    background-position: var(--gambleLogo);
}

.gambleValue {
    background-position: var(--balanceWinField);
}

.gambleValueBig {
    background-position: var(--doubleToField);
}

/****************** gambleCards ********************/

.gamble .card {
    background-image: url(../Gamble/Graphics/SpriteSheets/cards.png?_t=20250304233133);
    background-repeat: no-repeat;
    --cardBack_CA: -1px -372px;
    --cardBack_DA: -1px -655px;
    --cardBack_HA: -195px -372px;
    --cardBack_joker: -195px -655px;
    --cardBack_SA: -283px -1px;
    --cardFront: -477px -1px;
    --cardTease: -1px -1px;
    --previousCardBack_CA: -1px -938px;
    --previousCardBack_DA: -47px -938px;
    --previousCardBack_HA: -93px -938px;
    --previousCardBack_joker: -139px -938px;
    --previousCardBack_SA: -185px -938px;
    --previousCardFront: -231px -938px;
}

/*******************************************************/

.gambleCardBack._CA {
    background-position: var(--cardBack_CA);
}

.gambleCardBack._DA {
    background-position: var(--cardBack_DA);
}

.gambleCardBack._HA {
    background-position: var(--cardBack_HA);
}

.gambleCardBack._JR {
    background-position: var(--cardBack_joker);
}

.gambleCardBack._SA {
    background-position: var(--cardBack_SA);
}

.gambleCardFront {
    background-position: var(--cardFront);
}

.gambleCardTeaser {
    background-position: var(--cardTease);
}

.gamblePreviousCard .item._CA {
    background-position: var(--previousCardBack_CA);
}

.gamblePreviousCard .item._DA {
    background-position: var(--previousCardBack_DA);
}

.gamblePreviousCard .item._HA {
    background-position: var(--previousCardBack_HA);
}

.gamblePreviousCard .item._JR {
    background-position: var(--previousCardBack_joker);
}

.gamblePreviousCard .item._SA {
    background-position: var(--previousCardBack_SA);
}

.gamblePreviousCard .item {
    background-position: var(--previousCardFront);
}
