/*
Theme Name: Grey Matter
Theme URI: http://myasnick.com/grey_matter
Description: <a href="http://myasnick.com/grey_matter">Grey Matter</a> — строгая тема для WordPress.
Version: 1.4
Author: Николай Мясников
Author URI: http://myasnick.com
Tags: grey, gray, fixed width, two columns, widgets, valid CSS, valid XHTML, simple, widget ready, right sidebar
*/

html, body {
  height: 100%;
}

body {
  margin: 0 auto;
  padding: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 62.5%;
  color: #555555;
  background: #b1b1b1;
}

h1, h2, h3, h4, h5, h6 {
  margin-left: 0;
}

.noimgshadow img, #ZoomClose img, #ZoomSpin img, #ZoomBox img
{
background:none;
border: 0;
padding:0;
}

img
{
	/*  border: 0;
  padding: 10px;
*/
background:#CCCCCC none repeat scroll 0 0;
border:1px solid #EEEEEE;
border-bottom:2px solid #EEEEEE;
border-right:2px solid #EEEEEE;
padding-bottom:2px;
padding-right:2px;
margin: 10px;
}

img a, a img {
/*  border: 0;*/
}
/* */
a {
  color: #000;
  text-decoration: none;
}

a:hover {
  color: #000;
  text-decoration: underline;
}

p
{
  padding-bottom:4px; 
}

pre
{
  padding-left:20px; 
  line-height: 100%;
}

#wrapper {
  margin: 0 auto;
  width: 960px;
  background: #b1b1b1 url(img/back.gif) top center repeat-y;
}

#header {
  background-image: url(img/header.jpg);
  width: 960px;
  height: 135px;
  clear: both;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid #b1b1b1; /* не трогать, иначе поползет в Мозилле! */
  font-size: 130%;
  color: #747474;
}

#header a, #header a:hover, #header a:visited {
  color: #606060;
  text-decoration: none;
}

#header h2 {
  font-size: 110%;
  font-weight: normal;
  margin: 0;
}

#header h1 {
  font-size: 350%;
  font-weight: normal;
  margin: 0;
}

#header_siteheader {
  clear: both;
  float: left;
  width: 600px;
  height: 83px;
  margin: 0 0 0 40px;
  line-height: 83px;
  display: inline;
}

#header_sidebar {
  float: right;
  width: 250px;
  height: 49px;
  margin: 0 25px 0 0;
  display: inline;
  vertical-align: top;
  padding-top: 32px;
}

#header img {
  float: left;
  margin: 13px 25px 14px 0;
  padding: 0;
  border: 0;
}

#content {
  clear: both;
  font-size: 160%;
  line-height: 160%;
  float: left;
  width: 600px;
  min-width: 600px;
  margin: 0px 0px 0px 40px;
  display: inline;
}

#content img {
  /*border: 0;*/
  /*float: left;*/
  /*margin: 5px 20px 10px 0;*/
}

#content a {
  border-bottom: 1px solid;
}

#content blockquote, #content code {
  border-left: 5px #DDD solid;
  background: #F5F5F5;
  padding: 5px 0px 2px 10px;
  margin: 0 0 10px 30px;
  font-style:italic;
  font-size: 95%;
}

#content code {
	font: 12px Monaco, "Lucida Console", "Courier New", "Courier", monospace;
	display: block;
}

#content a:hover {
  text-decoration: none;
  border-bottom: #000 1px solid;
}

#content h1 {
  font-size: 190%;
  line-height: 120%;
  color: #747474;
  font-weight: normal;
  margin: 20px 0 15px 0;
}

#content h2, #content h3, #content h4, #content h5, #content h6 {
  color: #747474;
  font-weight: normal;
  margin: 20px 0 15px 0;
}

#content a h1, #content h1 a {
  color: #606060;
  text-decoration: none;
  border: 0 none;
}

#content a:hover h1, #content h1 a:hover {
  color: #444;
  text-decoration: none;
  border-bottom: 1px dotted;
}

#content p {
  margin: 0 0 10px 0;
}

#content ul, #content ol {
  padding: 0 0 0 30px;
}

#content ul li, #content ol li {
  margin: 3px 0 3px 0;
  padding: 0;
}

#counters {
  width: 0px;
  height: 0px;
  display: none;
  float: left;
}

#comments {
 font-size: 100%;
 line-height: 140%;
}

#comments .titlebar {
 border-bottom: thin solid lightgrey;
}

.commenter {
  color: #808080;
  font-size: 90%
}

#comments h1 {
  font-size: 150%;
  line-height: 120%;
  color: #606060;
  font-weight: normal;
  margin: 30px 0 10px 0;
}

#comments img {
  float: none;
  margin: 0 5px 0 0;
}

#comments ul, #comments ol {
  padding: 0 0 0 25px;
}

#comments ul {
  list-style: square;
}

#comments ul li, #comments ol li {
  margin: 0 0 40px 0;
  padding: 0;
}

#sidebar {
  font-size: 110%;
  line-height: 110%;
  float: right;
  width: 250px;
  min-width: 250px;
  margin: 0px 25px 0px 0px;
  display: inline;
}

#sidebar img {
  float: none;
  border: 0;
}

#sidebar p {
  margin: 0 0 5px 0;
}

#sidebar h2 {
  font-size: 120%;
  font-weight: normal;
  color: #DDD;
  background-color: #747474;

  padding: 0px 8px;
  line-height: 180%;
  margin: 0 0 10px 0;
}


#sidebar ul {
  list-style: none;
  margin: 0 0 25px 0;
  padding: 0;
}

#sidebar .twitter_title_link {
  color: #DDDDDD;
  text-decoration:underline;
}

#sidebar .twitter-link {
  color:#1DAADE;
  text-decoration:underline;
}

#sidebar .twitter-item {
  list-style: disc;
  list-style-position:inside;
}

#sidebar ul li {
  margin:0 0 10px;
}

#sidebar ul ul {
  padding: 0 0 0 8px;
}

#sidebar ul ul li {
  margin: 0 0 7px 0;
}

.postmeta {
  font-family: Tahoma, Verdana, Arial, Helvetica;
	font-size: 70%;
	border-top: 1px solid #CCC;
	clear: both;

  color: #747474;
  margin: 10px 0 20px 0;
}

.postmeta a {
  color: #747474;
  border: 0 none;
}

.postmeta a:hover {
  color: #000;
  border: 0 none;
  text-decoration: underline;
}

.postmeta img {
  vertical-align: middle;
  margin: 0 4px 0 0;
  border: 0;
}

#postmeta {
  font-family: Tahoma, Verdana, Arial, Helvetica;
	font-size: 70%;
	border-top: 1px solid #CCC;
	clear: both;

  color: #747474;
  margin: 10px 0 20px 0;
}

#postmeta a {
  color: #747474;
  border: 0 none;
}

#postmeta a:hover {
  color: #000;
  border: 0 none;
  text-decoration: underline;
}

#postmeta img {
  vertical-align: middle;
  margin: 0 4px 0 0;
  border: 0;
}

.postnav {
	width: 600px;
	float: left;
	list-style: none;
	line-height: 100%;
  margin: 0;
	padding: 0;
}

.postnav li.left {
	display: block;
	float: left;
}

.postnav li.right {
	display: block;
	float: right;
}

#footer {
  font-size: 130%;
  clear: both;
  width: 960px;
  margin: 0 auto;
  height: 109px;
  background: #b1b1b1 url(img/footer.gif) center no-repeat;
  border: 0;
}

#footer_content {
  line-height: 150%;
  text-align: center;
  height: 58px;
  width: 600px;
  margin: 0px 0px 0px 40px;
}

#footer_content p {
  padding: 10px 0 0 0;
}

#blackband_bottom_left, #blackband_bottom_right,
#blackband_top_left, #blackband_top_right {
  /*width: 440px;*/
  height: 30px;
  color: #CCC;
  line-height: 30px;
}

#blackband_top_left, #blackband_top_right {
  margin-top: 19px;
  line-height: 32px;
  height: 32px;
}

#blackband_bottom_left, #blackband_top_left {
  margin-left: 40px;
  float: left;
  display: inline;
}

#blackband_bottom_right, #blackband_top_right {
  margin-right: 40px;
  float: right;
  text-align: right;
  display: inline;
}

#blackband_top_right {
  margin-right: 34px;
}

#blackband_top_right ul {
  margin-top: 0px;
  float: right;
}

#blackband_top_right ul li {
  line-height: 32px;
  float: left;
	list-style: none;
}

#blackband_top_right ul li a {
  padding: 0 6px 0 6px;
}

#blackband_top_right ul li a:hover, #blackband_bottom_right a:hover, #blackband_bottom_left a:hover {
  color: #FFF;
  text-decoration: underline;
}

#blackband_top_right a, #blackband_top_right a:active, #blackband_top_right a:visited {
  color: #FFF;
  text-decoration: none;
  display: block;
}

#blackband_bottom_right a, #blackband_bottom_right a:active, #blackband_bottom_left a, #blackband_bottom_left a:active {
  color: #FFF;
  text-decoration: none;
}

.hasFloat:after {
  content: "";
  display: block;
  clear: both;
}

#searchform input {
  font-family:Tahoma, Arial, Helvetica, sans-serif;
  font-size:12px;
  background-color:#747474;
  margin: 0;
  padding: 2px 4px 2px 4px;
  border:#747474 1px solid;
  color:#DDD;
  width: 55px;
}

#searchform input:hover {
  /*cursor:pointer;*/
  background-color:#606060;
  border:#222 1px solid;
  color:#fff;
}

#searchform #s {
  font-family:Tahoma, Arial, Helvetica, sans-serif;
  font-size:12px;
  margin: 0 10px 0 0;
  background-color:#DDD;
  padding: 3px 4px 3px 4px;
  border:#747474 1px solid;
  color:#606060;
  width: 170px;
}

#content .pagetitle {
	margin-bottom: 20px;
  font-size: 220%;
  font-weight: normal;
}

img#wpstats {
  width: 0px;
  height: 0px;
  padding: 0px;
  border: none;
  overflow: hidden;
}

#tag_cloud-2 {
  line-height: 220%;
}

.aligncenter,
div.aligncenter {
   display: block;
   margin-left: auto;
   margin-right: auto;
}

.alignleft {
   float: left;
}

.alignright {
   float: right;
}

.wp-caption {
   border: 1px solid #ddd;
   text-align: center;
   background-color: #f3f3f3;
   padding-top: 4px;
   margin: 10px;
   /* optional rounded corners for browsers that support it */
   -moz-border-radius: 3px;
   -khtml-border-radius: 3px;
   -webkit-border-radius: 3px;
   border-radius: 3px;
}

.wp-caption img {
   margin: 0;
   padding: 0;
   border: 0 none;
}

.wp-caption p.wp-caption-text {
   font-size: 11px;
   line-height: 17px;
   padding: 0 4px 5px;
   margin: 0;
}

#wiki img
{
  margin: 0px;
  border: 0px;
  background: white;
}

