body {
	font-family: Gotham, "Proxima Nova", Helvetica, sans-serif;
	margin: 0;
	padding: 0;
	visibility: hidden;
}

body.game-over {
	cursor: pointer;
}

h1, h2 {
	margin: 0;
}

ul {
	width: 400px;
	height: 400px;
	margin: 100px auto 0;
	padding: 0;
	list-style: none;
	-webkit-transition: .5s;
	-moz-transition: .5s;
	-ms-transition: .5s;
	-o-transition: .5s;
	transition: .5s;
}

ul.hide {
	opacity: .3;
	pointer-events: none;
}
.end {
	opacity: 0;
	
	top: 240px;
	width: 100%;
	
	text-align: center;
	position: absolute;
	z-index: -1;

	-webkit-transition: all .3s;
	-moz-transition: all .3s;
	-ms-transition: all .3s;
	-o-transition: all .3s;
	transition: all .3s;
	transform: scale(.90, .90);
}

.end.show {
	z-index: 1;
	opacity: 1;
	transform: scale(1, 1);
}

.end h1 {
	color: #6BC7A0;
	font-size: 50px;
}

.end h2 {
	color: #4C4C4C;
	margin-bottom: 10px;
}

li {
	position: relative;
	float: left;
	width: 32%;
	height: 32%;
	margin: .6%;
	box-sizing: border-box;
	background: rgba(0,0,0,.04);
	border: 1px solid rgba(0, 0, 0, 0.08);
	font-size: 200%;
	text-align: center;
	font-family: 'Proxima Nova', sans-serif;
	cursor: pointer;
}

@-webkit-keyframes throb {
	from {
		transform: scale(.95, .95);
	}
	to {
		transform: scale(1.02, 1.02);
	}
}

@-webkit-keyframes flash {
	0% {
		background: rgba(0,0,0,.04);
	} 
	50% {
		background: rgba(0,0,0,.00);
	}
	100% {
		background: rgba(0,0,0,.04);
	}
}

li:after {
	pointer-events: none;
	z-index: 2;
	opacity: 0;
	content: 'o';
	color: #6CB9F4;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	font-size: 4em;
	line-height: .9em;
	transform: scale(.98, .98);

	-webkit-transition: .05s opacity ease-in;
	-moz-transition: .05s opacity ease-in;
	-ms-transition: .05s opacity ease-in;
	-o-transition: .05s opacity ease-in;
	transition: .05s opacity ease-in;
}

li.flash {
	-webkit-animation: flash .3s;
	-webkit-animation-name: flash;
	-moz-animation-name: flash;
	-o-animation-name: flash;
	animation-name: flash;

	-webkit-animation-duration: .3s;
	-moz-animation-duration: .3s;
	-o-animation-duration: .3s;
	animation-duration: .3s;

	-webkit-animation-iteration-count: 4;
	-moz-animation-iteration-count: 4;
	-o-animation-iteration-count: 4;
	animation-iteration-count: 4;
}

li:hover:after {
	opacity: .3;
	-webkit-animation: throb 1.5s ease-in infinite alternate;
	-moz-animation: throb 1.5s ease-in infinite alternate;
	-o-animation: throb 1.5s ease-in infinite alternate;
	animation: throb 1.5s ease-in infinite alternate;
}

li.x:after {
	opacity: 1;
	content: 'x';
	color: #F4B072;
}

li.o:after {
	opacity: 1;
	content: 'o';
	
}

.hint {
	opacity: 0;
	text-align: center;
	width: 100%;
	display: inline-block;
	margin-top: 20px;
	transform: scale(.6, .6);
	-webkit-transition: all .4s;
	-moz-transition: all .4s;
	-ms-transition: all .4s;
	-o-transition: all .4s;
	transition: all .4s;
}

.hint.show {
	opacity: 1;
	transform: scale(1, 1);
}

li.o:hover:after, li.x:hover:after {
	-webkit-animation: none;
}