*,
:after,
:before {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 8px!important;
    background-image: url('/images/bg.jpg')!important;
    background-size: 50%!important;
}

.product {
    position: relative;
    display: flex;
    height: auto;
    width: 100%;
    min-width: inherit;
    /*320px*/
    flex-direction: column;
    border-radius: 4px;
}

.app-container {
    display: flex;
    flex: 1 1;
    flex-basis: 1080px;
    max-width: 1080px;
    min-width: inherit;
    justify-content: center;
    flex-direction: column;
}

#root {
    display: flex;
    justify-content: center;
    min-width: inherit;
}

.product-container {
    height: auto;
    flex: 1 1 100%;
    max-width: 100%;
    min-width: inherit;
    /*320px*/
    padding-left: 3px;
    padding-right: 3px;
    padding-bottom: 5px;
    -webkit-tap-highlight-color: transparent;
    /* #region Prevent the text contents of draggable elements from being selectable. */
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently supported by Chrome and Opera */
    /* #endregion Prevent the text contents of draggable elements from being selectable. */
    font-size: 2.7vw;
}

@media print,
screen and (min-width: 43em) {
    .product-container {
        flex: 1 1 calc(50% - 0.5px);
        max-width: calc(50% - 0.5px);
        font-size: 1.3vw;
    }
}

@media print,
screen and (min-width: 63em) {
    .product-container {
        flex: 1 1 calc(100% / 3 - 0.5px);
        max-width: calc(100% / 3 - 0.5px);
        font-size: 1vw;
    }
}

@media print,
screen and (min-width: 1080px) {
    .product-container {
        font-size: 10px;
    }
}

.bg-qs {
    padding-top: 75%;
    width: 100%;
    background-image: url('/images/background2.jpg');
    background-size: cover;
    position: relative;
}

.bet-qs {
    padding-top: 30%;
    width: 82%;
    background-size: contain;
    position: absolute;
    top: 52%;
    left: 9%;
    background-repeat: no-repeat;
}

.img-bet-qs {
    padding-top: 33%;
    width: 80%;
    background-image: url('/images/bet.png');
    background-size: contain;
    position: absolute;
    top: 52%;
    left: 10%;
    background-repeat: no-repeat;
    pointer-events: none;
}

.img-bet-qs-en {
    background-image: url('/images/bet_en.png');
}

.img-bet-qs-th {
    background-image: url('/images/bet_th.png');
}

.bet-1 {
    width: 100%;
    position: absolute;
    padding-top: 13%;
    top: 1.5%;
}

.item-bet-1 {
    width: 31%;
    position: absolute;
    padding-top: 18%;
    top: 1%;
    left: 0.9%;
    border-radius: 5%;
}

.item-bet-2 {
    width: 31%;
    position: absolute;
    padding-top: 18%;
    top: 1%;
    left: 34.5%;
    border-radius: 5%;
}

.item-bet-3 {
    width: 31%;
    position: absolute;
    padding-top: 18%;
    top: 1%;
    left: 69%;
    border-radius: 5%;
}

.item-bet-4 {
    width: 49%;
    position: absolute;
    padding-top: 18%;
    top: 0%;
    left: 0.7%;
    border-radius: 5%;
}

.item-bet-5 {
    width: 49%;
    position: absolute;
    padding-top: 18%;
    top: 0%;
    left: 51.5%;
    border-radius: 5%;
}

.name-bet {
    width: 97.5%;
    position: absolute;
    top: 0;
    padding-top: 42%;
    border-radius: 0.4em;
    cursor: pointer;
}
.item-bet-1:hover .name-bet, .item-bet-2:hover .name-bet, .item-bet-3:hover .name-bet, .item-bet-4:hover .name-bet, .item-bet-5:hover .name-bet{
    background: rgb(239, 8, 137);
}
.name-bet:hover {
    background: rgb(239, 8, 137);
}

.item-bet-2 .name-bet {
    left: 0%;
    width: 100%;
}

.item-bet-3 .name-bet {
    width: 97%;
}

.item-bet-4 .name-bet {
    padding-top: 27%;
}

.item-bet-5 .name-bet {
    padding-top: 27%;
}

.money-bet {
    color: #fff;
    font-size: 0.8em;
    position: absolute;
    bottom: 5%;
    width: 100%;
    display: flex;
    justify-content: center;
    line-height: 1;
}

.bet-2 {
    width: 100%;
    position: absolute;
    padding-top: 13%;
    top: 59%;
}

.bet-chip {
    padding-top: 28%;
    background: linear-gradient(to right, #3747d3, #4b2bc6);
    width: 100%;
}

.chip {
    position: absolute;
    background-repeat: no-repeat;
    width: 13%;
    padding-top: 13%;
    background-size: contain;
    top: 0;
    left: 1.5%;
    margin-top: 1.4%;
}

.chip-row {
    position: relative;
}

.chip-1 {
    background-image: url(/images/chip_12.png);
}

.chip-2 {
    background-image: url(/images/chip_14.png);
    left: 15.5%;
}

.chip-3 {
    background-image: url(/images/chip_15.png);
    left: 29.5%;
}

.chip-4 {
    background-image: url(/images/chip_16.png);
    left: 43.5%;
}

.chip-5 {
    background-image: url(/images/chip_17.png);
    left: 57.5%;
}

.chip-6 {
    background-image: url(/images/chip_18.png);
    left: 71.5%;
}

.chip-7 {
    background-image: url(/images/chip_max.png);
    left: 85.5%;
}

.bet-confirm {
    position: absolute;
    bottom: 14%;
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-cancel {
    padding: 1.6% 3%;
    border-radius: 1em;
    font-size: 1.5em;
    margin: 0 2%;
    color: #f7eded;
    font-weight: 700;
    background: linear-gradient(180deg, rgba(146, 205, 252, 1) 0%, rgba(34, 148, 245, 1) 40%, rgba(18, 137, 238, 1) 94%, rgb(83, 171, 241) 100%);
    white-space: nowrap;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-cancel:hover {
    background: linear-gradient(180deg, rgba(125, 188, 242, 0.9962359943977591) 0%, rgba(17, 122, 210, 1) 23%, rgba(17, 122, 210, 1) 94%, rgba(108, 181, 242, 1) 100%);
}

.btn-confirm {
    padding: 1.6% 3%;
    border-radius: 1em;
    font-size: 1.5em;
    margin: 0 2%;
    color: #f7eded;
    font-weight: 700;
    background: linear-gradient(180deg, rgb(152, 245, 167) 0%, rgb(13, 162, 17) 23%, rgb(9, 173, 13) 94%, rgba(133, 247, 129, 0.9990371148459384) 100%);
    white-space: nowrap;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-confirm:hover {
    background: linear-gradient(180deg, rgba(156, 246, 170, 1) 0%, rgba(29, 205, 33, 1) 23%, rgba(28, 195, 32, 1) 94%, rgba(139, 238, 135, 0.9990371148459384) 100%);
}

.result {
    position: relative;
    width: 100%;
    background: linear-gradient(to right, #3747d3, #4b2bc6);
    padding-bottom: 1.6%;
    border-radius: 0 0 1em 1em;
}

.result-content {
    display: flex;
    padding: 1.2%;
    background: #070f21;
    margin-left: 1.6%;
    margin-right: 1.6%;
    border-radius: 0 0 0.4em 0.4em;
    padding-bottom: 1%;
}

.result-row {
    flex: 1 1 5%;
    display: flex;
    flex-direction: column;
}

.result-item {
    height: 1.8em;
    background: #f9f6f6;
    position: relative;
    border-left: 1px solid #313131;
    border-bottom: 1px solid #313131;
    display: flex;
    justify-content: center;
    align-items: center;
}

.round-icon {
    border-radius: 100%;
    height: 1.3em;
    width: 1.3em;
}

.blue {
    border: 0.15em solid #174098;
    background-color: #174098;
}

.red {
    border: 0.15em solid #b91b22;
    background-color: #b91b22;
}

.green {
    border: 0.15em solid #1b933b;
    background-color: #1b933b;
}

.gray {
    border: 0.15em solid #5e5f5e;
    background-color: #5e5f5e;
}

.result-percent {
    position: relative;
    width: 100%;
    background: linear-gradient(to right, #3747d3, #4b2bc6);
}

.result-percent-content {
    display: flex;
    padding: 1.2%;
    background: #070f21;
    margin-left: 1.6%;
    margin-right: 1.6%;
    border-radius: 0.4em 0.4em 0 0;
    padding-bottom: 1%;
    color: #fff;
    font-weight: 700;
    justify-content: center;
}

.percent-item {
    text-align: center;
    padding: 0 4%;
    font-size: 1.6em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: 7em;
}

.result-percent .round-icon {
    flex-wrap: nowrap;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.6em;
    margin-right: 5px;
}

.bar {
    position: relative;
    background: linear-gradient(to right, #541ec0, #6704b4);
    color: #fff;
    border-radius: 2em 2em 0 0;
}

.bar-content {
    height: 10%;
    display: flex;
    width: 100%;
    clear: both;
    font-size: 1.7em;
    padding: 1em 0.5em;
    line-height: 1;
}

.bar-content-info {
    display: flex;
    align-items: center;
}

.start {
    background-image: url(/images/start-on.png);
    width: 2em;
    background-repeat: no-repeat;
    height: 2em;
    margin-right: 3%;
    background-size: contain;
}

.start.on {}

.info {
    display: flex;
    flex-direction: column;
}

.bar-content-time {
    justify-content: flex-end;
    display: flex;
    width: 100%;
    align-items: center;
}
.name-game {
    font-weight: bold;
    font-size: 1em;
    white-space: nowrap;
}

.code-number {
    opacity: 0.5;
    font-size: 0.7em;
    margin-top: 3%;
}

.bar .timeout {
    /* position: absolute;
    right: 7%;
    top: 40%; */
    line-height: 1;
    font-size: 1em;
    font-weight: 700;
}

.rank {
    position: absolute;
    z-index: 1;
    top: 27%;
    font-size: 0.8em;
    line-height: 1.5em;
    color: rgb(255, 255, 161);
    left: 13.1%;
    text-align: center;
    width: 17%;
}

.name-dealer {
    position: absolute;
    z-index: 1;
    top: 28.2%;
    font-size: 1.1em;
    line-height: 1.5em;
    color: #fff;
    right: 15.5%;
    width: 14%;
    text-align: center;
}

/* #region FlipResult barh */
.flipResult-barh-container-relative {
    position: absolute;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 0%;
    top: 0;
}

.flipResult-barh-container-card {
    position: relative;
    bottom: 20%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 50%;
}

.flipResult-barh-card {
    position: relative;
    width: 32px;
    height: 50px;
    margin: 2px;
    border-radius: 5px;
    opacity: 0;
    background-color: white;
    box-shadow: 0px 0px 2px #272727;
}

.flipResult-barh-card-rh {
    position: relative;
    width: 45px;
    height: 65px;
    margin: 2px;
    border-radius: 5px;
    opacity: 0;
    background-color: white;
    box-shadow: 0px 0px 2px #272727;
}

.flipResult-barh-card-back {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    z-index: 1;
    border-radius: 5px;
}

.flipResult-barh-card-back-image {
    width: 26px;
    height: 23px;
    display: flex;
    background-image: url('/images/logo-tech.png');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.flipResult-barh-card-front {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
}

.flipResult-barh-card-front-image {
    width: 30px;
    height: 30px;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.flipResult-barh-card-number {
    width: auto;
    height: 22px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flipResult-barh-card-number-red {
    color: #df0000;
}

.flipResult-barh-card-number-black {
    color: #000000;
}

.flipResult-barh-goal {
    width: 100%;
    height: auto;
    position: absolute;
    top: -75px;
}

.flipResult-barh-container-ball {
    position: absolute;
    height: 200px;
    width: 50px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transform-origin: center center;
    opacity: 0;
}

.flipResult-barh-ball {
    width: 50px;
    height: 50px;
    transform-origin: center center;
    background-image: url('/image/barh_ball.png');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.flipResult-barh-summary-container {
    width: 280px;
    padding: 5px;
    margin-top: 5px;
    background-color: #f6d9cc;
    border: 0.5px solid #abadb4;
    border-radius: 0.5em;
    height: 0;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flipResult-animation-cont-minimized .flipResult-barh-card {
    width: 30px;
    height: 44px
}

.flipResult-animation-cont-minimized .flipResult-barh-card-back-image {
    width: 20px;
}

.flipResult-animation-cont-minimized .flipResult-barh-card-number {
    height: 20px;
    font-size: 16px;
}

.flipResult-animation-cont-minimized .flipResult-barh-card-front-image {
    width: 19px;
    height: 19px;
}

.RMCShowSingleResult .flipResult-barh-card {
    background-color: white;
    margin: 2.5px 10px;
    opacity: 1;
}

.RMCShowSingleResult .flipResult-barh-card-front {
    opacity: 1;
}

.RMCShowSingleResult .flipResult-barh-card-back {
    opacity: 0;
}

.flipResult-barh-expandIn {
    animation-name: flipResult-barh-expandIn;
    animation-delay: 4700ms;
    /*4400 from cardAnim + 300*/
    animation-duration: 700ms;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
}

.flipResult-barh-fadeOutDelay {
    animation-name: flipResult-fadeOutAnimation;
    animation-delay: 6900ms;
    /*5400 from expandIn + 1500*/
    animation-duration: 500ms;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
}

/* #endregion FlipResult barh */

/* #region FlipSummary barh */
.flipSummary-barh-container-1 {
    width: 88%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin-bottom: 5px;
    margin: 3px auto;
}

.flipSummary-barh-container-2 {
    width: 88%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.flipSummary-barh-container-card {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.flipSummary-barh-container-result-all {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.flipSummary-barh-container-result-row {
    width: 210px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    margin-bottom: 5px;
}

.flipSummary-barh-result-box-large {
    width: 100%;
}

.flipSummary-barh-result-box {
    width: calc(100% * 1/3 - 2.5px);
    flex: 1;
    margin-right: 1px;
}

.flipSummary-barh-hline {
    height: 2px;
    width: 220px;
    margin-left: calc(50% - 110px);
    margin-top: 5px;
    margin-bottom: 5px;
}

/* #endregion FlipSummary barh */

/* #region FlipResult barh Animation */
/* #region barh Card */
@keyframes flipResult-barh-card-cardAnimation {
    0% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(90deg);
    }

    50.1% {
        transform: rotateY(90deg);
    }

    100% {
        transform: rotateY(180deg);
    }
}

@keyframes flipResult-barh-card-cardAnimation-3 {
    0% {
        transform: rotate(90deg) rotateY(0deg) translateX(-9px);
        z-index: 2;
        box-shadow: 0px 0px 2px #f2c431;
        border: 1px solid #f2c431;
        margin: 0 10px;
        margin-top: 17px;
    }

    /* 5% {
        transform: rotate(80deg) rotateY(0deg);
        z-index: 2;
    }
    10% {
        transform: rotate(100deg) rotateY(0deg);
        z-index: 2;
    }
    15% {
        transform: rotate(80deg) rotateY(0deg);
        z-index: 2;
    }
    20% {
        transform: rotate(100deg) rotateY(0deg);
        z-index: 2;
    }
    25% {
        transform: rotate(80deg) rotateY(0deg);
        z-index: 2;
    }
    30% {
        transform: rotate(100deg) rotateY(0deg);
        z-index: 2;
    }
    35% {
        transform: rotate(80deg) rotateY(0deg);
        z-index: 2;
    }
    40% {
        transform: rotate(100deg) rotateY(0deg);
        z-index: 2;
    }
    45% {
        transform: rotate(80deg) rotateY(0deg);
        z-index: 2;
    }
    50% {
        transform: rotate(100deg) rotateY(0deg);
        z-index: 2;
    }
    55% {
        transform: rotate(80deg) rotateY(0deg);
        z-index: 2;
    }
    60% {
        transform: rotate(100deg) rotateY(0deg);
        z-index: 2;
    }
    65% {
        transform: rotate(80deg) rotateY(0deg);
        z-index: 2;
    }
    70% {
        transform: rotate(100deg) rotateY(0deg);
        z-index: 2;
    } */
    70% {
        transform: rotate(90deg) rotateY(90deg) translateX(-9px);
        z-index: 2;
    }

    70.1% {
        transform: rotate(90deg) rotateY(90deg) translateX(-9px);
        z-index: 2;
    }

    100% {
        transform: rotate(90deg) rotateY(180deg) translateX(-9px);
        z-index: 2;
        box-shadow: 0px 0px 2px #f2c431;
        border: 1px solid #f2c431;
        margin: 0 10px;
    }
}

@keyframes flipResult-barh-card-cardAnimation-rh {
    0% {
        transform: rotate(0deg) rotateY(0deg);
        z-index: 2;
    }

    5% {
        transform: rotate(5deg) rotateY(0deg);
        z-index: 2;
    }

    10% {
        transform: rotate(-5deg) rotateY(0deg);
        z-index: 2;
    }

    15% {
        transform: rotate(5deg) rotateY(0deg);
        z-index: 2;
    }

    20% {
        transform: rotate(-5deg) rotateY(0deg);
        z-index: 2;
    }

    25% {
        transform: rotate(5deg) rotateY(0deg);
        z-index: 2;
    }

    30% {
        transform: rotate(-5deg) rotateY(0deg);
        z-index: 2;
    }

    35% {
        transform: rotate(5deg) rotateY(0deg);
        z-index: 2;
    }

    40% {
        transform: rotate(-5deg) rotateY(0deg);
        z-index: 2;
    }

    45% {
        transform: rotate(5deg) rotateY(0deg);
        z-index: 2;
    }

    50% {
        transform: rotate(-5deg) rotateY(0deg);
        z-index: 2;
    }

    55% {
        transform: rotate(5deg) rotateY(0deg);
        z-index: 2;
    }

    60% {
        transform: rotate(-5deg) rotateY(0deg);
        z-index: 2;
    }

    65% {
        transform: rotate(5deg) rotateY(0deg);
        z-index: 2;
    }

    70% {
        transform: rotate(0deg) rotateY(90deg);
        z-index: 2;
    }

    70.1% {
        transform: rotate(0deg) rotateY(90deg);
        z-index: 2;
    }

    100% {
        transform: rotate(0deg) rotateY(180deg);
        z-index: 2;
    }
}

@keyframes flipResult-barh-card-fadeIn {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    10% {
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes flipResult-barh-card-backContentAnimation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    50.1% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes flipResult-barh-card-contentAnimation {
    0% {
        opacity: 0;
        -webkit-transform: rotateY(180deg);
        transform: rotateY(180deg);
    }

    50% {
        opacity: 0;
        -webkit-transform: rotateY(180deg);
        transform: rotateY(180deg);
    }

    50.1% {
        opacity: 1;
        -webkit-transform: rotateY(180deg);
        transform: rotateY(180deg);
    }

    100% {
        opacity: 1;
        -webkit-transform: rotateY(180deg);
        transform: rotateY(180deg);
    }
}

/* #endregion barh Card */
/* add new css barh */

.barh-result {
    display: flex;
    width: 100%;
    padding-top: 12%;
    position: absolute;
}

.card-player {
    justify-content: flex-end;
    padding-right: 10px;
}

.card-banker {
    justify-content: flex-start;
    padding-left: 10px;
}

.flipSummary-barh-container-1 .result-box {
    width: 100%;
    justify-content: space-between;
    display: flex;
}

.flipSummary-barh-container-1 .result-box .result-number {
    font-weight: 700;
    justify-content: flex-start;
    flex: 1;
    font-size: 16px;
    color: #ab3f36;
    display: flex;
    padding: 12px;
}

.flipSummary-barh-container-1 .result-box .result-number.result-first {
    justify-content: flex-end;
}

.flipSummary-barh-container-1 .result-box .result-number div {
    font-weight: 700;
    background: #f6d9cc;
    width: 50px;
    display: inline-block;
    border-radius: 3px;
    padding: 3px;
    height: 22px;
    text-align: center;
}

.flipResult-barh-text-en {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    line-height: 1;
    top: -35px;
    color: #fff;
}

.barh-loss {
    animation: loss 1000ms forwards;
    animation-delay: 3900ms;
}

.barh-loss .flipResult-barh-text-en {
    animation: text-loss 1000ms forwards;
    animation-delay: 3900ms;
}

.barh-loss-rh {
    animation: loss 1000ms forwards;
    animation-delay: 3300ms;
}

.barh-loss-rh .flipResult-barh-text-en {
    animation: text-loss 1000ms forwards;
    animation-delay: 3300ms;
}

@keyframes loss {
    0% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.barh-win {
    animation: win 1000ms forwards;
    animation-delay: 3900ms;
}

.barh-win .flipResult-barh-text-en {
    animation: win 1000ms forwards;
    animation-delay: 3900ms;
}

@keyframes win {
    0% {
        color: #fff;
    }

    100% {
        color: #f2c431;
    }
}

.playboxTopPartHeightbarh {
    height: 181px;
}

.playboxTopPartHeightbarh .playboxRowHeightTopPart1 {
    height: 161px;
}

.flipResult-barh-container-card-rh {
    bottom: 20%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 50%;
}

.barh-result-rh {
    display: flex;
    width: 100%;
    padding: 0 80px;
}

.flipResult-barh-expandIn-rh {
    animation-name: flipResult-barh-expandIn;
    animation-delay: 3300ms;
    /*4400 from cardAnim + 300*/
    animation-duration: 700ms;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
}

.flipResult-300 {
    width: 300px;
}

.flipSummary-barh-container-1-rh {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    background: #f5d9cc;
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.effect-number {
    animation: 500ms effect-number linear;
}

@keyframes effect-number {
    0% {
        transform: scale(1);
    }

    50% {
        color: #f2c431;
        text-shadow: -1px 1px 1px #ab3f36, 1px 1px 1px #ab3f36, 1px -1px 1px #ab3f36, -1px -1px 1px #ab3f36;
        transform: scale(1.5);
        display: inline-block;
    }

    100% {
        transform: scale(1);
    }
}

/* end css barh */

/* #region FlipResult */
.flipResult-overlay-black {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background-color: rgb(89, 89, 89);
    background-color: rgba(89, 89, 89, 0.65);
    background: rgba(0, 0, 0, 0.75);
    z-index: 11;
    /*Same z-index as overlay-Block*/
}

.flipResult-overlay-black {
    overflow: hidden;
    top: 59.5%;
    transform: translateY(-67%);
    height: 0;
    padding-top: 33%;
}
 
/* #region FlipResult Common */
.flipResult-animation-cont {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flipResult-animation-cont-minimized {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    border-radius: .5em;
    overflow: hidden;
}

.flipResult-fadeIn-animation {
    animation-name: flipResult-fadeInAnimation;
    animation-delay: 0ms;
    animation-duration: 500ms;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
}

/* #endregion FlipResult Common */

/* #region FlipResult Common Animation */
@keyframes flipResult-fadeInAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes flipResult-fadeOutAnimation {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

/* #endregion FlipResult Common Animation */
.title-anim {
    /* padding: 0 10%; */
    display: flex;
    justify-content: center;
    position: absolute;
    width: 100%;
    bottom: 60%;
    top: 0;
    line-height: 1.2;
    max-height: 2.9em;
}

.content-score {
    background: url(/images/title-anim.png);
    background-size: 100%;
    background-repeat: no-repeat;
    flex: 0 0 280px;
    width: 200px;
    margin-top: 22px;
    margin-bottom: 10px;
    padding-top: 4%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-box {
    display: flex;
    justify-content: center;
    padding: 0em;
    font-size: 1.4em;
    color: #fff;
}

.content-score .result-box {
    position: absolute;
    margin-top: -2%;
}

.result-box .flipResult-barh-expandIn-1 {
    padding: 0 15px;
    background: #000;
    margin: 0 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    height: 1.1em;
    position: relative;
    overflow: hidden;
}

.fr-main-bg {
    background-color: #ac3f37;
}

.chip.active:before {
    content: "";
    background: url(/images/chip_highlight.png);
    position: absolute;
    padding-top: 100%;
    padding-left: 100%;
    background-size: 96%;
    top: 0;
    background-repeat: no-repeat;
    background-position: center;
}

.chip.active:after {
    content: "";
    background: url(/images/chip_arrow.png);
    position: absolute;
    padding-top: 20%;
    padding-left: 20%;
    background-size: contain;
    top: -13%;
    background-repeat: no-repeat;
    left: 50%;
    transform: translateX(-50%);
}

.chip-bet-content {
    position: absolute;
    width: 100%;
    bottom: 2%;
    pointer-events: none;
    z-index: 1;
}
.chip-number{
    color: #fbf29a;
    text-align: center;
    font-size: 1.1em;
    font-weight: 700;
    text-shadow: 0px 0px 3px #000;
    position: absolute;
    left: 50%;
    bottom: 20%;
    transform: translate(-50%, -129%);
    line-height: 1;
    -webkit-text-stroke: 2px #000000ab;
}
.bet-chip .chip-number{
    transform: translate(-50%, 50%);
    font-size: 1.4em;
    left: 50%;
    bottom: 50%;
}
.chip-bet-content.success {
    animation: success-bet 1s forwards;
}

.item-bet-4 .chip-bet-content.success, .item-bet-5 .chip-bet-content.success {
    animation: success-bet2 1s forwards;
}

@keyframes success-bet {
    0% {
        transform: scale(1);
        bottom: 2%;
        right: 0;
    }

    100% {
        transform: scale(0.5);
        bottom: 24%;
        right: -38%;
    }
}

@keyframes success-bet2 {
    0% {
        transform: scale(1);
        bottom: 2%;
        right: 0;
    }

    100% {
        transform: scale(0.5);
        bottom: 30%;
        right: -40%;
    }
}

.chip-bet {
    position: absolute;
    width: 42%;
    left: 50%;
    transform: translateX(-50%);
}

.chip-bet img {
    max-width: 100%;
}

.chip-bet:nth-child(1) {
    bottom: 0%;
}

.item-bet-4 .chip-bet,
.item-bet-5 .chip-bet {
    width: 26.5%;
}

@keyframes showbet {
    0% {
        opacity: 0;
    }

    95% {
        opacity: 0
    }

    100% {
        opacity: 1;
    }
}

.bet-success {
    background: url(/images/message_bar.png);
    position: absolute;
    width: 65%;
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 13%;
    top: 65%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: none;
}

.bet-success.active {
    display: block;
    animation: fadeIn 500ms forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.bet-success span {
    position: absolute;
    top: 17%;
    font-size: 2em;
    color: #fff;
    right: 20%;
}

.top-logo {
    background: linear-gradient(to right, #4600ae, #5f03b3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 140px;
    padding: 1%;
}

.tool-content {
    display: flex;
    background: #3d0196;
    justify-content: space-between;
    margin-bottom: 1em;
}

.tool-left {
    display: flex;
    align-items: flex-start;
    color: rgb(255, 227, 72);
    margin-left: 8px;
    margin-top: 12px;
    /* flex-direction: column; */
    justify-content: center;
}

.tool-right {
    display: flex;
    align-items: center;
}

.reload-wallet {
    margin-right: 0.5em;
    background: #1a4a9b;
    padding: 0.4em 0.5em;
    display: flex;
    justify-content: center;
    border-radius: 0 0.8em 0.8em 0;
    cursor: pointer;
}

.result-top,
.history-top,
.rule-top,
.sound-top {
    cursor: pointer;
}

.result-top:hover,
.history-top:hover,
.rule-top:hover,
.sound-top:hover {
    background: #1a4a9b;
}

.noti {
    background: url('/images/bubble_box.png');
    position: absolute;
    width: 32%;
    height: 8%;
    z-index: 1;
    background-size: cover;
    right: 10%;
    top: 10%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.6em;
}

.noti.active {
    display: flex;
}
.noti-stop{
  color: rgb(255, 227, 72);
  font-weight: 700;
  text-shadow: 1px 1px 2px #000;
  font-size: 0.8em;
  margin-right: 0.3em;
}
.stage {
    position: absolute;
    top: 15.4%;
    left: 50%;
    z-index: 100;
    width: 100%;
    height: 31.8%;
    transform: translate(-50%,-50%);
    overflow: hidden;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.stage canvas {
    touch-action: none!important;
    width: auto !important;
    height: 115% !important;
    cursor: inherit;
}
.productHeader-timer{
    width: 100%;
    position: absolute;
    top: 34%;
    height: 38%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
}
.time-border {
    width: 23%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.productList {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    min-width: inherit;
    margin-left: -3px;
    margin-right: -3px;
    margin-bottom: -5px;
}
.name-bet span {
    position: absolute;
    bottom: 2%;
    text-align: center;
    font-size: 0.8em;
    color: #ececec;
    width: 100%;
    pointer-events: none;
    line-height: 1;
}
.top-logo, .tool{
    margin: 0 -8px;
}
.bg-time{
    width: 1.9em;
    height: 1.9em;
    background: #6c7ff2;
    border-radius: 50%;
}
.all-bet{
    position: relative;
}
.no-stroke.chip-number {
    -webkit-text-stroke: aqua;
}
.flipResult-barh-expandIn-1 span {
    /* position: absolute; */
    left: 50%;
    transform: translateX(-50%);
}
.card-player .flipResult-barh-card:nth-child(3){
    position: absolute;
    right: 83px;
}
.card-banker .flipResult-barh-card:nth-child(3){
    position: absolute;
    left: 83px;
}
.barh-player .scroll-number {
    display: flex;
    flex-direction: column;
    position: absolute;
    opacity: 0;
    animation-name: number-score1, number-score3, number-score5;
    animation-delay: 180ms, 1680ms, 3680ms;
    animation-duration: 100ms,100ms,100ms;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
    transform: translateY(0%);
}
.barh-banker .scroll-number {
    display: flex;
    flex-direction: column;
    position: absolute;
    opacity: 0;
    animation-name: number-score2, number-score4, number-score6;
    animation-delay: 1130ms, 2330ms, 4730ms;
    animation-duration: 100ms,100ms,100ms;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
    transform: translateY(0%);
}
@keyframes number-score1 {
    0% {
        opacity: 0;
        transform: translateY(0%);
    }
    95% {
        opacity: 0;
        transform: translateY(0%);
    }
    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}
@keyframes number-score2 {
    0% {
        opacity: 0;
        transform: translateY(0%);
    }
    95% {
        opacity: 0;
        transform: translateY(0%);
    }
    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}
@keyframes number-score3 {
    0% {
        transform: translateY(0%);
    }
    95% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(-33%);
    }
}
@keyframes number-score4 {
    0% {
        transform: translateY(0%);
    }
    95% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(-33%);
    }
}
@keyframes number-score5 {
    0% {
        transform: translateY(-33%);
    }
    95% {
        transform: translateY(-33%);
    }
    100% {
        transform: translateY(-66%);
    }
}
@keyframes number-score6 {
    0% {
        transform: translateY(-33%);
    }
    95% {
        transform: translateY(-33%);
    }
    100% {
        transform: translateY(-66%);
    }
}

@media (min-width: 576px){
.modal-dialog {
    max-width: 350px;
    margin: 1.75rem auto;
}
}