*{
  box-sizing: border-box;
}
body{
  font-family: Tahoma,Arial;
}
.container{
  margin: 20px auto;
  width: 1000px;
}
.row{
  display: flex;
}
hr{
  border: 1px solid #eee;
}
.hugman-cover{
	position: absolute;
	z-index: 10;
	background-color: #2195f3bd;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	display: none;
}
.hugman-cover a{
	position: absolute;
	left: 50%;
	top: 50%;
	width: fit-content;
	height: fit-content;
	min-width: 110px;
	font-size: 22px;
	background-color: #fff;
	text-decoration: none;
	padding: 5px 8px;
	text-align: center;
	transform: translate(-50%, -50%);
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	-ms-border-radius: 3px;
	-o-border-radius: 3px;
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
}
.haungman-container{
	display: none;
	margin: 20px auto;
	width: 90%;
	max-width: 1000px;
	min-width: 270px;
}
.row{
	display: flex;
	flex-wrap: wrap;
}
hr{
	border: 1px solid #eee;
}
.game-info{
	display: flex;    
	width: 100%;
}
.game-info .game-name{
	flex: 1;
}
.game-info .category{
	flex: 1;
	text-align: right;
}
.game-info .category span{
	text-transform: capitalize;
	color: #e91e63;
	font-weight: bold;
}
.hangman-draw{
	flex: 1;
	min-width: 270px;
	background-color: #f8f8f8;
	height: 324px;
}
.hangman-draw .the-draw{
	width: 60px ;
	height: 280px;
	border-bottom: 4px solid #222;
	position: relative;
	margin: auto;
	left: -60px;
	display: none;
}
.hangman-draw .the-draw .stand{
	display: none;
}
.hangman-draw .the-draw .stand::before{
	content: '';
	position: absolute;
	width: 4px;
	background-color: #222;
	height: 100%;
	left: 50%;
	margin-left: -2px;
}
.hangman-draw .the-draw .hang{
	display: none;
}
.hangman-draw .the-draw .hang::before{
	content: '';
	position: absolute;
	width: 100px;
	background-color: #222;
	height: 4px;
	left: 30px;
	top: 15px;
}
.hangman-draw .the-draw .hang::after{
	content: '';
	position: absolute;
	width: 4px;
	background-color: #222;
	height: 30px;
	left: 130px;
	top: 15px;
}
.hangman-draw .the-draw .rope{
	width: 70px;
	height: 70px;
	border-radius: 50%;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-ms-border-radius: 50%;
	-o-border-radius: 50%;
	position: absolute;
	left: 95px;
	top: 45px;
	border: 4px dashed #222;
	display: none;
}
.hangman-draw .head{
	position: absolute;
	width: 50px;
	height: 50px;
	border: 4px solid #222;
	left: 105px;
	top: 55px;
	border-radius: 50%;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-ms-border-radius: 50%;
	-o-border-radius: 50%;
	display: none;
}
.hangman-draw .body{
	position: absolute;
	width: 4px ;
	height: 110px;
	top: 102px;
	left: 130px;
	background-color: #222;
	display: none;
}
.hangman-draw .hands{
	display: none;
}
.hangman-draw .hands::before{
	content: '';
	width: 50px;
	position: absolute;
	height: 4px;
	background-color: #222;
	left: 91px;
	top: 150px;
	transform: rotate(-50deg);
	-webkit-transform: rotate(-50deg);
	-moz-transform: rotate(-50deg);
	-ms-transform: rotate(-50deg);
	-o-transform: rotate(-50deg);
}
.hangman-draw .hands::after{
	content: '';
	width: 50px;
	position: absolute;
	height: 4px;
	background-color: #222;
	left: 124px;
	top: 150px;
	transform: rotate(50deg);
	-webkit-transform: rotate(50deg);
	-moz-transform: rotate(50deg);
	-ms-transform: rotate(50deg);
	-o-transform: rotate(50deg);
}
.hangman-draw .legs{
	display: none;
}
.hangman-draw .legs::before{
	content: '';
	width: 50px;
	position: absolute;
	height: 4px;
	background-color: #222;
	left: 91px;
	top: 228px;
	transform: rotate(-50deg);
	-webkit-transform: rotate(-50deg);
	-moz-transform: rotate(-50deg);
	-ms-transform: rotate(-50deg);
	-o-transform: rotate(-50deg);
}
.hangman-draw .legs::after{
	content: '';
	width: 50px;
	position: absolute;
	height: 4px;
	background-color: #222;
	left: 124px;
	top: 228px;
	transform: rotate(50deg);
	-webkit-transform: rotate(50deg);
	-moz-transform: rotate(50deg);
	-ms-transform: rotate(50deg);
	-o-transform: rotate(50deg);
}
.hangman-draw.wrong-1 .the-draw{
	display: block;
}
.hangman-draw.wrong-2 .stand{
	display: block;
}
.hangman-draw.wrong-3 .hang{
	display: block;
}
.hangman-draw.wrong-4 .rope{
	display: block;
}
.hangman-draw.wrong-5 .head{
	display: block;
}
.hangman-draw.wrong-6 .body{
	display: block;
}
.hangman-draw.wrong-7 .hands{
	display: block;
}
.hangman-draw.wrong-8 .legs{
	display: block;
}
.letters{
	flex: 1; 
	min-width: 270px;
	margin-top: 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.letters.finished{
	pointer-events: none;
}
.letters .letter-box{
	width: 55px;
	height: 55px;
	display: inline-block;
	background-color: #009688;
	color: #fff;
	font-size: 24px;
	margin-right: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-transform: uppercase;
	font-weight: bold;
	cursor: pointer;
	margin-bottom: 12px;
	border-radius: 50%;
	-webkit-border-radius: 50%;
	-moz-border-radius: 50%;
	-ms-border-radius: 50%;
	-o-border-radius: 50%;
}
.letters .letter-box.clicked{
	background-color: #222;
	opacity: 0.2;
	pointer-events: none; 
}

.letters-guess{
	margin: 10px auto;
	background-color: #f6f6f6;
	padding: 20px;
	display: flex;
	justify-content: center;
	height: fit-content;
}
.letters-guess span{
	width: 60px;
	height: 60px;
	font-size: 24px;
	margin-right: 10px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
	text-transform: uppercase;
	font-weight: bold;
	background-color: #fdfdfd;
	border-bottom: 3px solid #222;
	transition: 0.3s;
	-webkit-transition: 0.3s;
	-moz-transition: 0.3s;
	-ms-transition: 0.3s;
	-o-transition: 0.3s;
}
.letters-guess span.has-space{
	border-bottom: none;
	position: relative;
}
.letters-guess span.has-space::before{
	content: '';
	width: 20px;
	height: 4px;
	background-color: #009688;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%,-50%);
	-webkit-transform: translate(-50%,-50%);
	-moz-transform: translate(-50%,-50%);
	-ms-transform: translate(-50%,-50%);
	-o-transform: translate(-50%,-50%);
}
.popup{
	position: fixed;
	background-color: #009688;
	padding: 100px 10px;
	width: 90%;
	min-width: 250px;
	top: 50%;
	left: 50%;
	font-size: 40px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	border: 1px solid #ccc;
	color: #fff;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	-moz-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	-o-transform: translate(-50%, -50%);
}
.popup a{
	text-decoration: none;
	padding: 5px 8px ;
	margin-left: 8px;
	margin-top: 10px;
	background-color: #fff;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	-ms-border-radius: 3px;
	-o-border-radius: 3px;
}

/* responsive design */
@media(max-width:1240px){
	.info-container {
		width: 850px;
	}
	.memory-game-blocks{
		width: 850px;
	}
	.memory-game-blocks .game-block{
		width: 150px;
		height: 150px;
	}
	.memory-game-blocks .game-block .front:before{
		font-size: 100px;
	}
	.memory-game-blocks .game-block .back img{
		width: 100px;
		height: 100px;
	}
	.memory-game-blocks .game-block .face{
		border: 4px solid #2196F3;
	}
	.letters .letter-box{
		width: 40px;
		height: 40px;
	}
	.letters-guess span{
		width: 40px;
		height: 40px;
		font-size: 14px;
		margin-right: 6px;
	}
}
@media(max-width:900px){
	.info-container {
		width: 400px;
	}
	.memory-game-blocks{
		width: 400px;
	}
	.memory-game-blocks .game-block{
		width: 68px;
		height: 68px;
		margin: 0px 6px 18px;
	}
	.memory-game-blocks .game-block .front:before{
		font-size: 30px;
	}
	.memory-game-blocks .game-block .back img{
		width: 50px;
		height: 50px;
	}
	.memory-game-blocks .game-block .face{
		border: 3px solid #2196F3;
	}
	.info-container{
		font-size: 16px;
	}
	.letters .letter-box{
		width: 30px;
		height: 30px;
		font-size: 14px;
	}
	.letters-guess{
		padding: 10px;
	}
	.letters-guess span{
		width: 30px;
		height: 30px;
		font-size: 12px;
		margin-right: 4px;
	}
	.letters-guess span.has-space::before{
		width: 10px;
		height: 3px;
	}
	.popup{
		font-size: 16px;
	}
}
@media(max-width:450px){
	.info-container {
		width: 240px;
		padding: 10px;
	}
	.memory-game-blocks{
		width: 250px;
	}
	.memory-game-blocks .game-block{
		width: 38px;
		height: 38px;
		margin: 0px 6px 20px;
	}
	.memory-game-blocks .game-block .front:before{
		font-size: 20px;
	}
	.memory-game-blocks .game-block .back img{
		width: 35px;
		height: 35px;
	}
	.memory-game-blocks .game-block .face{
		border: 3px solid #2196F3;
	}
	.info-container{
		font-size: 14px;
	}
	.letters .letter-box{
		width: 20px;
		height: 20px;
		font-size: 10px;
	}
	.letters-guess{
		padding: 5px;
	}
	.letters-guess span{
		width: 15px;
		height: 15px;
		font-size: 10px;
		margin-right: 2px;
		border-bottom: 1px solid #000;
	}
	.letters-guess span.has-space::before{
		width: 7px;
		height: 2px;
	}
	.popup{
		font-size: 14px;
	}
}