/*
Theme Name: Ruby Stretch
Theme URI: http://masnikov.com/ruby_stretch
Description: <a href="http://masnikov.com/ruby_stretch">Ruby Stretch</a> is an advanced, three column, flexible width theme featured with your own <a href="http://gravatar.com">Gravatar</a>! It will be shown in the top left corner. There are more colors:  <a href="http://masnikov.com/emerald_stretch">Emerald</a> and <a href="http://masnikov.com/sapphire_stretch">Sapphire</a>.
Version: 2.4
Author: Nikolaj Masnikov
Author URI: http://masnikov.com
Tags: red, white, light, three-columns, flexible-width, left-sidebar, right-sidebar
*/

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: #fff;
  font-family: Verdana, Tahoma, Helvetica, Arial, sans-serif;
  font-size: 62.5%;
  color: #000000;
}

#wrapper{
  min-width: 900px;
  position: relative;
  min-height: 100%;
}

p {
  margin: 0px 0px 10px 0px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Helvetica, Arial, Verdana, sans-serif;
  font-weight: normal;
  margin-bottom: 10px;
  color: #7d6363;
}

a {
  border: 0px;
  color: #8b1313;
  text-decoration: none;
}

a:hover {
  color: #be0404;
  text-decoration: underline;
}

img {
  border: 0px;
}

hr {
  color: #FFF;
  height: 0px;
  border: 1px dotted #790202;
  margin-top: 3px;
  margin-bottom: 3px;
}

/*code {
  font: 12px Monaco, "Lucida Console", "Courier New", "Courier", monospace;
  padding: 15px;
  border: #790202 1px solid;
  background: #ffdada;
  display: block;
}*/

code, pre {
  font: 'Courier New', Courier, Fixed;
  font-size: 110%;
  border: #8b1313 1px solid;
  background: #ffdada;
  overflow: auto;
  padding: 5px;
  display: block;
  width: 100%; /* Important for IE6 */
}

#header {
  color: #eac6c6;
  clear: both;
  /*height: 100px;*/
  /*border-top: 10px #7f0e0e solid;*/
  background: #790202 url(img/header_back.gif) left repeat-x;
  margin-bottom: 15px;
}

#header .art-Logo-name h1, #header .art-Logo-name h2
{
  font-family: "Trebuchet MS", "Myriad Pro", Verdana, Tahoma, Arial, Helvetica;
  /*letter-spacing: -1px;*/
  font-size: 250%;
  padding: 5px 0px 0px 0px;
  /*margin: 0px 150px 0px 0px;*/
  margin: 0;
  line-height: 90%;
}

#header h2 {
  font-family: "Trebuchet MS", "Myriad Pro", Verdana, Tahoma, Arial, Helvetica;
  font-size: 160%;
  padding: 1px 0px 0px 0px;
  margin: 0px;
}

#header h1, #header h2, #header a, #header a:hover, #header a:active, #header a:visited 
{
  color: #eac6c6;
  text-decoration: none;
  border: 0;
}

#header a:focus {
  outline:none;    /* kills dotted border around the link */
}

#header a img {
  border: 0;
}

#header-logo {
  float: left;
  /*width: 111px;
  height: 100px;*/
  /*background: #790202 url(img/left_logo.png) left no-repeat;*/
  border: 0;
/*  margin: 15px 0px 0px 25px;*/
  position: relative;
  top: 15px;
  left: 25px;
}

#header-title
{
  margin: 0px 0px 10px 126px;
  text-align: left;
  height: 70px;
  border: 0;
}

#search {
    height: 40px;
    position: absolute;
    right: 340px;
    top: 25px;
    /*width: 400px;*/
}
#search input.search {

    padding: 7px 10px;/*отступы от текста в форме поиска*/
    width: 262px;
    font: 15px Verdana,Tahoma,Arial,sans-serif;
    font-style: italic;
//    background-color: #EAC6C6;
    background-color: #F0E0E0;
    border-radius: 10px;
    border-bottom:4px solid #888888;    /* Граница снизу */
    border-right:4px solid #888888;        /* Граница справа */
}
#search input.go {
    background: url("img/searchBut.png") no-repeat scroll 0 0 transparent;
    border: medium none;
    cursor: pointer;
    position: absolute;
    right: 5px;
    top: 1px;
    width:  32px;
    height: 32px;
}

#header-navi {
  border: 0px;
  height: 35px;
  font-size: 100%;
  padding: 0;
  margin: 10px 1px 0px 117px;
  vertical-align: middle;
}

#header ul {
  margin: 0;
  padding: 0;
  float: left;
}

#header-navi ul li {
  line-height: 34px;
  text-align: center;
  float: left;
  list-style: none;
}

#header-navi li a {
  padding: 0px 9px;
}

#header-navi li a:hover {
  background: #FFFFFE;
  color: #7f0e0e;
}

#header-navi a, #header-navi a:active, #header-navi a:visited {
  color: #d79292;
  text-decoration: none;
  display: block;
}

/* Drop-down menus */
#dropmenu, #dropmenu ul {
  margin:0;
  padding:0;
  list-style-type:none;
  list-style-position:outside;
  position:relative;
  z-index:300;
  width:100%;
}

#dropmenu a {
  display:block;
  padding:0.25em 1em;
  text-decoration:none;
}

#dropmenu a:hover {
}

#dropmenu li {
  float:left;
  position:relative;
}

#dropmenu ul {
  position:absolute;
  display:none;
  width:13em;
  top:1.9em;
  border:1px solid #a21616;
}

#dropmenu ul a {
}

#dropmenu li ul {
  width:13em;
  top:auto;
  background: #aa1717;
}

#dropmenu li ul a {
  width:  11.6em;
  height: auto;
  float:  left;
  text-align: left;
}

/* Sub-menu */
#dropmenu ul ul {
  top:auto;
}

#dropmenu li ul ul {
  left: 13em;
  margin:0px 0 0 0px;
}

#dropmenu li:hover ul ul, #dropmenu li:hover ul ul ul, #dropmenu li:hover ul ul ul ul {display:none;}
#dropmenu li:hover ul, #dropmenu li li:hover ul, #dropmenu li li li:hover ul, #dropmenu li li li li:hover ul {display:block;}
/* Drop-down menus */


#content-wrapper {
  margin-bottom: 1em;
  float: right;
  width: 78%;
  display: inline;
}

#content {
  width: 73%;
  float: left;
  font-size: 120%;
  line-height: 150%;
  display: inline;
  text-indent: 10px; /* Отступ первой строки абзаца в пикселах */
  text-align: justify;
}

#content div.navigation {
  display: block;
  overflow: hidden;
  clear: both;
  text-indent: 0px; /* Отступ первой строки абзаца в пикселах */
}

#content a {
  text-decoration: underline;
}

#content a:visited {
  color: #800080;
}

#content a:hover {
  color: #be0404;
}

#content img {
    display: block;
}

/*Заголовки постов*/
#content h1, #content h2{
  margin-top: 0;
  font-size: 200%;
  line-height: 120%;
  color: #8b1313;
  background: #ffeeee;
  text-indent: 0px; /* Отступ первой строки абзаца в пикселах */
  text-align: center;
}

#content h3, h4 {
  font-size: 130%;
  line-height: 120%;
  font-weight: bold;
}

#content blockquote {
  background-color: #ffdada;
  border-left: 3px solid #8b1313;
  margin: 0 0 5px 15px;
  padding: 5px 10px 1px 8px;
}

#content h1 a, #content a h1,
#content h2 a, #content a h2,
#content h3 a, #content a h3 {
  text-decoration: none;
}

#content h1 a:visited, #content a:visited h1,
#content h2 a:visited, #content a:visited h2,
#content h3 a:visited, #content a:visited h3 {
  color: #8b1313;
  text-decoration: none;
}

#content h1 a:hover, #content a:hover h1,
#content h2 a:hover, #content a:hover h2,
#content h3 a:hover, #content a:hover h3 {
  color: #be0404;
  border-bottom: 1px dotted;
  text-decoration: none;
}

#content .pagetitle {
  margin-bottom: 20px;
  border-bottom: 1px dotted #790202;
}

#content ul, #content ol {
    display: block;
    overflow: hidden;
    position: relative;
}

#content ul {
  list-style: square;
}

/*#content ul li, #content ol li {
    padding: 0;
//    line-height: 1.2em;
}*/

#sidebar-left {
  list-style: none;
  float: left;
  width: 18%;
  margin-left: 15px; //15
  font-size: 110%;
  display: inline;
  line-height: 125%;
}

#sidebar-right {
  list-style: none;
  float: right;
  width: 23%;
  margin-right: 15px;
  font-size: 110%;
  display: inline;
  line-height: 125%;
}

#sidebar-left h2, #sidebar-right h2 {
  margin-top: 0px;
  font-size: 120%;
  font-weight: normal;
  color: #eac6c6;
  background-color: #8b1313;
  border-top: 4px solid #7f0e0e;
  border-bottom: 4px solid #941e1e;
  padding: 1px 0 1px 10px;
  line-height: 110%;
}

#sidebar-left h2 a, #sidebar-right h2 a{
  color: #cde9a7;
  text-decoration: none;
}

#sidebar-left ul, #sidebar-right ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#sidebar-left ul li, #sidebar-right ul li {
  margin: 0 0 20px 0;
}

#sidebar-left ul ul, #sidebar-right ul ul {
  padding: 0 0 0 8px;
}

#sidebar-left ul ul li, #sidebar-right ul ul li,
#sidebar-left ul ul ul li, #sidebar-right ul ul ul li {
  margin: 5px 0;
}

#postmeta {
  font-size: 90%;
  margin-bottom: 20px;
  padding-bottom: 3px;
  border-bottom: 1px dotted #790202;
  color: #999;
  clear: both;
  line-height: 100%;
  text-indent: 0px; /* Отступ первой строки абзаца в пикселах */
}

#postmeta a {
  text-decoration: none;
}

#postmeta a:visited {
  color: #8b1313;
}

#postmeta a:hover {
  text-decoration: underline;
}

#postmeta p {
  line-height: 100%;
}

#postmeta img {
  vertical-align: middle;
  margin: 0 4px 0 0;
}

#postmeta .editlink {
  float: right;
  margin-top: 5px;
}

.postnav {
  width: 86%;
  float: left;
  list-style: none;
  line-height: 110%;
  margin-top: -10px;
  margin-bottom: 20px;
  padding: 0;
}

.postnav li.left {
  display: block;
  float: left;
  padding: 0;
  margin: 0;
}

.postnav li.right {
  display: block;
  float: right;
  padding: 0;
  margin: 0;
}


#comments {
  clear: both;
  float: none;
  margin-top: 50px;
}

.comment{
    border: 1px solid #e1e1e1;
    margin: 5px 2px 2px 4px;
    padding: 4px 2px 2px 4px;
    background-color: #fff0f0;
}

#comments ul li, #comments ol li {
  margin-bottom: 40px;
  border-bottom: 1px dotted #790202;
    background: #fff0f0;
}

#comment-area {
}

#comment-form {
}

.commenter {
  /*color: #548fdd;*/
  color: #777;
}

.comment-moderation {
  color: red;
}

.comment-info {
}

#footer {
  position: relative;
  margin: -25px 0 0;
  clear: both;
  height: 17px;
  line-height: 17px;
  color: #eac6c6;
  padding: 0 15px 0 15px;
  font-size: 110%;
  border-top: 4px solid #7f0e0e;
  border-bottom: 4px solid #941e1e;
  background: #8b1313;
}

#footer a {
  color: #d79292;
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

#footer p {
  margin: 0;
}

#footer-left {
  float: left;
  text-align: left;
}

#footer-right {
  float: right;
  text-align: right;
}

.hasFloat:after {
  content: "";
  display: block;
  clear: both;
}

#searchform input {
  font-family:Tahoma, Arial, Helvetica, sans-serif;
  font-size:12px;
  background-color:#8b1313;
  margin: 0 0 3px 0;
  padding: 2px 4px 2px 4px;
  border:#7f0e0e 1px solid;
  color:#eac6c6;
}

#searchform input:hover {
  cursor:pointer;
  background-color:#7f0e0e;
  border:#7f0e0e 1px solid;
  color:#eac6c6;
}

#searchform #s {
  font-family:Tahoma, Arial, Helvetica, sans-serif;
  font-size:12px;
  margin: 0 0 3px 0;
  background-color:#ffdada;
  padding: 3px 4px 3px 4px;
  border:#7f0e0e 1px solid;
  color:#222;
}

#searchform #s:hover {
  background-color:#eac6c6;
  color:#222;
}

img#wpstats {
  width: 0px;
  height: 0px;
  padding: 0px;
  border: none;
  overflow: hidden;
}

.aligncenter,
div.aligncenter {
   display: block;
   margin-left: auto;
   margin-right: auto;
}

.alignleft {
   float: left;
   display: auto;
   margin: 0 10px 10px 0;
}

.alignright {
   float: right;
   display: auto;
   margin: 0 0 10px 10px;
}

.alignnone {
   float: none;
}

.wp-caption {
   border: 1px solid #ddd;
   text-align: center;
   background-color: #f3f3f3;
   padding: 7px;
   margin: 5px 10px 5px 0px;
   /* optional rounded corners for browsers that support it */
   -moz-border-radius: 3px;
   -khtml-border-radius: 3px;
   -webkit-border-radius: 3px;
   border-radius: 3px;
   text-indent: 0px; /* Отступ первой строки абзаца в пикселах */
}

.wp-caption img {
   border: 0 none;
}

.wp-caption p.wp-caption-text {
   font-size: 90%;
   line-height: 120%;
   padding: 0 10px 0 0;
   margin: 0;

}

#wp-calendar {
  margin: 0 auto;
  line-height: 150%;
}

table#wp-calendar{
  width: 90%;
}

#wp-calendar a {
	text-decoration: underline;
  font-weight: bold;
}

table#wp-calendar tfoot td a{
  border: 0;
  font-weight: normal;
}

table#wp-calendar th, table#wp-calendar td {
  text-align: center;
}

.widget_tag_cloud {
  line-height: 200%;
}

textarea
{
    float:left;
    width:97%;
    text-align:left"
    margin:5px 0;
    padding:1%;
}

#share42 {padding: 6px 6px 0; background: #FFF; border: 1px solid #E9E9E9; border-radius: 4px;}
#share42:hover {background: #F6F6F6; border: 1px solid #D4D4D4; box-shadow: 0 0 5px #DDD;}
#share42 a {opacity: 0.5}
#share42:hover a {opacity: 0.7}
#share42 a:hover {opacity: 1}

#vk_groups, #vk_groups iframe { width: 100% !important; }

#ali {
    margin: -10px 0px -20px 0px;
    width: 80%;
    background: url(images/logo.jpg) no-repeat;
}