.container {
	margin: auto;
	text-align:center;
	align-content: center;
	font-family:'Raleway','Noto Sans KR', sans-serif;
}

.container > h2 {
	clear: both;
	margin: 0;
	padding: 4em 1% 0;
	color: #484B54;
	font-weight: 800;
	font-size: 1.5em;
	max-width:1200px;
}

.container h2:first-of-type{padding-top: 0em}}

/* Each Game Info */
.games_modal{
	display:none;
	z-index:999;
	color:#fff;
	top:1em;
}

.games_modal iframe.preview{width:900px height:510px;}
.games_modal img:first-child{  /* Each Game's logo */
	align-content: center;
	display: block;
	max-width:500px;margin-bottom:1.5em;
	height:auto;
}
.games_modal h1{font-size:3em;color:#eee; font-family:'Raleway','Noto Sans KR', sans-serif;	font-weight:400;text-align: center;}
.games_modal h2{color:#eee;}
.games_modal h3{color:#eee; font-size:1.5em;}
.games_modal p{
	color:#aaa;
	font-size:1.2em;
	font-family:'Roboto','Noto Sans KR', sans-serif;
	line-height: 2em;
	font-weight: 400;
	text-align: left;
	margin:20px auto ;max-width:900px; 
}
.games_modal .center{
	text-align: center !important;
}
.games_modal .visit{
	display: inline-block;
	margin-left:30px;
	padding-top:40px;
	height:130px;
	width:380px;
	text-align: center;
	line-height: 40px;
	font-family:'Raleway','Noto Sans KR', sans-serif;
	font-size:1.3em;
	font-weight: 700;
	border:1px solid rgba(223,223,223,.2);
	background: rgba(0,0,0,0.3);
	color:#eee;
	cursor:pointer;
	transition: all 0.2s;
}
.games_modal .visit > span, .games_modal .visit > table{ display:none; text-align:center}
.games_modal .visit  span i {display:block;}
.games_modal .visit  span a{ color:#fff; text-align:center;}
.games_modal .visit table{width:100%;  width:380px; border:0; margin-top:-42px}
.games_modal .visit td {border-right:1px solid #ddd; text-align:center; width:190px; height:167px}
.games_modal .visit td:last-child{ border:0px}
.games_modal a {text-decoration:none}
.games_modal .visit: .visit_hide{padding-top:40px}
.games_modal .visit:hover{	
	background: rgba(0,0,0,0.6);
	opacity: 1;
	transition: all 0.3s;
	border:1px solid #ddd;
}
.games_modal .visit:hover > span{display:inline-block}
.games_modal .visit:hover > table{display:inline-block}
.games_modal .visit:hover > .visit_hide{display:none;}
.games_modal a i{font-size:2.5em;line-height: 50px;}

.games_modal .block, .games_modal .block-a{display:inline-block;padding:20px; max-width: 900px; text-align:center; clear:both; transition: 0.3s}
.games_modal .block:hover{background:rgba(0,0,0,0.6)}

.games_modal .block img{max-width:100%;}
.games_modal .block img.half{width:50%;}
.games_modal .block:first-child{padding-top:0px;}
.games_modal .left{float:left;}
.games_modal .right{float:right;}
.games_modal .spec {display:table; color:#eee; font-size:1em; width:390px;}

.games_modal .tr {display:table-row; height:43px;}
.games_modal .td{display:table-cell; vertical-align: middle; border:1px solid rgba(223,223,223,.2); padding:5px}
.games_modal .td:first-of-type{width:35%; font-weight:700; color:#526bbe}
.games_modal .td:last-of-type{width:65%;}

#viewimg, #viewimg-x{display:none;cursor:pointer;position:fixed;display:inline-block;right:110px; bottom:40px;width:50px; height:50px; border:1px solid #fff; border-radius:50%; 
background:rgba(255,255,255,0.7);color:#333;font-size:1.5em; text-align:center;z-index:9999;box-shadow:0px 1px 1px rgba(0,0,0,.2); transition:0.2s ease-out; line-height:50px}
#viewimg:hover, #viewimg-x:hover{background:rgba(255,255,255,1);} #viewimg:hover > i, #viewimg-x:hover > i{transform:scale(1.2,1.2); color:#222; transition:0.2s ease-in}
#viewimg-x{display:none;}
#undo{ 
  position: fixed;
  left:50%;
  margin-top:1em;
  margin-left:-700px;
  font-size:2em;
  font-weight: 400;
  border:5px solid #fff;
  padding: 0.3em 2.3em;
  z-index: 999;
  transition: 0.5s;
  cursor:pointer;
  display: none;
  			 transform:translateX(-50%);
  -webkit-transform:translateX(-50%);
}
#undo:before{ 
  content: "\f0e2";  
  font-family: 'FontAwesome'; 
  color:#fff;  transition: 1s;
}

#undo:hover, #undo:hover:before{
  color:#222;
}
#undo:hover{
  background: #eee;  transition: 0.5s;
}


.gameinfo{
	display: none;
	opacity: 0;
	transition:opacity .1s;
}

.grid {
	position: flex-box;
	clear: both;
	margin:40px auto 50px;
	list-style: none;
	text-align: center;
	align-items: center;
	width:100%;
	max-width: 1200px;
	
}

.grid figure {
	position: relative;
	display: inline-block;
	overflow: hidden;
	margin: 0.6%;
	min-width: 320px;
	max-width: 30%;
	height: 300px;
	background: #3085a3;
	cursor: pointer;
}

.grid figure > img {
	position: relative;
	display: block;
	min-height: 100%;
	max-width: 100%;
	opacity: 0.8;

}

.grid figure figcaption {
	font-family:'Raleway','Noto Sans KR', sans-serif;
	padding: 0;
	color: #fff;
	font-size: 1.25em;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	
}

.grid figure figcaption::before,
.grid figure figcaption::after {
	pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {
	z-index: 1000;
	text-indent: 200%;
	white-space: nowrap;
	font-size: 0;
	opacity: 0;
}

.grid figure figcaption > div{	margin-left:1.5em }

.grid img.type{
	   float:right;
	   z-index:999;
}
.grid figure h2 {
	word-spacing: -0.15em;
	font-weight: 300;
}

.grid figure h2 span {
	font-weight: 700;
}

.grid figure h2,
.grid figure p {
	margin: 0;
}

.grid figure p {
	letter-spacing: 1px;
	font-size: 68.5%;
}

figure.grid-style {
	width:inherit;
	background: #2f3238;
}

figure.inactive{
	width:inherit;
	cursor:default;
	background: #2f3238;
}

figure.grid-style > img {
	max-width: none;
	width: -webkit-calc(100% + 50px);
	width: calc(100% + 50px);
	opacity: 1;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(-40px,0, 0);
	transform: translate3d(-40px,0,0);
}

figure.grid-style figcaption {
	text-align: left;
}

figure.grid-style h2 {
	position: relative;
	padding: 2em 1em 1em;
}

figure.grid-style p {
	display: inline-block;
	margin: 0 0 0.25em;
	padding: 0.3em .3em;
	background: rgba(255,255,255,0.9);
	color: #2f3238;
	text-transform: none;
	font-weight: 500;
	font-family:'Roboto','Noto Sans KR', sans-serif;
	font-size: 72%;
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
	transition: opacity 0.35s, transform 0.35s;
	-webkit-transform: translate3d(-360px,0,0);
	transform: translate3d(-360px,0,0);
}

figure.grid-style p:first-child {
	-webkit-transition-delay: 0.15s;
	transition-delay: 0.15s;
}

figure.grid-style p:nth-of-type(2) {
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
}

figure.grid-style p:nth-of-type(3) {
	-webkit-transition-delay: 0.05s;
	transition-delay: 0.05s;
}

figure.grid-style:hover p:first-child {
	-webkit-transition-delay: 0s;
	transition-delay: 0s;
}

figure.grid-style:hover p:nth-of-type(2) {
	-webkit-transition-delay: 0.05s;
	transition-delay: 0.05s;
}

figure.grid-style:hover p:nth-of-type(3) {
	-webkit-transition-delay: 0.1s;
	transition-delay: 0.1s;
}

figure.grid-style:hover img {
  -webkit-transform: translate3d(0,0,0);
	      transform: translate3d(0,0,0);
	      opacity:0.5;
}
figure.grid-style:hover p {
	opacity: 1;
	-webkit-transform: translate3d(0,0,0);
	transform: translate3d(0,0,0);
}
/* Media queries */
@media screen and (max-width: 1500px) {
#undo{  position:fixed;left:130px; margin-left:0;}
}
@media screen and (max-width: 700px) {
	.content {
		text-align: center;
	}
	.grid figure {
		display: inline-block;
		float: none;
		margin:0;
		width: 100%;max-width: 100%;
	}
	figure.inactive{display:none}
/*	.page_name{color:#eee; border-color:#eee; position:absolute !important; left:50%; margin-left:0; margin-top:-50px !important; transform:translateX(-50%); -webkit-transform:translateX(-50%); -moz-transform:translateX(-50%);}*/
	.games_modal a.visit{margin-left:0;}
	#viewimg{display:none; visibility:none; opacity:0}
	#scrollup{right:0; margin-right:-15px; bottom:0px; margin-bottom:-20px }
	#bg_white{background:#222}
	#bg_sky, #bg_flight{display:none}
    #undo{right:0px; left:initial;bottom:80px;width:50px; height:50px; border:1px solid #666; border-radius:50%; padding:0; background:rgba(100,100,100,0.9);color:#333;font-size:1.5em; text-align:center;z-index:9999;box-shadow:0px 1px 1px rgba(0,0,0,.2); transition:0.2s ease-out; line-height:50px}
	.half{width:100%}
	*{max-width:100%}
}