:root {
    --height-of-main-bet: 340px;
    --height-of-main-bet-header: 36px;
    --height-of-goal-first-bet: 50px;
    --height-of-version-logo: 225px;

    --main-theme-color: #CA9E43;
    --main-theme-font-color: #FFFFFF;
    --main-background-color: #111111;
    --main-border-color: #333333;
    --second-background-color: #222222;

    --second-background-rgba: rgba(34, 34, 34, 0.7);
}
body {
    background-repeat: no-repeat;
    background-image: url(../images/bg.jpg);
    background-size: cover;
    margin: 0;
    position: relative;
    background-position: center;
    background-color: #000;
    background-attachment: fixed;
    font-family: "Kanit";
}
.container {
    margin: auto;
    width: 80%;
    display: flow-root;
}

.header {
    height: 60px;
    background: var(--main-background-color);
    margin-bottom: 30px;
    color: var(--main-theme-font-color);
}

.header h1 {
    text-align: left;
    line-height: 60px;
    border: none;
    padding: 0px;
    font-family: "Kanit";
    width: 30%;
    float: left;
}

.header h1 a {
    text-decoration: none;
    color: var(--main-theme-font-color);
}

.header .nav {
    float: left;
    width: 40%;
    margin: 0px;
    padding: 0px;
    height: 100%;
    line-height: 60px;
}

.nav li {
    display: inline-block;
    width: 40%;
    text-align: center;
}

.nav li a {
    text-decoration: none;
    color: var(--main-theme-font-color);
    height: 100%;
}

.main-bet,
.main-live-today {
    width: 100%;
    height: var(--height-of-main-bet);
    /* background: var(--second-background-color); */
    background: var(--second-background-rgba);
    border-radius: 10px 10px 10px 10px;
}
.main-live-today {
    height: auto;
}
.main-bet-header {
    height: var(--height-of-main-bet-header);
    text-align: center;
    line-height: var(--height-of-main-bet-header);
    border-radius: 10px 10px 0px 0px;
}
.main-bet-header p {
    color: var(--main-theme-font-color);
    font-weight: bold;
}
.tac-haeder, 
.bet-summary-header,
.main-bet-header {
    /* background: var(--main-border-color); */
    background: rgba(51, 51, 51, 0.7);
}
.main-bet-body {
    height: calc(var(--height-of-main-bet) - var(--height-of-main-bet-header));
}
.main-live-today-body {
    height: auto;
    padding-top: 30px;
    color: #FFF;
}
.league-logo,
.team-logo-live {
    width: 50px;
    height: 50px;
}

.today-live-league-box {
    width: 90%;
    clear: both;
    display: flow-root;
    margin: auto;
    margin-bottom: 50px;
}

.today-live-league-box img {
    width: 100%;
    max-width: 50px;
    float: left;
}

.today-live-league-box p {
    padding-left: 20px;
    box-sizing: border-box;
    width: calc(100% - 50px);
    float: left;
    display: contents;
    line-height: 45px;
}

.league-box {
    margin-bottom: 20px;
}

.today-live-team {
    clear: both;
    display: flow-root;
    height: 90px;
    border-radius: 10px;
    border: 1px solid #FFF;
    margin-bottom: 30px;
}

.today-live-status {
    width: 10%;
    float: left;
    line-height: 90px;
    text-align: center;
}

.today-live-score {
    width: 10%;
    float: left;
    text-align: center;
    border-left: 1px solid #FFF;
    box-sizing: border-box;
}

.today-live-score > div,
.today-live-info-team > div {
    height: calc(90px / 2);
    line-height: calc(90px / 2);
}

.today-live-info-team {
    width: 40%;
    float: left;
    display: flow-root;
    box-sizing: border-box;
}

.today-live-info-team > div img {
    display: inline-block;
    vertical-align: middle;
    height: 20px;
    max-height: 20px;
    width: 20px;
    margin-top: 13px;
}

.today-live-info-team > div p {
    width: calc(100% - 20px);
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    padding-left: 20px;
    display: block;
}

.watch-this {
    width: 40%;
    float: left;
    height: 100%;
}

.watch-now {
    float: right;
    margin-right: 30px;
    background: rgba(232,129,35,0.8) !important;
    color: #FFF !important;
    border: 1px solid #FFF !important;
}

.watch-now:hover {
    background: #FFF !important;
    border: 1px solid rgba(232,129,35,0.8) !important;
    color: rgba(232,129,35,0.8) !important;
}

.btn-kris {
    padding: 10px;
    text-decoration: none;
    color: #000;
    background: #FFF;
    border-radius: 10px;
    /* width: 150px; */
    display: block;
    text-align: center;
    margin-top: 23px;
}

.btn-kris p {
    margin: 0px;
}

.main-bet-half {
    width: 40%;
    float: left;
    height: 100%;
    color: var(--main-theme-font-color);
    text-align: center;
    padding-top: 10px;
    box-sizing: border-box;
}
.main-bet-versus {
    width: 20%;
    height: 100%;
    float: left;
    color: var(--main-theme-font-color);
    text-align: center;
}
.main-bet-versus p {
    margin: auto;
    display: inline-block;
    writing-mode: vertical-rl;
    text-orientation: upright;
    text-align: center;
    height: var(--height-of-version-logo);
    font-size: 50px;
    font-weight: bold;
}
.main-bet-team-logo {
    margin: auto;
    display: block;
    width: 100px;
    height: 100px;
}
.main-bet-goal-team {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    background-color: #000;
    border: 1px solid var(--main-border-color);
    color: var(--main-theme-font-color);
    font-size: 40px;
    font-weight: bold;
    text-align: center;
}
.main-bet-goal-team-disabled {
    background: var(--main-background-color);
}
.goal-first-group {
    height: var(--height-of-goal-first-bet);
    width: 180px;
    margin: auto;
    margin-top: 10px;
}
.main-bet-fair {
    display: block;
    text-align: center;
}
.main-bet-fair .goal-first-group {
    width: auto;
}
.team-name {
    text-shadow: 1px 1px 10px var(--main-theme-font-color);
}

/* Goal-first */
/* Hide the default radio button */
input[type="radio"] {
    display: none;
}

/* Style the custom radio button */
label.goal-first {
    display: inline-block;
    cursor: pointer;
    border-radius: 5px;
    background-color: #000;
    border: 1px solid var(--main-border-color);
    color: #EEE;
    font-size: 14px;
    user-select: none;
    padding: 10px 15px 10px 15px;
}

/* Style the checked state */
input[type="radio"]:checked + label.goal-first {
    background-color: var(--main-theme-color);
    color: var(--main-theme-font-color);
}
  /* Goal-first */


.termANDcondition {
    margin-top: 20px;
    font-size: 14px;
    /* background: var(--second-background-color); */
    background: var(--second-background-rgba);
    border-radius: 10px;
}
.logo img {
    max-height: 180px;
}
.tac-haeder,
.bet-summary-header {
    border: 1px solid var(--main-border-color);
    border-radius: 10px 10px 0px 0px;
}
.tac-haeder p,
.bet-summary-header p {
    text-align: center;
    color: var(--main-theme-color);
    font-weight: bold;
}
.tac-content {
    color: var(--main-theme-font-color);
    border: 1px solid var(--main-border-color);
    border-radius: 0px 0px 10px 10px;
    padding: 10px;
    padding-left: 20px;
    box-sizing: border-box;
}

.bet-summary {
    margin-top: 20px;
    margin-bottom: 60px;
    /* background: var(--second-background-color); */
    background: var(--second-background-rgba);
    border-radius: 10px;
}

.bet-summary-header p {
    color: var(--main-theme-font-color);
}

.submit-box {
    position: fixed;
    bottom: 0;
    width: 100%;
    display: none;
}
.submit-box button {
    width: 100%;
    height: 36px;
    background: var(--main-theme-color);
    color: var(--main-theme-font-color);
}
.rows-bet-summary {
    color: var(--main-theme-font-color);
    clear: both;
    display: flex;
}
.rows-bet-summary p {
    width: 50%;
    float: left;
    margin: 0px;
    box-sizing: border-box;
    padding: 5px;
    border: 1px solid var(--main-border-color);
}
.rows-bet-summary .sum-score {
    text-align: right;
}
.rows-bet-summary:last-child .list-score {
    border-radius: 0px 0px 0px 10px;
}
.rows-bet-summary:last-child .sum-score {
    border-radius: 0px 0px 10px 0px;
}
#submit-mainbet {
    margin: 0px;
}
.no-main-bet-yet,
.today-live {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.today-live {
    display: inline-table;
}
.no-main-bet-yet h2 {
    text-align: center;
    color: var(--main-theme-font-color);
}
.predict-goal-disabled,
.disabled {
    pointer-events: none;
    background-color: var(--main-border-color) !important;
}

/* ALERT BOX */
#modalContainer {
	background-color:rgba(0, 0, 0, 0.3);
	position:absolute;
	width:100%;
	height:100%;
	top:0px;
	left:0px;
	z-index:10000;
}

#alertBox {
	position:relative;
	width:300px;
	min-height:100px;
	margin-top:50px;
	border:1px solid #666;
	background-color:#fff;
	background-repeat:no-repeat;
	background-position:20px 30px;
    top: 50%;
    margin-top: -100px;
}

#modalContainer > #alertBox {
	position:fixed;
}

#alertBox h1 {
	margin:0;
	font:bold 0.9em verdana,arial;
	background-color:#3073BB;
	color:#FFF;
	border-bottom:1px solid #000;
	padding:2px 0 2px 5px;
}

#alertBox p {
	font:0.7em verdana,arial;
	height:50px;
	padding-left:5px;
	margin-left:55px;
}

#alertBox #closeBtn {
	display:block;
	position:relative;
	margin:5px auto;
	padding:7px;
	border:0 none;
	width:70px;
	font:0.7em verdana,arial;
	text-transform:uppercase;
	text-align:center;
	color:#FFF;
	background-color:#357EBD;
	border-radius: 3px;
	text-decoration:none;
}

/* unrelated styles */

#mContainer {
	position:relative;
	width:600px;
	margin:auto;
	padding:5px;
	border-top:2px solid #000;
	border-bottom:2px solid #000;
	font:0.7em verdana,arial;
}

h1,h2 {
	margin:0;
	padding:4px;
	font:bold 1.5em verdana;
}

code {
	font-size:1.2em;
	color:#069;
}

#credits {
	position:relative;
	margin:25px auto 0px auto;
	width:350px; 
	font:0.7em verdana;
	border-top:1px solid #000;
	border-bottom:1px solid #000;
	height:90px;
	padding-top:4px;
}

#credits img {
	float:left;
	margin:5px 10px 5px 0px;
	border:1px solid #000000;
	width:80px;
	height:79px;
}

.important {
	background-color:#F5FCC8;
	padding:2px;
}

code span {
	color:green;
}

/* ALERT BOX */

.logo-channel {
    height: 50px;
}

.info-versus {
    margin-top: 50px !important;
}

.info-versus-name {
    height: 40px;
    line-height: 40px;
}

.info-versus-name p {
    margin-bottom: 0px;
    border-bottom: 1px solid rgb(232,129,35);
    padding-bottom: 20px;
}

.info-versus-name img {
    height: 30px;
    margin-right: 10px;
}

.list-all-logo {
    padding-top: 20px;
}

.all-player-info {
    padding-top: 50px;
}

.all-player-info > .team-player:last-child {
    text-align: right;
}

.player {
    padding: 20px;
    border-bottom: 1px solid rgb(232,129,35);
}

.badge {
    color: #FFF;
    background: #777;
    border-radius: 100%;
}

.badge-number {
    background: linear-gradient(to bottom, #00badb 2%, #06dbc2 51%, #81fbc2 98%);
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    border-radius: 100%;
    line-height: 30px;
}

.localTeam-player-info .badge-number,
.localTeam-player-info .badge {
    margin-left: 10px;
}

.visitorTeam-player-info .badge-number,
.visitorTeam-player-info .badge {
    margin-right: 10px;
}

.localTeam-player-info .player-image {
    margin-right: 10px;
}

.visitorTeam-player-info .player-image {
    margin-left: 10px;
}

.visitorTeam-player-info {
    text-align: right;
}

.player-image {
    width: 50px;
    height: 50px;
}

.venue {
    text-align: right;
    margin-bottom: 20px;
}

.venue-image {
    max-width: 350px;
    height: 220px;
    width: 100%;
}

.winner-step {
    display: inline-block !important;
}

.league-logo-step {
    float: none !important;
}

.match-event-header {
    padding-bottom: 30px;
}

.event-minute {
    /* display: inline; */
    background: #CCC;
    padding: 5px;
    border-radius: 20px;
    color: #000;
}

.event-list {
    margin-top: 10px;
    margin-bottom: 10px;
}

.team-name-info {
    margin-top: 30px;
    font-size: 20px;
}

.venue-info {
    margin-bottom: 30px;
}

.logo-bill {
    width: 30px;
    height: 30px;
}
.board-prediction {
    margin-top: 20px !important;
}
.number-of-participants {
    line-height: 35px;
    font-size: larger !important;
}

.msisdn {
    float: right;
    font-size: 20px;
    padding-top: 17px;
}

.huay {
    height: 150px;
    width: 150px;
    display: block;
    margin: auto;
    margin-bottom: 20px;
    margin-top: 20px;
    font-size: 70px;
    text-align: center;
    background: rgba(232,129,35,0.8);
    color: #FFF;
    border-radius: 10px;
    border: 1px solid #fff;
    outline: none;
}


/* Announcement */
.overlay,
.overlay-admin-ann {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    display: none;
}

.overlay-admin-ann .popup .content {
    height: auto;
    margin-top: 0px;
    font-size: 15px;
    font-weight: bold;
}

.overlay-admin-ann .popup-brand-logo {
    height: 270px;
    max-width: 570px;
    width: 100%;
    box-shadow: 1px 1px 7px rgba(255,255,255,0.8), -1px -1px 7px rgba(255,255,255,0.8);
}

.popup {
    margin: auto;
    padding: 20px;
    background: #000;
    border-radius: 5px;
    width: 40%;
    position: relative;
    height: 400px;
    margin-top: calc(50vh - 200px);
    border: 2px solid #FFF;
}
  
.popup h2 {
    margin-top: 0;
    color: #FFF;
    font-family: "Kanit";
    text-align: center;
}
.popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #FFF;
}
.popup .close:hover {
    color: rgba(232,129,35,1);
}
.popup .content {
    color: #FFF;
    height: 46%;
    margin-top: 30px;
    font-size: 24px;
}
.popup p {
    text-align: center;
}
.navbar-brand-logo {
    height: 40px;
}
.popup-brand-logo {
    height: 80px;
    display: block;
    margin: auto;
}
.huay-rule {
    text-align: left;
}

@media only screen and (max-width: 1200px) {
    .all-player-info {
        font-size: 14px;
    }
    .msisdn { 
        padding-top: 13px;
    }
}

@media only screen and (max-width: 600px) {
    .logo img {
        max-height: 76px;
    }
    .goal-first-group {
      width: auto;
    }
    .today-live-info-team > div p,
    .today-live-status,
    .board-prediction,
    .bet-step {
        font-size: 10px !important;
    }
    .today-live-info-team {
        width: 50%;
    }
    .watch-this {
        width: 30%;
    }
    .rotate-status {
        transform: rotate(90deg);
        font-size: 10px;
        margin-top: -6px;
    }
    .all-player-info {
        font-size: 10px;
    }
    .logo-bill {
        width: 20px;
        height: 20px;
    }
    .padding-button-bill {
        width: 100%;
        padding: 10px 4px 10px 4px !important;
    }
    .popup {
        width: 90%;
    }
    .overlay-admin-ann .popup {
        height: 300px;
    }
    .overlay-admin-ann .popup-brand-logo {
        height: 180px;
    }
}

@media only screen and (max-width: 400px) {
    .watch-this,
    .today-live-status {
        width: 20%;
    }
    .watch-now {
        margin-right: 10px;
    }
    .player-image {
        width: 30px;
        height: 30px;
    }
}

@media only screen and (max-width: 350px) {
    .overlay-admin-ann .popup-brand-logo {
        height: 150px;
    }
}