/* Blackjack game scoped styles */
.blackjack-game {
	background: #1f513b;
	background: linear-gradient(to top right, #1f513b, #0F2725) fixed;
	text-align: center;
	font-family: 'Lato', sans-serif;
	color: white;
}

/* Typography */
.blackjack-game h1,
.blackjack-game h2,
.blackjack-game h3,
.blackjack-game h4,
.blackjack-game h5,
.blackjack-game .brand-logo {
	font-family: 'Arvo', serif;
}

.blackjack-game h1 {
	font-size: 4em;
}

.blackjack-game h4 {
	font-size: 1.75em;
}

.blackjack-game p {
	font-size: 1.25em;
	line-height: 1.75em;
}

.blackjack-game strong {
	font-family: 'Arvo', serif;
	padding: 4px 0;
	display: block;
	font-size: 1.10em;
}

/* Buttons */
.blackjack-game button,
.blackjack-game button:focus {
	margin: 5px;
	padding: 10px 20px;
	background: #d60438;
	color: white;
	font-size: 1.25em;
	font-weight: 400;
	letter-spacing: 1px;
	border: 0;
}

.blackjack-game button.secondary {
	background: #1E6692;
}

.blackjack-game button:active {
	background: black;
}

.blackjack-game button.disabled-button,
.blackjack-game button.secondary.disabled-button {
	background: #0F2725;
}

/* Welcome screen */
.blackjack-game #welcome p {
	width: 50%;
	margin: 10px auto;
}

/* Rules section hidden at start and can toggle in from above */
.blackjack-game #rules {
	padding: 30px 20px 20px 20px;
	text-align: left;
	display: none; 
	background: #0F2725;
	position: absolute;
	top: 55px;
	right: 0;
	width: 100%;
	z-index: 99;
	font-size: .75em;
}

.blackjack-game #rules button {
	float: right;
	margin-right: 20px;
}

.blackjack-game #rules h4 {
	text-align: center;
}

/* Card decks during gameplay */
.blackjack-game #deck-pile,
.blackjack-game #dealer,
.blackjack-game #user-hand,
.blackjack-game #user-split-hand {
	display: inline-block;
	position: relative;
}

.blackjack-game .card {
	transition: all 3s;
	display: inline-block;
	background-color: none !important;
	border-radius: 12.5px;
	outline-offset: -6px;
	outline: 6px solid white;
	box-shadow: -3px 4px rgba(15, 39, 37, .25);
}

.blackjack-game .card:hover {
	z-index: 100;
}

.blackjack-game .pile {
	margin-right: 30px;
} 

/* Chips and wagers */
.blackjack-game .wager {
	height: 60px;
	width: 60px;
	margin: 2px;
	display: inline-block;
}

.blackjack-game .wager-clickable {
	margin: 15px 2px;
}

.blackjack-game .wager-clickable:hover {
	transform: scale(1.10);
}

/* For bet screen where the supporting icons don't need to be full size */
.blackjack-game .wager-small {
	margin-left: 30px;
	margin-right: 10px;
	height: 40px;
	width: 40px;
}

/* For when user is choosing what their bet is */
.blackjack-game #wager-options {
	margin: 15px auto 5px auto;
}

.blackjack-game #wager-options span {
	display: inline-block;
	margin: 20px auto;
	font-size: 2em;
	line-height: 1.5em;
	position: relative;
	bottom: 10px;
}

/* For displaying during the game */
.blackjack-game .wager-gameplay {
	font-size: 2.5em;
	position: relative;
	top: 50px;
}

.blackjack-game .wager-gameplay span { 
	display: block;
}

/* Gameover scoreboard table */
.blackjack-game table {
	width: 50%;
	margin: 0 auto;
	padding: 0;
}

.blackjack-game .total-label {
	text-align: right;
	padding-right: 20px;
}

.blackjack-game .total-output {
	text-align: left;
}

/* Card totals */
.blackjack-game .hand-total,
.blackjack-game .split-hand-total,
.blackjack-game .dealer-hand-total {
	background: black;
	padding: 10px 0;
	margin: 2px;
	display: inline-block;
	font-size: 1.25em;
	text-align: center;
	width: 50px;
}

/* On the gameboard, these totals get positioned differently over the decks */
.blackjack-game .game-board-totals {
	position: relative;
	left: -15px;
	bottom: 40px;
	margin-right: -15px;
}

.blackjack-game #user-split-hand {
	margin-left: 20px;
}

/* For whenever split hand state is engaged, we will scale decks up and down */
.blackjack-game .splithand-scaledown {
	transition: all 1s;
	transform: scale(.75);
	left: -80px;
	margin-right: -40px;
}

.blackjack-game #user-hand.splithand-scaledown,
.blackjack-game #user-split-hand.splithand-scaledown {
	transform: scale(.4);
	left: 0;
	margin-right: -30px;
}

/* Game button action items are styled bigger than the other buttons */
.blackjack-game #sidebar button {
	width: 100%;
	height: 70px;
	margin: 5px 0 10px 0;
	overflow: none;
	padding: 0;
}

/* For any items invisible at start that we will toggle/show later */
.blackjack-game .inactive {
	display: none;
}

/* Materialize framework style overrides (scoped) */
.blackjack-game .nav-wrapper {
	background-color: black !important;
	text-align: left !important;
	box-shadow: 0 !important;
}

.blackjack-game .navbar-fixed {
	margin-bottom: 25px !important;
}

.blackjack-game .brand-logo { /* Text in nav bar */
	padding-left: 20px !important;
	font-size: 1.5em !important;
}

.blackjack-game .rules-nav { /* Icon to toggle rules */
	padding-right: 20px !important;
}

.blackjack-game .modal { 
	padding: 40px 0 !important;
	width: 75% !important; 
	height: 75% !important;
	opacity: .90 !important;
	overflow: hidden !important;
	max-height: 100% !important;
} 

.blackjack-game .modal-content h4,
.blackjack-game .modal-content p {
	color: black;
}

.blackjack-game .modal-body {
	max-height: 600px;
}

.blackjack-game .row {
	margin: 0 auto;
}

/* Responsive mobile adjustments */
@media all and (max-width: 600px) {
	.blackjack-game .wager-gameplay {
		top: 0;
	}
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {

	.blackjack-game .navbar-fixed {
		margin-bottom: 8px !important;
	}

	.blackjack-game .game-board h4 {
		font-size: 1.25em;
	}

	.blackjack-game .game-over h3 {
		font-size: 2.25em;
	}

	.blackjack-game p {
		font-size: 1.4em;
	}

	.blackjack-game table {
		width: 100%;
	}

	.blackjack-game #welcome p {
		width: 100%;
	}

	.blackjack-game .card {
		width: 77px;
		height: 103.5px;
	}

	.blackjack-game #sidebar button {
		width: 70px;
		height: 40px;
		font-size: .75em;
	}

	.blackjack-game .total-label {
		padding-right: 0;
	}

	.blackjack-game .total-output {
		padding-left: 10px;
	}

	.blackjack-game .wager-gameplay {
		font-size: 1.75em;
		position: relative;
		top: 0;
		margin: 0 auto;
	}

	.blackjack-game .wager-gameplay .wager {
		height: 30px;
		width: 30px;
	}

	.blackjack-game .wager-gameplay span {
		font-size: .75em;
		display: inline-block;
		margin-left: 20px;
		position: relative;
		bottom: 10px;
	}
}
