html {
	width:100%;
	height:100%;
	margin:0px;
	padding:0px;		
}
body {
	overflow: hidden;
	background: url(../images/background.png) #065B23;
	width: 100%;
	height: 100%;
	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;
}

.wrapper {
	display: flex;
	flex-direction: row;
	justify-content: center;
	margin-top: 20px;
}

.column {
	width: 80px;
	min-height: 120px;
	float: left;
	/*	border: 1px solid #000;*/
}

.start-form {
	display: block;
	box-sizing: border-box; /*padding and border included in total height and width*/
	margin-top: 85px;
	padding: 0;
	background-color: #E7E7E7;
	border: 5px solid #074744;
	font-family: Georgia, serif;
	box-shadow: 0 0 12px 5px rgba(0,0,0,0.6);
	left: 50%;
	top: 50%;
	transform: translate(-50%,-75%);
	position: absolute;
}

input[type=radio] {
	border: 0px;
	width: 20px;
	height: 20px;
}

.start-form .title {
	margin-top: 10px;
	margin-bottom: 10px;
	font-size: 30px;
	text-align: center;
	font-weight: bold;
}

.start-form .game-option{
	display: block;
	margin-bottom: 2px;
	font-size: 30px;
	height: 60px;
	line-height: 60px;
	cursor: pointer;
}

.start-form .game-option:hover, .start-form .game-option:active {
	background: #045c58;
	color: #e7e7e7;
}

.start-form input[type="submit"] {
	width: 120px;
	height: 40px;
	font-size: 28px;
	cursor: pointer;
	text-align: center;
	margin-left: 50%;
	margin-top: 10px;
	margin-bottom: 10px;
	transform: translate(-50%, 0);
	background: #021615;
	color: #E7E7E7;
	border-radius: 5px;
}

.start-form input[type="submit"]:hover {
	background: #045c58;;
}


.start-form .suit {
	display: inline-block;
	background-image: url('../images/card-shapes.png');
	background-repeat: no-repeat;
	background-position: 25px 50%;
	background-size: 200px 80px;
}

.start-form .suit.one {
	width: 75px;
}


.start-form .suit.two {
	width: 125px;
}


.start-form .suit.four {
	width: 230px;
}

.control-panel {
	position: absolute;
	left: 50%;
	bottom: 10px;
	transform: translate(-50%, 0);
	text-align: center;
	display: none;
	flex-direction: row;
	justify-content: center;
	align-items: center;
}

.control-panel button {
	display: inline-block;
	width: 120px;
	height: 38px;
	font-size: 16px;
	outline: 1px solid grey;
	outline-offset: -4px;
	border: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding: 0;
	white-space: nowrap;
	background: #efefef;
	color: #4a4a4a;
	cursor: pointer;
	margin: 10px;
}

.control-panel button:hover{
	background: #074744;
	color: #e7e7e7;
}

.timer {
	font-size: 20px;
	font-weight: bold;
	color: #fff;
	border: 1px solid #fff;
	padding: 7px;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	margin: 10px;
}

.score {
	font-size: 20px;
	font-weight: bold;
	color: #fff;
	border: 1px solid #fff;
	padding: 7px;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	margin: 10px;
}

.message {
	display: inline-block;
	position: absolute;
	background-color: #F4F4F4;
	border: 1px solid #000;
	padding: 7px 10px;
	border-radius: 4px;
	font-size: 20px;
}

.game-title {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -62%);
	width: 600px;
	height: 500px;
	border: 5px solid #065B23;
	font-family: Georgia, serif;
	color: #E7E7E7;
	text-align: center;
	box-shadow: 0 0 12px 5px rgba(0,0,0,0.6);
	display: none;
}


/*Cards style*/
.card {
	display: block;
	width: 72px;
	height: 98px;
	margin: 0 auto;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
	overflow: hidden !important;
}

.card:first-child {
	margin-top: 0 !important;
}

.column .card,
.drag-el .card {
	margin-top: -84px;
}

.drag-el {
	z-index: 100;
	position: absolute;
}


.column[data-height="1"] .open {
	margin-top: -68px;
}
.column[data-height="2"] .open {
	margin-top: -72px;
}
.column[data-height="3"] .open {
	margin-top: -76px;
}
.column[data-height="4"] .open {
	margin-top: -80px;
}
.column[data-height="5"] .open {
	margin-top: -84px;
}

.column .closed,
.column .closed + .open {
	margin-top: -94px;
}

.card.closed {
	background-image: url(../images/cover.png);
}

.card.open,
.source .card:last-child {
	cursor: pointer;
	/* see bg style in cards.css */
}


.offside {
	width: 100%;
	position: absolute;
	bottom: 80px;
}

.source .card,
.dropout .card {
	position: absolute;
	bottom: 0;
}

.source .card {
	right: 20px;
} 


.dropout .card {
	left: 20px;
	cursor: default;
}

.source .card:nth-child(n+11) {
	right: 30px;
}

.source .card:nth-child(n+21) {
	right: 40px;
}

.source .card:nth-child(n+31) {
	right: 50px;
}

.source .card:nth-child(n+41) {
	right: 60px;
}

.dropout {
	display: table;
	position: relative;
}

/*Elements render in order as they appear in the document flow ==> static*/
.dropout .card:first-child {
	left: 20px;
}

.dropout::after {
	content: ' ';
	display: block;
	width: calc(100% + 70px);
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

.backlight {
	box-shadow: 0 0 20px 5px yellow;
}

.dropout .card:nth-child(n+14) {
	left: 30px;
}

.dropout .card:nth-child(n+27) {
	left: 40px;
}

.dropout .card:nth-child(n+40) {
	left: 50px;
}

.dropout .card:nth-child(n+53) {
	left: 60px;
}

.dropout .card:nth-child(n+66) {
	left: 70px;
}

.dropout .card:nth-child(n+79) {
	left: 80px;
}

.dropout .card:nth-child(n+92) {
	left: 90px;
}

.ghost {
	z-index: 100;
	position: fixed;
	transition-property: top, left;
	transition-duration: 0.3s;
	transition-timing-function: linear;
	transition-delay: 0s;
}

.congratulation {
	width: 100%;
	height: 100%;
	display: none;
}

canvas {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
    height: 100%;
}

/**/

/*
.input {
display: none;
position: absolute;
top: 18em;
left: 0;
right: 0;
text-align: center;
}
.input input {
width: 5em;
padding-left: 0.2em;
border: 0.08em solid #333;
background: none;
border-radius: 5px;
font-size: 3em;
}
.input input:focus { outline: none; }
.input input::-webkit-input-placeholder { 
color: #666;
text-shadow: none;
}
.input input:-moz-placeholder {
color: #666;
text-shadow: none;
}

.restart {
position: absolute;
top: 2.5em;
left: 0;
right: 0;
text-align: center;
}
*/

.score-board {
	position: absolute;
	left: 380px;
	top: 30px;
	width: 500px;
	height: 500px;
	color: #074744;
	background: #e7e7e7;
	border-radius: 20px;
	border: 5px solid #074744;
	display: none;
	padding: 20px;
}

.score-board h2 {
	text-align: center;
}


ol#high-scores {
	font-size: 24px;
}

ol li {
	list-style-type: none;
	counter-increment: list;
	position: relative;
	padding-bottom: 30px;
	padding-right: 20px;
	text-align: right;
}

ol li:after {
	content: counter(list) ".";
	position: absolute;
	left: -1.5em;
	width: -72px;
	text-align: right;
	color: blue;
}
@media (max-width: 800px) {
    .column {
		width: 60px;
	}
	.card {
		width: 54px;
		height: 73.5px;
	}
	.column .card,
	.drag-el .card {
		margin-top: -59.5px;
	}
	.column[data-height="1"] .open {
		margin-top: -43.5px;
	}
	.column[data-height="2"] .open {
		margin-top: -47.5px;
	}
	.column[data-height="3"] .open {
		margin-top: -51.5px;
	}
	.column[data-height="4"] .open {
		margin-top: -55.5px;
	}
	.column[data-height="5"] .open {
		margin-top: -59.5px;
	}
	.column .closed,
	.column .closed + .open {
		margin-top: -69.5px;
	}
	.control-panel {
		bottom: 0;
	}
	.control-panel button {
		width: 110px;
		height: 30px;
		font-size: 14px;
	}
	.timer {
		font-size: 15px;
	}
	.score {
		font-size: 15px;
	}
	.message {
		font-size: 15px;
	}
	input[type=radio] {
		width: 10px;
		height: 10px;
	}
	.start-form .title {
		margin-top: 8px;
		margin-bottom: 8px;
		font-size: 18px;
	}
	.start-form .game-option{
		font-size: 18px;
		height: 50px;
		line-height: 50px;
	}
	.offside {
		bottom: 50px;
	}
}