/*
Theme Name: Kaveh's blog
Theme URI: http://bazargan.org
Description: A personal blog of Kaveh Bazargan
Author: Dayakar
Author URI: http://bazargan.org
Template: k2-1.0-RC8-revision-817-2009-09-24
*/

/*- Page Structure */

body {
	background: #BDBDBD;
	}


#page {
	margin: 8px auto;
	padding-top: 5px;
	width: 780px;
	-moz-border-radius: 10px;
	-webkit-border-radius: 10px;
	}

#header {
	height: 130px;
	width: 770px;
	background:#F0F0F0 url('images/kaveh-photo.png') no-repeat;
	background-position: 26px 5px;
	margin: 0px auto;
	border-top: 1px solid #ddd;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	-moz-border-radius-topleft: 8px;
	-moz-border-radius-topright: 8px;
	-webkit-border-top-left-radius: 8px;
	-webkit-border-top-right-radius: 8px;
	}

.content {
	padding: 0 4px 10px 20px;
	}

body.columns-two #primary-wrapper {
	margin-right: -240px;
	}

#sidebar-1 {
	background-color: #F0F0F0;
	padding: 0px 10px 10px 10px; 	
	-moz-border-radius-bottomleft: 8px; 
	-moz-border-radius-bottomright: 8px; 
	-webkit-border-bottom-left-radius: 8px; 
	-webkit-border-bottom-right-radius: 8px;
	border-right:1px solid #ddd;
	border-bottom:1px solid #ddd;
	border-left:1px solid #ddd;
	}

#search-5 {
	margin: 0px;
	}

/*- Headings */

.blog-title {
	padding: 12px 40px 0px 115px;
	}

h1.blog-title a,
#header .description {
	text-decoration: none;
	color: #000;
	}

h1.blog-title a:hover {
	text-decoration: underline;
	}

#header .description { /* Description in header */
	margin: 0px 0px 0px 116px;
	}

.post-content p, .post p { overflow: visible !important; }

.homelink {
	position: absolute;
	width: 80px;
	height: 90px;
	margin: 0px 0px 0px 30px;
	padding: 0px;
	-moz-border-radius-topleft: 10px;
	-webkit-border-top-left-radius: 10px;
	}

.secondary h4 { /* Secondary H4 is sidebar headlines */
	font-size: 1.4em;
	padding: 0px 0px 2px 0px;
	margin-top: -10px;
	border-bottom: 1px solid #D8D8D8;
	}

.entry-title, h3 { /* H3 is entry headlines. H4 is comments and replyform headlines */
	font-family: 'Lucida Grande', 'Lucida Sans','Lucida Sans Unicode', Helvetica, Arial, sans-serif; 
	font-size: 1.7em;
	margin-right: 0px;
	}

h4 {
	font-size: 1.5em;
	}

.entry-head {
	margin-top: 5px;
	padding-left: 2px;
	padding-top: 0px;
	border-top: 1px solid #A4A4A4;
	border-bottom: 1px solid #D8D8D8;
	background-color: #F0F0F0; 
	}

.more-link span {
	font-size: 15px;
	margin:0px;
	}

.secondary .k2-asides {
	word-spacing: 0px;
	}

.entry-title, .entry-title a, .entry-title a:visited,
h2, h2 a, h2 a:visited,
/*h3, h3 a, h3 a:visited,*/
h4, h4 a, h4 a:visited {
	color: #444;
	}

.entry-title, .entry-title a, .entry-title a:visited,
h3, h3 a, h3 a:visited {
	color: #27d;
	}


.entry-content a:hover {
	text-decoration: underline;
	}


.entry-content a:visited {
	/*color: #b41;*/
	color: #27d;
	}


/*- Primary Contents */

.hentry {
	margin: 5px 0 0px;
	}

.entry-content {
	line-height: 1.4em;
	overflow: hidden;
	}

.entry-content p {
	margin: 6px 0px 10px 0px;
	/*overflow: hidden;*/
	}

.entry-head .entry-meta {
	background: none;
	padding-left: 0px;
	min-height: 0px;
	}

.entry-meta {
	line-height: 1.2em;
	padding-bottom: 2px;
	}

.entry-tags {
	padding: 0px;
	background: none;
	}

.entry-head .entry-tags {
	margin-left: 0px;
	}

body.page .entry-content h3 {
	margin-top: 0px;
	font-size: 1.3em;
	}

.four04 .entry-title,
body.page .entry-title {
	text-align: left;
	}

body.page h1.entry-title {
	line-height: 145%;
	font-size: 1.6em;
	}

#commentlist li .comment-content {
	font-size: 1.1em;
	text-align: justify;
	line-height: 1.3em;
	}

.comment-head {
	border-top: 2px solid #ddd; 
	border-bottom: 1px solid #ddd; 
	padding: 3px 0px;
	}

#commentlist li .comment-content {
	font-size: 1.1em;
	text-align: justify;
	line-height: 1.3em;
	}

#commentlist .comment {
	padding: 0px 10px;
	}

.comment-content p,
.comment-content ul,
.comment-content ol,
.comment-content div,
.comment-content blockquote {
	margin: 5px 0;
	}

.byuser {
	#background: #f6f7f8;
	background: none;
	}

.bypostauthor {
	#background: #eee;
	background: none;
	}

.byuser .comment-head {
	background: #f6f7f8;
	border-top: 2px solid #BDBDBD; 
	border-bottom: 1px solid #ddd; 
	padding: 3px 2px;
	}

.bypostauthor .comment-head {
	background: #eee;
	border-top: 2px solid #BDBDBD; 
	border-bottom: 1px solid #ddd; 
	padding: 3px 2px;
	}


.entry-content .alignleft,
img[align="left"] {
	/*margin: 3px 8px 0px 0;*/
	float: left;
	width: 100px;
	height: 100px;
	border: 1px solid #D8D8D8; 
	margin: 2px 10px 5px 0px;
	padding: 3px;	
	}

.comments .navigation {
	margin: 10px 0;
	}

.secondary ul li {
	line-height: 1.1em;
	}

/*- Main Menu in Header */

ul.menu {
	display: none;
	}


/*- Rolling Archives */

#rollnext,
#rollprevious{
	/*color: #666;*/ 
	font-weight: bold;
	background-color: #F0F0F0; 
	-moz-border-radius: 5px; 
	-webkit-border-radius: 5px; 
	padding: 5px;
	color: #06c; 
	font-size: 120%;
	}

#rollingcontent {
	margin: 10px 0px;
	}

#rollpages{top:5px; left:55px; color:#aaa}
#rollpages {
	font-size: 120%; 
	padding: 3px 3px 3px 5px;
	}

#rollingarchives {
	padding: 10px 0px 20px 0px;
	}

.page-head {
	margin-top: 10px;
	}

.archivepages {
	display: none;
	}
	
.page-head h1 {
	font-family: 'Lucida Grande', 'Lucida Sans','Lucida Sans Unicode', Helvetica, Arial, sans-serif;
	font-size: 2em;
	text-align: left;
	border-top: 1px solid #A4A4A4;
	border-bottom: 1px solid #D8D8D8;
	background-color:#F0F0F0;
	padding: 3px 5px;
	margin: 0 0 10px 0;
	}

	
/*Category styling*/
ul li.cat-item {
padding: .1em 0;
}

ul li.cat-item a {
color:#182B78;
font-size:120%;
font-weight:bold;
padding: .1em .2em;
}

ul ul.children li a {
color:#0066CC;
font-size:100%;
font-weight: normal;
}

ul ul.children li.current-cat a,
ul ul.children li.current-cat a:hover { /*Style for highlighting current category*/
color: #fff;
background-color:#0066CC;
text-decoration: none;
}

ul ul.children ul.children li a,
ul ul.children li.current-cat ul.children li a {
font-size:100%;
font-weight: normal;
background-color:transparent;
color:#0066CC;
}

.cat-item a:hover,
ul ul.children li.current-cat-parent ul.children li.cat-item a:hover {
text-decoration: underline;
background: transparent;
}

ul ul.children li.current-cat-parent ul.children li.current-cat a,
ul ul.children li.current-cat-parent ul.children li.current-cat a:hover { /*Style for highlighting current category*/
color: #fff;
background-color:#0066CC;
text-decoration: none;
}
/*Category styling*/

.widget_categories h4 { /*to hide category heading*/
	display: none;
	}

/*-
	Brian's Latest Comments
	http://meidell.dk/archives/2004/09/12/brians-latest-comments/
*/

#brians-latest-comments ul li span a, #brians-latest-comments ul li small a,
.sb-comments-blc ul li span a, .sb-comments-blc ul li small a {
	word-spacing: 0px;
	}

.comments form #submit {
	float: left;
	margin-top: 5px;
	}


.footerfeedlinks, .footerpoweredby {
	display: none;
	}



/*Dropdown menu */
#sidebar {
	display: block;
	z-index: 5;
	padding: 0;
	
	position: absolute; 
	margin-left: 24px; 
	margin-top: 105px; 
	width: 98%;
	bottom: 0;
	font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
	font-size: 12px;
}

#sidebar ul {
	width:98%;
	min-height: 25px;
	list-style-type: none;
	padding: 0;
	margin: 0;
	z-index: 500;
	display: block; 
}


#sidebar li {
	display: block;
	float: left;
	position: relative;
	text-align: left;
	margin: 0px 5px 0px 0px;
}


#sidebar li a {
	display: block;
	padding: 5px 10px 5px;
}

#sidebar li ul {
	display: block;
	width: 150px;
	height: auto;
	top: 100%;
	left: 0px;
}

#sidebar li ul li {
	display: block;
	text-align: left;
	width: 170px;	
	height: auto;
	min-height: auto;
}

#sidebar a {
	text-decoration: none;
	display: block;
	}

#sidebar li li ul {
	top: 0;
	left: 0;
}

#sidebar li li:hover ul {
	left: 150px;
}

/* initialy hide all sub sidemenus */
#sidebar ul ul,
#sidebar ul li:hover ul ul,
#sidebar ul ul li:hover ul ul,
#sidebar ul ul ul li:hover ul ul,
#sidebar ul ul ul ul li:hover ul ul {
	display: none;
	position: absolute;
}

/* display them on hover */
#sidebar li:hover ul,
#sidebar ul li:hover ul,
#sidebar ul ul li:hover ul,
#sidebar ul ul ul li:hover ul,
#sidebar ul ul ul ul li:hover ul,
#sidebar ul ul ul ul ul li:hover ul {
  display: block;
}

/* colors */

#sidebar {
	color: #333333; 
}


#sidebar h2 {
	color: #FFFFFF;
}

#sidebar a {
	color: #333333;
	display: block;
	}

#sidebar li a:hover {
	color: #fff;
	display: block;
	}

#sidebar ul li a:hover {
	background: #999; 
	color: #fff;
	padding: 5px 10px 5px;	
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-topright: 5px;
	-webkit-border-top-left-radius: 5px;
	-webkit-border-top-right-radius: 5px;	
}

#sidebar ul li:hover {
	background: #999; 
	color: #fff;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-topright: 5px;
	-webkit-border-top-left-radius: 5px;
	-webkit-border-top-right-radius: 5px;	
}

#sidebar ul li ul li {
	background: #999; 
}

#sidebar ul li ul li:hover {
	background: #999;
	-moz-border-radius-topleft: 0px;
	-moz-border-radius-topright: 0px;
	-webkit-border-top-left-radius: 0px;
	-webkit-border-top-right-radius: 0px;	
}

#sidebar ul li ul ul li{
	background: #666666;
	-moz-border-radius-topleft: 0px;
	-moz-border-radius-topright: 0px;
	-webkit-border-top-left-radius: 0px;
	-webkit-border-top-right-radius: 0px;		
}

#sidebar ul li ul ul li:hover {
	background: #999;	
	-moz-border-radius-topleft: 0px;
	-moz-border-radius-topright: 0px;
	-webkit-border-top-left-radius: 0px;
	-webkit-border-top-right-radius: 0px;		
}

#sidebar li a {
display: block;
}

#sidebar ul li.current_page_parent
{ 
	background: white;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-topright: 5px;
	-webkit-border-top-left-radius: 5px;
	-webkit-border-top-right-radius: 5px;
}

#sidebar ul li.current_page_item a,
#sidebar ul li.current_page_parent a
{
	color: #333;
}

#sidebar ul li.current_page_item a:hover,
#sidebar ul li.current_page_parent a:hover
{
	color: #fff;
	background: #999;
}


#sidebar ul li.current_page_item li a,
#sidebar ul li.current_page_parent li a
{
	color: #333;
}

#sidebar ul li.current_page_parent li.current_page_item a 
{
	color: #333;
	background: #999;
}

#sidebar ul li.current_page_parent li.current_page_item a:hover
{
	color: #fff;
	background: #999;
}


#sidebar ul li.current_page_parent:hover
{
	background: #999;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-topright: 5px;
	-webkit-border-top-left-radius: 5px;
	-webkit-border-top-right-radius: 5px;
}

#sidebar ul li.current_page_parent a:hover
{
	background: #999;
	color: #fff;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-topright: 5px;
	-webkit-border-top-left-radius: 5px;
	-webkit-border-top-right-radius: 5px;
}

#sidebar ul li.current_page_item { 
	background: white;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-topright: 5px;
	-webkit-border-top-left-radius: 5px;
	-webkit-border-top-right-radius: 5px;
	border-top: 1px solid #ddd;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
}

#sidebar ul li.current_page_item:hover {
	background: #999;
	color: #FFF;
}
/*Dropdown menu*/

/*Contact form*/
.screenReader { left: -9999px; position: absolute; top: -9999px; }
.thanks { background: #F2F3F6; border: 1px solid #7E8AA2; padding:10px; margin-bottom: 15px; margin-top: 30px; width: 432px; font-size: 12px;}

/*****Forms*****/
ol.forms { float: left; list-style: none; margin: 0; width: 100%; }
ol.forms li { 
	clear: both; 
	float: left; 
	margin-bottom: 18px; 
	position: relative;
	width: 100%;
}
ol.forms label {
	cursor: pointer;
	display: block;
	float: left;
	font-size: 1.2em;
	font-family: "Lucida Grande","Lucida Sans","Lucida Sans Unicode",Verdana,Helvetica,Arial,sans-serif;
	font-weight: normal;
	letter-spacing: 0px;
	padding-right: 20px;
	width: 70px;
}
ol.forms input, ol.forms textarea {
	border: 1px solid #7E8AA2;
	border-radius: 3px;
	font: inherit;
	-moz-border-radius: 3px;
	padding: 2px;
	-webkit-border-radius: 3px;
	width: 214px;
}
ol.forms textarea { height: 270px; width: 322px; }
ol.forms input:focus, ol.forms textarea:focus { background-color: #f2f3f6; border-color: #66FF00; }
.error { color: #f00; }
ol.forms li .error { font-size: 10px; margin-left: 20px; }
ol.forms li.textarea .error {
	display: block;
	position: absolute;
	right: 0;
	top: 0;
	width: 65px;
}
ol.forms li.screenReader { margin-bottom: 0; }
ol.forms li.buttons button {
	/*background: #ff9800;*/
	background: #BDBDBD;
	border: none;
	color: #000;
	cursor: pointer;
	font: 16px/16px "Avenir LT Std", Helvetica, Arial, sans-serif;
	overflow: hidden;
	padding: 6px 3px 3px 3px;
	text-transform: uppercase;
	width: auto;
	margin-left: 51px;
}
ol.forms li.buttons button:hover { color: #222; }
ol.forms li.buttons button:active { left: -1px; position: relative; top: -1px; }
ol.forms li.buttons, ol.forms li.inline { float: right; width: 460px; }
ol.forms li.inline input { width: auto; margin-left: 51px;}
ol.forms li.inline label { display: inline; float: none; width: auto; }
/*Contact form*/

/*NextGen thumbnail gallery */
.entry-content div.ngg-gallery-thumbnail, 
.entry-content div.ngg-gallery-thumbnail-box {
	margin: 0px;
	}
/*NextGen thumbnail gallery */

/*WP-Postviews*/
#postviews {
	color: #777;
	float: right;
	padding: 0px 3px 0px 0px;	
	}

/*
+----------------------------------------------------------------+
|																							|
|	WordPress 2.8 Plugin: WP-PageNavi 2.50									|
|	Copyright (c) 2009 Lester "GaMerZ" Chan									|
|																							|
|	File Written By:																	|
|	- Lester "GaMerZ" Chan															|
|	- http://lesterchan.net															|
|																							|
|	File Information:																	|
|	- Page Navigation CSS Style													|
|	- wp-content/plugins/wp-pagenavi/pagenavi-css.css					|
|																							|
+----------------------------------------------------------------+
*/

.wp-pagenavi {
	margin-left: 3px;
	}

.wp-pagenavi a, .wp-pagenavi a:link {
	padding: 2px 4px 2px 4px; 
	margin: 2px;
	text-decoration: none;
	border: 1px solid #0066cc;
	color: #0066cc;
	font-weight: bold;
	background-color: #FFFFFF;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	}
	
.wp-pagenavi a:visited {
	padding: 2px 4px 2px 4px; 
	margin: 2px;
	text-decoration: none;
	border: 1px solid #0066cc;
	color: #0066cc;
	background-color: #FFFFFF;	
}
.wp-pagenavi a:hover {	
	border: 1px solid #b41;
	color: #b41;
	background-color: #ddd;
}
.wp-pagenavi a:active {
	padding: 2px 4px 2px 4px; 
	margin: 2px;
	text-decoration: none;
	border: 1px solid #0066cc;
	color: #0066cc;
	background-color: #FFFFFF;	
}
.wp-pagenavi span.pages {
	padding: 2px 4px 2px 4px; 
	margin: 2px 2px 2px 2px;
	color: #999;
/*
	color: #000000;
	border: 1px solid #000000;
*/
	background-color: #FFFFFF;
	}

.pages {
	font-weight: bold; 
	font-size: 110%;
	}

.wp-pagenavi span.current {
	padding: 2px 4px 2px 4px; 
	margin: 2px;
	font-weight: bold;
	border: 1px solid #333;
	color: #333;
	background-color: #F0F0F0;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	}

.wp-pagenavi span.extend {
	padding: 2px 4px 2px 4px; 
	margin: 2px;	
	border: 1px solid #333;
	color: #333;
	background-color: #FFFFFF;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	}

.home-item-img { /*post icon images*/
	float: left;
	width: 100px;
	height: 100px;
	border: 1px solid #D8D8D8; 
	margin: 2px 10px 5px 0px;
	padding: 3px;
	}

