html {
	width:100%;
	height:100%;
	margin:0px;
	padding:0px;		
}
body {
	background: url(../images/background.png) #065B23;
	width: 100%;
	height: 100%;
	font-family: Georgia, serif;
	margin: 0px;
	padding: 0px;
	-webkit-font-smoothing: antialiased;
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none;   /* Chrome/Safari/Opera */
	-khtml-user-select: none;    /* Konqueror */
	-moz-user-select: none;      /* Firefox */
	-ms-user-select: none;       /* Internet Explorer/Edge */
	user-select: none;
	touch-action: none;
	touch-action-delay: none;
}
.back_center {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100%;
}
.spacer {
	flex: 1 1 auto;
}
.back_div {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	margin-top: 20px;
}
.congratulation {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: none;
	z-index: 99;
}
canvas {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
    height: 100%;
}
a {
	display: inline-block;
    width: 180px;
	height: 57px;
    font-size: 24px;
    outline: 1.5px solid grey;
    outline-offset: -6px;
	cursor: pointer;
	background-color: #E7E7E7;
	text-align: center;
	line-height: 63px;
	color: #4a4a4a;
	font-family: Arial;
	text-decoration: none;
}
a:hover {
	background: #074744;
	color: #e7e7e7;
}
button {
	display: inline-block;
	width: 180px;
	height: 57px;
	font-size: 24px;
	outline: 1.5px solid grey;
	outline-offset: -6px;
	border: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: 0;
	white-space: nowrap;
	background: #efefef;
	color: #4a4a4a;
	cursor: pointer;
	margin-bottom: 20px;
	z-index: 100;
}
button:hover{
	background: #074744;
	color: #e7e7e7;
}
.card {
	width:108px;
	height:147px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding-top:0px;
	padding-left:0px;
	position:absolute;
	left:0px;
	top:0px;
	overflow:visible;
}
.card img {
	width: 100%;
	height: 100%;
}
#bg_deck {
	width: 258px;
	height: 147px;
	position: relative;
}
#bg_deck_inner {
	width: 105px;
	height: 144px;
	position: absolute;
	border: 1.5px dotted #8f9491;
	border-radius: 10.5px;
}
#bg_deck_shown {
	width: 135px;
	height: 144px;
	left: 120px;
	position: absolute;
	border: 1.5px dotted #8f9491;
	border-radius: 10.5px;
}
#bg_deck_shown div div {
	margin-left:22.5px;
}
#bg_deck_shown div div div {
	margin-left:45px;
}
#bg_aces {
	width: 468px;
	height: 147px;
	margin-left: 102px;
	position: relative;
}
#bg_aces > div {
	width: 105px;
	position: absolute;
	height: 144px;
	background-repeat: no-repeat;
	border: 1.5px dotted #8f9491;
	border-radius: 10.5px;
}
#bg_aces > div:nth-child(2) {
	left: 120px;
}
#bg_aces > div:nth-child(3) {
	left: 240px;
}
#bg_aces > div:nth-child(4) {
	left: 360px;
}
#bg_seven {
	width: 828px;
	height: 300px;
	margin-top: 20px;
	position: relative;
}
#bg_seven > div {
	width: 120px;
	position: absolute;
	height: 180px;
	background-repeat: no-repeat;
}
#bg_seven > div:nth-child(2) {
	left: 120px;
}
#bg_seven > div:nth-child(3) {
	left: 240px;
}
#bg_seven > div:nth-child(4) {
	left: 360px;
}
#bg_seven > div:nth-child(5) {
	left: 480px;
}
#bg_seven > div:nth-child(6) {
	left: 600px;
}
#bg_seven > div:nth-child(7) {
	left: 720px;
}
#movingCardContainer {
	position: absolute;
	z-index: 100;
}
@media (max-height: 720px) {
	.back_div {
		margin-top: 20px;
	}
	a {
		width: 120px;
		height: 38px;
		font-size: 16px;
		outline: 1px solid grey;
		outline-offset: -4px;
		line-height: 42px;
	}
	button {
		width: 120px;
		height: 38px;
		font-size: 16px;
		outline: 1px solid grey;
		outline-offset: -4px;
		margin-bottom: 20px;
	}
	.card {
		width:72px;
		height:98px;
	}
	#bg_deck {
		width: 172px;
		height: 98px;
	}
	#bg_deck_inner {
		width: 70px;
		height: 96px;
		border: 1px dotted #8f9491;
		border-radius: 7px;
	}
	#bg_deck_shown {
		width: 90px;
		height: 96px;
		left: 80px;
		border: 1px dotted #8f9491;
		border-radius: 7px;
	}
	#bg_deck_shown div div {
		margin-left:15px;
	}
	#bg_deck_shown div div div {
		margin-left:30px;
	}
	#bg_aces {
		width: 312px;
		height: 98px;
		margin-left: 68px;
	}
	#bg_aces > div {
		width: 70px;
		height: 96px;
		border: 1px dotted #8f9491;
		border-radius: 7px;
	}
	#bg_aces > div:nth-child(2) {
		left: 80px;
	}
	#bg_aces > div:nth-child(3) {
		left: 160px;
	}
	#bg_aces > div:nth-child(4) {
		left: 240px;
	}
	#bg_seven {
		width: 552px;
		height: 200px;
		margin-top: 20px;
	}
	#bg_seven > div {
		width: 80px;
		height: 120px;
	}
	#bg_seven > div:nth-child(2) {
		left: 80px;
	}
	#bg_seven > div:nth-child(3) {
		left: 160px;
	}
	#bg_seven > div:nth-child(4) {
		left: 240px;
	}
	#bg_seven > div:nth-child(5) {
		left: 320px;
	}
	#bg_seven > div:nth-child(6) {
		left: 400px;
	}
	#bg_seven > div:nth-child(7) {
		left: 480px;
	}
}
@media (max-height: 400px) {
	#bg_deck {
		width: 172px;
	}
	#bg_deck_shown {
		left: 80px;
	}
	#bg_aces {
		width: 312px;
		margin-left: 68px;
	}
    #bg_seven {
		width: 552px;
		margin-top: 10px;
	}
	.back_div {
		margin-top: 10px;
	}
	button {
		width: 110px;
		height: 30px;
		font-size: 14px;
		margin-bottom: 10px;
	}
}