.game{
	position: relative;
	width: auto;
	height: 100%;
    text-align: center;
    height: 400px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url(../images/colorgamebox.png);
}
.colorgamecover{
	background-image: url(../images/colorgameboxfront.png);
    width: 100%;
    height: 45px;
    position: absolute;
    bottom: 5px;
    background-repeat: no-repeat;
    background-size: 303px;
    background-position: bottom;
}
#colorGameBetModal .selectedColorBlock{
    width: 60px;
    padding-top: 60px;
    margin: auto;
    margin-bottom: 10px;
}
#txtColorGameYourBet{
	text-align: center;
}
#colorGameBetModal .content{
	text-align: center;
}
.dicecontainer{
	position: relative;
	display: inline-block;
	margin: 0px -24px;
}
#rolldicecg{
	transition: .3s;
	bottom: 1px;
    position: absolute;
    z-index: 9;
    font-size: 29px;
    left: calc(50% - 86px);
    top: calc(50% - 183px);
    height: 55px;
    padding: 1px 11px;
    display: block;
}
#colorgamebethlder .col-md-4{
	padding: 0px;
}
.colorgamebtnhldr{

}
.colorgameblock label{
    position: absolute;
    top: calc(50% - 13px);
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 17px;
    cursor: pointer;
}
.colorgameblock.wins1,.cgresblkclrs.wins1{
    background-image: url(../images/star.png);
    background-repeat: no-repeat;
}
.colorgameblock.wins2,.cgresblkclrs.wins2{
    background-image: url(../images/star2.png);
    background-repeat: no-repeat;
}
.colorgameblock.wins3,.cgresblkclrs.wins3{
    background-image: url(../images/star3.png);
    background-repeat: no-repeat;
}
.colorgameblock.wins1{
    background-position: center 2px;
    background-size: 19px;
}
.colorgameblock.wins2{
    background-position: center 2px;
    background-size: 39px;
}
.colorgameblock.wins3{
    background-position: center 2px;
    background-size: 59px;
}

.cgresblkclrs.wins1{
    background-position: right;
    background-size: 15px;
}
.cgresblkclrs.wins2{
    background-position: right;
    background-size: 30px;
}
.cgresblkclrs.wins3{
    background-position: right;
    background-size: 41px;
}
.cgresblkclrs{
    display: inline-block;
    width: 124px;
    height: 24px;
    margin-bottom: 6px;
    text-align: left;
    padding: 0px 6px;
}
#clrgmtblrslt{
    margin: auto;
    width: 100%;
    overflow: auto;
    margin-bottom: 30px;
}
#colorGameBetResultModal .content{
	overflow: auto;
}
#clrgmtblrslt .hdr{
	font-weight: bold;
	padding: 0px 20px;
}
#clrgmtblrslt tr td{
	text-align: center;
	padding: 0px 4px;
}
.colorgameblock{
    width: 100%;
    padding-top: 100%;
    margin: 10px 0px;
    position: relative;
    border: 2px solid #000000;
    cursor: pointer;
}
.colorgameblock:hover{
    box-shadow: 0px 0px 18px #009dff;
}

#rolldicecg:hover, #rolldicecg:active{
	transform: translateY(10px);
}

.holder{
    top: -16px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s;
    width: 236px;
    height: 40px;
    scale: 0.4;
    margin: auto;
}
.holderside{
	position: absolute;
	background-color: #fff;
    width: 236px;
    height: 40px;
	border: 1px solid #e5e5e5;
	text-align: center;
	line-height: 2em;
}
.holdersidebar.left{
    left: 0px;
}
.holdersidebar.right{
    right: 0px;
}
.holdersidebar{
    background-color: #ffffff;
    height: 86px;
    width: 21px;
    position: absolute;
    top: -80px;
}
.holderside:nth-child(1){
	transform: translateZ(19px);
	background-color: gray;
}
.holderside:nth-child(2){
	transform: rotateX(-90deg) translateZ(19px);
	background-color: white;
}

.holder.up{
	transform: rotateX(90deg) translateZ(90px);
	/*transform: rotateX(770deg) rotateZ(-720deg);*/
}

.dice{
	position: relative;
	width: 40px;
	height: 40px;
	transform-style: preserve-3d;
	transition: transform 3s;
}
.dice-one{
	top: 10px;
}
.dice-two{
	top: 10px;
}
.dice-three{
	top: 10px;
}
.side{
	position: absolute;
	background-color: #fff;
	border-radius: 5px;
	width: 40px;
	height: 40px;
	border: 1px solid #e5e5e5;
	text-align: center;
	line-height: 2em;
}
.side:nth-child(1){
	transform: translateZ(19px);
}
.side:nth-child(6){
	transform: rotateY(90deg) translateZ(19px);
}
.side:nth-child(3){
	transform: rotateY(-90deg) translateZ(19px);
}
.side:nth-child(4){
	transform: rotateX(90deg) translateZ(19px);
}
.side:nth-child(5){
	transform: rotateX(-90deg) translateZ(19px);
}
.side:nth-child(2){
	transform: rotateY(-180deg) translateZ(19px);
}
.show-1{
	transform: rotateX(720deg) rotateZ(-720deg);
	/*transform: rotateX(770deg) rotateZ(-720deg);*/
}
.show-2{
	transform: rotateX(-900deg) rotateZ(1080deg);
    /*transform: rotateX(-850deg) rotateZ(1080deg);*/
}
.show-3{
	transform: rotateY(810deg) rotateZ(720deg);
    /*transform: rotateY(810deg) rotateZ(770deg);*/
}
.show-4{
	transform: rotateX(-810deg) rotateZ(-1080deg);
    /*transform: rotateX(-760deg) rotateZ(-1080deg);*/
}
.show-5{
	transform: rotateX(450deg) rotateZ(-720deg);
	/*transform: rotateX(500deg) rotateZ(-720deg);*/
}
.show-6{
	transform: rotateY(-450deg) rotateZ(-1440deg);
	/*transform: rotateY(-450deg) rotateZ(-1490deg);*/
}



.show-1[direction='falling']{
	transform: rotateX(770deg) rotateZ(-720deg);
}
.show-2[direction='falling']{
	transform: rotateX(-850deg) rotateZ(1080deg);
}
.show-3[direction='falling']{
	transform: rotateY(810deg) rotateZ(770deg);
}
.show-4[direction='falling']{
	transform: rotateX(-760deg) rotateZ(-1080deg);
}
.show-5[direction='falling']{
	transform: rotateX(500deg) rotateZ(-720deg);
}
.show-6[direction='falling']{
	transform: rotateY(-450deg) rotateZ(-1490deg);
}
.dice .side[color-code='green']{
	background-color: green;
}
.dice .side[color-code='red']{
	background-color: red;
}
.dice .side[color-code='blue']{
	background-color: blue;
}
.dice .side[color-code='pink']{
	background-color: #ff009c;
}
.dice .side[color-code='white']{
	background-color: white;
}
.dice .side[color-code='yellow']{
	background-color: yellow;
}

#colorgameblockred,.colorgameblockred{
	background-color: red;
    color: #ffffff;
}
#colorgameblockgreen,.colorgameblockgreen{
	background-color: green;
    color: #ffffff;
}
#colorgameblockblue,.colorgameblockblue{
	background-color: blue;
    color: #ffffff;
}
#colorgameblockwhite,.colorgameblockwhite{
	background-color: white;
	color: #000000;
}
#colorgameblockyellow,.colorgameblockyellow{
	background-color: yellow;
	color: #000000;
}
#colorgameblockpink,.colorgameblockpink{
	background-color: #ff009c;
    color: #ffffff;
}
.colorgameblockred{
    border-right: 2px red solid;
}
.colorgameblockgreen{
    border-right: 2px green solid;
}
.colorgameblockblue{
    border-right: 2px blue solid;
}
.colorgameblockwhite{
    border-right: 2px white solid;
}
.colorgameblockyellow{
    border-right: 2px yellow solid;
}
.colorgameblockpink{
    border-right: 2px #ff009c solid;
}

.tblrsltclrgmtdbet.win{
	color: #00ff00;
    font-weight: bold;
}
#tblrsltclrgmtrtotal .caption label{
	background-color: yellow;
    color: #000000;
    padding: 0px 6px;
    font-weight: bold;
}
#tblrsltclrgmtrtotal .tblrsltclrgmtdwin{
    font-weight: bold;
    font-size: 16px;
    color: red;
}
#tblrsltclrgmtrtotal .tblrsltclrgmtdwin.win{
    color: #00ff00;
}
#tblrsltclrgmtrtotal .caption{
	text-align: right;
}
.tblrsltclrgmtdbet.lose{
	color: #ff0000;
    font-weight: bold;
}

#colorGameBetResultModal h5{
    text-align: center;
    font-weight: bold;
    margin-bottom: 14px;
}