body {
	background-color: #232323;
	margin: 0;
	font-family: 'PT Sans Caption', sans-serif;
	letter-spacing: 1px;
	width: 100%;
}
.overflowBlock{
	overflow: hidden;
}
.absolute {
	position: absolute;
	height: 0;
	color: white;
	text-align: center;
	padding: 2%;
	margin: 0;
	display: none;

}

.absolute > p {
    position: relative;
    font-family: 'Press Start 2P', cursive;
	line-height: 2;
	font-size:  1.3vw;
	vertical-align: center;

}
.top {
	margin-top: 10%;
}
.bottom {
	display: flex;
    align-items: bottom;

}
/*=======================================Header and navbar========================================================================*/
/*======================================Buttons and point/time counters==============================================================*/
button:hover, .active {
	background-color: #009896;
	color: white;
	border: none;
}

button {
	border-radius: 12px;
	border: none;
	background: none;
	text-transform: uppercase;
	height: 100%;
	display: inline-block;
	padding: 1%;
	color: #009896;
	font-weight: bold;
	outline: none;
	font-family: 'Press Start 2P', cursive;
	font-size: 80%;
	transition: all 0.5s;
		-webkit-transition: all 0.5s;
		-moz-transition: all 0.5s;
}


a {
	text-decoration: none;
}
.logo {
	max-width: 300px;
	margin: 2% auto;
	text-align: center;
	color: white;
	font-size: 350%;
	font-family: 'Press Start 2P', cursive;
	background-color: rgba(35, 35, 35, 0.8);
}
.logo-container{
	padding: 1% 1% 1% 1%;
}

.game-block{
	float: left;
	display: inline;
	width: 21%;
	margin: 2%;
    box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.3);
/*    background-color: #303030;
*/    border-radius: 15px;
   }
.game {
	position: relative;
	width: 100%;
/*	margin: 1.7%;*/
	padding-bottom: 100%;
	display: inline-block;

	border-radius: 5%;
	transition: all 0.5s;
		-webkit-transition: all 0.5s;
		-moz-transition: all 0.5s;
	background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.game-block:hover > .game {
	cursor: pointer;
}
a:hover > .caption {
	color: #009896;
	cursor: pointer;
}
.game:hover > .absolute {
	display: block;
}
.dice {
	background-image: url("assets/dice.png");
}
.dice:hover {
	background-image: url("assets/dice-x.png");
}
.colors {
	background-image: url("assets/colors.png");
}
.colors:hover {
	background-image: url("assets/colors-x.png");
}
.food {
	background-image: url("assets/food.png");
}
.food:hover {
	background-image: url("assets/food-x.png");
}
.candy {
	background-image: url("assets/fish.png");
}
.candy:hover {
	background-image: url("assets/fish-x.png");
}
.lines {
	background-image: url("assets/lines.png");
}
.lines:hover{
	background-image: url("assets/lines-x.png");
}
.bj {
	background-image: url("assets/bj.png");
}
.bj:hover{
	background-image: url("assets/bj-x.png");
}
.rps{
	background-image: url("assets/rps.png");
}
.rps:hover{
	background-image: url("assets/rps-x.png");
}
.simon {
	background-image: url("assets/simon.png");
}
.simon:hover {
	background-image: url("assets/simon-x.png");
}
.container{
	height: 100%;
	background-image: url("assets/pattern2.png");
	margin-top: 1%;
	padding-top: 0;
	margin-bottom: 3%;
}
.caption {
	color: white;
	font-weight: bold;
	font-family: 'Press Start 2P', cursive;
	width: 100%;
	min-height: 55px;
	text-align: center;
	transition: all 0.5s;
		-webkit-transition: all 0.5s;
		-moz-transition: all 0.5s;
	line-height: 1.4;
	position: relative;
/*	display: flex;*/
    align-items: center;
    font-size: 105%;
}
.nyan-cat {
	margin-top: 0;
	z-index: 111;
	position: absolute;
}
.nyan-img {
	width: 400px;
	position: absolute;
}
.animation-container {
	width: 100%;
	position: absolute;
}
.sign{
	text-align: right;
	color: white;
	font-size: 70%;
	padding: 1% 1% 0 1%;
}
.sign2{
	text-align: right;
	color:  gray;
	font-size: 60%;
	padding: 0.5% 1% 1% 1%;
}
/*=============================================Media Queries============================================================*/
@media (max-width: 1200px) {
		.caption {
		min-height: 70px;
	}
}


@media (max-width: 800px) {
	.game-block{
		float: left;
		display: inline;
		width: 42%;
		margin: 1% 3% 3% 3%;
	}
	.absolute > p {
		font-size:  2.5vw;
	}
	.caption {
		min-height: 70px;
	}
}

@media (max-width: 600px) {
	.header-content > img {
		width: 7%;
	}
	img.nono-sm {
		display: none;
		width: 100%;
	}
	img#logo, img#logo3, img#logo2 {
		width: 15%;
	}
}

@media (max-width: 400px) {
	.game-block{
		float: left;
		display: block;
		width: 96%;
		margin: 2%;
	}
}
