/*Start styling for the overlay*/

.game_overlay_wrapper {
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 2em;
	width: 100%;
	height: 100%;
	position:fixed;
	top:0;
	left:0;
	background-color: rgb(0,32,47);
	background-color: rgba(0,32,47,.9);
	border: none !important;
	z-index:10001;
	color: white;
}

.game_overlay_wrapper a {
	cursor: pointer;
	}
.game_header {
	position:relative;
	height: 10%;
	width: 100%;
	background-color: #00202f;
	}

.related_games {
	position: relative;
	width: 20%;
	display:inline-block;
	vertical-align: top;
	height: 100%;
	}
	
.ipad .related_games {
	width: 19%;
}

.related_games p {
	width: 75%;
	display: table;
	height: 100%;
	margin-bottom: 0em;
	}

.related_game {
	width: 85%;
	height: 23%;
	position: relative;
	display: block;
	margin: 3%;
	border: 5px solid rgb(255, 255, 255);
	border: 5px solid rgba(255, 255, 255, 0.5);
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	box-shadow: 1px 3px 6px -3px #000;
	-moz-box-shadow: 1px 3px 6px -3px #000;
	-webkit-box-shadow: 1px 3px 6px -3px #000;
	opacity: .75;
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	overflow: hidden;
	}
	
.ipad .related_game {
	margin: 5%;
}

.related_game:hover {
	opacity: 1;
	}
.related_game_link {
	width: 100%;
	
	}

.related_game img {
	width: 100%;
	height: auto;

	
	}

.related_game .game_title {
	width: 100%;
	font-size: .5em;
	height: 20%;
	line-height: 1em;
}
@media (max-height: 770px) {
	.related_game .game_title {
	font-size: .45em;
	}
}

.game_close {
	background: url('img/closebutton.png') no-repeat;
	position: absolute;
	right: 2%;
	top: 20%;
	width: 60px;
	height: 60px;
	font-size: 1em;
	vertical-align: middle;
	text-indent: -9999px;

	}

.ipad .game_close {
	top: 5%;
}
.game_close p {
	position: relative;
	top: 8px;
}	
.game_main {
	width: 100%;
	height: 80%;
	}

.game_window {
	width: 80%;
	height:100%;
	position: relative;
	display: inline-block;
	padding: 1%;
	box-sizing:border-box;
	-moz-box-sizing: border-box;
}
	
#game_inset {
	position:relative;
	margin: 0 auto;
	display:block;
	border: 10px solid white;
	box-sizing:border-box;
	-moz-box-sizing: border-box;
	overflow:hidden;
	
	}
	
#game_obj {
	width: 100%;
	height: 100%;
	}
	
#game_overlay {
	width:500px;
	height:500px;
	display:none;
	z-index:1001;
}



.game_footer {
	position:relative;
	height: 10%;
	width: 100%;
	background-color: #00202f;
	}
	
.game_overlay_title {
	position: absolute;
	width: 80%;
	margin: 1em auto 0em;
	height: 30%;
	bottom: 0;
	left: 10%;
	color:white;
	font-size:1em;
	font-weight: 700;
	}

.game_overlay_title:before {
	display:inline;
	content: "NOW PLAYING:";
	color: #5fcbff;
	font-size: .75em;
	margin-right: .25em;
	font-weight: 700;
	}
.game_description {
	position: relative;
	width: 80%;
	margin: 0 auto;
	height: 70%;
	color:white;
	font-size:.75em;
	line-height: 1em;
	}
	


.game_description:before {
	display:block;
	content: "PLAY TOGETHER:";
	color: #5fcbff;
	font-size: 1em;
	margin-bottom: .5em;
	padding-top:1em;
	font-weight: 700;
	box-sizing:border-box;
	-moz-box-sizing: border-box;
	}
	
.ipad .game_description:before {  
	padding-top:.25em;
}


@media (orientation: portrait) {
	.game_main {
		height: 45%;
	}
	
	.game_footer {
		height: 45%;
	}
}
/*End styling for the overlay*/