/*
Theme Name: TGE
Description: Theme for thegameengine.org
Author: Oskar Separovic
Author URI: http://thegameengine.org/contact/
Version: 0.6.2
*/

@import url("fonts/league_gothic/stylesheet.css");

html {
	height: 100%;
}
body {
	display: block;
	margin:0;
}
h1, h2, h3 {
	font-family: LeagueGothicRegular;
	font-weight: normal;
}
h1 {
	margin: 0px;
}
h1 a, h2 a, h3 a {
	color: #414042;
	font-weight: normal;
}
h1 a:hover, h2 a:hover, h3 a:hover {
	color: #414042;
	text-decoration:none;
}
body {
	font-family: arial;
	width: 100%;
	height: 100%;
	word-wrap:break-word;
	color: #404040;
	font-size: 14px;
	line-height: 1.5em;
	-webkit-font-smoothing: antialiased;
	background: #efefef;
	text-rendering: optimizeLegibility;
}
code, pre {
	font-family: consolas, monospace;
}
code {
	display:inline-block;
	background-color: #eeeeee;
	padding: 0px 5px 0px 4px;
	border-left:1px solid #D1D3D4;
	word-break: break-word;
}
pre {
	-moz-box-sizing: border-box;
	-moz-border-radius: 2px;
	-moz-box-shadow: 0 1px 0 #fff, inset 0 1px 1px rgba(0,0,0,0.2);
	-webkit-border-radius: 2px;
	-webkit-box-shadow: 0 1px 0 #fff, inset 0 1px 1px rgba(0,0,0,0.2);
	-webkit-box-sizing: border-box;
	box-shadow: 0 1px 0 #fff, inset 0 1px 1px rgba(0,0,0,0.2);
	box-sizing: border-box;
	background: #f4f4f4;
	border: 1px solid #aaa;
	border-bottom-color: #ccc;
	border-radius: 2px;
	height: auto;
	margin: 0;
	outline: none;
	padding: 6px 10px;
	vertical-align: middle;
	width: 100%;
}
ol li, ul li{
	margin: 0px 0px 12px 0px;
}

li ul li, li ol li {
	margin: 0px 0px 0px 0px;
}

ul, ol{
	margin: 0px 10px 12px 30px;
	padding:0px;
}
a {
	padding: .2em 0 .1em;
	font-weight: 400;
	text-decoration: none;
}
a:hover {
	text-decoration:underline;
}
a img.alignnone {
	margin:0px;
}
td {
	padding:0px;
}
table {
	margin:0px;
}
img {
	padding: 5px 0px 5px 0px;
	border: 0;
	height: auto;
	max-width: 100%;
	vertical-align: middle;
}
iframe {
	max-width: 100%;
}

/** Theme Colors **/
body { background:#efefef; }

.comment-content a { color:#92D3CE; }
.admin-highlight { color:#92D3CE; }
a { color:#92D3CE; }
.menu a:hover { color:#92D3CE; }
.tge-widget:nth-of-type(3n+1) { background-color:#92D3CE; }

.menu .current_page_item a { box-shadow: 2px 2px 0px #CB7E63; }
.post-entry a { color:#CB7E63; }
.comment-content a { color:#CB7E63; }
.tge-widget:nth-of-type(3n+2) { background-color:#CB7E63; }

.post-entry a { background-color:#F8EFEA; }
.comment-content a { background-color:#F8EFEA; }
/** End of Theme Colors **/

/** Forms **/
input {
	max-width:100%;
}
input[type="text"], input[type="email"] {
	-webkit-border-radius: 2px;
	-webkit-box-shadow: 0 1px 0 #fff, inset 0 1px 1px rgba(0,0,0,0.2);
	-moz-box-shadow: 0 1px 0 #fff, inset 0 1px 1px rgba(0,0,0,0.2);
	box-shadow: 0 1px 0 #fff, inset 0 1px 1px rgba(0,0,0,0.2);
	box-sizing: border-box;
	border: 1px solid #aaa;
	border-bottom-color: #ccc;
	border-radius: 2px;
	margin: 0;
	outline: none;
	padding: 6px 8px;
	vertical-align: middle;
}
input[type='submit'] {
	-moz-border-radius: 2px;
	-moz-box-shadow: 0pt -1px 0pt rgba(0, 0, 0, 0.075) inset, 0pt 1px 0pt rgba(255, 255, 255, 0.3) inset, 0pt 1px 2px rgba(0, 0, 0, 0.1);
	-webkit-box-shadow: 0pt -1px 0pt rgba(0, 0, 0, 0.075) inset, 0pt 1px 0pt rgba(255, 255, 255, 0.3) inset, 0pt 1px 2px rgba(0, 0, 0, 0.1);
	-webkit-border-radius: 2px;
	background-color: #cdc9c9;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#f6f5f5), to(#cdc9c9));
	background-image: -webkit-linear-gradient(top, #f6f5f5, #cdc9c9);
	background-image: -moz-linear-gradient(top, #f6f5f5, #cdc9c9);
	background-image: -ms-linear-gradient(top, #f6f5f5, #cdc9c9);
	background-image: -o-linear-gradient(top, #f6f5f5, #cdc9c9);
	background-image: linear-gradient(top, #f6f5f5, #cdc9c9);
	box-shadow: 0pt -1px 0pt rgba(0, 0, 0, 0.075) inset, 0pt 1px 0pt rgba(255, 255, 255, 0.3) inset, 0pt 1px 2px rgba(0, 0, 0, 0.1);
	border: 1px solid #aca6a6;
	border-radius: 2px;
	color: #444;
	cursor: pointer;
	display: inline-block;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#f6f5f5, endColorstr=#cdc9c9);
	font-size: 12px;
	font-weight: 700;
	margin: 0;
	padding: 6px 10px;
	text-decoration: none;
	text-shadow: 0 1px 0 #fff;
	vertical-align: middle;
	white-space: nowrap;
}
label.screen-reader-text {
	display: none;
}
textarea {
	max-width:100%;
}
/** End of Forms **/

#header {
	position:relative;
	margin:20px;
}
#container {
	margin: 0 auto;
	max-width: 960px;
	padding: 0px 25px;
}
#footer {
	clear: both;
	margin: 0 auto;
	max-width: 960px;
	padding: 0 25px 0 25px;
	font-size: 11px;
	line-height: 1.5em;
}
#wrapper {
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	background-color: transparent;
	border: 0px;
	border-radius: 0px;
	clear: both;
	margin: 20px auto 20px auto;
	padding: 0 20px 20px 20px;
	position: relative;
}
#content {
	display:block;
	margin-top: 0px;
	margin-right: 2.5%;
	margin-bottom: 20px;
	width: 67%;
	float: left;
}
#cat-header {
    display:block;
    background-color: #414042;
    font-family: monospace;
    padding: 4px 6px 4px 6px;
    margin-bottom: 8px;
    border-left:1px solid #D1D3D4;
    color:white;
    line-height:20px;
}

.clearfix:after, #container:after, .widget-wrapper:after {
	clear: both;
	content: '\0020';
	display: block;
	height: 0;
	max-height: 0;
	overflow: hidden;
	visibility: hidden;
}

/** Widgets **/
.previous_page, .next_page, .top {
	display:inline-block;
	width:32%;
}
.tge-widget {
	background-color:#414042;
	padding: 15px 0px 15px 15px;
	margin-bottom: 20px;
}
#widgets {
	margin-top: 0px;
	margin-bottom:0px;
	padding:0px;
	display:block;
	font-family: monospace;
	color:white;
	font-size:12px;
	width: 30.5%;
	float: left;
}

#widgets ul {
	margin-left: 5px;
}

#widgets ul li {
	margin:0px 0px 0px 10px;
	list-style-type: square;
}
#widgets #searchform, #widgets .textwidget, #widgets .widget-title, #widgets ul {
	border:0px;
	background-color:transparent;
}
#widgets #s, #s {
	width: 68%;
}

#widgets a {
	padding:0px;
}

#widgets a:hover {
	text-decoration:underline;
}
.widget-title {
	font-size: 22px;
	font-family: LeagueGothicRegular;
	font-weight: normal;
	text-transform: uppercase;
	display: block;
	line-height: 23px;
	margin: 0;
	padding: 0 0 20px 0;
	text-align: left;
}
.widget-content {
	background-color:#414042;
	padding: 4px 10px 4px;
}
.interpost-widget {
	margin-bottom: 20px;
}
.interpost-widget:last-of-type {
	margin-bottom:0px;
}
/* End of Widgets */

/** Pages **/
.type-page {
	background-color: #ffffff;
	margin-bottom: 15px;
	padding: 15px;
}

/** Posts **/
.post {
	background-color: #ffffff;
	margin-bottom: 15px;
	padding: 15px;
}
.post h1 {
	margin-bottom:10px;
}
.post h1 a:hover {
	text-decoration:underline;
}
.post-plug {
    float: right;
}
.post-entry {
    line-height: 22px;
    background-color:white;
}
.post-entry a {
	padding-left: 2px;
	padding-right: 2px;
	padding-top: 1px;
	padding-bottom:1px;
	margin:0px;
}
.post-meta {
	color:#414042;
	margin: 10px 0px 0px 0px;
	clear: both;
	text-transform: uppercase;
	font-family: LeagueGothicRegular;
	font-weight: normal;
	font-size: 14px;
	letter-spacing: 1px;
}

/* Menu */
#logo {
	float: left;
	width: 32%;
	margin: 0 2% 0 0;
}
#logo img {
	margin:0;
	padding:0;
}
.menu, .menu ul {
	display: block;
	list-style-type: none;
	margin: 0;
	padding: 0;
}
.menu {
	float: left;
	width: 66%;
	vertical-align: bottom;
	text-align:center;
	position:absolute;
	bottom:0;
	right:0;
}
.menu li {
	border: 0;
	display: block;
	float: left;
	margin: 2% 2% 0 0;
	padding: 0;
	position: relative;
	z-index: 5;
}
.menu li:last-of-type {
	margin-right:0;
	margin-bottom:0;
}
.menu a {
	height: auto;
	line-height: normal;
	font-size: 26px;
	padding: 4px 8px 4px 8px;
	border: 0px;
	text-transform: uppercase;
	font-weight: normal;
	font-family: LeagueGothicRegular;
	background-color: #414042;
	color: #fff;
	cursor: pointer;
	display: block;
	text-decoration:none;
	text-shadow: 0 1px 1px #242424;
	margin:0;
}
.menu a:hover {
	text-decoration:none;
	background-image:none;
	background-color: #414042;
}
/** End of Menu **/

/*for standard tutorial table in directory*/
#directory_standard {
    padding-top:10px;
}
#directory_standard:before{
    content: "";
    display: table;
}
#directory_standard:after {
    content: "";
    display: table;
    clear: both;
}
.directoryItem {
	float: left;
	margin: 0% 1.5% 3% 1.5%;
	width: 22%;
	background-color: #F3F3F3;
	text-align: center;
	border-radius: 2px;
	box-shadow: 0px 4px 8px rgba(34, 25, 25, 0.4);
	-webkit-box-shadow: 0px 4px 8px rgba(34, 25, 25, 0.4);
	padding-top: 8px;
}
.directoryItem:hover {
    box-shadow: 0px 4px 8px #217E76;
    -webkit-box-shadow: 0px 4px 8px #217E76;
}
.directoryItem a img.alignnone {
	margin:20px 0px 0px 0px;
}
.directoryItem a {
	color: #636363;
	padding: 4px 0px 0px 0px;
	background-color:transparent;
	width: 100%;
	height: 100%;
	display: inline-block;
	font-size: 18px;
	font-family: LeagueGothicRegular;
}
.directoryItemTitle {
	color: #636363;
	padding: 4px 0px 0px 0px;
	background-color: transparent;
	width: 100%;
	height: 100%;
	display: inline-block;
	font-size: 18px;
	font-family: LeagueGothicRegular;
}
.submit_question, .copyright_notice, .donate, .twitter {
	background-color: #414042;
	padding: 5px;
	color: #E7E7E7;
	font-family: "Courier";
}

.read-more{
	font-weight:normal;
}

/** Comments **/
.commentlist {
	padding: 15px 15px 0px 15px;
	background-color: white;
	border-bottom: 1px dotted #eee;
	list-style: none;
	margin: 0 0 10px 0;
}

.commentlist .children {
	padding: 0px;
	margin-right:0px;
	margin-left: 20px;
}

.commentlist li {
	background-color: transparent;
}

.comment {
	margin-bottom: 10px;
}

article.comment {
	background-color:#F8F8F8;
	padding:10px;
}

.comment-meta {
	margin-bottom:4px;
}

.comment-author {
	font-size: 16px !important;
	font-weight: bold;
}

.comment-author a {
	font-weight: bold;
}

.comment-time {
	font-size: 12px;
	color: grey;
	line-height: 12px;
}

.comment-content a {
	padding-left: 2px;
	padding-right: 2px;
	padding-top: 1px;
	padding-bottom: 1px;
	margin: 0px;
}

.reply {
	margin:0px;
	text-align:right;
	text-transform:uppercase;
}

.reply a {
	background-color: #3e3e3f;
	color: white;
	padding: 4px;
	font-family: leaguegothicregular;
	font-size: 16px;
	letter-spacing: 0.1em;
}

#respond {
	margin: -10px 0px 10px 0px;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	background-color: #eaeaea;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eaeaea));
	background-image: -webkit-linear-gradient(top, #ffffff, #eaeaea);
	background-image: -moz-linear-gradient(top, #ffffff, #eaeaea);
	background-image: -ms-linear-gradient(top, #ffffff, #eaeaea);
	background-image: -o-linear-gradient(top, #ffffff, #eaeaea);
	background-image: linear-gradient(top, #ffffff, #eaeaea);
	border: 1px solid #ccc;
	border-bottom-color: #aaa;
	border-radius: 2px;
	clear: both;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ffffff, endColorstr=#eaeaea);
	padding: 10px 20px 50px;
}
#respond h3 {
	font-weight:bold;
	font-family:arial;
}
/* End of Comments */

/** previous next **/
.navigation {
	background-color: #414042;
	color:white;
	display: block;
	font-size: 13px;
	height: 28px;
	line-height: 28px;
	margin: 20px 0;
	padding: 0 5px;
	font-family: monospace;
}

.navigation a {
	padding: 0.4em 0.4em;
}

.previous_page {
	text-align:left;
}

.top {
	text-align:center;
}

.next_page {
	text-align:right;
}
/** End of previous next **/

/** Grid **/
.grid {
	float: left;
}
.col-620 {
	width: 67%;
}
.col-300 {
	width: 31.914893617021%;
}
/** End of Grid **/

/* Misc */
.copyright, .scroll-top, .powered {
	width:33%;
	float:left;
}
.copyright {
	text-align: left;
}
.scroll-top {
	text-align: center;
}
.powered {
	text-align:right;
}
.commentlist .bypostauthor > article {
	border-left: solid 3px #CB7E63;
}

/* End of Misc */

/* Media Queries */
@media screen and (max-width: 980px) {
	#content, #widgets {
		width:100%;
	}
	.home #widgets {
		margin-top:0px;
	}
}
@media screen and (max-width: 780px) {
    .directoryItem {
        width:21.5%;
    }
    .directoryItem a {
        font-size: 16px;
    }
}

@media screen and (max-width: 650px) {
	.interpost-ad {
		display:none;
	}
    #header #logo, #logo img {
        float:none;
    }
    #header {
        text-align:center;
    }
    #logo {
        width:100%;
    }
	.menu {
		display:inline-block;
		margin-top: 24px;
		float:none;
		width:100%;
		position:relative;
	}
	.menu:after {
		display:inline-block;
	}
	#menu-top-nav {
		display:inline-block;
		margin-left: auto;
		margin-right: auto;
	}
	.tinynav {
		display: none;
	}
	.directoryItem {
		width:30%;
	}
}

@media screen and (max-width: 480px) {
    #header #logo, #logo img {
        float:none;
    }
	#header {
		text-align:center;
		margin:auto;
		padding: 0% 3% 3% 3% !important;
	}
    #container {
        padding:0px;
    }
    #logo {
        width:100%;
    }
	.menu li {
		width:100%;
	}
    #menu-top-nav {
        display:inline-block;
        margin-left: auto;
        margin-right: auto;
    }
    #wrapper {
        padding: 0% 3% 3% 3% !important; /* .home wrapper has no padding at this resolution... */
    }
	
	.directoryItem {
		width:47%;
	}
	.directoryItem a {
        font-size: 13px
    }
}
@media screen and (max-width: 300px) {
	.directoryItem {
		width:97%;
	}
	.directoryItem a {
		font-size: 12px;
	}
}