/* base styles
================================================== */
* {
    margin: 0;
    padding: 0;
    outline: 0;
}

body,
html {
    height: 100%;
}

body {
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #6b6b6b;
    padding: 5px 0;
    height: 100%;
}

.baccarat {
    height: 100%;
}

.baccarat img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    border: none;
}

.baccarat .box.active .box-heading,
.baccarat .box.active .box-action {
    background-color: red;
    text-align:center;
}

.baccarat .box.active .box-content {
    border-color: red;
    border-width: 1px;
}

.baccarat .box.inactive .box-content {    
    border-left: 1px solid #d2d2d2;
    border-right: 1px solid #d2d2d2;
}

.baccarat .box.inactive .box-heading {
    color: #000;
}

.baccarat .box.inactive .box-heading,
.baccarat .box.inactive .box-action {
    background-color: #d2d2d2;
}

.baccarat .box.inactive .box-heading span {
    background-color: #adadad;
    color: #d2d2d2;
}

.baccarat .box .box-heading {
    background-color: #423F58;
    color: #fff;
    height: 27px;
    text-align:center;
    font-size: 18px;
}

.baccarat .box .box-heading span {
    background-color: #191818;
    height: 100%;
    padding: 0 10px;
    display: inline-block;
}

.baccarat .box .box-content {      
    display:flex;   
    height: 100%;       
}

.baccarat .box .box-content .result {      
    font-size:70px;
    color:#000;
    font-weight:bold; 
}


.baccarat .box .box-content .sub-box-1.active,
.baccarat .box .box-content .sub-box-2.active {
    background-color: #fdffe0;
}

.baccarat .box .box-content .sub-box-1.active li,
.baccarat .box .box-content .sub-box-2.active li {
    border: 2px solid transparent;
}

/*.box .box-content .sub-box-1.inactive,
.box .box-content .sub-box-2.inactive {
background-color: #fbfbfb;
}

.box .box-content .sub-box-1.inactive li,
.box .box-content .sub-box-2.inactive li {
border: 2px solid #e0e0e0;
}*/

.baccarat .box .box-content .sub-box-1,
.baccarat .box .box-content .sub-box-2 {
    height: 50%;
}

.baccarat .box .box-content .sub-box-cards {
    height: 60%;
    font-size: 0;
    padding: 10px 5px 0;
}

.baccarat .box .box-content .sub-box-cards ul {
    height: 100%;
}

.baccarat .box .box-content .sub-box-cards ul li {
    width: 25%;
    border: 2px solid #fff;
    height: 100%;
    float: left;
}

.baccarat .box .box-content .sub-box-cards ul li img {
    box-shadow: 0px 3px 8px #cecece;
}

.baccarat .box .box-content .sub-box-result {
    text-align: center;
    font-size: 30px;
    line-height: 1.5;
    font-weight: bold;
    height: 40%;
    color: #423F58;
}

.baccarat .box .box-content .sub-box-1.inactive .sub-box-result,
.baccarat .box .box-content .sub-box-2.inactive .sub-box-result {
    color: #a9a9a9;
}

.baccarat .box {
    border: 1px solid #423F58;
}
.baccarat .box .box-action {
    height: 39px;
    text-transform: uppercase;
    background-color: #423F58;
    color: #fff;
    font-size: 26px;
    text-align: center;
    font-weight: bold;
}

.baccarat .h-45 {
    height: 45% !important;
}

.baccarat .h-55 {
    height: 55% !important;
}


.baccarat .bottom {
    height: calc(100% - 10px);
    background-color: #423F58;
    width: 100%;
    margin: 10px 0 0 0;
}

.baccarat .bottom .dealer-msg {
    height: 20%;
    color: #fff;
    text-align: center;
    font-size: 30px;
    line-height: 1.5;
    font-weight: bold;
}

.baccarat .bottom .dealer-desk {
    background-color: #fff;
    width: 100%;
    height: 60%;
    padding: 10px 10px 0 0;
}

.baccarat .bottom .dealer-info {
    height: 20%;
    background-color: #fff;
    width: 100%;
    padding: 25px 10px 0px 0;
}


.baccarat .bottom .timer h4 {
    font-size: 18px;
    line-height: 24px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    text-align: center;
    color: #423F58;
}

.baccarat .bottom .timer h5 {
    font-size: 30px;
    line-height: 36px;
    font-weight: bold;
    margin: 15px 0 0 0;
    text-align: center;
    color: #423F58;
}

.baccarat .bottom .timer .counter {
    color: #0F0D0E;
    text-align: center;
    width: 100%;
    font-size: 80px;
    line-height: 100px;
    font-weight: bold;
    border-radius: 100%;
    margin: 0 auto;
    display: table;
}

.baccarat .bottom .dealer-box .box-heading {
    background-color: #423F58;
    color: #fff;
    height: 27px;
    font-size: 18px;
    text-align: center;
}


.baccarat .bottom .dealer-box .sub-box {
    height: 100%;
}

.baccarat .bottom .dealer-box .box-content {
    height: calc(100% - 27px);
    border-left: 1px solid #423F58;
    border-right: 1px solid #423F58;
    border-bottom: 1px solid #423F58;
}

.baccarat .bottom .dealer-box .sub-box-result {
    text-align: center;
    font-size: 50px;
    line-height: 1.5;
    font-weight: bold;
    height: 50%;
    color: #423F58;
}

.baccarat .bottom .dealer-box .sub-box-cards {
    height: 50%;
    font-size: 0;
    padding: 10px 5px 0;
}

.baccarat .bottom .dealer-box .sub-box-cards ul {
    height: 100%;
}

.baccarat .bottom .dealer-box .sub-box-cards ul li {
    width: 25%;
    float: left;
    border: 2px solid #fff;
    height: 100%;
}

.baccarat .bottom .dealer-box .sub-box-cards ul li img {
    box-shadow: 0px 3px 8px #cecece;
}

.baccarat .bottom .dealer-last-card .box-heading {
    background-color: #423F58;
    color: #fff;
    height: 27px;
    font-size: 18px;
    text-align: center;
}


.baccarat .bottom .dealer-last-card .sub-box {
    height: 100%;
}

.baccarat .bottom .dealer-last-card .box-content {
    height: calc(100% - 27px);
    border-left: 1px solid #423F58;
    border-right: 1px solid #423F58;
    border-bottom: 1px solid #423F58;
}

.baccarat .bottom .dealer-last-card .box-content img {
    margin: 0 auto;
    display: block;
}


/* chat */
.baccarat .chat {
    height: 100%;
    overflow: hidden;
    padding: 0 30px 0 0;
}

.baccarat .chat .players-in {
    color: #fff;
    font-size: 24px;
    line-height: 36px;
    font-weight: bold;
    margin: 20px 0 15px;
    text-align: right;
}

.baccarat .chat .heading {
    color: #fff;
}

.baccarat .chat .heading span {
    float: right;
}

.baccarat .chat ul li {
    font-weight: bold;
    font-size: 30px;
    color: #fff;
}

.baccarat .chat ul li .date {
    margin-right: 5px;
}

.baccarat .chat ul li.join-room {color: #6a7d53; background-color: transparent; font-size: 26px;}
.baccarat .chat ul li.join-table {color: #6a7d53; background-color: transparent; font-size: 26px;}
.baccarat .chat ul li.left-table { color: #a04e4e; background-color: transparent; font-size: 26px;}
.baccarat .chat ul li.left-room { color: #a04e4e; background-color: transparent; font-size: 26px;}


.baccarat .container-fluid {
    padding-right: 5px;
    padding-left: 5px;
}

.baccarat .row {
    margin-right: -5px;
    margin-left: -5px;
}

.baccarat div[class^="col"] {
    padding-right: 5px;
    padding-left: 5px;
}


/* cards */
.baccarat .card-box {
    padding: 10px 15px;
    text-align: center;
    border-radius: 2px;
    color: #444c7d;
    border: 1px solid rgba(0,0,0,.1);
}

.baccarat .card-box-label {
    text-transform: uppercase;
    color: #0f0d0e;
    font-size: 14px;
}

.baccarat .card-box-body {
    font-size: 20px;
    color: #423f58;
    text-transform: uppercase;
    font-weight: bold;
}

.baccarat .card-box .dealer-name span {
    font-size: 14px;
    color: #fff;
    font-weight: normal;
    display: block;
}



.baccarat .btn {
    border: 0;
    padding: 24px 40px;
    outline: none;
    box-shadow: none;
}          

.baccarat .btn-primary {
    background-color: #423f58;
    color:#fff;
}

ul.card-count-9 li:not(:first-child){
    margin-left:-41px;
}
ul.card-count-8 li:not(:first-child){
    margin-left:-36px;
}
ul.card-count-7 li:not(:first-child){
    margin-left:-33px;
}
ul.card-count-6 li:not(:first-child){
    margin-left:-26px;
}
ul.card-count-5 li:not(:first-child){
    margin-left:-17px;
}

.dealer-box ul.card-count-9 li:not(:first-child){
    margin-left:-46px;
}
.dealer-box ul.card-count-8 li:not(:first-child){
    margin-left:-42px;
}
.dealer-box ul.card-count-7 li:not(:first-child){
    margin-left:-39px;
}
.dealer-box ul.card-count-6 li:not(:first-child){
    margin-left:-32px;
}
.dealer-box ul.card-count-5 li:not(:first-child){
    margin-left:-21px;
}

.action-buttons{
    height:20%;
    background:#fff;
}
/* bottom nav */
.action-buttons nav ul {
    text-align: center;
    margin: 10px 0 0 0;
}

.action-buttons nav ul li {
    color:#fff;
    display: inline-block;
    margin: 0 10px;
}


.main-card {
    text-align: center;
    padding:10px;
}

.main-card img {

}

.main-card.card-horizontal {

}

.main-card-default {

}

.main-card.card-horizontal .horizontal-card-holder {
    height: auto;
    border:1px solid #423F58;
    padding: 10px;

    transform-origin: 41% 43%;

    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    -o-transform: rotate(-90deg);
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);

    display: inline-block;
}

.main-card.card-horizontal .horizontal-card-holder img {

}

.default-img {
    opacity: 0;
}

.main-card .main-card-holder {
    border: 1px solid #423F58;
    padding: 10px;
    display: inline-block;
}

.main-card .main-card-holder.active{
    background:#e6ffeb; 
}

.main-card-result {
    font-size: 20px;
    line-height: 24px;
    font-weight: bold;
    color: #000;
}

.result-holder{
    display: block;
    padding: 5px;
    line-height: 90px;
    font-size: 120px;
    margin: 0 0 15px 0;
}

.main-card-position {
    font-size: 25px;
    font-weight: bold;
    color: #000;
}