// 2018-02-14 #140011
// 2018-04-17 #119036 / #154160
@minWidthMobile: 990px;
@minWidthMobile2: 500px;
@limitboxwidth: 140px;
@limitboxhoverleft: 120px;
@bjepunlimitedtop: 68px;
@bjepunlimitedleft: 79px;

/* normalize.css v3.0.1 | MIT License | git.io/normalize */
html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}

/* Lato */
@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 300;
	src: local('Lato Light'), local('Lato-Light'), url(../fonts/lato.ttf) format('truetype');
}

@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 700;
	src: local('Lato Bold'), local('Lato-Bold'), url(../fonts/latobold.ttf) format('truetype');
}

.Lato() {
	font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Main reset & lib */
* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

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

[data-ng-view]:before,
[data-ng-view]:after,
.container:before,
.container:after,
.clearfix:before,
.clearfix:after {
	display: table;
	content: " ";
}

[data-ng-view]:after,
.container:after,
.clearfix:after {
	clear: both;
}

/* Main Layout */
body {
	.Lato();
	font-size: 14px;
	line-height: 1.4;
	font-weight: 300;
	background: #000;
	color: #fff;
	padding-top: 80px;
	@media(min-width:@minWidthMobile) {
		padding-top: 260px;
	}
	@media(max-width:@minWidthMobile2) {
		padding-top: 100px;
	}
}

h1, h2, h3, h4, h5 {
	margin: 0;
	line-height: 1;
	font-weight: 300;
}

html, body, .gradient, #wrapper {
	height: 100%;
}

.container {
	margin: 0 15px;
	@media(min-width:@minWidthMobile) {
		max-width: 960px;
		margin: 0 auto;
	}
}

header {
	position: absolute;
	z-index: 15;
	top: 0;
	width: 100%;
	height: 80px;
	padding: 27px 0;
	text-align: center;
	background: #000 url(../img/header.jpg) no-repeat center;
	border-bottom: 1px solid #ccc;
	@media(min-width:@minWidthMobile2) {
		height: 100px;
	}
	.container {    //up to here 22:35, Ivan
		position: relative;
		height: 27px;
	}
	body.dark & {
		border-color: #333;
	}
	.lead {
		display: none;
		h1 {
			font-weight: 700;
			text-transform: uppercase;
			font-size: 24px;
			margin: 20px 0 0;
		}
		h2 {
			font-size: 20px;
			margin: 5px 0 0;
		}
	}
	.banner {
		display: none;
	}
	.playnowbtn {
		z-index: 10;
		display: inline-block;
		position: relative;
		left: -351px;
		width: 160px;
		height: 48px;
		top: 50px;
		padding-left: 28px;
		font-weight: bold;
		font-size: 18px;
		border: 0px;
		margin-bottom: 10px;
		line-height: 1;
		border-radius: 4px;
		background: #000; // !important;
		color: #fff;
		text-align: left;
		text-decoration: none;
		cursor: pointer;
	}
	.balance {
		display: block;
		position: absolute;
		top: -30px;
		right: 0;
		padding: 10px 15px 0;
		border-radius: 4px;
		border: 1px solid #333;
		background: #0a0a0a url(../img/patterndark.png);
		.boxShadow(0 0 30px rgba(0, 0, 0, .5));
		&.loggedout {
			display: none;
		}
		&.manualtransfer {
			top: -24px;
			width: 322px;
			height: 95px;
		}
		@media(min-width:@minWidthMobile) {
			&.manualtransfer {
				top: -58px;
				width: 322px;
				height: 190px;
			}
		}
		.btn {
			display: inline-block;
			margin-bottom: 10px;
			line-height: 1;
			padding: 9px 10px 10px;
			border-radius: 4px;
			background: #e1ae64;
			color: #333;
			text-align: left;
			text-decoration: none;
			cursor: pointer;
			border-top: 1px solid #fcdaab;
			.verticalGradient(#e8b671, #ca923c);
			@shadow: -1px -1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5);
			.boxShadow(@shadow);
			strong {
				text-transform: uppercase;
			}
			&.primary {
				border-top-color: #ec8484;
				.verticalGradient(#d74545, #ce2525);
				color: #fff;
			}
			&.icon {
				position: relative;
				width: 200px;
				padding-left: 48px;
				i {
					position: absolute;
					top: 12px;
					left: 12px;
					background-repeat: no-repeat;
					display: block;
					width: 26px;
					height: 22px;
					&.icon-return {
						top: 10px;
						background-image: url(../img/return.png);
					}
				}
			}
			&.disabled {
				opacity: .6;
				cursor: default;
			}
		}
		.row {
			margin: 0 -15px;
		}
		.col {
		padding: 0 15px;
			float: left;
			width: 50%;
		}
		.balances {
			padding-bottom: 10px;
			p, h5 {
				margin: 0;
				white-space: nowrap;
			}
			h5 {
				font-size: 14px;
				text-transform: uppercase;
			}
			p {
				font-size: 18px;
				font-weight: bold;
			}
		}
	    	.actions, .copy {
    			border-top: 1px solid #333;
    			padding-top: 10px;
    		}
    		.copy {
			margin: 0 0 10px;
		}
		.mobselamt {
			display: none;
		}
		@media(min-width: @minWidthMobile) {
			.mobselamt {
				display: block;
			}
		}
		.manualtransfer {
/*
		.btn {
    			font-weight: 700;
    			text-transform: uppercase;
    			margin-left: 1px;
    			margin-right: 1px;
    			&.disabled {
    				opacity: .6;
    				cursor: default;
    			}
    		}
*/
			.amounts {
				display: none;
				@media(min-width: @minWidthMobile) {
					display: block;
				}
				margin-left: -5px;
				margin-right: -5px;
				.btn {
					width: 53px;
					padding: 6px 0;
					text-align: center;
					font-weight: 700;
					text-transform: uppercase;
					margin-left: 5px;
					margin-right: 5px;
					text-overflow: ellipsis;
					white-space: nowrap;
					overflow: hidden;
					&.pick {
						width: 100px;
					}
				}
			}
			.bottom {
				position: relative;
				top: -11px;
				@media(min-width: @minWidthMobile) {
					position: static;
					top: auto;
				}
				text-align: left;
				.btn.all {
					margin-top: 3px;
					text-align: center;
					width: 80px;
				}
				.btn.primary {
					float: right;
					padding-top: 5px;
					padding-bottom: 6px;
					margin-top: 0;
					text-overflow: ellipsis;
					white-space: nowrap;
					overflow: hidden;
				}
			}
			form {
				button.btn {
					text-transform: uppercase;
					font-weight: 700;
					padding: 6px 12px;
					border: 0;
					margin-bottom: 11px;
					border-radius: 0 4px 4px 0;
				}
				button.tptransferbtn {
					vertical-align: 0px;
				}
				input[type="text"] {
					display: inline-block;
					width: 190px;
					font-size: 14px;
					line-height: 1;
					border: 0;
					margin: 0;
					border-radius: 4px 0 0 4px;
					color: #333;
					padding: 4px 12px 5px 12px;
				}
				button.btn, input[type="text"] {
					margin-bottom: 15px;
				}
			}
		}
	}
	#toggleNav {
		position: absolute;
		top: -1px;
		left: 15px;
		cursor: pointer;
		i {
			display: block;
			width: 25px;
			height: 5px;
			margin: 2px 0;
			background: #fff;
			.boxShadow(0 0 10px rgba(0, 0, 0, .5));
		}
	}
	#paletteSelector {
		position: fixed;
		top: 0;
		right: 0;
		width: 85px;
		padding: 6px 0;
		text-align: center;
		font-size: 80%;
		background: rgba(0, 0, 0, .5);
		border-radius: 0 0 0 4px;
		a {
			cursor: pointer;
		}
		a.clean {
			font-weight: 700;
		}
		body.dark & {
			a.clean {
				font-weight: 300;
			}
			a.dark {
				font-weight: 700;
			}
		}
	}
	@media(max-width:@minWidthMobile2) {
		.balance {
			display: none;
		}
	}
	@media(min-width:@minWidthMobile) {
		height: 220px;
		padding: 73px 0;
		.container {
	    		position: relative;
		}
		.lead {
			display: inline-block;
		}
		.banner {
			position: absolute;
			display: block;
			left: 65px;
			top: -21px;
			width: 586px;
			height: 180px;
			padding-top: 102px;
			text-align: left;
			img {
				position: absolute;
				top: 0;
				right: 0;
				width: 572px;
				height: 180px;
			}
			h4, h3 {
				position: relative;
				z-index: 1;
				width: 259px;
				text-align: right;
				white-space: nowrap;
			}
			h4 {
				font-size: 18px;
				margin-bottom: 5px;
			}
			h3 {
				font-size: 24px;
			}
		}
		.balance {
			display: block;
		}
		#toggleNav {
			display: none;
		}
	}
}

.gradient {
	.verticalGradient(#dcdee1, #fff);
	.transition(all);
	body.dark & {
		.verticalGradient(#181818, #000);
	}
}

#wrapper {
	position: relative;
	background: url(../img/pattern.png) repeat top left;
	overflow-x: hidden;
	body.dark & {
		background-image: url(../img/patterndark.png);
	}
}

nav {
	position: absolute;
	z-index: 10;
	width: 300px;
	height: 100%;
	top: 0;
	left: -100%;
	padding-top: 10px;
	background: rgba(255, 255, 255, .5);
	overflow-y: auto;
	border-right: 1px solid #ccc;
	margin-top: 90px;
	body.dark & {
		border-color: #333;
	}
	list-style-type: none;
	&, li > a {
		.transition(all);
	}
	.container {
		margin: 0;
	}
	li {
		> a {
			margin-top: 20px;
			@media(min-width:@minWidthMobile) {
				margin-top: 0px;
			}
			display: block;
			color: #000;
			text-decoration: none;
			text-transform: uppercase;
			padding: 10px 15px;
			&:hover {
				color: #ce2323;
			}
		}
		&.active a {
			margin-top: 20px;
			@media(min-width:@minWidthMobile) {
				margin-top: 0px;
			}
			color: #fff;
			background: #ce2323;
		}
	}
	body.dark & {
		background: rgba(0, 0, 0, .5);
		li {
			> a {
				color: #fff;
				&:hover {
					color: #ce2323;
				}
			}
			&.active a:hover {
				color: #fff;
			}
		}
	}
	@media(min-width:@minWidthMobile2) {
		margin-top: 70px;
	}
	@media(min-width:@minWidthMobile) {
		margin-top: 0;
		top: 220px;
		left: 0;
		width: 100%;
		height: 40px;
		padding-top: 0;
		background: #fff;
		border-right: 0;
		border-bottom: 1px solid #ccc;
		li {
			&, > a {
				display: inline-block;
			}
			> a {
				padding: 10px 0;
				margin: 0 23px;
			}
			&:first-child > a {
				margin-left: 0;
			}
			&:last-child > a {
				margin-right: 0;
			}
			&.active a {
				color: #333;
				background: transparent;
				padding-bottom: 5px;
				border-bottom: 5px solid #ce2323;
			}
		}
		.container {
			margin: 0 auto;
			}
		body.dark & {
			background: #000;
			li.active > a {
				color: #fff;
			}
		}
	}
	body.nav & {
		left: 0;
		padding-top: 0;
		@media(max-width:@minWidthMobile) {
			padding-top: 20px;
			@media(max-width:@minWidthMobile2) {
				padding-top: 70px;
			}
		}
	}
}

	
/* Views */
[data-ng-view] {
	width: 100%;
	.transition(all);
	body.nav & {
		margin-left: 300px;
		@media(min-width:990px) {
			margin-left: 0;
		}
	}
	&.ng-enter, &.ng-leave {
		position: absolute;
		z-index: 1;
	}
	&.ng-enter {
		opacity: 0;
		z-index: 2;
	}
	&.ng-enter-active {
		opacity: 1;
	}
	&.ng-leave {
		opacity: 1;
	}
	&.ng-leave-active {
		opacity: 0;
	}
	/* Games */
	#games {
		.rows {
			margin: 15px -15px;
		}
		.col {
			padding: 15px;
			@media(min-width:650px) {
				float: left;
				width: 50%;
			}
			@media(min-width:990px) {
				width: 33.3333333%;
			}
		}
		.game {
			position: relative;
			border: 1px solid #333;
			height: 250px;
			background: #000 no-repeat top right;
			padding: 10px 15px;
			&.baccarat, &.super6 {
				background-image: url(../images/Live/baccarat.jpg);
			}
			&.blackjack {
				background-image: url(../images/Live/blackjack.jpg);
			}
			&.blackjackep {
				background-image: url(../images/Live/blackjackEP.jpg);
			}
			&.blackjackbehind {
				background-image: url(../images/Live/blackjackBehind.jpg);
			}
			&.roulette {
				background-image: url(../images/Live/roulette.jpg);
			}
			&.autoroulette {
				background-image: url(../images/Live/autoroulette.jpg);
			}
			.dealer {
				position: absolute;
				right: 0;
				bottom: 0;
				z-index: 14;
			}
			h2 {
				text-transform: uppercase;
				&.bold {
					font-weight: 700;
				}
				&.boldl {
					font-weight: 700;
					font-size: 18px;
				}
				&.noboldl {
					font-size: 18px;
				}
				&.exclusive {
					color: #E9A331;
				}
			}
			p {
				margin: 0 0 5px;
				color: #d9d9d9;
				strong {
					display: block;
					color: #fff;
					text-transform: uppercase;
				}
				.strongAutoplay {
					display: block;
					color: #fff;
					text-transform: uppercase;
					font-size: 24px;
				}
				&.bjepunlimited {
					margin-top: @bjepunlimitedtop;
					margin-left: @bjepunlimitedleft;
					position: relative;
					z-index: 200;
					color: #fff;
				}
				&.limit {
					margin-top: 5px;
					a {
						position: relative;
						margin-top: 5px;
						margin-bottom: 10px;
						display: block;
						color: #fff;
						font-weight: bold;
						cursor: pointer;
						.box {
							display: inline-block;
							width: @limitboxwidth;
							text-align: center;
							border-radius: 4px;
							border-top: 1px solid #ec8484;
							padding: 2px 0;
							line-height: 1;
							white-space: nowrap;
							.verticalGradient(#d74545, #ce2525);
							@shadow: -1px -1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5);
							.boxShadow(@shadow);
						}
						.hover {
							display: none;
							position: absolute;
							top: -6px;
							left: @limitboxhoverleft;
							line-height: 1;
							font-size: 28px;
							font-family: Helvetica, Arial, sans-serif;
						}
						&:last-child {
							margin-bottom: 0;
						}
						&:hover {
							.hover {
								display: block;
							}
						}
					}
				}
				&.dealerName {
					position: absolute;
					bottom: 13px;
				}
			}
			&.rng {
				height: 220px;
				padding: 0;
				text-align: center;
				overflow: hidden;
				img {
					position: absolute;
					top: 0;
					left: 50%;
					width: 320px;
					height: 160px;
					margin-left: -160px;
				}
				.overlay {
					position: absolute;
					text-align: left;
					bottom: 0;
					width: 100%;
					padding: 10px 124px 10px 10px;
					.verticalGradient(rgba(0, 0, 0, .5), #000);
				}
				.btn {
					position: absolute;
					top: 50%;
					right: 10px;
					margin-top: -20px;
					padding: 3px 22px 4px;
					color: #fff;
					border-radius: 4px;
					font-size: 20px;
					font-weight: 700;
					text-transform: uppercase;
					text-decoration: none;
					cursor: pointer;
					border-top: 1px solid #84ec84;
					.verticalGradient(#347c17, #348017);
					@shadow: -1px -1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5);
					.boxShadow(@shadow);
				}
				.btnnd {
					position: absolute;
					top: 50%;
					right: 10px;
					margin-top: -20px;
					padding: 3px 22px 4px;
					color: #fff;
					border-radius: 4px;
					font-size: 20px;
					font-weight: 700;
					text-transform: uppercase;
					text-decoration: none;
					cursor: pointer;
					border-top: 1px solid #ec8484;
					.verticalGradient(#8e4545, #7a2525);
					@shadow: -1px -1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5);
					.boxShadow(@shadow);
				}
			}
		}
	}
}

/* CrossBrowser Lib */
.boxShadow(@value) {
	-webkit-box-shadow: @value;
	-moz-box-shadow: @value;
	box-shadow: @value;
}

.verticalGradient(@top, @bottom) {
	background: @top; /* Old browsers */
	background: -moz-linear-gradient(top, @top 0%, @bottom 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @top), color-stop(100%,@bottom)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, @top 0%,@bottom 100%); /* Chrome10+,Safari5.1+ */
	background: linear-gradient(to bottom, @top 0%,@bottom 100%); /* W3C */
}

.transition(@property, @duration: .2s, @easing: ease) {
	-webkit-transition: @property @duration @easing;
	-moz-transition: @property @duration @easing;
	transition: @property @duration @easing;
}
