.marquee {
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

.angpao {
    display: inline-block;
    padding: 3px;
    width: 29%;
    margin: 0 4px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}


/*.angpao.ineligible:before {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    z-index: 1;
}*/

.angpao {
    box-shadow: inset 0 0 8px 2px grey;
    animation: angpao 1s linear infinite;
}

@keyframes angpao {
    50% {
        box-shadow: none;
    }
}

.angpao.ineligible {
    box-shadow: none;
}

.texth1 {
    text-align: center;
    color: #ffe718;
    margin: 25 px auto 20 px;
    font-size: 3.8em;
}

.textbonus {
    color: #fff;
    font-size: 33px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    position: absolute;
    top: 65px;
    left: 0;
    padding: 0 42px;
}

@media only screen and (max-width: 800px) {
    texth1 {
        font-size: 2.2em;
        text-align: left;
    }
    .textbonus {
        font-size: 23px;
        line-height: 1.2;
        top: 60px;
        padding: 0 40px;
    }
}

@media only screen and (max-width: 540px) {
    .texth1 {
        margin: 15px auto 10px;
        font-size: 1.8em;
        text-align: left;
    }
    .textbonus {
        font-size: 16px;
        line-height: 1.2;
        top: 40px;
        padding: 0 25px;
    }
}

@media only screen and (max-width: 480px) {
    .texth1 {
        margin: 10px auto 10px;
        font-size: 1.4em;
        text-align: left;
    }
    .textbonus {
        font-size: 12px;
        line-height: 1.1;
        top: 30px;
        padding: 0 18px;
    }
}

@media only screen and (max-width: 375px) {
    .texth1 {
        margin: 10px auto 10px;
        font-size: 1.2em;
        text-align: left;
    }
    .textbonus {
        font-size: 11px;
        line-height: 1.1;
        top: 25px;
        padding: 0px 15px;
    }
}

@media only screen and (max-width: 320px) {
    .texth1 {
        margin: 5px auto 10px;
        font-size: 1.2em;
        text-align: left;
    }
    .textbonus {
        font-size: 9px;
        line-height: 1.1;
        top: 25px;
    }
}

h1 {
    font-size: 1.4em;
}

#home-bonus {
    overflow: scroll;
    padding: 20px !important;
    background: url(../images/bg-angpow.jpg) !important;
    /* background: #e94328 !important; */
    height: 400px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover !important;
    width: 90%;
    border-radius: 8px;
    color: #fff;
    border: 2px solid #FFC107;
    visibility: hidden;
    display: none;
}

#home-bonus.active {
    visibility: visible;
}

#home-bonus .title {
    color: #FFC107;
    font-weight: 700;
    border-bottom: 2px solid #FFC107;
    padding-bottom: 10px
}

#home-bonus p {
    margin-top: 10px
}

#home-bonus .btns {
    overflow: hidden;
    margin-top: 20px;
    text-align: center;
}

#home-bonus .btns .btn.single {
    width: 125px;
    margin: 0 auto;
    background-image: url(../images/credit.png);
    background-size: contain;
    background-repeat: no-repeat;
    color: #000;
    font-weight: 700;
}

#popupwindow {
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(0, 0, 0, .6);
    visibility: hidden;
    -webkit-transition: opacity .3s
}

#overlaypopup {
    z-index: 4;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(0, 0, 0, .6);
    visibility: hidden;
    -webkit-transition: opacity .3s
}

#popupwindow.active {
    visibility: visible;
}

#overlaypopup.active {
    visibility: visible;
}

.custom-model-main {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    opacity: 0;
    -webkit-transition: opacity 0.15s linear, z-index 0.15;
    -o-transition: opacity 0.15s linear, z-index 0.15;
    transition: opacity 0.15s linear, z-index 0.15;
    z-index: -1;
}

.model-open {
    z-index: 99999;
    opacity: 1;
}

.custom-model-inner {
    -webkit-transition: -webkit-transform 0.3s ease-out;
    -o-transition: -o-transform 0.3s ease-out;
    transition: -webkit-transform 0.3s ease-out;
    -o-transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
    display: inline-block;
    vertical-align: middle;
    width: 90%;
}

.custom-model-wrap {
    display: block;
    width: 100%;
    position: relative;
    color: #fff;
    background-color: #000;
    border: 1px solid rgb(255, 231, 17);
    border-radius: 6px;
    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
    background-clip: padding-box;
    outline: 0;
    text-align: left;
    padding: 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.model-open .custom-model-inner {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translate(0, 0);
    position: relative;
    z-index: 999;
}

.model-open .bg-overlay {
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
}

.bg-overlay {
    background: rgba(0, 0, 0, 0);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    z-index: 0;
    -webkit-transition: background 0.15s linear;
    -o-transition: background 0.15s linear;
    transition: background 0.15s linear;
}

.close-btn {
    position: absolute;
    right: 0;
    top: -30px;
    cursor: pointer;
    z-index: 99;
    font-size: 30px;
    color: #fff;
}

@media screen and (min-width:800px) {
    .custom-model-main:before {
        content: "";
        display: inline-block;
        height: auto;
        vertical-align: middle;
        margin-right: -0px;
        height: 100%;
    }
}

@media screen and (max-width:799px) {
    .custom-model-inner {
        margin-top: 40%;
    }
}

#section-member-panel {
    padding: 0;
    background-position: 50%;
    background-repeat: repeat-x
}

#section-member-panel.commission {
    margin-top: 30px;
    margin-bottom: 110px;
}

#section-member-panel>div {
    max-width: 1024px;
    width: 100%;
    margin: 0 auto
}

#section-member-panel .row-top {
    display: flex;
    flex-flow: row wrap
}

#section-member-panel .row-top #panel-top-left {
    flex: 45%;
    padding: 0 15px 15px
}

#section-member-panel .row-top #panel-top-right {
    flex: 55%;
    padding: 0 15px 15px
}

#section-member-panel .row-top #panel-top-right #panel-balance {
    padding: 20px 30px;
    text-align: center;
    -webkit-animation: shakeleftright 1.5s infinite;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 10px;
    border-radius: 0px;
    width: 100%;
}

#section-member-panel .row-top #panel-top-right #panel-balance #balance-title {
    color: #ddd;
    font-size: 28px;
    text-align: center;
    margin-bottom: 10px
}

#section-member-panel .row-top #panel-top-right #panel-balance #balance-value {
    font-size: 50px;
    line-height: 1;
    color: #fff;
}

#section-member-panel .row-top #panel-top-right #panel-balance #balance-value #balance-refresh {
    display: inline-block;
    cursor: pointer;
    margin-left: 15px
}

#section-member-panel .row-top #panel-top-right #panel-balance #balance-value #balance-refresh svg {
    width: 35px;
    height: 35px
}

#section-member-panel .row-top #panel-top-right #panel-setting {
    color: #000;
    flex: 50%;
    padding: 23px 33px;
    font-size: 24px;
    line-height: 2
}

#section-member-panel .row-top #panel-top-right #panel-setting p {
    margin: 0
}

#section-member-panel .row-bottom {
    display: flex;
    flex-flow: row wrap;
    padding: 5px 15px 0;
}

#section-member-panel .row-bottom.btn3 {
    display: flex;
    flex-flow: row wrap;
    padding: 0px;
}

#section-member-panel .row-bottom a {
    flex: 25%;
    display: block;
    padding: 0px;
}

#section-member-panel .row-bottom a img {
    width: 100%;
    /*border: 2px solid #aaa;
    border-radius: 8px;*/
}

.row-bottom.btn-share {
    padding: 0;
    margin-top: 0px!important;
    position: relative;
}

@media screen and (max-width: 992px) {
    .row-bottom.btn-share {
        margin-top: 0px!important;
    }
}

@media screen and (max-width: 800px) {
    .row-bottom.btn-share {
        margin-top: 0px!important;
    }
    #section-member-panel.commission {
        margin-top: 30px;
        margin-bottom: 45px;
    }
}

@media screen and (max-width: 640px) {
    .row-bottom.btn-share {
        margin-top: 0px!important;
    }
}

@media screen and (max-width: 540px) {
    .row-bottom.btn-share {
        margin-top: 0px!important;
    }
}

@media screen and (max-width: 480px) {
    .row-bottom.btn-share {
        margin-top: 0px!important;
    }
    #section-member-panel .row-bottom a img {
        width: 100%;
    }
    #section-member-panel .row-bottom.btn3 {
        padding: 0px 5px 0;
    }
}

@media screen and (max-width: 414px) {
    .row-bottom.btn-share {
        margin-top: 0px!important;
    }
    #section-member-panel.commission {
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

@media screen and (max-width: 320px) {
    .row-bottom.btn-share {
        margin-top: 0px!important;
    }
}

.vippromo-wrap {
    position: relative;
}

.vippromo-text {
    position: absolute;
    top: 35%;
    left: 15%;
    width: 70%;
    height: 50px;
    text-align: center;
}

.vippromo-text p {
    color: #fff;
    font-weight: 500;
    font-size: 100%;
    font-family: a Atmospheric Regular, sans-serif;
    margin-bottom: 5px;
    text-shadow: 2px 2px #ff0000;
}

.vippromo-text p.state {
    color: #fff;
    font-weight: 700;
    font-size: 2.2vw;
    font-family: a Atmospheric Regular, sans-serif;
    margin-top: 10px;
    text-shadow: 2px 2px #ff0000;
}

.vippromo-infobtn {
    position: absolute;
    top: 60%;
    left: 30%;
    width: 40%;
    height: auto;
}

@media only screen and (max-width:1024px) {
    .vippromo-text p {
        font-size: 1.6vw;
    }
    .vippromo-text p.state {
        font-size: 2.8vw;
        margin-top: 5px;
    }
}

@media only screen and (max-width:414px) {
    .vippromo-text p {
        line-height: 1;
    }
}

@media only screen and (max-width:393px) {
    .vippromo-text p {
        line-height: 1;
    }
}

@media only screen and (max-width:360px) {
    .vippromo-text p {
        line-height: 1;
    }
}

@media only screen and (max-width:320px) {
    .vippromo-text p {
        line-height: 1;
    }
}

@media only screen and (max-width:280px) {
    .vippromo-text p {
        line-height: 1;
    }
}

@media only screen and (max-width:991px) {
    #section-member-panel .row-top #panel-top-right #panel-balance #balance-title {
        font-size: 26px;
        margin-bottom: 0;
    }
    #section-member-panel .row-top #panel-top-right #panel-balance #balance-value {
        font-size: 40px
    }
    #section-member-panel .row-top #panel-top-right #panel-balance #balance-value #balance-refresh svg {
        width: 28px;
        height: 28px
    }
    #section-member-panel .row-top #panel-top-right #panel-setting {
        padding: 5px 15px 25px;
        font-size: 20px;
        width: 100%;
    }
}

@media only screen and (max-width:768px) {
    #section-member-panel {
        padding: 0;
        border-width: 5px 0
    }
    #section-member-panel .row-top #panel-top-right #panel-balance {
        padding: 20px 0;
        width: 100%;
    }
    #section-member-panel .row-top #panel-top-lerightft #panel-balance #balance-title {
        font-size: 18px;
        margin-bottom: 0px
    }
    #section-member-panel .row-top #panel-top-right #panel-balance #balance-value {
        font-size: 30px
    }
    #section-member-panel .row-top #panel-top-right #panel-balance #balance-value #balance-refresh {
        margin-left: 15px
    }
    #section-member-panel .row-top #panel-top-right #panel-balance #balance-value #balance-refresh svg {
        width: 22px;
        height: 22px
    }
    #section-member-panel .row-top #panel-top-right #panel-setting {
        font-size: 17px;
        padding: 0px 15px 20px;
        ;
    }
    #section-member-panel .row-bottom a {
        padding: 2px 2px
    }
}

@media only screen and (max-width:568px) {
    #section-member-panel .row-top #panel-top-right #panel-balance {
        padding: 10px 0;
        width: 100%;
    }
    #section-member-panel .row-top #panel-top-right #panel-balance #balance-value {
        font-size: 25px
    }
    #section-member-panel .row-top #panel-top-right #panel-setting {
        font-size: 15px
    }
}

@media only screen and (max-width:480px) {
    #section-member-panel {
        padding: 0px;
        border-width: 15px 0;
    }
    #section-member-panel .row-top #panel-top-right #panel-balance {
        padding: 5px 0;
        border-radius: 0px;
        width: 100%;
    }
    #section-member-panel .row-top #panel-top-right #panel-balance #balance-title {
        font-size: 12px;
        margin-bottom: 0px
    }
    #section-member-panel .row-top #panel-top-right #panel-balance #balance-value {
        font-size: 20px
    }
    #section-member-panel .row-top #panel-top-right #panel-balance #balance-value #balance-refresh {
        margin-left: 5px
    }
    #section-member-panel .row-top #panel-top-right #panel-balance #balance-value #balance-refresh svg {
        width: 16px;
        height: 16px
    }
    #section-member-panel .row-top #panel-top-right {
        padding: 5px 0
    }
    #section-member-panel .row-top #panel-top-right #panel-setting {
        font-size: 12px;
        padding: 0
    }
    #section-member-panel .row-top #panel-top-left {
        padding: 0 8px 10px
    }
    #section-member-panel .row-bottom a {
        padding: 2px 2px
    }
}

@media only screen and (max-width:414px) {
    #section-member-panel .row-top #panel-top-right {
        padding: 5px 5px;
    }
    #section-member-panel .row-top #panel-top-right #panel-balance {
        padding: 7px 0;
        border-radius: 0px;
        width: 100%;
    }
    #section-member-panel .row-top #panel-top-right #panel-setting {
        font-size: 9px;
        padding: 0px 10px 10px;
        line-height: 1.8;
    }
    #section-member-panel .row-bottom a {
        padding: 0;
    }
}

@media only screen and (max-width:320px) {
    #section-member-panel .row-top #panel-top-right #panel-balance #balance-title {
        font-size: 8px;
        margin-bottom: 0px
    }
    #section-member-panel .row-top #panel-top-right #panel-balance #balance-value {
        font-size: 15px
    }
    #section-member-panel .row-top #panel-top-right #panel-setting {
        font-size: 8px;
        padding: 0;
        width: 100%;
    }
}

@media only screen and (max-width:280px) {
    #section-member-panel .row-top #panel-top-right #panel-balance {
        padding: 5px 0!important;
    }
    #section-member-panel .row-top #panel-top-right #panel-setting {
        font-size: 7px;
        padding: 0 5px 5px;
        width: 100%;
    }
}

@-webkit-keyframes shakeleftright {
    10%,
    90% {
        transform: translate3d(-1px, 0, 0)
    }
    20%,
    80% {
        transform: translate3d(2px, 0, 0)
    }
    30%,
    50%,
    70% {
        transform: translate3d(-2px, 0, 0)
    }
    40%,
    60% {
        transform: translate3d(2px, 0, 0)
    }
}

@keyframes shakeleftright {
    10%,
    90% {
        transform: translate3d(-1px, 0, 0)
    }
    20%,
    80% {
        transform: translate3d(2px, 0, 0)
    }
    30%,
    50%,
    70% {
        transform: translate3d(-2px, 0, 0)
    }
    40%,
    60% {
        transform: translate3d(2px, 0, 0)
    }
}

.casino_light3 {
    left: 0;
    top: -15px!important;
    width: 15%;
    height: 15%;
    max-width: 100%!important;
    max-height: 100%!important;
    margin-left: 5%;
    animation: light_left linear infinite 2.5s;
    position: absolute;
    z-index: 2;
}

.casino_light4 {
    right: 0;
    bottom: -145px!important;
    width: 15%;
    height: 15%;
    max-width: 100%!important;
    max-height: 100%!important;
    margin-right: 5%;
    animation: light_right linear infinite 2.5s;
    position: absolute;
    z-index: 3;
}

@-webkit-keyframes light_left {
    0% {
        left: -25%;
        opacity: 0;
        filter: blur(2px);
    }
    20% {
        opacity: 0.9;
        filter: none;
    }
    80% {
        left: 45%;
        opacity: 0.9;
        filter: none;
    }
    100% {
        left: 45%;
        opacity: 0;
        filter: blur(2px);
    }
}

@keyframes light_left {
    0% {
        left: -25%;
        opacity: 0;
        filter: blur(2px);
    }
    20% {
        opacity: 0.9;
        filter: none;
    }
    80% {
        left: 45%;
        opacity: 0.9;
        filter: none;
    }
    100% {
        left: 45%;
        opacity: 0;
        filter: blur(2px);
    }
}

@-webkit-keyframes light_right {
    0% {
        right: -5%;
        opacity: 0;
        filter: blur(2px);
    }
    20% {
        opacity: 0.9;
        filter: none;
    }
    80% {
        right: 45%;
        opacity: 0.9;
        filter: none;
    }
    100% {
        right: 45%;
        opacity: 0;
        filter: blur(2px);
    }
}

@keyframes light_right {
    0% {
        right: -5%;
        opacity: 0;
        filter: blur(2px);
    }
    20% {
        opacity: 0.9;
        filter: none;
    }
    80% {
        right: 45%;
        opacity: 0.9;
        filter: none;
    }
    100% {
        right: 45%;
        opacity: 0;
        filter: blur(2px);
    }
}

@media screen and (max-width:1400px) {
    .casino_light4 {
        bottom: -115px!important;
    }
}

@media screen and (max-width:1180px) {
    .casino_light4 {
        bottom: -105px!important;
    }
}

@media screen and (max-width:915px) {
    .casino_light4 {
        bottom: -95px!important;
    }
}

@media screen and (max-width:800px) {
    .casino_light4 {
        bottom: -90px!important;
    }
}

@media screen and (max-width:767px) {
    .casino_light3 {
        top: -10px!important;
    }
    .casino_light4 {
        bottom: -75px!important;
    }
}

@media screen and (max-width:667px) {
    .casino_light3 {
        top: -5px!important;
    }
    .casino_light4 {
        bottom: -60px!important;
    }
}

@media screen and (max-width:414px) {
    .casino_light3 {
        top: -5px!important;
    }
    .casino_light4 {
        bottom: -45px!important;
    }
}

@media screen and (max-width:375px) {
    .casino_light3 {
        top: -5px!important;
    }
    .casino_light4 {
        bottom: -35px!important;
    }
}

@media screen and (max-width:280px) {
    .casino_light3 {
        top: -5px!important;
    }
    .casino_light4 {
        bottom: -25px!important;
    }
}