@charset "utf-8";

/*
Theme Name: Batollo Theme
Author: Александр Батолло
Author URI: https://batollo.ru/
Version: 0.1.0
*/

@import url('https://fonts.googleapis.com/css?family=Open+Sans');

body {
  font-family: 'Open Sans', sans-serif;
  max-width: 1050px;
  margin: 0 auto;
  color: rgba(33, 33, 33, 1); /* Мягкий чёрный */
}

/* Набор оттенков:
Основной: rgba(183, 26, 44, 1);
Темнее: rgba(111, 0, 13, 1);
Светлее: rgba(211, 59, 77, 1);
Совсем светлый: rgba(238, 102, 118, 1);
Мягкий чёрный: rgba(33, 33, 33, 1); */

.top-widget-area {
  display: flex;
  justify-content: center;
}

.top-widget-area > .textwidget {
  width: 1050px;
}

/* 
===================================
        НАЧАЛО НАВИГАЦИИ //
===================================
*/

nav.dropdown {
  margin: 1rem 0;
  border-top: 3px solid #b71a2c;
  border-bottom: 3px solid #b71a2c;
  display: flex;
  flex-direction: row;
}

.logo {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1rem 0;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  flex: 1;
  background-color: white;
}

.logo a {
  color: rgba(183, 26, 44, 1);
  text-transform: uppercase;
}

.logo-bg {
  background-color: rgba(183, 26, 44, 1);
}

.logo-bg a {
  color: white;
}

.label-bg {
  color: white !important;
}

.current-post-ancestor > a {
  background-color: rgba(183, 26, 44, 1);
  color: white !important;
}

.home-url {
  display: inline-block;
  text-decoration: none;
  color: white;
}

.main-menu > .menu {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  list-style-type: none;  
  display: flex;
  flex: 8;
}

.main-menu > .menu li {
  flex-grow: 1;
  flex-shrink: 1;
}

.main-menu > .menu > .menu-item a {
  color: rgba(183, 26, 44, 1);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1rem 0;
  display: block;
  text-align: center;
  text-transform: uppercase;
}

.main-menu > .menu > .menu-item a:hover {
  background-color: rgba(183, 26, 44, 1);
  color: white;
  transition: 0.3s;
}

.main-menu > .menu > .current-menu-item a {
  color: white;
  background-color: rgba(183, 26, 44, 1);  
}

#checkbox-toggle {
  display: none;
}

.menu-collapse-button {
  display: none;
  cursor: pointer;
  font-size: 2rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  left: 1.75rem;
  top: 1.75rem;
  color: rgba(183, 26, 44, 1);
  position: absolute;
  font-family: 'Open Sans', sans-serif;
}

@media screen and (max-width: 50rem) {
  nav.dropdown {
    flex-direction: column;
  }

  .main-menu > .menu {
    flex-direction: column;
    display: none;
  }

  .menu-collapse-button {
    display: block;
  }

  input[type=checkbox]:checked ~ ul {
    display: flex;
  }
}

/* 
-----------------------------------
          Начало меню в подвале  /
-----------------------------------
*/

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 25%);
}

.footer-widget-area {
  padding-bottom: 1rem;
}

.footer-widget-area-title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
}

.footer-widget-area > div > ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.footer-widget-area > div > ul > li > a {
  text-decoration: none;
  color: rgba(183, 26, 44, 1);
  font-size: 18px;
}

.footer-widget-area > div > ul > li > a:hover {
  color: black;
}

.footer-widget-area > .textwidget {
  color: darkgrey;
}

.footer-widget-area > .textwidget a {
  color: darkgrey;
}

.footer-widget-area > form > label > .screen-reader-text {
  display: none;
}

.footer-widget-area > form > label > [type=search] {
  float: left;
  width: 80%;
  border: none;
  cursor: pointer;
  background-color: lightgrey;
  height: 2rem;
  font-family: 'Open Sans', sans-serif;
}

.footer-widget-area > form > label > [type=search]::placeholder {
  padding-left: 5px;
}

.footer-widget-area > form > input[type=submit] {
  float: right;
  width: 20%;
  background: #ddd;
  border: none;
  cursor: pointer;
  height: 2rem;
  font-family: 'Open Sans', sans-serif;
}

@media screen and (max-width: 50rem) {
  .footer-widgets {
    grid-template-columns: 100%;
    margin: 0 1rem;
  }
}

.footer-menu > .menu li {
  flex: 1 1 0;
}

.footer-menu > .menu > .menu-item a {
  color: darkgrey;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
  text-align: center;
}

.footer-menu > .menu > .menu-item a:hover {
  color: black;
  transition: 0.3s;
}

nav.social-menu {
  margin: 1rem 0;
}

.social-menu > .menu {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  list-style-type: none;  
  display: flex;
}

@media screen and (max-width: 50rem) {
  .social-menu > .menu {
    flex-direction: column;
  }
}

.social-menu > .menu li {
  flex: 1 1 0;
}

.social-menu > .menu > .menu-item a {
  color: darkgrey;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
  text-align: center;
}

.social-menu > .menu > .menu-item a:hover {
  color: black;
  transition: 0.3s;
}

/* 
===================================
        // КОНЕЦ НАВИГАЦИИ
===================================
*/

/* 
===================================
          НАЧАЛО АРХИВА //
===================================
*/

.archive-title {
  grid-column: span 2;
  text-align: center;
  font-size: 2rem;
}

@media screen and (max-width: 50rem) {
  .archive-title {
    grid-column: 1;
  }
} 

/* 
===================================
        // КОНЕЦ АРХИВА
===================================
*/

/* 
===================================
          НАЧАЛО ОБЁРТКИ //
===================================
*/

.article-and-widgets {
  display: grid;
  grid-template-columns: 700px 300px;
  grid-gap: 50px;
}

.preview-area {
  grid-column: 1;
}

.article-body {
  grid-column: 1;
}

.widgets-area {
  grid-column: 2;  
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  align-items: start;
  align-content: start;
  justify-items: end;
  justify-content: center;
  grid-gap: 1rem;
  padding-top: 1rem;
}

.aside-widget-area {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  align-items: start;
  align-content: start;
  justify-items: center;
  justify-content: center;
}

.aside-widget-area > span {
  font-size: 1.1rem;
  text-transform: uppercase;
  text-indent: 1px;
  font-weight: 700;
  text-align: center;
  padding: 0.3rem 0;
}

.aside-widget-area p {
  margin: 0;
}

.textwidget > img {
  width: 100%;
  height: auto;
}

.preview-and-widgets {
  display: grid;
  grid-template-columns: 735px 300px;
  grid-gap: 15px;
}

@media screen and (max-width: 50rem) {
  .article-and-widgets {
    grid-template-columns: 1fr;
  }

  .preview-and-widgets {
    grid-template-columns: 1fr;
  }

  .widgets-area {
    grid-column: 1;
    justify-items: center;
  }
} 

/* 
===================================
        // КОНЕЦ ОБЁРТКИ
===================================
*/

/* 
===================================
     НАЧАЛО ГЛАВНОЙ СТРАНИЦЫ //
===================================
*/

.preview-area {
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 360px);
  grid-gap: 15px;
  grid-auto-flow: dense;
}

.preview-area-nonindex {
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 360px);
  grid-gap: 15px;
  grid-auto-flow: dense;
}


@media screen and (max-width: 50rem) {
  .preview-area {
    grid-template-columns: repeat(1, 1fr);
    }
  
  .preview-area-nonindex {
    grid-template-columns: repeat(1, 1fr);
    }
}

/* 
-----------------------------------
          Начало коробки /
-----------------------------------
*/

.preview-box {
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.3);
  text-decoration: none;
  display: grid;  
  color: rgb(40,40,40);
  grid-template-rows: min-content auto auto;
}

.preview-box:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.3);
  opacity: 0.9;
  transition: .2s ease;
  will-change: transform;
  transform: scale(1.03)
}

.img-block > img {
  width: 100%;
  height: auto;
  align-self: start;
}

.img-block {
  position: relative;
  padding: 0;
  display: flex;
}

.img-block h1 {
  position: absolute;
  background-color: rgba(0,0,0,0.4);
  padding: 0.3rem 1rem;
  color: white;
  font-size: 1.4rem;
  bottom: 0;
  left: 0;
  right: 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  hyphens: auto;
  margin: 0;
}

.img-block h2 {
  position: absolute;
  background-color: rgba(183, 26, 44, 1);
  padding: 0 0.3rem;
  margin: 0;
  color: white;
  font-size: 0.9rem;
  top: 1rem;
  left: 1rem;
  font-family: 'Open Sans', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
}

.preview-box p {
  padding: 0.5rem 1rem 0.25rem 1rem;
  hyphens: auto;
  margin: 0;
}

.article-meta {
  padding: 0.5rem 1rem 1rem 1rem;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: space-between;
  align-self: end;
}

.article-meta-img {
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.5rem;
}

.author > img {
  border-radius: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.5rem;
}

/* 
-----------------------------------
        / Конец коробки
-----------------------------------
*/

/* 
===================================
    // КОНЕЦ ГЛАВНОЙ СТРАНИЦЫ
===================================
*/

/* 
===================================
          НАЧАЛО СТАТЬИ //
===================================
*/

.leading-img {
  position: relative;
  display: flex;
}

.leading-img > img {
  width: 100%;
  height: auto;
  align-self: start;
}

.leading-img h1 {
  position: absolute;
  background-color: rgba(0,0,0,0.4);
  padding: 5px 20px;
  color: white;
  font-size: 4rem;
  bottom: 0;
  left: 0;
  right: 0;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  hyphens: auto;
  margin: 0;
}

.single-article {
  padding-top: 1rem;
  width: 100% !important; 
  margin: 10px 0;
}

.single-article > .article-time {
  padding: 0 20px;
  font-size: 14px;
  color: darkgrey;
}

.single-article p {
  padding: 0 20px;
  margin: 10px 0;
  font-size: 17px;
  color: rgba(33, 33, 33, 1);
  hyphens: auto;
}

.single-article a {
  text-decoration: none;
  color: rgba(183, 26, 44, 1);
}

.single-article a:hover {
  text-decoration: underline;
}

.single-article a:active {
  color: black;
}

.single-article a:visited {
  color: purple;
}

.single-article > div {
  padding: 0 20px;
  margin: auto;
}

.article-body img {
  width: 100%;
  height: 100%;
}

.single-article ul, ol {
  padding: 0 20px;
  margin: 10px 0;
  font-size: 17px;
  color: rgba(33, 33, 33, 1);
}

.single-article figure {
  width: 100% !important;
  margin: 10px 0;
  color: darkgrey;
}

.single-article figcaption {
  padding: 0 20px;
  margin: 10px 0;
  color: darkgrey;
}

.single-article figcaption a {
  color: darkgrey;
  text-decoration: underline;
}

.single-article figcaption a:hover {
  color: black;
  text-decoration: none;
}

.single-article figcaption a:visited {
  color: black;
  text-decoration: underline;
}

.single-article h1 {
  padding: 0 20px;
  margin: 1rem 0 0.5rem 0;
  font-size: 1.7rem;
}

.single-article h2 {
  padding: 0 20px;
  margin: 0.8rem 0 0.4rem 0;
  font-size: 1.5rem;
}

.single-article h3 {
  padding: 0 20px;
  margin: 0.8rem 0 0.4rem 0;
  font-size: 1.3rem;
}

.responsive-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 0px;
	height: 0;
	overflow: hidden;
}

.responsive-container iframe,
.responsive-container object,
.responsive-container embed,
.responsive-container video
{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

table {
    margin: 10px 0;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 13px;
}

table tr {
    background: white;
    border: 1px solid #aeaed3;
}

table tr:nth-child(2n) {
    background: rgba(238, 102, 118, 1);
}

table td {
    border: 1px solid rgba(183, 26, 44, 1);
    padding: 3px 5px;
}

.article-tags {
  padding: 0 20px;
}

.article-tags a {
  font-size: 1.4rem;
  text-decoration: none;
  text-transform: lowercase;
  color: rgba(183, 26, 44, 1);
}

.article-tags a::before {
  content: '#'
}

.article-tags a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 50rem) {
  .leading-img h1 {
    font-size: 1.7rem;
    padding: 5px 20px;
  }
} 

/* 
===================================
         // КОНЕЦ СТАТЬИ
===================================
*/

/* 
===================================
       НАЧАЛО АВТОРА СТАТЬИ //
===================================
*/

.article-author {
  padding: 1rem 20px;
  display: grid;
  grid-template-columns: 15% 85%;
  grid-template-rows: repeat(3, auto-fill);
  align-items: center;
  justify-items: center;
  align-content: center;
  justify-content: center;
}

.author-avatar {
  grid-column: 1;
  grid-row: span 3;  
  margin-right: 1.5rem;
  vertical-align: middle;
}

.author-avatar img {
  border-radius: 50%;
  vertical-align: middle;
}

.author-name {
  grid-column: 2;
  grid-row: 1;
  justify-self: left;
}

.author-name a {
  color: rgba(33, 33, 33, 1); /* Мягкий чёрный */
  margin: 0.5rem 0;
  font-size: 1.3rem;
  text-decoration: none;
}

.author-desc {
  grid-column: 2;
  grid-row: 2;
  color: rgba(56, 56, 56, 1); /* Мягкий серый */
  font-size: 1rem;
  justify-self: left;
}

@media screen and (max-width: 50rem) {
  .author-avatar {
    grid-column: 1;
    grid-row: span 2;
  }

  .author-desc {
    grid-column: span 2;
    grid-row: 3;
  }
}

/* 
===================================
      // КОНЕЦ АВТОРА СТАТЬИ
===================================
*/

/* 
-----------------------------------
        Начало поделиться /
-----------------------------------
*/

.share {
  padding: 1rem 20px;
}

.share-button a {
  text-decoration: none;
}

.whatsapp-share-button {
  color: #1EBEA5;
}

.telegram-share-button {
  color: #2DA4DC;
}

.skype-share-button {
  color: #00AFF0;
}

.email-share-button {
  color: gray;
}

.facebook-share-button {
  color: #3B5998;
}

.twitter-share-button {
  color: #55ACEE;
}

.vk-share-button {
  color: #55ACEE;
}

.ok-share-button {
  color: #EE8208;
}

/* 
===================================
         НАЧАЛО ПОДВАЛА //
===================================
*/

.pagination {
  grid-column: span 2;
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 50rem) {
  .pagination {
    grid-column: 1;
  }
}

.pagination a, .dots {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
  border: 1px solid #ddd;
  font-size: 22px;
}

.pagination .current {
  color: white;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  background-color: rgba(183, 26, 44, 1);
  transition: background-color .3s;
  border: 1px solid #ddd;
  font-size: 1.5rem;
}

.pagination a:hover:not(.active) {background-color: #ddd;}

.site-footer {
  padding: 1rem 0;
}

/* 
===================================
        // КОНЕЦ ПОДВАЛА
===================================
*/

.share {
  font-size: 1.3rem;
  padding-bottom: 1.5rem;
}

.comments-number { 
  font-size: 1.3rem;
}

.comment-body {
  padding: 0.5rem 0;
}

.comments-area {
  padding: 1rem 20px; 
}

a.url {
  color: rgb(42, 88, 133); 
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  font-style: normal;
}

.says {
  visibility: hidden;
}
.comment-author > img.avatar { 
  border-radius: 50%; 
  width: 3rem; 
  float: left; 
  margin-right: 1rem; 
}

.comment-metadata > a { 
  font-size: 1rem;
  text-decoration: none;
  color: darkgray;
}

.comment-content { 
  font-size: 1.2rem; 
  margin: 0 1em; 
  margin-left: 4rem;
}

.reply > a { 
  font-size: 1rem; 
  padding-left: 4rem;
  font-weight: 600;   
  text-decoration: none;
}

.depth-2, .depth-3, .depth-4 {
  margin-left: 4rem; 
}

.comment-respond {
  padding: 0; 
}

.comments-area input[type=text], .comments-area input[type=email], .comments-area textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  margin: 0;
  resize: vertical;
  box-sizing: border-box;  
  font-family: 'Open Sans', sans-serif;
}

.comment-form p {
  margin: 0.5rem 0;
}

.comments-area input[type=submit] {
  width: 100%;
  background-color: white;
  color: rgba(211, 59, 77, 1);
  padding: 12px 20px;
  border: 2px solid rgba(211, 59, 77, 1);
  cursor: pointer;
}

.comments-area input[type=submit]:hover {
  background-color: rgba(211, 59, 77, 1);
  color: white;
}

a[href*="//www.liveinternet.ru/click"] {
  display: none;
}