/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Besley:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');

/* ROOT */

* {
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	outline: none;
	box-sizing: border-box;
}

html, body {
	width: 100vw;
	height: 100vh;
	overflow: hidden;
}

/* TABLE */

.table {
	position: absolute;
	width: inherit;
	height: inherit;
	background-image: url("../img/noise.png"), radial-gradient(#206448, #052418);
}

.table-header,
.table-subtitle {
	font-family: 'Besley', serif;
	position: relative;
	display: block;
	top: -50%;
	left: 50%;
	font-weight: 700;
	color: #dfc42b;
}

.table-subtitle {
	font-weight: 600;
	color: #fff;
}

.table-round-text,
.table-round-text-small {
	font-size: 40px;
	height: 1000px;
	padding-top: 800px;
	position: absolute;
	width: 20px;
	left: 0;
	top: 0;
	transform-origin: top center;
}

.table-round-text-small {
	margin-top: 70px;
	font-size: 20px;
	height: 800px;
}

.card-shoe {
	position: absolute;
	left: calc(100% - 8rem);
	top: 4.5rem;
	display: block;
	width: 3.5rem;
	height: 5rem;
	border: 2px solid #fff;
	border-radius: 10px;
}

.cards-in-shoe {
	position: absolute;
	right: 4.5rem;
	top: 4.5rem;
}

.generic_cards {
	transition: all 1s ease-in-out;
}

.card-slots {
	position: relative;
	top: 60%;
	left: 50%;
	transform: translate(-17.5%, -50%);
}

.card-slot {
	display: inline-block;
	margin: 0px 40px;
	width: 3.5rem;
	height: 5rem;
	border: 2px solid #fff;
	border-radius: 10px;
}

.card-slot-1 {
	transform: rotate(30deg);
	margin-bottom: 80px;
}

.card-slot-2 {
	transform: rotate(15deg);
	margin-bottom: 20px;
}

.card-slot-3 {
	margin-top: 100px;
}

.card-slot-4 {
	transform: rotate(-15deg);
	margin-bottom: 20px;
}

.card-slot-5 {
	transform: rotate(-30deg);
	margin-bottom: 80px;
}

.card-slot-dealer {
	position: absolute;
	top: 15%;
	left: calc(50% - 1.75rem);
	margin: 15px;
}

.chips {
	position: absolute;
	display: block;
	width: 100%;
	max-width: 500px;
	height: 100px;
	top: 49%;
	left: 50.5%;
	transform: translate(-50%, -50%);
}

/* GUI */

.gui {
	position: absolute;
	width: inherit;
	height: inherit;
	transition: all .5s ease-in-out;
}

.gui-message {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,.5);
}

#gui_message {
	position: absolute;
	display: block;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

	text-align: center;
	font-family: 'Archivo Black', sans-serif;
	font-size: 40px;
	color: #dfc42b;
	text-shadow: 0px 0px 10px rgba(223, 196, 43, .7);
}

.gui-bet-points {
	position: absolute;
	top: calc(80% - 60px);
	left: 50%;
	font-size: 25px;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	color: #fff;
	font-weight: bold;
	transform: translate(-50%, -50%);
}

.gui-bet-points.dealer {
	top: calc(10%);
}

.gui-bet-balance {
	position: absolute;
	top: calc(80% - 30px);
	left: 50%;
	font-size: 25px;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	color: #fff;
	font-weight: bold;
	transform: translate(-50%, -50%);
}

.gui-balance {
	position: absolute;
	bottom: 20px;
	left: 20px;
	font-size: 25px;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	color: #fff;
	font-weight: bold;
}

.gui-buttons-coins,
.gui-buttons-controls {
	display: none;
}

#hit,
#stand,
#bet,
#bet_10,
#bet_50,
#bet_100,
#bet_500 {
	position: relative;
	width: 5rem;
	height: 5rem;
	background-image: url("../img/chips/chipWhite_border.png");	
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	margin: 0px 10px;
	border-radius: 50%;
	cursor: pointer;
}

#bet_10 {
	background-image: url("../img/chips/chipGreenWhite_border.png");
}

#bet_50 {
	background-image: url("../img/chips/chipBlueWhite_border.png");	
}

#bet_100 {
	background-image: url("../img/chips/chipRedWhite_border.png");	
}

#bet_500 {
	background-image: url("../img/chips/chipBlackWhite_border.png");	
}

#stand:hover {
	background-image: linear-gradient(rgba(255,0,0,.3), rgba(255,0,0,.3)), url("../img/chips/chipWhite_border.png");
}
#hit:hover,
#bet:hover {
	background-image: linear-gradient(rgba(0,255,0,.3), rgba(0,255,0,.3)), url("../img/chips/chipWhite_border.png");
}
#bet_10:hover {
	background-image: linear-gradient(rgba(0,255,0,.3), rgba(0,255,0,.3)), url("../img/chips/chipGreenWhite_border.png");
}
#bet_50:hover {
	background-image: linear-gradient(rgba(0,0,255,.4), rgba(0,0,255,.4)), url("../img/chips/chipBlueWhite_border.png");
}
#bet_100:hover {
	background-image: linear-gradient(rgba(255,0,0,.3), rgba(255,0,0,.3)), url("../img/chips/chipRedWhite_border.png");
}
#bet_500:hover {
	background-image: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url("../img/chips/chipBlackWhite_border.png");
}

#hit::after,
#stand::after,
#bet::after,
#bet_10::after,
#bet_50::after,
#bet_100::after,
#bet_500::after {
	content: "100";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	font-weight: bold;
	font-size: 18px;
}

#hit::after {
	content: "HIT";
	color: #000;
}

#stand::after {
	content: "STAND";
	color: #000;
}

#bet::after {
	content: "BET";
	color: #000;
}

#bet_10::after {
	content: "10";
}

#bet_50::after {
	content: "50";
}

#bet_100::after {
	content: "100";
}

#bet_500::after {
	content: "500";
}


.gui-button {
	color: #fff;
	border: 2px solid #fff;
	border-radius: 20px;
	padding: 10px 20px;
	font-weight: bold;
	text-transform: uppercase;
	transition: all .15s ease-in-out;
}

.gui-button:hover {
	background-color: #fff;
	color: #000;
	cursor: pointer;
}

.gui-button-row {
	position: absolute;
	display: inline-block;
	top: 80%;
	left: 50%;
	transform: translate(-50%, 0%);
}

#game_reset {
	margin: 20px;
}

.gui-loader {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 8rem;
	height: 8rem;
	transform: translate(-50%, -50%);
}

.gui-loader-slice {
	position: absolute;
	left: 1.9rem;
	height: 4rem;
	width: 2rem;
	transform: rotate(180deg);
	transform-origin: bottom right;
	background-image: url("../img/cards/white/Clovers_A_white.png");
	background-repeat: no-repeat;
	background-size: contain;

}

.gui-loader-slice-0 {
	animation: slice-0;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: ease;
}
.gui-loader-slice-1 {
	animation: slice-1;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: ease;
}
.gui-loader-slice-2 {
	animation: slice-2;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: ease;
}
.gui-loader-slice-3 {
	animation: slice-3;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: ease;
}
.gui-loader-slice-4 {
	animation: slice-4;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: ease;
}
.gui-loader-slice-5 {
	animation: slice-5;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: ease;
}
.gui-loader-slice-6 {
	animation: slice-6;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: ease;
}
.gui-loader-slice-7 {
	animation: slice-7;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: ease;
}
.gui-loader-slice-8 {
	animation: slice-8;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: ease;
}
.gui-loader-slice-9 {
	animation: slice-9;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-timing-function: ease;
}

/* ANIMATIONS */

@keyframes slice-0 {
	0% {
		transform: rotate(-180deg);
	}
	100% {
		transform: rotate(180deg);
	}
}
@keyframes slice-1 {
	0% {
		transform: rotate(-180deg);
	}
	5% {
		transform: rotate(-180deg);
	}
	100% {
		transform: rotate(180deg);
	}
}
@keyframes slice-2 {
	0% {
		transform: rotate(-180deg);
	}
	7% {
		transform: rotate(-180deg);
	}
	100% {
		transform: rotate(180deg);
	}
}
@keyframes slice-3 {
	0% {
		transform: rotate(-180deg);
	}
	9% {
		transform: rotate(-180deg);
	}
	100% {
		transform: rotate(180deg);
	}
}
@keyframes slice-4 {
	0% {
		transform: rotate(-180deg);
	}
	11% {
		transform: rotate(-180deg);
	}
	100% {
		transform: rotate(180deg);
	}
}
@keyframes slice-5 {
	0% {
		transform: rotate(-180deg);
	}
	13% {
		transform: rotate(-180deg);
	}
	100% {
		transform: rotate(180deg);
	}
}
@keyframes slice-6 {
	0% {
		transform: rotate(-180deg);
	}
	15% {
		transform: rotate(-180deg);
	}
	100% {
		transform: rotate(180deg);
	}
}
@keyframes slice-7 {
	0% {
		transform: rotate(-180deg);
	}
	17% {
		transform: rotate(-180deg);
	}
	100% {
		transform: rotate(180deg);
	}
}
@keyframes slice-8 {
	0% {
		transform: rotate(-180deg);
	}
	19% {
		transform: rotate(-180deg);
	}
	100% {
		transform: rotate(180deg);
	}
}
@keyframes slice-9 {
	0% {
		transform: rotate(-180deg);
	}
	21% {
		transform: rotate(-180deg);
	}
	100% {
		transform: rotate(180deg);
	}
}