body {
	margin: 0;
	padding: 0;
	color: #666;
	font-family: Taviraj, "Helvetica Neue", Helvetica, Arial;
	font-size: 16px;
	line-height: 1.5em; 
	background-color: #ebe8e1;
	background-image: url(../images/games/templatemo_body.jpg);
	background-repeat: no-repeat;
	background-position: top center;
	background-attachment: fixed;
}

a, a:link, a:visited { color: #bfb839; font-weight: 400; text-decoration: underline; }
a:hover { color: #930; }

h1, h2 { color: #000; font-weight: normal;  }
h2 { font-size: 28px; margin: 0 0 10px; padding: 5px 0; border-bottom-style: dashed;}

#templatemo_wrapper {
	max-width: 850px;
	margin: 0 auto;
	padding: 0 10px;
}

#templatmeo_header {
	display: flex;
    align-items: center;
    justify-content: space-between;	
}

#templatemo_menu { position: relative; }
#templatemo_menu ul { padding: 0; margin: 0; list-style: none; }
#templatemo_menu ul li { margin: 0; padding: 0; display: inline-block }
#templatemo_menu ul li a {
	display: block;
	font-size: 18px;
	color: #333;	
	margin-left: 20px;
	text-decoration: none;
}
#templatemo_menu #toggle_menu {
	display: none;
}

@media (max-width: 643px) {
	#templatemo_menu ul {
		position: fixed;
		right: -10px;
		width: 160px;
		z-index: 100;
		display: flex;
		flex-direction: column;
		gap: 10px;
		margin-top: 5px;
	}

	#templatemo_menu ul li {
		background: #fff;
		display: block;
		box-shadow: -4px 6px 10px 4px rgba(0, 0, 0, .4);
		text-align: center;
		transform: translateX(160px);
		opacity: 0;
		transition: .5s;
		border-left: 10px solid #bfb839;
	}

	#templatemo_menu ul.open {
		position: absolute;
	}

	#templatemo_menu ul.open li {
		transform: translateX(0);
		opacity: 1;
	}

	#templatemo_menu ul li:nth-child(2) {
		transition-delay: .1s;
	}
	#templatemo_menu ul li:nth-child(3) {
		transition-delay: .2s;
	}
	#templatemo_menu ul li:nth-child(4) {
		transition-delay: .3s;
	}

	#templatemo_menu ul li a {
		margin: 10px;
	}

	#templatemo_menu #toggle_menu {
		display: inline-block;
		font-size: 32px;
		vertical-align: middle;
	}
}

#templatemo_menu ul li a:hover {
	color: #000;
	text-decoration: underline;
}

.content_box { position: relative; margin-bottom: 30px; padding: 70px; background: #fff }
.content_box date {
    display: block;
    font-size: 12px;	
}

.content_title {
	position: absolute;
	width: 106px;
	height:104px;
	top: -5px;
	left: -6px;
	background: url(../images/games/templatemo_content_title.png) no-repeat
}
.content_title span { transform: rotate(-45deg); display: block; font-weight: 700; }
.content_title span.escape { height: 30%; }
.content_title span.quiz { height: 20%; }
.content_title span.others { height: 35%; }
.content_description {
	margin: 40px 0 20px;
	position: relative;
	z-index: 10;
}

#content_catalogue {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	position: relative;
	z-index: 10;
}
#content_catalogue .game_content {
	width: calc(100% / 2 - 10px);
	box-shadow: inset 0 0 3px rgba(0, 0, 0, .2), 1px 1px 0 #fff;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

#content_catalogue .more_games {
	padding: 10px 0;
    border-bottom: 1px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    text-decoration: none;
    width: calc(100% / 2 - 10px);	
}

@media (max-width: 643px) {
	#content_catalogue {
		display: block;
	}

	#content_catalogue .game_content,
	#content_catalogue .more_games {
		width: 100%;
		margin-bottom: 20px;
	}
}

#content_catalogue .thumbnail {
	position: relative;
}

#content_catalogue .thumbnail img {
	width: 100%;
	object-fit: cover;
    aspect-ratio: 16 / 9;
    object-position: center top;	
}

#content_catalogue .thumbnail span {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: rgba(0, 0, 0, .5);
	padding: 10px;
	color: #fff;
	box-sizing: border-box;
}

#content_catalogue .game_introduction {
	padding: 10px;
}

.unity_frame {
	display: block;
    border: solid 1px;
    box-sizing: content-box;
	margin: 0 auto;
}
.unity_frame.escape, .unity_frame.other{
	width: 640px;
	height: 480px;
}

.unity_frame.quiz {
	width: 710px;
    height: 532px;
}

#walkthrough {
	margin-top: 20px;
	box-shadow: inset 0 0 3px rgba(0, 0, 0, .2), 1px 1px 0 #fff;
    border: 1px solid #ccc;	
}

#walkthrough_header {
	box-sizing: border-box;
    padding: 5px;
    background: #f5f5f5;	
	cursor: pointer;
}

#walkthrough_content {
	padding: 15px;
}

#walkthrough_content.hidden {
	display: none;
}

.youtube {
	position: relative;
    height: 0;
    overflow: hidden;
    padding: 0 0 56.25% 0;	
}
.youtube iframe {
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;	
}

a.gototop {
	display: block;
	position: absolute;
	width: 140px;
	height: 25px;
	padding: 65px 10px 0 0;
	text-align: right;
	font-size: 14px;
	bottom: 0;
	right: 0;
	color: #000;
	background: url(../images/games/templatemo_gototop.jpg) no-repeat;
	text-decoration: none;
}
a.gototop:hover { text-decoration: underline }
 
#templatemo_footer {
	text-align: center;
	margin-bottom: 20px;
}

.social_btn {
	display: flex;
	place-content: flex-end;
	gap: 2px;
	margin-bottom: 20px;
}
a.shortcut {
	color: #000;
	display: flex;
	align-items: center;
	flex-direction: column;
	width: 50px;
	height: 42px;
	padding-top: 8px;
	font-size: 9px;
	box-shadow: inset 0 0 3px rgba(0, 0, 0, .2), 1px 1px 0 #fff;
    border: 1px solid #ccc;
	text-decoration: none;
}
.shortcut i { font-size: 20px; }
.shortcut:hover { color: #2a6496; }