/* Свойства flex-контейнера: https://webref.ru/layout/visual-guide-flexbox/container-properties */

/* Общие стили, сброс стилей браузера по умолчанию: */
*, *:after, *:before {
   box-sizing: border-box;
   padding: 0;
   margin: 0;
   transition: .5s ease-in-out; /* добавим плавность переходов для всех элементов страницы*/
   /*overflow: hidden;*/
   text-overflow: ellipsis; /* Добавляем многоточие, если текст не помещается */
}

html,body{
  height: 100%;
}
body {
   /*user-select: none;	/* запрет выделения */
   font-family: 'Open Sans',sans-serif;
   font-size: 1em;
   font-weight: 300;
   line-height: 1.3;
   color: #000;
   background: url(../../images/bg_gradient.jpg) repeat-x;
   background-color: #ffffff;
}  

img {
  pointer-events: none;        /* Отключает реакцию мыши и кнопку Яндекса */
  -webkit-touch-callout: none; /* Отключает сохранение по долгому тапу на смартфонах */
  /*user-select: none;            Отключает выделение */
} 

ul {
   list-style: none;
}
a {
   text-decoration: none;
   outline: none;
}
img {
   display: block;
   padding:5px;
   width: 100%;
}

h1, h2, h3, h4, h5, h6 {
   font-family: 'Playfair Display';
   font-weight: normal;
   letter-spacing: 1px;
   text-align:center;
   margin-bottom:7px;
}

h1, h2 {
  font: bold normal 18px/18px Garamond;
  COLOR: #000;
  padding: 10px;
  text-align: center;
  text-shadow: 0px 1px #bbb;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
h2 {
  font-size:16px
}

input[type="radio"] { margin:5px; }

textarea {
  overflow: auto;
  margin: 3px;
  width: 95%;
}
p {
  text-indent: 10pt;
  margin-bottom:5px;
  margin: 10px;
  hyphens: auto;
}

 blockquote{
  background: transparent;
  border-left: 3px solid #ccc;
  display: block;
  margin: 12px 0;
  padding: 0 12px;
  color: #630;
  font-style: italic; 
  text-indent: 0;
}
blockquote p {text-indent: 0;}
footer, footer p {
  line-height: 1.0;
  color: #fff;
  }
.right {
  float: right;
}
.left {
   float: left;
}
.wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	background: url(../../images/oblaka.png) repeat-x;
}
.red{color: red;}

.clearfix {clear: both; width:100%;}
.none {display: none;}

.main-content { /* .container + aside  */
   display: flex;
   flex-direction: row;
   justify-content: center;
   flex: 1 0 auto; 
   }
	
/* стилевой класс, который управляет шириной контейнера сетки*/
.container { border: red solid 0px;  /* в шаблоне == 3 == контейнера */
   width: 100%;
   max-width: 1140px;
   padding: 0 15px;
   display:flex;
   flex-wrap:wrap;
   align-content:flex-start;	
   align-items:flex-start;
}
.content { 
   background: url(../../images/bg_gradient.jpg) 0 -120px repeat-x; 
   border-radius: 8px;
   padding: 0 15px;
}


/* Статьи */
.article-item{
	display: flex;
    flex-direction: column;
	border: #fff groove 2px;
    border-radius: 8px;
	text-align: center;
	height:auto;
	position:relative;
	margin:2px 5px;
	max-width: 350px;
	flex:1 270px;
}
.article-item a:hover > div { color: #6F0; height:100%; line-height:200%;  transition: .01s ease-in-out;}
.article-item img{
	  max-height: 350px;
	  margin:0;
	  padding:0;
}
.article-title{
	height: auto;
	overflow:hidden;
    background:url(../../images/fon_blac_transp.png) repeat; position:absolute; bottom:0; left:0;
	width: 100%;
	font: normal normal 22px/22px "Times New Roman", Times, serif;
    color: #FFF;
    text-align: center; 
}
.h1 {position:relative;}
.viewings{position:absolute; top:0;right:0;}
.abzac {
  background: url(../../images/transp_fon.png) repeat;
  border-radius: 8px;
  border: 0px #FFF solid;
  padding: 5px;
  margin: auto;
  text-indent: 10pt;
  }


 #rubric {display: flex; font: normal normal 16px/16px "Times New Roman", Times, serif;
	width: 100%;
    justify-content:flex-end;
}
#explanation {background:url(../../img/transp_fon.png) repeat; 
border-radius:5px; 
border:0px #FFF; 
padding:3px; 
color: #630; 
font:italic normal 20px/20px "Times New Roman", Times, serif; 
margin-bottom:10px; 
position:relative;}  

.markers {margin-top: 3px; text-indent: 0pt;}
.markers li{  /* маркированный список */
  list-style-type: disc;
  margin-left: 45px;
}
.markers li::marker {
	color: green;
	font-size: 18px;
}
.underline-purple { text-decoration: solid underline purple 2px;   
}
.blue {color: blue;}

.epigraf {font: italic normal 1.1em/14px "Times New Roman", Times, serif;
   color: #440; display: inline-flex; width: 100%; justify-content:flex-end;
}

.category-title{height: auto;
  background-color: rgba(0, 0, 0, 0.2); border-radius:7px;  margin:5px; padding:5px;
  width: 100%; 
  font: normal normal 22px/22px "Times New Roman", Times, serif;
  color: #FFF;
  text-align: center;}

.sub {display: flex; width:100%; flex-wrap:wrap; flex-direction: row; } 
 
.sub-art {display: flex;  
   flex-direction: column;
   justify-content: left;
   background: url(../../images/transp_fon.png) repeat; 
   border-radius:7px; margin: 3px; 
   text-indent: 10pt;
   border: #fff groove 2px;
   }
.im {
 margin: 0 auto;
   }   
   
.sub-art-content .im img {
   border: #fff groove 2px; border-radius:5px; 
   padding: 0;
   }
   
   
.sub-art-content {display: inline-flex; padding: 5px; width:100%; justify-content: space-between; 
   flex-direction: row; flex-wrap:wrap;}  
.sub-art-in-content {display: inline-flex;
   flex-direction: row; flex-wrap:nowrap;}  
.like-dislike {   display: inline-flex; transition: .5s ease-in-out; flex-direction: row;
   justify-content: right; align-items:baseline; margin: 0px 20px 2px 2px;  height:22px; width:100%; 
   }
.flx-nowrap {display: flex; flex-direction: row; flex-wrap:nowrap;}   
input.like  { background:url(../images/like.svg) no-repeat; width:22px;height:22px; border:solid 0px; 
              background-size: 24px 24px; 
 } 
input.dislike  { background:url(../images/dislike.svg) no-repeat; width:22px;height:22px; border:solid 0px;margin: 0px 2px 2px 0px;
                  background-size: 24px 24px; } 
				  
input.like:hover,input.dislike:hover, .clik-like{filter: invert(12%) sepia(88%) saturate(6291%) hue-rotate(345deg) brightness(95%) contrast(96%);} 


.avtor {font: normal italic 16px/16px Georgia, "Times New Roman", Times, serif; color:#556B2F;}   
input.like+span.like, input.dislike+span.dislike { color:green; padding-right:12px;} 
  
/* End Статьи */

/* END  Общие стили, сброс стилей браузера по умолчанию. */

/* Стили для шапки и её содержимого */

header {
   display: flex;
   flex-direction: row;
   justify-content: center;
   width: 100%;
   padding: 15px 0;
   margin-bottom: 5px;
   position: relative;
}
.headline{
	display: table;
	line-height:12px;
	text-align:center;
	}
.headline div{
	display: table-cell;
	}
.headline div p{
	display: inline-block;
	font-family: verdana;
    color: #555;
    font: 500 20px/24px Arial, sans-serif;
    text-shadow: #fff -1px -1px 0, 
                 #333 1px 1px 0;	}
				 
.headline div p a:visited{	color: #555;}			 

/* логотип */
.logo {
   display: block; 
   float: left;
   height: 70px;
   position:absolute; left:-5px;top:-20px;
   z-index:100;
}
#menu {position: relative;padding-left:70px;}
 ul.menu > li{
	display: block;
    height: 30px;
    -webkit-transform: skew(160deg);
    -moz-transform: skew(160deg);
    -o-transform: skew(160deg);
    transform: skew(160deg);
	border-radius: 8px;
	background: rgb(128,128,128, 0.4);
	border: #fff solid 1px;
	padding:6px; 
	margin:2px; 
	color:#fff;
	text-shadow: 0px 1px #000;
	
}

#menu  ul{
 display: flex;
 justify-content: center;
  flex-wrap: wrap;
  column-gap: 2px;

  line-height: 1;
  overflow: hidden;
}
#menu > ul.menu li a, #menu > ul.menu li a:visited {color:#fff;}

#menu > ul.menu li a:hover{color:lime;}


/* End cтили для шапки и её содержимого */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: #fefefe;
    opacity: .7;
    display: none;
}

.preloader img {
    position: relative;
    left: 50%;
    top: 50vh;
    margin: -100px 0 0 -100px;
}
.btn {
  position: relative;
  display: inline-block;
  color: #555;
  font-weight: bold;
  font-size: 13px;
  text-decoration: none;
  text-shadow: rgba(255,255,255,.5) 1px 1px, rgba(100,100,100,.3) 3px 7px 3px;
  user-select: none;
  padding: 0.8em 1.5em;
  outline: none;
  border-radius: 3px / 100%;
  background-image: linear-gradient(45deg, rgba(255,255,255,.0) 30%, rgba(255,255,255,.8), rgba(255,255,255,.0) 70%), linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0) 20%, rgba(255,255,255,0) 90%, rgba(255,255,255,.3)), linear-gradient(to right, rgba(125,125,125,1), rgba(255,255,255,.9) 45%, rgba(125,125,125,.5)), linear-gradient(to right, rgba(125,125,125,1), rgba(255,255,255,.9) 45%, rgba(125,125,125,.5)), linear-gradient(to right, rgba(223,190,170,1), rgba(255,255,255,.9) 45%, rgba(223,190,170,.5)), linear-gradient(to right, rgba(223,190,170,1), rgba(255,255,255,.9) 45%, rgba(223,190,170,.5));
  background-repeat: no-repeat;
  background-size: 200% 100%, auto, 100% 2px, 100% 2px, 100% 1px, 100% 1px;
  background-position: 200% 0, 0 0, 0 0, 0 100%, 0 4px, 0 calc(100% - 4px);
  box-shadow: rgba(0,0,0,.5) 3px 10px 10px -10px;
}
 
 /* Стили для нижнего колонтитула
Подвал сайта разделим на три равных столбца: */

footer {
   flex: 1 0 1;
   display: flex;
   flex-direction: row;
   justify-content: center;
   padding: 10px 0;
   background: #323232;
   color: white;
   margin-top:30px;
}
.footer-col {
   width: 33.3%;
   float: left;
}
.footer-col h3 {
   margin-bottom:10px;
}
.footer-col a {
   color: white;
   display: block;
   padding-bottom:3px;
}
.footer-col:last-child {
   text-align: right;
}
 /* End Стили для нижнего колонтитула */
.movie {
    width: 100%;
    height: auto;
    margin: 0 auto; /* выравнивает по центру по вертикали*/
    display: block;
    max-width: 640px;
    object-fit: cover;
} 
 /* Медиа-запросы */

@media (max-width: 768px) {
 .headline p:nth-child(even ),.headline div:last-child  {display: none;}
  header {padding: 10px 0;}
   .flx-nowrap {flex-wrap:wrap;} 
}

@media (max-width: 480px) {
   h1 {font-size: 4vw;}
   h2 {font-size: 4vw;}
   .logo {
      display: none;
   }
 .head-img {font-size:6vw !important;}
 .container, .sub-art, .content {padding:0px;}
 .greenball {display: none;}
 .sub-art {hyphens: auto;}
 
 /* отменяем обтекание для столбцов подвала страницы */
   .footer-col {
      float: none;
      margin-bottom: 20px;
      width: 100%;
      text-align: center;
   }
   .footer-col:last-child {
      text-align: center;
      margin-bottom: 0;
   }
}
