/*
	Theme Name: thislab v4
	Theme URI: http://thislab.com/
	Description: thislab.com theme version 4.
	Version: 1.0
	Author: Fred Wu
	Author URI: http://thislab.com/
*/

/*------------------------------------------------------------
	Page
------------------------------------------------------------*/

* {
	padding: 0;
	margin: 0 auto;
}

html, body {
	height: 100%;
}

body {
	font-family: Verdana, 'Lucida Grande', Arial, Helvetica, sans-serif;
	font-size: 12px;
	background: #111 url("img/background.png") top repeat-x;
}

	#wrapper {
		width: 950px;
		position: relative; /* needed for positioning later on */
		min-height: 100%;
		height: auto !important;
		height: 100%;
		z-index: 1;
		margin: 0 auto 60px auto;
	}

	#trunk-wrapper {
		float: left;
		width: 940px;
		margin: 0 0 0 10px;
		background: #fff url("img/wrapper-bg.png") repeat-y;
	}

	/* fix for IE6 */
	* html #trunk-wrapper {
		float: none;
		width: auto;
	}

h1 {
	font-size: 20px;
	color: #293601;
}

h2 {
	font-size: 20px;
	color: #293601;
	clear: both;
}

	h2 a {
		color: #293601;
	}

h3 {
	font-size: 16px;
}

p {
	font-size: 13px;
}

a {
	color: #ac891f;
	outline: none;
	text-decoration: none;
}

	a:hover {
		text-decoration: underline;
	}
	
	a:active {
		outline: none;
	}

ul {
	list-style: none;
}

img {
	border: 0;
}

blockquote {
	margin: 0 0 0 10px;
	padding: 3px 10px;
}

#content table tr td {
	padding: 5px;
}

.alignleft {
	float: left;
	padding: 0 0 15px 0;
}

.alignright {
	float: right;
	padding: 0 0 15px 0;
}

.flash_message {
	padding: 5px 10px;
	margin: 0;
	border: 1px solid #660;
	background: #ffc;
	color: #660;
	font-size: 11px;
	text-align: center;
}

div.ajax_comments_spinner {
	position: relative;
	left: 5px;
	top: 5px;
	margin: 0;
}

/*------------------------------------------------------------
	Header
------------------------------------------------------------*/

#header {
	border-bottom: 10px #a1d40a solid;
	background: #222 url("img/background.png") top;
	height: 122px;
}

	/* logo */
	#header h1 {
		margin: 0;
		position: relative;
		top: 92px;
		left: 20px;
		width: 168px;
		height: 82px;
		color: #a1d40a;
/*		text-indent: -9999px;
		background: url("img/logo.png");*/
	}

	#header #slogan {
		position: relative;
		top: -76px;
		right: -325px;
		width: 300px;
		height: 20px;
		border: 1px #333 solid;
		border-top: none;
		color: #999;
		background: #111;
		font-family: Arial;
		font-size: 11px;
		text-align: center;
	}

	#header #status {
		position: absolute;
		top: 83px;
		left: 193px;
		color: #c90;
		font-size: 11px;
		font-weight: bold;
		cursor: default;
	}

	#header ul {
		position: relative;
		top: 20px;
		left: 250px;
		width: 400px;
		/* fixes for browsers on OS X */
		/* has to specify a height for Opera */
		height: 49px;
		margin: -30px 0 0 0;
	}

		#header ul li {
			float: left;
		}

			#header ul li a {
				display: block;
				color: #fff;
				font-size: 14px;
				padding: 6px 15px;
			}

			#header ul li a:hover {
				background: #111;
				text-decoration: none;
			}

/*------------------------------------------------------------
	Navigation Tabs (Highlighted)
------------------------------------------------------------*/

body#home       li#nav-home a,
body#blog       li#nav-blog a,
body#projects   li#nav-projects a,
body#portfolio  li#nav-portfolio a,
body#about-us   li#nav-about-us a,
body#contact-us li#nav-contact-us a,
li.current_page_item a {
	background: #a1d40a;
}

/*------------------------------------------------------------
	Search Form
------------------------------------------------------------*/

form#frm-search {
	position: relative;
	left: 650px;
	top: 10px;
	width: 300px;
	/* fix for IE6 */
	margin: -30px 0 0 0;
	height: 30px;
}

	form#frm-search input {
		position: absolute;
		left: 0;
		top: -20px;
		padding: 0 5px;
		width: 245px;
		height: 20px;
		border: 1px #333 solid;
		background: #111;
		color: #ccc;
		font-size: 14px;
	}

	form#frm-search button {
		position: absolute;
		right: 5px;
		top: -28px;
		text-indent: -9999px;
		border: 0;
		width: 41px;
		height: 38px;
		background: url("img/magnifier-upper.jpg") no-repeat;
		cursor: pointer;
		cursor: hand;
	}

/*------------------------------------------------------------
	Content
------------------------------------------------------------*/

#content {
	float: left;
	margin: 0;
	padding: 20px;
	width: 600px;
	background: #fff url("img/content-bg.png") top repeat-x;
	min-height: 200px;
	height: auto !important;
	height: 200px;
}

	#content .post {
	}

	#content .post-info {
		color: #AC891F;
		font-size: 11px;
	}

	#content .entry {
		margin: 0 10px 20px 25px;
	}

		#content .pagetitle {
			color: #a1d40a;
			font-size: 20px;
			letter-spacing: -1px;
			text-transform: uppercase;
			margin: 0 0 5px 0;
		}

		#content div.post-search {
			margin: 0 15px;
			padding: 15px;
			border-top: 1px #ccc dashed;
		}

		#content div.post-search:hover {
			background: #f9fcef;
		}

			#content div.post-search div.postdate {
				margin: 0;
				color: #999;
				font-size: 10px;
			}

			#content div.post div.postdate {
				position: relative;
				margin: 0 0 10px 0;
				left: -31px;
				width: 172px;
				height: 19px;
				padding: 7px 0 0 20px;
				color: #faf5e6;
				font-weight: bold;
				background: url("img/tag-long.gif");
			}
			
			#content div.post div.postdate-inner {
				margin: 5px 0 20px 3px;
				color: #999;
				font-weight: bold;
			}
	
	#content h3 {
		margin: 20px 0 10px 0;
	}
	
	/* for related post plugin */
	#content h3#related-posts {
		position: relative;
		margin: 10px 0;
		left: -31px;
		width: 172px;
		height: 19px;
		padding: 7px 0 0 20px;
		color: #faf5e6;
		font-weight: bold;
		font-size: 12px;
		background: url("img/tag-long.gif");
	}
	
	#content ul li,
	#content ol li {
		margin: 0 0 0 20px;
	}
	
		#content div.sociable ul li,
		#content div.sociable ol li {
			margin: 0;
		}
	
	#content ul {
		list-style: disc;
	}
	
	#content ul.related_post {
		margin: 20px 0 20px 20px;
		list-style: circle;
	}
	
		#content ul.related_post li {
			margin: 5px 0;
		}
	
	#content h4 {
	}
	
	#content p {
		margin: 12px auto;
	}

		#content p.postmetadata {
			border-top: 1px #eee dashed;
			padding-top: 5px;
		}

		#content p.alt {
			border-bottom: 1px #eee dashed;
			padding: 10px 15px;
		}
		
		#content p.tags {
			font-size: 11px;
			margin-top: 5px;
			background: #f9fcef;
			padding: 5px 15px;
		}
		
		#content p#tags-single {
			background: #f9fcef;
			padding: 5px 15px;
			margin-top: 20px;
		}

	#content a.tag {
		position: absolute;
		left: 558px;
		z-index: 9;
		text-align: center;
		margin: 0;
		padding: 8px 0 0 0;
		width: 104px;
		height: 18px;
		background: url("img/tag.png");
		color: #fff;
		font-size: 10px;
		text-transform: uppercase;
	}

		#content a.tag:hover {
			text-decoration: none;
		}

	#content div.tag-divider {
		position: relative;
		margin: 0;
		left: 597px;
		width: 23px;
		height: 28px;
		background: url("img/tag-divider.png");
	}

/*------------------------------------------------------------
	Comments
------------------------------------------------------------*/

#content #comments-area form {
	margin: 0 0 0 30px;
}

#content h2#sect-comments {
	position: relative;
	z-index: 3;
	margin: 10px 0;
	left: -31px;
	width: 172px;
	height: 19px;
	padding: 7px 0 0 20px;
	color: #faf5e6;
	font-weight: bold;
	font-size: 12px;
	background: url("img/tag-long.gif");
}

#content h3#comments,
#content h3#respond {
	left: 0; /* fixes for the related post plugin */
	font-size: 14px;
	color: #ccc;
	margin: -15px -20px 0 0;
	width: 100%;
	padding: 10px 10px;
	background: #333;
}

#content h3#respond {
	margin-bottom: -30px;
	color: #e8f5c3;
	background: #293601;
}

#content div#comments-right {
	position: relative;
	top: -42px;
	left: 470px;
	width: 256px;
	height: 23px;
	padding: 7px 22px;
	font-size: 10px;
	color: #222;
	background: #222;
}

	#content div#comments-right:hover {
		color: #999;
		cursor: default;
	}

#content ol.commentlist {
	list-style: none;
	position: relative;
	top: -37px;
}

	#content ol.commentlist li {
		position: relative;
		left: 20px;
		background: url("img/cmt-divider-left.png") left top no-repeat;
		margin: 0;
	}

		#content ol.commentlist li .authors {
			position: absolute;
			left: 600px;
			width: 265px;
			height: 420px;
			margin: -5px 0 0 0;

			padding: 18px 0 0 15px;
			background: #a1d40a url("img/cmt-divider-right.png") left top no-repeat;
		}

		#content ol.commentlist li.author-comment .authors {
			background: #a1d40a url("img/cmt-divider-right-w-face.jpg") left top no-repeat;
		}

			#content ol.commentlist li .authors .cmt-author,
			#content ol.commentlist li .authors .cmt-author a {
				font-size: 14px;
				color: #293601;
			}

			#content ol.commentlist li.author-comment .authors .cmt-author,
			#content ol.commentlist li.author-comment .authors .cmt-author a {
				font-weight: bold;
			}

				#content ol.commentlist li .authors .cmt-author a {
					text-decoration: underline;
				}

				#content ol.commentlist li .authors .cmt-author a:hover {
					color: #000;
				}

			#content ol.commentlist li .authors em,
			#content ol.commentlist li .authors small a {
				color: #557100;
			}
		
		#content ol.commentlist li .cmt-number {
			position: absolute;
			top: 3px;
			left: 533px;
			width: 50px;
			color: #e0f0b1;
			font-size: 16px;
			font-weight: bold;
			font-family: Arial;
			text-align: right;
		}
		
		#content ol.commentlist li .comment-text {
			position: relative;
			width: 570px;
			top: 8px;
			margin: 0 0 8px 0;
			left: 10px;
			padding: 20px 20px 10px 0;
		}

		#content ol.commentlist li.author-comment .comment-text {
			color: #293601;
			background: #f9fcef;
		}

		/*#content ol.commentlist li.alt .comment-text {
			background: #fdfff8 url("img/cmt-divider-left.png") left top no-repeat;
		}*/
		
			#content ol.commentlist li .comment-text p {
				/* relative position and margin for cross browser consistency */
				position: relative;
				left: 20px;
				width: 530px;
				margin: 0 0 10px 0;
			}

#content div#trackbacks {
	margin: -30px 0 40px 20px;
}

	#content div#trackbacks ol li {
		margin: 5px 0 5px 25px;
	}

#content #tag-reply {
	position: relative;
	margin: 0;
	top: -12px;
	left: 620px;
	width: 30px;
	height: 37px;
	background: url("img/tag-reply.png") right no-repeat;
}

#content form#commentform input {
	border: 1px #999 solid;
}

	#content form#commentform input#submit {
		padding: 10px 20px;
		color: #293601;
		background: #f9fcef;
	}

#content form#commentform textarea {
	width: 540px;
	border: 1px #999 solid;
}

/*------------------------------------------------------------
	Sidebar
------------------------------------------------------------*/

#sidebar {
	float: right;
	margin: -20px 0 0 0;
	padding: 20px 20px 40px 30px;
	width: 250px;
	color: #557100;
	background: #a1d40a url("img/magnifier-lower.jpg") top right no-repeat;
	min-height: 200px;
	height: auto !important;
	height: 200px;
}

	#sidebar h2 {
		margin: 0 0 10px -10px;
		color: #e8f5c3;
		font-size: 14px;
		text-transform: uppercase;
		font-weight: normal;
		letter-spacing: 2px;
	}

	#sidebar a {
		color: #557100;
	}

	#sidebar ul {

	}

		#sidebar ul li {
			margin: 0 0 20px 0;
			clear: both;
		}

		#sidebar ul li#text-1 {
			margin: 0 0 20px -20px;
			background: url("img/author-face.jpg") 4px 2px no-repeat;
		}

			#sidebar ul li#text-1 h2 {
				margin: 0 0 10px 75px;
			}

			#sidebar ul li#text-1 p {
				margin: 0 0 0 75px;
				font-size: 11px;
			}

			#sidebar ul li#text-1 a#btn-rss,
			#sidebar ul li#text-1 a#btn-contact {
				display: block;
				height: 25px;
				width: 80px;
				float: left;
				font-weight: bold;
				font-size: 11px;
				margin: 10px 0 10px 15px;
				padding: 10px 0 0 40px;
			}
			
			#sidebar ul li#text-1 a#btn-rss {
				background: url("img/btn-rss.jpg") no-repeat;
			}

			#sidebar ul li#text-1 a#btn-contact {
				background: url("img/btn-email.jpg") no-repeat;
			}

				* html #sidebar ul li#text-1 a#btn-contact {
					margin-left: 7px;
				}
	
				* html #sidebar ul li#text-1 a#btn-rss {
					margin-right: -20px;
				}
			
			#sidebar ul li#text-1 a#btn-linkedin {
				display: block;
				text-align: center;
			}

			#sidebar ul li ul li {
				margin: 5px 0 5px 20px;
				list-style: url("img/list-sidebar.png");
			}
		
		#sidebar ul li#text-2 ul li {
			list-style: none;
			margin-left: 0;
		}
			/*
			#sidebar ul li#text-2 ul li.micro-btn {
				text-indent: -9999px;
				height: 15px;
				width: 80px;
			}
			
			#sidebar ul li#text-2 ul li#btn-wordpress {
				background: url("img/80x15_wordpress.gif");
			}
			
			#sidebar ul li#text-2 ul li#btn-xhtml10 {
				background: url("img/80x15_xhtml10.gif");
			}
			
			#sidebar ul li#text-2 ul li#btn-css2 {
				background: url("img/80x15_css2.gif");
			}
			
			#sidebar ul li#text-2 ul li#btn-accessible {
				background: url("img/80x15_accessible.gif");
			}
			*/

/*------------------------------------------------------------
	Footer
------------------------------------------------------------*/

#clear {
	clear: both;
	height: 45px;
}

#footer {
	width: 100%;
}

/* IE6 fix, needed for the syntax highlighter plugin */
* html #footer {
	position: relative;
	z-index: -9;
}

	#footer #clear-content {
		position: absolute;
		z-index: -1;
		left: 10px;
		bottom: 30px;
		width: 640px;
		height: 20000px;
		background: #fff;
	}

	#footer #clear-sidebar {
		position: absolute;
		z-index: -1;
		left: 650px;
		bottom: 45px;
		width: 300px;
		height: 20000px;
		background: #a1d40a;
	}

	#footer #author {
		position: absolute;
		z-index: 3;
		left: 650px;
		bottom: 45px;
		width: 300px;
		height: 30px;
		padding: 5px 0 0 0;
		font-size: 9px;
		text-align: center;
		color: #a1d40a;
	}

		#footer #author:hover {
			background: #557100;
			cursor: default;
		}

	#footer p#copyright {
		position: absolute;
		bottom: 10px;
		left: 425px;
		color: #ccc;
		font-size: 11px;
	}

	#footer p#poweredby {
		position: absolute;
		bottom: 25px;
		right: 2px;
		color: #557100;
		font-size: 10px;
	}
	
	#footer ul#poweredby {
		position: absolute;
		bottom: 25px;
		right: 2px;
		color: #557100;
		font-size: 10px;
	}
	
		#footer ul#poweredby li.micro-btn {
			text-indent: -9999px;
			height: 15px;
			width: 80px;
			float: left;
			margin: 0 2px;
		}

		#footer ul#poweredby li#btn-wordpress {
			background: url("img/80x15_wordpress.gif");
		}

		#footer ul#poweredby li#btn-xhtml10 {
			background: url("img/80x15_xhtml10.gif");
		}

		#footer ul#poweredby li#btn-css2 {
			background: url("img/80x15_css2.gif");
		}

		#footer ul#poweredby li#btn-accessible {
			background: url("img/80x15_accessible.gif");
		}

/* ------------------------------
	Fork me on Github :-)
------------------------------ */

#ribbon {
  z-index: 9999;
  background-color: #a00;
  overflow: hidden;
  /* top left corner */
  position: absolute;
  left: -3em;
  top: 2.5em;
  /* 45 deg ccw rotation */
  -moz-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  /* shadow */
  -moz-box-shadow: 0 0 1em #888;
  -webkit-box-shadow: 0 0 1em #888;
  box-shadow: 0 0 1em #888;
}

#ribbon a {
  border: 1px solid #faa;
  color: #fff;
  display: block;
  font: bold 81.25% 'Helvetiva Neue', Helvetica, Arial, sans-serif;
  margin: 0.05em 0 0.075em 0;
  padding: 0.5em 3.5em;
  text-align: center;
  text-decoration: none;
  /* shadow */
  text-shadow: 0 0 0.5em #444;
}