/*
Theme Name: Chris Cantwell
Theme URI: https://www.chriscantwell.co.uk
Description: Theme for personal website
Version: 1
Author: Chris Cantwell
Author URI: https://www.chriscantwell.co.uk
*/

/*
Colors: 8CC739 (green)
		085DAD (dark blue)
		21BEDE (light blue)
		FFFFFF (white)
		ADB6B5 (grey)
*/

* {
	-moz-box-sizing: border-box;
	margin: 0px;
	padding: 0px;
}

/* main body tag */
body {
	background-color: #f5f5f5;
	min-height: 100%
}

textarea {
	border: 1px solid #eee;
}

/* fixed width section */
#page {
	max-width: 1000px;
	/*min-width: 670px;*/
	/*width: 1000px;*/
	margin: 0 auto;
	font-family: Ubuntu,sans-serif;
}

/* ========== main header ========== */
.header-main {
	min-height: 80px;
	padding: 20px;
	background: #039;
}

.site-title a {
	color: #eee;
	text-decoration: none;
}

.site-subtitle {
	color: #999;
	font-size: 11pt;
	letter-spacing: 1px;
}


/* =========== search box =========== */
#search-box {
	height: 24px;
	margin: 3px;
	text-align: right;
	float: right;
	width: auto;
	max-width: 300px;
}
#s {
	background: #ddd;
	border: 1px solid #333;
	color: #999999;
	font-family: Arial, sans-serif;
	font-size: 13px;
	margin: 0 -26px 0 0;
	padding: 3px 3px 3px 3px;
	width: 200px;
}
/*@media screen
		and (max-width: 599px) {
	#search-box {
		float: left;
	}
	#s {
		width: 200px;
		
	}
}
@media screen 
		and (min-width: 600px)
		and (max-width: 749px) {
	#s {
		width: 150px;
	}
}*/
#s:focus {
	background: #ddd;
}
#searchsubmit {
	text-indent: -9999px;
	background-image: url('images/searchsubmit.png');
	border: medium none;
	height: 19px;
	width: 20px;
}


/* =========== navigation bar =========== */
nav {
	background: #005;
	width: 100%;
	height: 30px;
}
/*@media screen 
		and (min-width: 410px)
		and (max-width: 599px) {
	nav {
		height: 60px;
	}
}
@media screen 
		and (max-width: 409px) {
	nav {
		height: 90px;
	}
}*/
.menu-main-menu-container {
	float: left;
}
.nav-menu{
	margin-left: 15px;
    list-style:none;
    font-weight:bold;
	font-size: 10pt;
    width:100%;
    height: 30px;
    position:relative;
    z-index:5;
}
.nav-menu li{
	margin-right: 20px;
    float:left;
    min-width: 50px;
    position:relative;
    text-align: left;
}
.nav-menu a{
    display:block;
    padding:5px;
    color:#fff;
    /*background:#333;*/
    text-decoration:none;
}
/*
.nav-menu a:hover {
    color:#fff;
    background:#000099;
}
*/
.nav-menu ul{
    background:#fff;
    background:rgba(255,255,255,0); 
    list-style:none;
    position:absolute;
    left:-9999px;
	box-shadow: 3px 3px 5px #888888;
}
.nav-menu ul li{
    float:none;
    text-align: left;
	margin-right: 0px;
}
.nav-menu ul a{
    white-space:nowrap; 
}
.nav-menu li:hover ul{ 
    left:0; 
}
.nav-menu li:hover a{ 
	color: #ff0;
}
.nav-menu li:hover ul a{ 
	color: #fff;
	background: #000055;
    text-decoration:none;
}
.nav-menu li:hover ul li a:hover { 
	color: #ff0;
}

.fade {
	width: 100%;
	height: 5px;
	display: table;
}
#fade-sidebar {
	display: table-cell;
	width: 30%;
	background: #005;
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#000050), color-stop(100%,#eeeeee));
	background: -webkit-linear-gradient(#005, #eee); /* For Safari */
	background: -o-linear-gradient(#005, #eee); /* For Opera 11.1 to 12.0 */
	background: -moz-linear-gradient(#005, #eee); /* For Firefox 3.6 to 15 */
	background: linear-gradient(#005, #eee); /* Standard syntax */
}
#fade-main {
	display:table-cell;
	width:70%;
	background: #005;
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#000050), color-stop(100%,#ffffff));
	background: -webkit-linear-gradient(#005, white); /* For Safari */
	background: -o-linear-gradient(#005, white); /* For Opera 11.1 to 12.0 */
	background: -moz-linear-gradient(#005, white); /* For Firefox 3.6 to 15 */
	background: linear-gradient(#005, white); /* Standard syntax */
}
#fade-top {
	display:table-cell;
	background: #005;
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#1040b0), color-stop(100%,#000050));
	background: -webkit-linear-gradient(#14b, #005); /* For Safari */
	background: -o-linear-gradient(#14b, #005); /* For Opera 11.1 to 12.0 */
	background: -moz-linear-gradient(#14b, #005); /* For Firefox 3.6 to 15 */
	background: linear-gradient(#14b, #005); /* Standard syntax */
}
#fade-full-width {
	display:table-cell;
	background: #005;
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#1040b0), color-stop(100%,#000050));
	background: -webkit-linear-gradient(#005, white); /* For Safari */
	background: -o-linear-gradient(#005, white); /* For Opera 11.1 to 12.0 */
	background: -moz-linear-gradient(#005, white); /* For Firefox 3.6 to 15 */
	background: linear-gradient(#005, white); /* Standard syntax */
}

/* =========== main page ============= */
#main {
	background-color: #fff;
	border-left-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-width: 1px;
	border-color: #ccc;
	display: table;
	width: 100%;
}
#main a {
	color: #005;
	text-decoration: none;
	font-weight: bold;
}
#main a:hover {
	color: #009;
}

/* Side bar */
.sidebar {
	display: table-cell;
	width: 30%;
	padding: 0px 20px 10px 20px;
	background: #eee;
	border: none #ccc 1px;
	border-right-style: solid;
	font-size: 9pt;
	min-width: 150px;
}
@media screen
	and (max-width: 599px) {
	.sidebar {
		display: none;
	}
}
.sidebar ul {
	list-style: none;
}
.sidebar li {
	margin-top: 5px;
	margin-bottom: 10px;
}
.sidebar h2 {
	margin-top: 15px;
	font-size: 14pt;
	color: #000055;
	border: none #777 1px;
	border-bottom-style: solid;
}


/* default settings for site-content */
.site-content {
	display: table-cell;
	width: 70%;
	padding: 20px;
}
.site-content h1 {
	font-size: 16pt;
}
.site-content h2 {
	font-size: 14pt;
}
.site-content h3 {
	font-size: 12pt;
}


/* ========== Page/template specific styles  ========= */
/* feature bar on home page */
.featurebar {
	width: 100%;
	height: 200px;
	border: solid #eee 1px;
	display: table;
	margin-left: auto;
	margin-right: auto;
}
.featurebar > .item {
	display: table-cell;
	width: 25%;
	padding: 10px;
	text-align: center;
}
.featurebar > .item > .text {
	margin: 10px;
	font-size: 14pt;
	color: #333;
	font-weight: bold;
}
.featurebar > .item > .image {
	width: 192;
	height: 152px;
	border: solid #f00 1px;
	margin-left: auto;
	margin-right: auto;
}

/* category-specific post list */
.fl p {
	margin-left: 10px;
	font-size: 10pt;
}
.fl h2 {
	font-size: 12pt;
}
.fl .post_date {
	font-size: 10pt;
}
.post_content {
	padding-bottom: 10px;
}
.view_all_link {
	font-size: 10pt;
	text-align: right;
}

/* entries */
.entry-header {
}
.entry-title {
    font-size: 16pt;
}
.entry-date {
	color: #777;
}
.entry-content {
	padding-bottom: 15px;
	line-height: 175%;
	text-align: left;
	color: #222;
	font-size: 10pt;
}
.entry-content p {
	margin-top: 0.5em;
}
.entry-content ul {
	list-style-position: inside;
	margin-top: 0.5em;
}
.entry-content li {
	margin-left: 1em;
}
.entry-content h1, .category-entry h1 {
	margin-top: 1.0em;
    font-size: 14pt;
}
.entry-content h2, .category-entry h2 {
	margin-top: 0.8em;
    font-size: 12pt;
}
.entry-content h3, .cagetory-entry h3{
	margin-top: 0.5em;
    font-size: 11pt;
}
.entry-content fn {
    font-size: 8pt;
}
.syntaxhighlighter {
    padding: 10px;
    border: solid #ddd 1px;
}
.syntaxhighlighter .line .content {
	padding-left: 2.0em !important;
	text-indent: -1.5em;
}
.entry-modified-date {
	margin-top: 20px;
	text-align: center;
	color: #ddd;
	font-size: 8pt;
}

/* =============== Comments ============ */
.comments-area {
	margin-top: 30px;
}
.comments-title {
	color: #555;
}
.comment-list {
	margin-left: 20px;
}
.comment {
	margin-top: 5px;
}
.comment-author img {
	float: left;
	margin-right: 5px;
}
.comment-form-comment {
	vertical-align: top;
}
.form-allowed-tags {
	font-size: 8pt;
}
.comment-form-comment #comment {
	width: 100%;
	height: 60px;
}

/* Homepage widget area */
.homepage-widget-area {
	font-size: 10pt;
}
.homepage-widget-area ul {
	list-style: none;
}
.homepage-widget-area li {
	margin-top: 5px;
}
.homepage-widget-area h2 {
	margin-top: 15px;
	font-size: 14pt;
	color: #000055;
	border: none #777 1px;
	border-bottom-style: solid;
}
.contact-area h2 {
	margin-top: 1.0em;
}
.contact-area .table {
	display: table;
	margin-top: 10px;
	font-size: 10pt;
}
.contact-area .label {
	display: table-cell;
	width: 150px;
	font-weight: bold;
	vertical-align: top;
}
.content-area .value {
	display: table-cell;
}
.profile-page {
	width: 100%;
}
.profile-link {
	display: inline;
}
.profile-link img {
	width: 48px;
	height: 48px;
}

/* =============== Footer ============== */
footer {
	padding-top:15px;
	padding-bottom:15px;
	background: #f5f5f5;
	text-align: center;
	font-size: 9pt;
	color: #999;
	clear: both;
}

.footer-links {
	margin-bottom: 10px;
}

.footer-links a {
	color: #777;
	margin: 0px 0px 20px 20px;
}

.search-entry-header {
	font-size: 11pt;
	margin-top: 10px;
}

.search-entry-content {
	font-size: 9pt;
	margin-left: 30px;
	color: #777;
}

.portrait-photo {
	width: 180px;
	height: auto;
}
@media screen
	and (max-width: 409px) {
	.portrait-photo {
		width: 120px;
	}
}
@media screen
	and (min-width: 410px)
	and (max-width: 599px) {
	.portrait-photo {
		width: 150px;
	}
}
