body, * { margin: 0; padding: 0; }
body { font-size: 14px; color: #444; font-family: Marmelad, Verdana, sans-serif; width: 100%; }

body {
    background-color: #FEFCE3;
    background: url(../img/back-tile_v2.png) top center;
}

/*-- FRAME STYLES --*/
.row { width: 100%; display: inline-flex; }
.clearfix { clear: both; }
.container { width: 1170px; margin: auto; overflow: hidden; }
.lightened { background-color: #FFFCF1 !important; } 
.dark-border { border-color: #FFC600 !important; }
.btn { border: 2px solid #FFF; padding: 10px 15px; border-radius: 15px; font-family: Marmelad,Verdana,sans-serif; text-decoration: none; }
.btn-default { border-color: #c58b00 !important; background-color: #ffc600; color: #815b00; font-size: 1.1rem; display: inline-block; }
.btn-default:hover { color: #444; background-color: #c58b00; cursor: pointer; }
/*-- /FRAME STYLES --*/

/*-- HEADER --*/
.header { border: 2px solid #ddd; border-radius: 0 0 10px 10px; border-top: none; padding: 10px 20px; }
.header-nav {}
.header-nav a { text-decoration: none; color: #815b00; padding: 10px 0; font-size: 1.1rem; }
.header-nav a:hover { color: #444; }
.header-nav .nav-item-left { float:left; margin-right: 20px; }
.header-nav .nav-item-right { float: right; margin-left: 20px; }
.header-nav .mobile { display: none; position: relative; }
.header-nav .mobile i { color: #815b00; padding: 10px 0; font-size: 1.7rem; line-height: 0.8; }
#topSearchForm {}
#topSearchForm input[type=text] { border: 2px solid #ffc600; padding: 8px 15px; border-radius: 15px; font-size: 1.07rem; display: inline-block; }
.mobile-nav { display: none; list-style: none; position: absolute; background: #FFFCF1; padding: 10px; border: 1px solid #FFC600; width: 200px; }
.mobile-nav > li { margin: 14px auto; }
.mobile-nav > li > a { font-size: 1.1rem; }

.top-logo-wrap { margin: 15px auto; padding: 0 10px; }
.top-logo { display: inline-block; }
.top-adverts { display: inline-block; float: right; }
/*-- /HEADER --*/


.content-wrap { width: 74.5%; display: inline-block; padding-right: 6px; vertical-align: top; margin-bottom: 15px; }
.content { border: 2px solid #ddd; border-radius: 0 10px 10px 10px; padding: 12px; min-height: 2650px; }
.content.single-post { border-radius: 10px; }
.sidebar { width: 23.9%; display: inline-block; padding-left:8px; vertical-align: top; }
.sidebar-block { border: 2px solid #ddd; border-radius: 10px; min-height: 50px; margin-bottom: 15px; }
.sidebar-block-header { background-color: #FFC600; padding: 10px 20px; color: #815b00; text-align: right; font-size: 1.1rem; }
.sidebar-popular-item { margin-bottom: 1px; }
.sidebar-popular-item a { display: inline-block; width: 100%; position: relative; }
.sidebar-popular-item a img { width: 100%; height: auto; }
.sidebar-popular-item a span { width: 75%; height: 100%; position: absolute; top: 0; left: 25%; text-align: center; color: #FFF; text-decoration: none; text-transform: uppercase; background-color: rgba(0, 0, 0, 0.4); line-height: 4.5rem; }
.sidebar-popular-item a:hover span { width: 100%; left: 0; }
.popular-controls { margin: 20px auto; text-align: center; }
.sidebar-block p { padding: 15px 10px; font-size: 1.02rem; }
.sidebar-block p > a { text-decoration: none; color: #815b00; }
.sidebar-block p > a:hover { color: #444; }
.chart-wrapper { overflow: hidden; padding: 10px; }
.user-rating-chart { list-style: none; font-size: 1.05rem; line-height: 1.4; overflow: hidden; }
.user-rating-chart > li > a { text-decoration: none; color: #815b00; position: relative; }
.user-rating-chart > li > a:hover { color: #444; }
.user-rating-chart > li > a::before { position: absolute; content: ""; border-bottom: 1px dotted #815b00; right: -1005px; bottom: 2px; width: 1000px; }
.user-rating-chart > li > span { float: right; background: #FFFCF1; position: relative; padding: 0 0 0 5px; }
.sidebar-adverts { padding: 10px; text-align: center; }
.sidebar-adverts img { max-width: 100%; }
.promo-social { padding: 10px; text-align: center; }
.promo-social img { margin-bottom: 10px; max-width: 100%; }
.content-tabs { width: 100%; margin: 0; }
.tab-link { display: inline-block; padding: 8px 16px; background-color: #c58b00; border-radius: 10px 10px 0 0; font-size: 1.05rem; text-decoration: none; color: #444; border: 2px solid #c58b00; border-bottom: 0; }
.tab-link:hover {}
.tab-link.active { background-color: #ffc600; border-color: #ffc600; }

.footer { border: 2px solid #ddd; border-radius: 10px 10px 0 0; border-bottom: none; padding: 10px 20px; }
.footer-block { display: inline-block; width: 33%; text-align: left; vertical-align: top; padding: 15px 0; }
.footer-logo { width: 100%; display: inline-block; height: 100px; margin-bottom: 10px; }
.footer-logo img { height: 100%; width: auto; }
.copyright {  }
.footer-link-block { list-style: none; font-size: 1.05rem; line-height: 1.7; }
.footer-link-block a { text-decoration: none; color: #815b00; }
.footer-link-block a:hover { color: #444; }
.counter-block { text-align: center; }

h1.page-title { margin-bottom: 10px; font-weight: normal; font-size: 1.35rem; display: inline-block; }
h3.page-title { margin-bottom: 10px; font-weight: normal; font-size: 1.25rem; display: inline-block; }
.content-list {}
.post-item { border: 1px solid #ebe1cb; padding: 10px; margin-bottom: 12px; }
.post-item-header { display: inline-block; width: 100%; }
.user-avatar { display: inline-block; float: left; text-decoration: none; color: #815b00; font-size: 1.08rem; }
.user-avatar:hover { color: #444; }
.user-avatar img { max-width: 50px; max-height: 50px; vertical-align: middle; border-radius: 8px; margin-right: 10px; }
.user-avatar span {}
.post-item-pubdate { display: inline-block; float: right; vertical-align: middle; font-size: 1.05rem; line-height: 1.6; }
.post-item-pubdate i { color: #815b00; }
.post-taglist { margin-top: 10px; width: 100%; display: inline-block; }
.post-tag-item { margin-bottom: 10px; display: inline-block; margin-right: 4px; vertical-align: top; text-decoration: none; border: 2px solid #c58b00; padding: 6px 10px; border-radius: 12px; background-color: #ffc600; color: #815b00; font-size: 1.03rem; line-height: 1.2; }
.post-tag-item:hover { color: #444; background-color: #c58b00; }
.post-tag-item:last-child { margin-right: 0; }
.post-content {}
.post-content img { max-width: 100%; height: auto; margin: 10px auto; }
h2.post-list-title { margin: 10px 0; font-weight: normal; font-size: 1.25rem; }
h1.post-list-title { margin: 10px 0; font-weight: normal; font-size: 1.25rem; }
.error { color: #cc0000; }
.longpost { max-height: 600px; overflow: hidden; }
.post-expand { width: 100%; padding: 5px 0px; text-align: center; background-color: #ccc; font-size: 1.05rem; display: none; }
.post-expand:hover { background-color: #b5b5b5; cursor: pointer; }
.post-item-controls { width: 100%; margin: 10px auto; font-size: 1.05rem; }
.post-controls-block { display: inline-block; margin-right: 20px; }
.post-controls-block  i { font-size: 1.15rem; color: #815b00; }
.post-controls-block:last-child { margin-right: 0; }
.post-link { color: #815b00; text-decoration: none; }
.post-link:hover { color: #444; }
.post-rating {}
i.vote { font-size: 1.3rem; }
i.vote:hover { cursor: pointer; }
i.fa-thumbs-o-up { color: #008800; margin-right: 5px; }
i.fa-thumbs-o-down { color: #880000; margin-left: 5px; }

.inside-post-controls { margin-top: 15px; }
.inside-post-controls-block { display: inline-block; font-size: 1.04rem; }
.inside-post-list-controls { width: 100%; text-align: center; margin: 10px 0; }

.comments-wrap { padding: 0 10px; margin-bottom: 15px; }
.comments-wrap h3 { font-weight: normal; font-size: 1.2rem; }
.comments-item { margin: 15px 0; width: 100%; padding-bottom: 15px; border-bottom: 1px solid #ebe1cb; }
.comments-item:last-child { border:none; }
.comment-item-image { width: 7%; text-align: left; display: inline-block; vertical-align: top; }
.comment-item-image img { max-width: 50px; max-height: 50px; vertical-align: middle; border-radius: 8px; margin-right: 10px; }
.comment-item-content { display: inline-block; width: 92%; }
.comment-item-author { font-size: 1.03rem; margin-bottom: 8px; }
.comment-item-author a { display: inline-block; text-decoration: none; color: #815b00; }
.comment-item-author a:hover { color: #444; }
.comment-item-text { line-height: 1.3; }
.comment-item-controls {}
.comment-controls-block { display: inline-block; vertical-align: middle; margin-top: 15px; font-size: 1.02rem; }
.comment-rating {}
.comment-rating-label { margin-right: 8px; }
.comment-reply { margin-left: 30px; }
.comment-reply:hover { cursor: pointer; }
.new-comment-form { width: 100%; display: none; }
.new-comment-form textarea { border: 2px solid #ffc600; padding: 8px 15px; border-radius: 15px; font-size: 1.07rem; display: inline-block; margin: 15px 0; width: 90%; }
.new-comment-form span.label { margin-left: 15px; font-size: 1.02rem; }

.paginator { width: 100%; margin: 10px auto; text-align: center; }
.paginator-item { display: inline-block; margin-right: 4px; vertical-align: top; text-decoration: none; border: 2px solid #c58b00; padding: 6px 10px; border-radius: 12px; background-color: #ffc600; color: #815b00; font-size: 1.03rem; line-height: 1.2; min-width: 17px; }
.paginator-item:hover { color: #444; background-color: #c58b00; }
.paginator-item.adjacent { display: inline-block; border: none; background: none; font-size: 1.2rem; }
.paginator-delimiter { display: inline-block; padding: 6px 10px; font-size: 1.03rem; line-height: 1.2; }
.paginator-item-active { display: inline-block; margin-right: 4px; vertical-align: top; text-decoration: none; border: 2px solid #c58b00; padding: 6px 10px; border-radius: 12px; color: #444; background-color: #c58b00; font-size: 1.03rem; line-height: 1.2; min-width: 17px; }

.tags-wrapper { margin-top: 15px; }
.tag-list-item { display: inline-block; width: 49.7%; margin-bottom: 15px; }
.tag-item-image { width: 100%; text-align: left; }
.tag-item-image a { display: inline-block; width: 100%; margin: auto; }
.tag-item-image img { width: 100%; max-width: 370px; height: auto; }
.tag-info { text-align: left; }
.tag-info h3 { font-size: 1.2rem; font-weight: normal; margin-top: 10px; }
.tag-info h3 a { display: inline-block; text-decoration: none; color: #815b00; }
.tag-info h3 a:hover { color: #444; }
.tag-info p { font-size: 1.02rem; }
.tag-cloud { text-align: justify; }
.tag-header-image { margin-bottom: 15px; }
.tag-header-image img { max-width: 100%; height: auto; border: 1px solid #ebe1cb; }

.user-list-item { margin: 10px 0; border-bottom: 1px solid #FFC600; padding-bottom: 10px; }
.user-list-item:last-of-type { padding-bottom: 0; border: none; }
.user-list-image { display: inline-block; width: 25%; vertical-align: top; }
.user-list-image a {}
.user-list-image img { max-width: 90%; height: auto; }
.user-list-info { display: inline-block; width: 70%; vertical-align: top; }
.user-list-info a { display: inline-block; text-decoration: none; color: #815b00; }
.user-list-info a:hover { color: #444; }
.user-list-info h3 { font-size: 1.2rem; line-height: 1.9; }
.user-list-info p { line-height: 1.5; font-size: 1.05rem; }

h1.public-profile-title { border-bottom: 1px solid #FFC600; padding-bottom: 10px; margin-bottom: 10px; display: inline-block; }
.public-profile-content { display: inline-block; width: 100%; }
.public-profile-content-image { display: inline-block; width: 25%; text-align: center; }
.public-profile-content-image img { max-height:200px; max-width: 90%; }
.public-profile-content-info { width: 70%; display: inline-block; vertical-align: top; }
.public-profile-content-info p { line-height: 1.8; }

@media (max-width: 1170px) {
    .container { width: 980px; }
    .top-logo { max-width: 16%; }
    .top-logo img { width: 100%; height: auto; }
    .top-adverts { max-width: 83%; }
    .top-adverts img { width: 100%; height: auto; }
    .content-wrap { width: 74.2%; }
    i.vote { font-size: 1.4rem; border: 1px solid #444; padding: 10px 11px; border-radius: 50%; }
    i.fa-thumbs-o-up { border-color: #008800; }
    i.fa-thumbs-o-down { border-color: #880000; }
}

/*-- сайдбар становится настолько мелким, что показывать его нет смысла --*/
@media (max-width: 980px) {
    .nav-item-left { display: none; }
    .nav-item-left.mobile { display: inline-block; }
    .container.showme { overflow: visible; }
    .container { width: 100%; }
    .header { max-width: 100%; border-radius: 0; border-left: none; border-right: none; }
    .content-wrap { width: 100%; margin-bottom: 0; }
    .content { border-radius: 0; border-left: none; border-right: none; border-bottom: none; min-height: 300px; }
    .content.single-post { border-radius: 0; }
    .sidebar { display: none; }
    .footer { border-radius: 0; border-left: none; border-right: none; border-top: 1px solid; }
}

@media (max-width: 800px) {
    .footer-block { width: 48%; }
    .footer-block:last-child { width: 100%; }
    .footer-link-block { font-size: 0.9rem; line-height: 1.4; }
    .footer-link-block a { display: block; margin: 7px 0; }
}

@media (max-width: 700px) {
    .paginator-item:not(.adjacent) { padding: 6px; font-size: 0.8rem; }
    .paginator-item.adjacent { line-height: 0.6; }
    .paginator-delimiter { padding: 6px; font-size: 0.8rem; }
    .paginator-item-active { padding: 6px; font-size: 0.8rem; }
}

/*-- Мелкие планшеты с портретной ориентацией, мобильники, в т.ч. с альбомной ориентацией --*/
@media (max-width: 640px) {
    body { font-size: 10px; background: #fcf6d6; }
    .top-logo { max-width: 22%; }
    .top-adverts {  display: none; }
    .post-item-pubdate { float: none; text-align: left; width: 100%; margin: 7px 0; font-size: 0.8rem; line-height: 2; }
    .comment-title { display: none; }
    .post-content { font-size: 1.05rem; }
}

@media (max-width: 540px) {
    .paginator-item:not(.adjacent) { display: none; }
    .paginator-delimiter { display: none; }
    .comment-rating-label { display: none; }
    .btn { padding: 5px 7px; }
    .btn-default { font-size: 0.9rem; }
    .new-comment-form span.label { font-size: 0.9rem; width: 100%; display: inline-block; margin: 10px 0; }
    .comment-item-image { width: 100%; margin-bottom: 7px; }
    .comment-item-content { width: 100%; }
    .comment-item-text { font-size: 0.8rem; }
}

@media (max-width: 500px) {
    .tag-list-item { width: 100%; }
    .user-list-info p { font-size: 0.9rem; }
}

@media (max-width: 420px) {
    .user-list-image { width: 100%; text-align: center; }
    .user-list-info { width: 100%; text-align: center; }
}

@media (max-width: 400px) {
    .post-controls-block { margin-right: 0; width: 48%; text-align: center; }
    .post-controls-block:last-child {  width: 100%; text-align: center; margin-top: 20px; }
    .footer-block { width: 100%; }
    .inside-post-controls-block { width: 100%; text-align: center; }
    
}

@media (max-width: 320px) {
    .post-tag-item { margin-bottom: 5px; padding: 3px 5px; border-radius: 8px; font-size: 0.8rem; line-height: 1.0; }
}

.post-list-adverts { width: 100%; margin-bottom: 10px; text-align: justify; }
.post-list-adverts::after { content: ''; display: inline-block; width: 100%; height: 0; }
.post-list-advert-block { display: inline-block; vertical-align: top; max-width: 32%; }
.post-list-advert-block img { width: 100%; height: auto; }
@media screen and (max-width: 640px) { 
    .post-list-advert-block:nth-child(3) { display: none; } 
    .post-list-advert-block { max-width: 47%; }
}
@media screen and (max-width: 400px) { 
    .post-list-adverts { text-align: center; }
    .post-list-advert-block:nth-child(2) { display: none; } 
    .post-list-advert-block { max-width: 90%; }
}