@font-face {
    font-family: 'Arial Bold';
    font-style: normal;
    font-weight: normal;
	font-display: swap;
    src: local('Arial Bold'), url('../css/fonts/ARIALBD\ 1.woff') format('woff');
	src: local('Arial'), url('../css/fonts/ARIAL.TTF') format('ttf');
}
/* Broad site-wide styles */
body {
	background-image: url(../img/green-textile-texture.png);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	height: 100vh;
	text-align: center;
	font-family: 'Lato', sans-serif;
	color: white;
}

h1, h2, h3, h4, h5, .brand-logo {
	font-family: 'Arvo', serif;
}

h1 {
	font-size: 4em;
}

h4 {
	font-size: 1.75em;
}

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

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


button, button:focus {
    margin: 5px;
    padding: 21px 32px;
    background: #AA0000;
    color: #fff;
    font-size: 23.05px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 0;
    border-radius: 17.77px;
    line-height: 26.5px;
    font-family: 'Arial Bold';
}

button.secondary {
    background: #1C638A;
}
button#double-down-button {
    background-color: #D60438;
}

button:active {
	background: black;
}

button.disabled-button, button.secondary.disabled-button {
    background: #434343;
}
#sidebar {
    margin-top: 25px;
}

#game-board h4 {
    font-size: 57px;
    font-family: 'Lobster';
    font-weight: 400;
    line-height: 71.37px;
    color: #fff;
}

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

#welcome h1{
	font-family: "Lobster", serif !important;
	font-size: 121.99px;
	font-weight: 400;
	line-height: 152.49px;
	color: #000;
	text-transform: capitalize;
}
#welcome h1 span{
	color: #ffffff;
}
/* Rules section hidden at start and can toggle in from above */
#rules {
	padding: 30px 20px 20px 20px;
/*	margin: 20px auto 30px auto;*/
	text-align: left;
	display: none; 
	background: #0F2725;
	position: absolute;
	top: 55px;
	right: 0;
	width: 100%;
	z-index: 99;
	font-size: .75em;
}

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

#rules h4 {
	text-align: center;
}

/* Card decks during gameplay */

#deck-pile, #dealer, #user-hand, #user-split-hand {
	display: inline-block;
	position: relative;
}

.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);
}

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

.pile {
	margin-right: 30px;
} 

/* Chips and wagers */

.wager {
    height: 65px;
    width: 65px;
    margin: 2px;
    display: inline-block;
}

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

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

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

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

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

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

span.current-wager,
span.current-chip-balance {
    font-size: 49px;
    font-family: arial;
    line-height: 57.24px;
    font-weight: 700;
    color: #fff;
	font-family: 'Arial Bold';
}
.wager-gameplay span { 
	display: block;
}

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

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

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

/* Card totals */
.hand-total, .split-hand-total, .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 */
.game-board-totals {
    position: relative;
    left: -15px;
    bottom: 40px;
    margin-right: -15px;
    border-radius: 5px;
}

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

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

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

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

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


/* Materialize framework style overrides*/
.nav-wrapper {
	/* background-color: black !important; */
 	text-align: left !important;
	box-shadow: 0 !important;
}
nav{
	background-color: transparent !important;
	box-shadow: none !important;
}
nav ul li{
	margin-top: 10px;
}
nav ul li:first-child a {
    color: #fff !important;
    background-color: #000 !important;
    border-radius: 5px;
    display: inline-block;
    height: 45px;
    line-height: 45px;
}
nav ul li:first-child a:hover{
	background-color: #fff !important;
	color: #000 !important;
	transition: all 0.3s ease;
}

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

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

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

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

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

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

.row {
	margin: 0 auto;
}

/* Resposive mobile adjustments*/
@media(max-width:900px){
	#welcome h1 {
		font-size: 109.99px;
		line-height: 139.49px;
	}
	button, button:focus {
		padding: 19px 31px;
		font-size: 21.05px;
		line-height: 23.5px;
	}
	#game-board h4 {
		font-size: 49px;
		line-height: 67.37px;
	}
    span.current-wager, span.current-chip-balance {
        font-size: 39px;
        line-height: 48.24px;
    }			
}
@media all and (max-width: 600px){
	.wager-gameplay {
		top: 0;
	}
    #welcome h1 {
        font-size: 91.99px;
        line-height: 124.49px;
    }
	#welcome p {
		width: 75%;
	}
	button, button:focus {
        padding: 19px 31px;
        font-size: 19.05px;
        line-height: 22.5px;
        margin: 3px;
    }
	#game-board h4 {
        font-size: 42px;
        line-height: 58.37px;
    }
	span.current-wager, span.current-chip-balance {
        font-size: 34px;
        line-height: 43.24px;
    }
}

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

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

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

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

	p {
		font-size: 1.4em;
	}


	table {
		width: 100%;
	}

    #welcome p {
        width: 100%;
        font-size: 17px;
    }
	#welcome h1 {
        font-size: 59.99px;
        line-height: 78.49px;
    }

	.card {
		width: 77px;
		height: 103.5px;
	}

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

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

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

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

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

	.wager-gameplay span {
		font-size: .75em;
		display: inline-block;
		margin-left: 20px;
		position: relative;
		bottom: 10px;
	}
	#game-board h4 {
        font-size: 37px;
        line-height: 50.37px;
    }
	.hand-total, .split-hand-total, .dealer-hand-total {
		font-size: 14px;
	}
	#sidebar {
		margin-top: 12px;
	}
	

}
