/**************************************/
/*              GLOBALS               */
/**************************************/
body {
    border:0;
    padding:0;
    margin:0;
    font-family:"Times New Roman";
    color:#222;
    background:#fff;
}
.im {
    border:0;padding:0;margin:0;width:1px;height:1px;background:none;background-image:none;
}
table{border-collapse:collapse;border-spacing:0;}
pre {background:#fafafa;}
ul,ol {
	line-height:1.5em
}
blockquote,pre,code,h1,h2,h3,h4,h5,h6 {
    padding:0;
    margin:0;
}
pre, code, .dean_ch {
    font-size:.9em;
    padding:5px;
}
pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
}
blockquote {
    padding-left:20px;
    border-left:2px solid #ccc;
    font-size:.9em;
    background:#fafafa;
}
.round {
    -moz-border-radius-topleft: 6px;
	-khtml-border-top-left-radius: 6px;
	-webkit-border-top-left-radius: 6px;
	border-top-left-radius: 6px;
	-moz-border-radius-topright: 6px;
	-khtml-border-top-right-radius: 6px;
	-webkit-border-top-right-radius: 6px;
	border-top-right-radius: 6px;
	-moz-border-radius-bottomleft: 6px;
	-khtml-border-bottom-left-radius: 6px;
	-webkit-border-bottom-left-radius: 6px;
	border-bottom-left-radius: 6px;
	-moz-border-radius-bottomright: 6px;
	-khtml-border-bottom-right-radius: 6px;
	-webkit-border-bottom-right-radius: 6px;
	border-bottom-right-radius: 6px;
	
}
.roundBtm {
	-moz-border-radius-bottomleft: 6px;
	-khtml-border-bottom-left-radius: 6px;
	-webkit-border-bottom-left-radius: 6px;
	border-bottom-left-radius: 6px;
	-moz-border-radius-bottomright: 6px;
	-khtml-border-bottom-right-radius: 6px;
	-webkit-border-bottom-right-radius: 6px;
	border-bottom-right-radius: 6px;
}
.roundTop {
    -moz-border-radius-topleft: 6px;
	-khtml-border-top-left-radius: 6px;
	-webkit-border-top-left-radius: 6px;
	border-top-left-radius: 6px;
	-moz-border-radius-topright: 6px;
	-khtml-border-top-right-radius: 6px;
	-webkit-border-top-right-radius: 6px;
	border-top-right-radius: 6px;
}
/* Use this class if a link gets an icon when it shouldn't. */
pre a, code a, .dean_ch a, body a.noicon { background:none; padding:0; margin:0; }
a, a:visited {
	color:#0d8593;
}
a:hover {
    color:#d48113;
}
/* Make sure the icons are not cut */
a[href^="http:"], a[href^="mailto:"], a[href$=".pdf"], a[href$=".doc"],
a[href$=".xls"], a[href$=".rss"], a[href$=".rdf"], a[href^="aim:"] {
  padding:2px 22px 2px 0;
  margin:-2px 0;
  background-repeat: no-repeat;
  background-position: right center;
}
/* External links */
a[href^="http:"]          { background-image: url(/wp-content/themes/smi-theme/images/icons/external.png); background-position:right; padding-right:18px; } 
a[href^="mailto:"]        { background-image: url(/wp-content/themes/smi-theme/images/icons/email.png); }
/* Files */
a[href$=".pdf"]   { background-image: url(/wp-content/themes/smi-theme/images/icons/pdf.png); }  
a[href$=".doc"]   { background-image: url(/wp-content/themes/smi-theme/images/icons/doc.png); }  
a[href$=".xls"]   { background-image: url(/wp-content/themes/smi-theme/images/icons/xls.png); }  
/* Misc */
a[href$=".rss"], 
a[href^="http://feeds.feedburner.com"],
a[href^="http://feedproxy.google.com"],
a[href$=".rdf"]   { background-image: url(/wp-content/themes/smi-theme/images/icons/feed.png); }
a[href$=".habrahabr.ru/"],
a[href^="aim:"]   { background-image: url(/wp-content/themes/smi-theme/images/icons/im.png); }
a[href^="http://mikhailstadnik.com"] { background:none; padding:0; margin:0; }
.wrapper {
    float:none;
    clear:both;
}
input {
    font-size:1.1em;
    line-height:1em;
}
/**************************************/
/*              HEADER                */
/**************************************/
#header {
	height: 90px;
	border:0;
	margin:20px;
}
#logo {
	border:0;
	height:90px;
	width:360px;
        margin-left:70px;
	text-align:center;
	padding-top:7px;
	white-space:nowrap;
}
#logo h1 {
	font-weight: normal;
	font-size:2.55em;
	margin:0;
	padding:0;
}
#logo h1 a {
    text-decoration: none;
    color:#222;
}
#logo div {
    font-family:Arial;
    letter-spacing:11px;
    padding-left:7px;
    font-size:.8em;
    color:#888;
    margin-top:5px;
}
#banner {
	float:right;
	width:730px;
	height:90px;
	background:#eee;
}
#banner {
	width:468px;
	height:60px;
	background:#eee;
	margin:auto;
	margin-top:15px;
}

/**************************************/
/*             NAVIGATION             */
/**************************************/
#menu {
	height:44px;
	padding:0 20px 0 20px;
	margin:20px 0 0 0;
}
#comment {
    width:100%;
}
#respond {
    margin-top: 30px;
}
#searchbox {
	width:330px;
	height:34px;
	background:#afdcd9;
	float:right;
	text-align:center;
	padding-top:7px;
	padding-bottom:2px;
}
#searchbox form {
	display:inline;
}
#b {
    height:30px;
}
#s {
    width:200px;
}
#s, #eml { color:#888; }
#menubox {
	margin:0 370px 0 0;
	border-bottom:2px solid #afdcd9;
	height:40px;
	padding-left:70px;
}
#menu a {
	display:block;
	margin:7px 2px 4px 0;
	padding:4px 22px 4px 22px;
	/*background:#c0f3d2;*/
	font-family:Arial;
	font-size:1.1em;
	float:left;
	color:#666;
	text-decoration:underline;
}
#menu a.active {
    background:#afdcd9;
    padding-bottom:10px;
	 padding-top:7px;
    color:#000;
    font-size:1.1em;
	 margin-top:3px;
    text-decoration:none;
}
#menu a.red {
	background:#ffd6bf;
	color:#f00;
}

/**************************************/
/*            MAIN CONTENT            */
/**************************************/
#main {
    min-height: 1150px;
    height: 1150px;
}
html>body #main {
    height: auto;
}
#comments {
    margin-top:30px;
}
#content {
	margin:30px 400px 20px 40px;
	line-height:1.5em;
	font-size:1.05em;
}
#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
	margin-bottom:20px;
	line-height:1.1em;
	font-weight:normal;
	color: #888;
}
#content h1 {
	font-size:1.8em;
        margin-top:20px;
}
#content h1 a {
    color:#0d8593;
}
.cat {
    color:#222;
}
#content h1 span.cat a {
    color:#444;
}
#right {
	width:350px;
	float:right;
        margin-top:30px;
}
html>body #right {margin-top:auto;}
.sideblock {
	padding:10px;
	background:#afdcd9;
	margin-right:20px;
	margin-bottom:30px;
}
.salad {
	background:#c0f3d2;
}
.sideblock h4 {
	font-size:2em;
	font-weight: normal;
	margin-bottom:10px;
}
.cloud { text-align:justify; }
#cloud, .cloud {
    background:#fff;
    padding:10px;
}
.cloud a {
    text-decoration:none;
    line-height:1.6em;
    font-family:Arial,Helvetica,sans-serif;
    padding:0 3px 0 3px;
}
.cloud a { white-space:nowrap; }
.cloud a:hover {
    background:#c0f3d2;
}
#banner240 {
	width:250px;
	height:250px;
	background:#eee;
	margin:auto;
}
.tags {
	background-image:url(/wp-content/themes/smi-theme/images/icons/tags.png);
	background-repeat: no-repeat;
	background-position: top left;
	padding-left: 20px;
	line-height: 1.5em;
	font-family: Arial,Helvetica,sans-serif;
	font-size:.65em;
	font-weight:bold;
	margin-bottom: 20px;
	color:#555;
}
.tags a {
	color:#4f9f6b;
	font-weight:normal;
	white-space:nowrap;
}
.tags div {
	list-style-image:none;
	float:right;
}
.dark {
	background:#afdcd9;
	padding:1px;
}
.white {
	background:#fff;
	padding:7px 10px 9px 10px;
}
.info {
	font-family:Arial, Helvetica, sans-serif;
	font-size:.65em;
	color:#555;
	line-height:1em;
}
.info a {
	color:#4f9f6b;
	margin-bottom:40px;
}
.links li {
	list-style-image:url(/wp-content/themes/smi-theme/images/icons/external.png);
}
.cats ul {
        list-style-type:none;
}
.cats li {
    list-style-image:url(/wp-content/themes/smi-theme/images/icons/external.png);
}
.links a {
	background:none; padding:0; margin:0;
}
.hr {
        margin-top:30px;
        border-bottom:1px dotted #fff;
        margin-bottom:30px
}
#content img {border:0;}
#content .commentlist           {list-style: none; margin: 10px 0 0 0; padding: 0;}
#content .comment_info          {float:left;text-align:right;width:15%;padding-right:15px;margin-top:30px;}
#content .comment_info a        {}
#content .comment_body          {margin-top:30px;line-height:1.4em;font-size:.9em;float: right; width: 82%; padding-bottom:20px;border-bottom:1px dotted #ccc;}
#content .commentmetadata       {margin:5px 0;}
#content .commentmetadata img   {padding:2px;margin-left:5px;}
#content .comment_author {line-height:1.4em;font-size:.65em;font-family:Arial,Helvetica,sans-serif;}
#content .comment_time {line-height:1.4em;font-style:italic;font-size:.65em;font-family:Arial,Helvetica,sans-serif;}

#content .authorcomment { background:#fafafa; font-style:italic;}
#content .authorcomment a {}
.post-ratings { display:inline; }
.post-ratings img { vertical-align:middle; }
.navigation { font-size:1.3em;}
.navigation a {
    padding:0 5px 3px 5px;
    margin-right:15px;
}
.navigation a:hover {
    background:#c0f3d2;
}
#commentform {
    margin-bottom:20px;
}
/**************************************/

/*               FOOTER               */
/**************************************/
#footer {
	margin:30px 20px 20px 20px;
        padding:20px;
        border-top:2px solid #ccc;
        font-size:.8em;
        font-family:Arial,Helvetica,sans-serif;
        color:#555;
}
#counters {
    float:right;
}