/* Default Elements */
body {
	margin: 0;
	font-family: "Lucida Grande", "Lucida Sans Unicode", 'Myriad Pro', Verdana, Helvetica, Arial, sans-serif;
	font-weight: normal;
	color: #d1d1d1;
	font-size: 14px;
	background: #9f0067 url("../../images/page-bg.png") 0 0 repeat-x;
}

/*
a {
	color: #535353;
	text-decoration: none;
	border-bottom: #535353 1px dotted;
}
*/

a:link, a:visited {
	text-decoration: underline;
	color: #fff;
}

a:hover, a:active, tr.hover td, tr.hover {
	text-decoration: none;
	color: #fff;
	background-color: #d07;
}

h1 {
	font-weight: bold;
	font-size: 3em;
	color: #e5e5e5;
	margin: 0;
	line-height: 120%;
	color: #f9f9f9;
}

h1 a {
	border: none;
}

h2 {
	font-weight: bold;
	font-size: 1.7em;
	color: #f9f9f9;
	
	margin-top: 10px;
	margin-bottom: 20px;
	line-height: 120%
}

h3 {
	font-weight: bold;
	font-size: 2.4em;
	color: #575755;
	margin-top: 10px;
	margin-bottom: 20px;
	line-height: 120%;
}




h4 {
	margin-bottom: 5px;
}

p {
	margin: 0 0 20px;
	line-height: 1.5em;
}

strong, #main .hilite {
	color: #222;
	background-color: #fd3;
}

em {
	color: #fff;
}

code, pre {
	font-family: Consolas, "Bitstream Vera Sans Mono", "Andale Mono", Monaco, "DejaVu Sans Mono", "Lucida Console", monospace;
}

code, pre.debug {
	color: #111;
	background-color: #ddd;
	padding: 0 5px;
}

pre {
	display: block;
	margin-top: 15px;
	margin-bottom: 15px;
	padding: 5px;
}

pre.debug {
	overflow: scroll;
}

/* The upper part of the page */
#page-top {
	position: relative;
	background: url("../../images/main_bg.png") top repeat-x;
}

	#wrapper-top {
		position: relative;
		width: 972px;
		width: 80%;
		margin: 0 auto;
		padding-bottom: 30px;
	}

	#top-primary {
		width: 100%;
	}

	#header {
/*
		width: 930px;
*/
		min-height: 160px;
	}

	#title {
/*
		width: 610px;
		margin-top: 35px;
		margin-bottom: 25px;
*/

		height: 100px;
		padding-top: 35px;
		margin-left: 50px;
		position: relative;
	}
	
		#title p {
		
		}

		#title img {
			border: none;
		}

		#title a,
		#title a:hover {
			text-decoration: none;
			border: none;
			background: none;
		}

	.tagline, 
	p.tagline {
		margin-left: 50px;
		font-size: 1.4em;
		margin-top: 0;
		color: #f9f9f9;
		margin-bottom: 0;
	}

	#navigation {
/*
		min-width: 650px;
*/
		overflow: visible;
/*
		display: block;
*/

/*
		z-index: 0;
*/
	}

		#navigation ul {
			margin-left: 20px;
				
			font-size: 0.9em;
			list-style: none;
			padding: 0;
			height: 48px;
			display: block;
			margin-bottom:5px;
			margin-top: -5px;
		}

			#navigation ul li {
/*
				float: left;
*/
				display: inline-block;
				margin-left: 1px;
				margin-right: 3px;
				overflow: hidden;
			}

			#navigation ul li a {
				padding: 7px 13px 20px 12px;
				text-decoration: none;
				color: #e9e9e9;
				display: block;
				font-size: 1.25em;
				font-weight: normal;
				border: none;
				display: block;
			}

			#navigation ul li a:hover {
				background: none;
				color: #3f3f3e;
			}

			#navigation ul li:hover {
				border: none;
				background: url("../../images/select_bg.png") top left repeat-x;
				color: #3f3f3e;
			}
			
			#navigation ul li.nohover:hover {
				background: none;
				color: inherit;
			}

.current-page, #navigation ul li.current_page_item a {
	background: url("../../images/select_bg.png") top left repeat-x;
	color: #3f3f3e;
}

	#navigation ul li.current-page a {
		color: #3f3f3e;
		font-weight: bold;
	}

	#navigation ul li.login {
		margin-left: 5px;
	}

	li.login a {
		border: none;
	}

	li.login a:hover {
		Background: none !important;
}

#main-posts {
	margin:20px;
	margin-top: 0;
	padding:0;
	
	background:#333; /* fallback for older/unsupporting browsers */  
	background: -webkit-gradient(linear, 0 0, 0 100%, from(#333), to(rgba(0,0,0,0.5)));
	background: -moz-linear-gradient(top, #333, rgba(0,0,0,0.5));
}
body.display_home #main-posts {
	
}


.intro { /* introduction - usually added before the real content */
	margin: 20px;
	margin-top: 0;
}


.post-nav{
	margin-top:10px;
	height:15px;
	padding-left: 57px;
}
.post-nav a{
	font-size:90%;
	border:none;
}

.post {
	min-height: 153px;
	padding: 10px;
	color: #ddd;
	
	background:#333; /* fallback for older/unsupporting browsers */  
	background: -webkit-gradient(linear, 0 0, 0 100%, from(#333), to(rgba(0,0,0,0.3)));
	background: -moz-linear-gradient(top, #333, rgba(0,0,0,0.3));
}

body.display_entries_by_tag.multiple .post {
	min-height: inherit;
}

.post.alt {
	background: none;
}

.post.multi {
	padding-top: 35px;
	background: none;
}

.post.multi .post-entry {
	padding-top: 5px;
	text-indent: 0;
}

/*
.post-tags {
	display: block;
	margin-left: 2px;
	background: url("../../images/tags.png") left no-repeat;
	padding-left: 40px;
	word-spacing: 10px;
	font-size: 0.9em;
	color: #ccc;
}
*/

.post-tags a {
	border: none;
}

.post-title {
	
}

.post-sup {
	height: 23px
}

.post-date {
	margin-left: 2px;
	font-weight: 400;
	background: url("../../images/dots.png") left no-repeat;
	padding-left: 17px;
	color: #5a5a5a;
	font-size: 1.03em;
	float: left;
}

.post-comments-link a {
	text-align: right;
	font-size: 1.03em;
	background: url("../../images/comments.png") left no-repeat;
	float: right;
	padding-left: 32px;
	margin-top: -3px;
	height: 23px;
	line-height: 150%;
	color: #5a5a5a;
	border: none;
}

.post-comments-link a:hover {
	background-color: #dadada;
}

.post-entry {
	font-size: 1.1em;
	padding-top: 15px;
/*
	text-align: justify;
*/
}

.post-entry img {
	border: #909090 1px dashed;
	margin: 10px;
	padding: 5px;
	background-color: #f0f0f0;
}

.post-entry pre {
	overflow: auto;
	width: 100%;
	background-color: #f7f7f7;
	color: #111;
}

.post-footer {
	height: 30px;
	text-align: right;
}

#top-secondary {
/*
	min-height: 266px;
	background: url("../../images/sidebar_top.png") top center no-repeat;
*/
	z-index: 1;
}

	#top-secondary .aside {
		background:#333; /* fallback for older/unsupporting browsers */  
		background: -webkit-gradient(linear, 0 0, 0 100%, from(#333), to(rgba(0,0,0,0.5)));
		background: -moz-linear-gradient(top, #333, rgba(0,0,0,0.5));
		padding: 10px;

		display: none;
	}
	
		#top-secondary .aside h3 {
			text-shadow: 0 0 3px #111;
			margin-top: 0;
			color: #ddd;
		}
	
	#asides {
		margin: 0 20px;
	}

	#search {
/*		margin-top: 4px;
		margin-left: 20px;

		height: 30px;
*/
/*
		margin: 20px 35px 15px 35px;
*/
	}

		#search-form {
			margin: 0;
			padding: 0;
		}

		#search #search-box {
			font-size: 1.1em;
			color: #666;
			width: 70%;
			height: 22px;
			display: inline-block;
/*
			float: left;
*/
			margin-top: 2px;
			padding: 4px 6px;
		}
		
		#search input#search-box:focus,
		#search input#search-box:active {
			color: #222;
		}

		#search #search-btn {
			background: url("../../images/search_button.png") bottom left no-repeat;
			height: 30px;
			width: 31px;
			border: none;
			margin-top: 0;
/*
			float: right;
*/
			display: inline-block;
			cursor: pointer;
			margin-left: 1%;
		}

		.gt-600.lt-950 #search-btn {
			display: none;
		}
		
		/**
		 * Move search form some place else
		 */
		.lt-768 #search-form {
			display: none;
		}
		
	.lt-768 #title h1 {
		font-size: 28px;
	}
	
	/** 
	 * Fullwidth-ify the navigation
	 */
	.lt-768 #navigation.col {
		width: 95%;
	}
	
		.lt-768 #navigation.col ul {
			margin-left: 20px;
		}
		
		.lt-600 #navigation.col ul {
			margin-left: 0;
		}
		
	/**
	 * Fullwidth content for anything lower than 640px
	 */
	 
	/**
	 * Remove content margin for anything lower than 600
	 */
	.lt-640 #main-posts {
		margin: 0;
	}
	 
		

	#feeds {
/*
		height: 92px;
		width: 203px;
		margin-left: 35px;
		margin-bottom: 5px;
*/
	}

		.feedlink {
			margin-bottom: 12px;
			
		}

		.feedlink a {
			background: url("../../images/feed.png") center left no-repeat;
			font-size: 1.6em;
			display: block;
			padding-left: 50px;
			color: #ffffff;
			line-height: 34px;
			border: none;
		}

		.feedlink a:hover {
			background: url("../../images/feed_hover_1.png") center left no-repeat;
			color: #aaaaaa;
		}

	#habari-link {
		margin-right: 0;
		height: 58px;
		text-align: right;
	}

		#habari-link a {
			border: none;
		}

		#habari-link a img {
			text-decoration: none;
			border: none;
		}

		#habari-link a:hover {
			background: none;
		}

	#sidebar {
		padding-left: 45px;
		padding-right: 10px;
		padding-top: 30px;
	}

		#sidebar div {
			margin-bottom: 25px;
		}

		#sidebar div h2 {
			color: #3f3f3d;
		}

		#sidebar div ul {
			list-style: none;
			margin-top: 10px;
			margin-left: 5px;
			padding-left: 0;
		}

		#sidebar div ul li {
			color: #5a5a5a;
			font-weight: 400;
			background: url("../../images/bullet.png") center left no-repeat;
			padding-left: 20px;
			margin-left: 0;
			margin-top: 4px;
		}

/* The lower part of the page */
#page-bottom {
	margin: 0;
	padding-top: 17px;
	position: relative;
	background: #3f3f3f url("../../images/page_bottom_bg.png") top repeat-x;
	color: #ffffff;
}

#wrapper-bottom {
	position: relative;
	width: 972px;
	width: 80%;
	padding: 0;
	margin: 0 auto;
/*
	background: url("../../images/secondary_bg.png") left repeat-y;
*/
}

/*
#bottom-primary {
	width: 645px;
	float: left;
}
*/

#prev-posts {
	min-height: 233px;
	margin: 6px 0 0 auto;
	background: url("../../images/prevposts_text.png") top left no-repeat;
	padding-left: 120px;
	padding-right: 70px;
}

	#prev-posts .prev-post-title h2 {
		margin-top: 0;
		margin-bottom: 15px;
	}

	.prev-post-excerpt {
		padding-bottom: 20px;
		text-align: justify;
	}

		.prev-post-excerpt p {
			color: #e4e4e4
		}

		.prev-post-excerpt a:hover {
			background: none;
		}

			.prev-post-excerpt p a,
			.prev-post-excerpt a,
			.prev-post-excerpt p a img,
			.prev-post-excerpt a img
			{
				border: none;
			}

#prev-posts-footer {
	height: 25px;
	bottom: 0;
	padding-left: 120px;
	padding-right: 20px;
	margin-bottom: 35px;
}

	#prev-posts-footer a {
		color: #dad7d7;
		border-color: #dad7d7;
	}

	#prev-posts-footer .nav-prev {
		background: url("../../images/nav-left.png") top left no-repeat;
/*
		float: left;
*/

	}
	
	#prev-posts-footer .nav-prev,
	#prev-posts-footer .nav-next {
		height: 25px;	
	}

		#prev-posts-footer .nav-prev a {
/*
			text-align: left;
*/
			margin-left: 30px;
			border: none;
		}

	#prev-posts-footer .nav-next {
		background: url("../../images/nav-right.png") top right no-repeat;
/*
		float: right;
*/
	}

		#prev-posts-footer .nav-next a {
			text-align: right;
			margin-right: 30px;
			border: none;
		}

	#prev-posts-footer .nav-prev a:hover,
	#prev-posts-footer .nav-next a:hover
	{
		color: #888;
		border-color: #888;
	}
	

/* Comments section */
#post-comments {
	min-height: 180px;
	margin: 6px 0 35px auto;
	background: url("../../images/comments_text.png") top left no-repeat;
	padding-left: 120px;
	padding-right: 20px;
}

div.post-comments-title {
	text-align: left;
	margin-bottom: 20px;
}

.comment-message {
	font-size: .9em;
	font-weight: bold;
}

.post-comment  h2,.post-comment-u h2 {
	font-size: 1.5em;
}

.post-comment-body {
	padding-bottom: 20px;
	text-align: justify;
}

.post-comment-body p {
	color: #e4e4e4;
}

.post-comment-body p a {
	color: #e4e4e4;
	border-color: #e4e4e4;
}

#post-comments-footer {
	height: 25px;
}

#post-comments-footer a {
	color: #dad7d7;
	border-color: #dad7d7;
}

p.post-comment-link a {
	color: #dad7d7;
}

p.post-comment-link a:hover {
	background-color: #dadada;
	color: #aaa7a7
}

/* Comments form */
#comment-form {
	min-height: 177px;
	margin: 0 0 auto;
	background: url("../../images/postcomment_text.png") top left no-repeat;
	padding-left: 120px;
	padding-right: 20px;
}

#comment-form #comment-public input,
#comment-form #comment-public textarea {
	margin-bottom: 5px;
}

#comment-form #comment-public input {
	color: #666666;
}

#comment-form #comment-public textarea {
	color: #666666;
}

#comment-form #comment-public #submit {
	color: #111111;
}

#comments-closed {
	padding-left: 120px;
	padding-bottom: 50px;
	background:none;
}

#comments-closed p{
	text-align:center;
	font-size:1.2em;	
}
/* Others */
#archives {
/*
	min-height: 147px;
	background: url("../../images/archives_text.png") top left no-repeat;
	padding-left: 150px;
	padding-right: 40px;
	margin-bottom: 40px;
*/
}

	ul.archlist-left {
		float: left;
		padding: 0;
		margin: 0 -50px 0 0; /*fixing an IE7 Bug */
	}

	ul.archlist-right {
		float: right;
		padding: 0;
		margin: 0 0 0 -50px; /*fixing an IE7 Bug */
	}

		ul.archlist-left li {
			text-align: right;
			display: block;
			list-style-type: none;
		}

		ul.archlist-right li {
			text-align: left;
			display: block;
			list-style-type: none;
		}

			ul.archlist-left li a,ul.archlist-right li a {
				color: #f9f9f9;
				margin: 0;
				line-height: 140%;
				border: none;
				font-size: 1.6em;
			}

			ul.archlist-left li a:hover,ul.archlist-right li a:hover {
				background: none;
				color: #dadadb;
			}

#bottom-secondary {
	width: 315px;
	margin-top: -17px;
	padding-top: 17px;
	background: url("../../images/secodary_top.png") top center no-repeat;
	float: right;
}

#tags {
/*
	min-height: 160px;
	background: url("../../images/tagcloud_text.png") top left no-repeat;
	margin: 6px 0 30px 15px;
	padding-left: 40px;
	padding-right: 40px;
	padding-top: 0;
	font-size: 100%;
*/
}

	#tags ul {
		margin: 0;
		padding: 0;
		text-align: justify;
		word-spacing: 2px;

	}

		#tags ul li {
			display: inline;
			list-style-type: none;
			font-weight: bold;

		}

			#tags ul li a {
				color: #8d8d8d;
				border: none;
			}

			#tags ul li a:hover {
				border: none;
			}
			
	/**
	 * Weighted Tags
	 */
	 
		 
		#tags li {
			font-size: 125%;
		}
		
		#tags li .tag-count-5,
		#tags li.tag-count-6, 
		#tags li.tag-count-7,
		#tags li.tag-count-8,
		#tags li.tag-count-9
		{
			font-size: 135%;
		}
		
	
		#tags li.tag-count-10,
		#tags li.tag-count-11,
		#tags li.tag-count-12,
		#tags li.tag-count-13
		{
			font-size: 150%;
		}
		
		#tags li.tag-count-14,
		#tags li.tag-count-15,
		#tags li.tag-count-16,
		#tags li.tag-count-17
		{
			font-size: 175%;
		}
	
	
/* ---------------------------------------------------------
 *  Footer
 * ---------------------------------------------------------
 */

#footer {
	float: left;
	width: 520px;
	margin-left: 145px;
}

	#footer a {
		color: #8d8d8d;
	}

	.lt-768 #footer {
		width: auto;
	}

.clear {
	clear: both;
}

.hidden {
	display: none
}

.prompt {
/*
	padding-left: 50px;
*/
	font-size: 1.6em;
	padding-top: 20px;
	font-weight: bold;
	margin: 0;
	color: #eee;
	
}

.noposts{
	margin-bottom:120px;
}

input {
	border: 2px solid;
}

textarea {
	border: 2px solid;
	width: 100%;
}

blockquote {
	background: url("../../images/blockquote.png") top left no-repeat;
	margin: 10px 20px 20px 10px;
	padding: 15px 0 0 70px;
	text-indent: 0;
	font-style: italic;
}


/**
 * Alignments etc.
 */

.left{
	float:left;
}

.right{
	float:right;
}


	/**
	 * Highlight keywords
	 */

	#main .hilite {
		
	}

	#main li {
		line-height: 2em;
	}



/**
 * Make tables etc. beautiful when hovering over them
 */
 
.extend {
	overflow: crop;
	position: relative;
	z-index: 1;
	width: auto;
}

.extend:hover {
	position: absolute;
	z-index: 99999;
	overflow: scroll;
	width: 100%;
}


/* ----------------------------------------------------------------------- 
 * 	Fun with tabular data
 * -----------------------------------------------------------------------
 */
 
table {
	margin: 20px 0;
	width: 100%;
	max-width: 100%;
	background: transparent;
	border: 0;
}

	table td,
	table th {
		padding: 4px;
	}

	table th {
		text-align: left;
	}
		table thead th,
		table thead td {
			padding: 2px 4px;
			text-align: left;
			margin: 0;
			border: 0;
		}

	th.col-num, td.col-num {
		text-align: right;
	}
	
	tr {
		background-color: #333;
		vertical-align: top;
	}
	
	
		tbody tr:nth-child(odd),
		tbody tr:nth-child(odd) td {
			background: #370124;
		}

/**
 * Borrowed from Bootstrap v3.3.5 (@link http://getbootstrap.com/css/#tables)
 */

table {
  min-height: .01%;
  overflow-x: auto;
}
@media screen and (max-width: 767px) {
  table {
    width: 100%;
    margin-bottom: 15px;
    overflow-y: hidden;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    border: 1px solid #ddd;
  }
  table {
    margin-bottom: 0;
  }
  table > thead > tr > th,
  table > tbody > tr > th,
  table > tfoot > tr > th,
  table > thead > tr > td,
  table > tbody > tr > td,
  table > tfoot > tr > td {
    white-space: nowrap;
  }
}



 

/* ----------------------------------------------------------------------- 
 * 	IE bugfixes
 * -----------------------------------------------------------------------
 */
 
	body.oldie .post {
		height: 153px;
	}

	body.oldie #top-primary {
		margin-right: -300px;
		clear: right;
	}

	body.oldie #top-secondary {
		height: 266px;
		clear: left;
	}

	body.oldie #sidebar {
		height: 300px;
	}

	body.oldie .post-sup {
		height: 30px
	}

	body.oldie .post-comments-link a {
		margin-top: 0;
		padding-top: 0;
	}

	body.oldie #prev-posts {
		height: 233px;
	}

	body.oldie .prev-post-excerpt p a img {
		display: none;
	}

	body.oldie #prev-posts-footer .nav-prev {
		background: none;
	}

	body.oldie #prev-posts-footer .nav-prev a {
		margin: 0;
	}

	body.oldie #prev-posts-footer img {
		display: inline;
	}

	body.oldie #prev-posts-footer .nav-next {
		background: none;
	}

	body.oldie #prev-posts-footer .nav-next a {
		margin: 0;
	}

	body.oldie #archives {
		height: 147px;
	}

	body.oldie #post-comments {
		height: 180px;
	}

	body.oldie #comment-form {
		height: 180px;
		padding-right: 0px;
	}

	body.oldie #tags {
		height: 160px;
	}

	body.oldie #bottom-secondary {
		position: relative;
		right: 0px;
		height: 250px;
		overflow: auto;
	}

	body.oldie .post-comments-link {
		padding-top: 3px;
	}

	body.oldie #feeds {
		border: none;
		cursor: pointer;
	}

	body.oldie .feedlink {
		border: none;
	}

	body.oldie .feedlink a {
		border: none;
		width: 156px;
	}

	body.oldie #feeds a:hover {
		padding-bottom: 0px;
		cursor: pointer;
	}

	body.oldie #habari-link {
		margin-top: 0;
	}

	body.oldie #navigation {
		width: 930px;
		margin-top: 20px;
	}

	body.oldie .archlist-left {
		margin: 0;
	}

	body.oldie .archlist-right {
		margin: 0;
	}

	body.oldie #title {
		margin-bottom: 10px;
	}

	body.oldie #footer {
		margin-left: 65px;
	}
 
/* ----------------------------------------------------------------------- 
 *  Soume media query kindness
 * -----------------------------------------------------------------------
 */
 
 
@media only screen and (max-width: 480px) {
	
	
	#wrapper-top, #prev-posts {
		display: block;
		width: 100%;
	}
	
	#prev-posts {
		padding-left: 0;
		padding-right: 0;
		background-image: none;
	}
	
	/**
	 * Hide asides / sidebar on small devices
	 */
	
	#top-secondary {
		display: none;
	}
	
	
	 
	
}
