/**
 * Theme Name:     Tempera Child
 * Author:         Alexander P. Stanogin
 * Template:       tempera
 * Text Domain:	   tempera-child
 * Description:    Tempera Theme modification for Ateney.ru
 * Author URI:     http://pw-studio.ru
 * Version:        1.0
 */


/* tempera_custom_styles() output */

#header, #main, #topbar-inner { max-width: 1240px; }
#container.one-column { }
#container.two-columns-right #secondary { width:580px; float:right; }

#container.two-columns-right #content { width:570px; float:left; }
/*fallback*/
#container.two-columns-right #content { width:calc(100% - 610px); float:left; }

#container.two-columns-left #primary { width:580px; float:left; }

#container.two-columns-left #content { width:570px; float:right; }
/*fallback*/
#container.two-columns-left #content { width:-moz-calc(100% - 610px); float:right; width:-webkit-calc(100% - 610px); width:calc(100% - 610px); }

#container.three-columns-right .sidey { width:290px; float:left; }
#container.three-columns-right #primary { margin-left:30px; margin-right:30px; }

#container.three-columns-right #content { width:540px; float:left; }
/*fallback*/
#container.three-columns-right #content { width:-moz-calc(100% - 640px); float:left; width:-webkit-calc(100% - 640px); width:calc(100% - 640px);}

#container.three-columns-left .sidey { width:290px; float:left; }
#container.three-columns-left #secondary {margin-left:30px; margin-right:30px; }

#container.three-columns-left #content { width:540px; float:right;}
/*fallback*/
#container.three-columns-left #content { width:-moz-calc(100% - 640px); float:right; width:-webkit-calc(100% - 640px); width:calc(100% - 640px); }

#container.three-columns-sided .sidey { width:290px; float:left; }
#container.three-columns-sided #secondary { float:right; }

#container.three-columns-sided #content { width:540px; float:right; /*fallback*/ width:-moz-calc(100% - 640px); float:right; width:-webkit-calc(100% - 640px); float:right; width:calc(100% - 640px); float:right; margin: 0 320px 0 -1180px; }

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #444444;
    background-color: #171717
}

.widget-title, .widget-title a {
    line-height: normal;
}

.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6, #comments #reply-title, .nivo-caption h2, #front-text1 h1, #front-text2 h1, .column-header-image {
    font-family: Georgia, "Times New Roman", Times, serif;
}

a {
    color: #421111;
}

a:hover, .entry-meta span a:hover, .comments-link a:hover {
    color: #ae740f;
}

/* Main menu top level */
#access a, #nav-toggle span {
    color: #333;
}

#access, #nav-toggle {
    background-color: #e3d1b5;
}

#access > .menu > ul > li > a > span {
    border-color: #c5b397;
    -moz-box-shadow: 1px 0 0 #fbe9cd;
    -webkit-box-shadow: 1px 0 0 #fbe9cd;
    box-shadow: 1px 0 0 #fbe9cd;
}

#access a:hover {
    background-color: #f0dec2;
}

#access ul li.current_page_item > a, #access ul li.current-menu-item > a, #access ul li.current_page_ancestor > a, #access ul li.current-menu-ancestor > a {
    background-color: #f0dec2;
}

/* Main menu Submenus */
#access > .menu > ul > li > ul:before {
    border-bottom-color: #2D2D2D;
}

#access ul ul ul:before {
    border-right-color: #2D2D2D;
}

#access ul ul li {
    background-color: #2D2D2D;
    border-top-color: #3b3b3b;
    border-bottom-color: #222;
}

#access ul ul li a {
    color: #BBB;
}

#access ul ul li a:hover {
    background: #3b3b3b;
}

#access ul ul li.current_page_item > a, #access ul ul li.current-menu-item > a, #access ul ul li.current_page_ancestor > a, #access ul ul li.current-menu-ancestor > a {
    background-color: #3b3b3b;
}

.topmenu ul li a, .topmenu .searchsubmit {
    color: #ccc;
}

.topmenu ul li a:hover, .topmenu .searchform input[type="search"] {
    color: #eee;
    border-bottom-color: #9e8f74;
}

#main {
    background-color: #f4e0c4;
}

#author-info, #entry-author-info, .page-title {
    border-color: #9e8f74;
    background: #F7F7F7;
}

#entry-author-info #author-avatar, #author-info #author-avatar {
    border-color: #eee;
}

.sidey .widget-container {
    color: #333;
}

.sidey .widget-title {
    color: #666666;
    background-color: #F7F7F7;
    border-color: #cfcfcf;
}

.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
    color: #444;
}

.sticky .entry-header {
    border-color: #9e8f74;
}

.entry-title, .entry-title a {
    color: #444;
}

.entry-title a:hover {
    color: #000;
}

#content h3.entry-format {
    color: #333;
    background-color: #e3d1b5;
}

#footer {
    color: #aaa;
}

#footer2 {
    color: #aaa;
    background-color: #8c8273;
}

#footer .widget-container {
    color: #333;
}

#footer .widget-title {
    color: #666;
    background-color: #F7F7F7;
    border-color: #cfcfcf
}

a.continue-reading-link, #cryout_ajax_more_trigger {
    color: #333 !important;
    background: #e3d1b5;
    border-bottom-color: #9e8f74;
}

a.continue-reading-link:after {
    background-color: #493614;
}

a.continue-reading-link i.icon-right-dir {
    color: #9e8f74;
}

a.continue-reading-link:hover i.icon-right-dir {
    color: #493614;
}

.page-link a, .page-link > span > em {
    border-color: #ccc;
}

.columnmore a {
    background: #493614;
    color: #F7F7F7;
}

.columnmore a:hover {
    background: #9e8f74;
}

.button, #respond .form-submit input#submit, input[type=submit], input[type=reset] {
    background-color: #f4e0c4;
    border-color: #ccc;
    box-shadow: 0 -10px 10px 0 #F7F7F7 inset;
}

.button:hover, #respond .form-submit input#submit:hover {
    background-color: #F7F7F7;
}

.entry-content tr th, .entry-content thead th {
    color: #444;
}

.entry-content fieldset, #content tr td, #content tr th, #content thead th {
    border-color: #ccc;
}

#content tr.even td {
    background-color: #F7F7F7 !important;
}

hr {
    background-color: #ccc;
}

input[type="text"], input[type="password"], input[type="email"], textarea, select, input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="month"], input[type="number"], input[type="range"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"] {
    background-color: #F7F7F7;
    border-color: #ccc #eee #eee #ccc;
    color: #444;
}

input[type="submit"], input[type="reset"] {
    color: #444;
}

input[type="text"]:hover, input[type="password"]:hover, input[type="email"]:hover, textarea:hover, input[type="color"]:hover, input[type="date"]:hover, input[type="datetime"]:hover, input[type="datetime-local"]:hover, input[type="month"]:hover, input[type="number"]:hover, input[type="range"]:hover, input[type="search"]:hover, input[type="tel"]:hover, input[type="time"]:hover, input[type="url"]:hover, input[type="week"]:hover {
    background-color: rgba(247, 247, 247, 0.4);
}

.entry-content code {
    border-color: #ccc;
    border-bottom-color: #9e8f74;
}

.entry-content pre {
    border-color: #ccc;
    background-color: #F7F7F7;
}

.entry-content blockquote {
    border-color: #eee;
}

abbr, acronym {
    border-color: #444;
}

.comment-meta a {
    color: #444;
}

#respond .form-allowed-tags {
    color: #999;
}

.comments .reply a {
    background-color: #F7F7F7;
    border-color: #eee;
}

.comments .reply a:hover {
    background-color: #e3d1b5;
    color: #421111;
}

.entry-meta .icon-metas:before {
    color: #ccc;
}

.entry-meta span a, .comments-link a {
    color: #666;
}

.pagination {
    border-color: #ededed;
}

.pagination span, .pagination a {
    background: #F7F7F7;
    border-left-color: #ddd;
    border-right-color: #fff;
}

.pagination a:hover {
    background: #fff;
}

#searchform input[type="text"] {
    color: #999;
}

.caption-accented .wp-caption {
    background-color: rgba(158, 143, 116, 0.8);
    color: #f4e0c4
}

.tempera-image-one .entry-content img[class*='align'], .tempera-image-one .entry-summary img[class*='align'], .tempera-image-two .entry-content img[class*='align'], .tempera-image-two .entry-summary img[class*='align'] {
    border-color: #9e8f74;
}

#content p, #content ul, #content ol, #content dl, .widget-area, .widget-area a, table, table td {
    font-size: 16px;
}

#content p, #content ul, #content ol, #content dl, .widget-area, .widget-area a {
    line-height: 1.5em;
}

#access a, .topmenu ul li a, .footermenu a, .entry-meta span a, .entry-utility span a, #content h3.entry-format, span.edit-link,
h3#comments-title, h3#reply-title, .comment-author cite, .comments .reply a, .widget-title, #site-info a, .nivo-caption h2,
a.continue-reading-link, .column-image h3, #front-columns h3.column-header-noimage, .tinynav, .breadcrumbs, .page-link {
    text-transform: uppercase;
}

#bg_image {
    display: block;
    margin: 0 auto;
}

#content h2.entry-title {
    font-size: 20px;
}

#content .entry-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.widget-title, .widget-title a {
    font-size: 20px;
}

#content .entry-content h1 {
    font-size: 38px;
}

#content .entry-content h2 {
    font-size: 34px;
}

#content .entry-content h3 {
    font-size: 29px;
}

#content .entry-content h4 {
    font-size: 24px;
}

#content .entry-content h5 {
    font-size: 19px;
}

#content .entry-content h6 {
    font-size: 14px;
}

#access ul li a {
    font-size: 18px;
}

#prime_nav > li > a {
    font-weight: bold;
}

#prime_nav > li > a > span {
    padding-left: 18px;
    padding-right: 18px;
}

#access ul ul ul a {
    font-size: 16px;
}

.nocomments, .nocomments2 {
    display: none;
}

#header-container > div {
    margin: 40px 0 0;
}

#content p, #content ul, #content ol, #content dd, #content pre, #content hr {
    margin-bottom: 1.0em;
}

footer.entry-meta,
header.entry-header > .entry-meta {
    display: none;
}

#toTop {
    background: #f4e0c4;
    margin-left: 1390px;
}

#toTop:hover .icon-back2top:before {
    color: #493614;
}

#main {
    margin-top: 20px;
}

#forbottom {
    margin-left: 30px;
    margin-right: 30px;
}

#branding {
    height: 0;
}


/*  Modifications  */

#topbar {
    display: none;
}

#header-container > div {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
}

#site-title,
#site-description {
    float: none;
    display: block;
    text-align: center;
    font-family: "Times New Roman", Times, serif;
    line-height: 1;
    color: #FCF473;
    text-shadow: 1px 3px 6px rgba(0,0,0,.7);

}

#site-title {
    margin: 0 0 5px;
    font-size: 54px;
    font-weight: normal;
}

#site-title span,
#site-title a {
    color: inherit;
}

#site-title a {
    color: inherit;
    font-weight: inherit;
    display: inline;
    letter-spacing: normal;
}


#site-description {
    margin: 0;
    font-size: 26px;
    text-transform: none;
}

#header-widget-area {
    display: block;
    position: static;
    right: auto;
    top: auto;
    overflow: auto;
    height: auto;
    width: auto;
    z-index: auto;
}

#header-widget-area li {
    position: absolute;
    top: 50%;
    overflow: hidden;
    margin: -201px 0 0;
}

#header-widget-area li:first-child {
    left: 50px;
}

#header-widget-area li:last-child {
    right: 50px;
}

#header-widget-area .textwidget > a {
    display: block;
}

#header-widget-area .textwidget span {
    display: block;
    text-align: center;
    font: 28px/1 "Times New Roman", Times, serif;
    color: #FCF473;
    /*text-shadow: 1px 1px 3px rgba(0, 0, 0, .7);*/
}

#header-widget-area .textwidget img {
    display: block;
    margin: 20px auto 45px;
    text-align: center;
}

#header-widget-area .textwidget > a:hover span {
    text-decoration: underline;
}

.sidey .widget-title {
    color: #222;
    background-color: transparent;
    border: 0 none;
    font-weight: bold;
    text-align: center;
}

.pagination .current {
    font-weight: bold;
}


.srpw-ul {
    padding: 0;
}


.srpw-ul li {
    padding: 0;
    margin-bottom: 40px;
}

.srpw-aligncenter {
    margin: 0;
}

.srpw-ul li > a {
    display: block;
    text-align: center;
}

.srpw-ul li img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    padding: 0;
    margin: 0 auto;
}

.srpw-content {
    text-align: left;
    
}

.srpw-title {
    display: block;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.25;
    margin: 10px 0;
}

.srpw-summary {
    
}

.srpw-summary p {
    
}

.widget-area a.srpw-more-link {
    display: block;
    margin: 10px 0 0;
    text-align: center;
    text-decoration: underline;
}

.widget-area a.srpw-more-link:hover {
    text-decoration: none;
}



/* =Responsive Structure
----------------------------------------------- */

@media (max-width: 1920px) {
    #branding, #bg_image {
        height: auto;
        max-width: 100%;
        min-height: inherit !important;
    }
}

@media (max-width: 1250px) {
    #header-widget-area .textwidget img {
        margin: 15px auto 30px;
    }
}

@media (max-width: 1100px) {
    
    #site-title,
    #site-title span a {
        font-size: 46px;
        line-height: 46px;
    }

    #site-description {
        font-size: 16px !important;
        line-height: 1 !important;
    }
    
    #header-widget-area li {
        margin: -173px 0 0;
    }

    #header-widget-area .textwidget img {
        height: 250px;
        width: auto;
    }
    
    #header-widget-area .textwidget span {
        font-size: 24px;
    }
}

@media (max-width: 940px) {
    #header-widget-area li {
        margin: -150px 0 0;
    }

    #header-widget-area .textwidget img {
        height: 200px;
        width: auto;
    }
}

@media (max-width: 800px) {

    #branding #bg_image + #header-container {
        position: static;
    }

    #header-container > div {
        position: static;
        bottom: auto;
        left: auto;
        width: 100%;
        margin-top: -73px;
    }

    #site-title,
    #site-title span a {
        font-size: 35px;
        line-height: 40px;
    }

    #site-description {
        font-size: 18px !important;
        line-height: 1 !important;
    }

    #header-widget-area .yoyo {
        overflow: hidden;
        margin: 20px 0;
    }

    #header-widget-area li {
        position: static;
        top: auto;
        margin: 10px 0;
    }

    #header-widget-area li:first-child {
        left: auto;
        float: left;
        margin-left: 20px;
    }

    #header-widget-area li:last-child {
        right: auto;
        float: right;
        margin-right: 20px;
    }

    #header-widget-area .textwidget span {
        color: #444;
        text-shadow: none;
    }
}

@media (max-width: 780px) {

}

@media (max-width: 650px) {
    #header-container > div {
        margin-top: -75px !important;
    }

    /*#site-title,*/
    /*#site-title span a {*/
    /*    line-height: 30px;*/
    /*}*/

    #site-description {
        font-size: 18px !important;
        line-height: 1 !important;
    }
}

@media (max-width: 600px) {

}

@media (max-width: 480px) {
    #header-container > div {
        margin-top: 20px !important;
    }

    #site-title,
    #site-title span a {
        font-size: 35px !important;
        line-height: 1 !important;
        font-weight: bold;
    }

    #site-description {
        font-size: 18px !important;
        line-height: 1 !important;
    }

    #site-title,
    #site-description {
        color: #444;
        text-shadow: none;

    }
}

@media (max-width: 420px) {
    #header-widget-area .yoyo {
        margin: 0;
    }
    #header-widget-area li:first-child,
    #header-widget-area li:last-child {
        float: none;
        margin: 20px 0 !important;
    }

}
