/*
Theme Name: Twenty Twelve

/* =Reset
-------------------------------------------------------------- */

/* CALENDAR */


  .quote-container {
    position: relative;
    max-width: 400px;
    margin: 0 0 20px 0;
    width:92%;
}
@media screen and (min-width:480px)
{ .quote-container {
    width:100%;
    margin: 0 auto 20px;
}}

.note {
  width:calc(100% + 20px);color: #333;
  position: relative;
  margin: 0 auto;
  padding: 16px;

  font-family: Satisfy;

  line-height:22px;
  box-shadow: 0 10px 10px 2px rgba(0,0,0,0.3);
}

.note p{ font-size: 16px;
  font-style:italic;}
.note .author {
  display: block;
    font-size: 16px;
  margin: 30px 0 0 0;
  text-align: right;
}

.yellow {
  background: #F8ECC2;
  -webkit-transform: rotate(2deg);
  -moz-transform: rotate(2deg);
  -o-transform: rotate(2deg);
  -ms-transform: rotate(2deg);
  transform: rotate(2deg);
}

.pin {
  background-color: #aaa;
  display: block;
  height: 32px;
  width: 2px;
  position: absolute;
  left: 50%;
  top: -16px;
  z-index: 1;
}

.pin:after {
  background-color: #A31;
  background-image: radial-gradient(25% 25%, circle, hsla(0,0%,100%,.3), hsla(0,0%,0%,.3));
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px hsla(0,0%,0%,.1),
              inset 3px 3px 3px hsla(0,0%,100%,.2),
              inset -3px -3px 3px hsla(0,0%,0%,.2),
              23px 9px 3px hsla(0,0%,0%,.15);
  content: '';
  height: 12px;
  left: -5px;
  position: absolute;
  top: 0px;
  width: 12px;
}

.pin:before {
  background-color: hsla(0,0%,0%,0.1);
  box-shadow: 0 0 .25em hsla(0,0%,0%,.1);
  content: '';
  height: 24px;
  width: 2px;
  left: 0;
  position: absolute;
  top: 8px;
  transform: rotate(57.5deg);
  -moz-transform: rotate(57.5deg);
  -webkit-transform: rotate(57.5deg);
  -o-transform: rotate(57.5deg);
  -ms-transform: rotate(57.5deg);
  transform-origin: 50% 100%;
  -moz-transform-origin: 50% 100%;
  -webkit-transform-origin: 50% 100%;
  -ms-transform-origin: 50% 100%;
  -o-transform-origin: 50% 100%;
}



/**
YARPP
**/

.relatetitle {
    color: rgb(250, 249, 246);
    font-size: 15px;
    line-height: 1.4;
    margin: 1px;
    max-height: 50%;
    padding: 0 10px 10px;
    position: absolute;
    bottom: 10px;
    left: 10px;
    text-align: left;
    width: 277px;
    font-style: italic;
    background: rgba(57, 54, 54, 0.69);
}
	
.yarpp-related ul li {
	padding: 9px;
    width: 300px;
    float: none;
    margin: 0 auto;
	position: relative;
}	

.yarpp-related img.attachment-thumbnail.size-thumbnail.wp-post-image {
    height: auto;
    width: 300px;
    /*max-width: 300px;*/
 }

@media screen and (min-width:720px){
	.relatetitle {
		width: 200px;
		font-size: 13px;
		line-height: 1.2;
	}
	
	.yarpp-related ul li {
		float: left;
		width: 223px;  
	}

	.yarpp-related img.attachment-thumbnail.size-thumbnail.wp-post-image {
		width: 208px;
		height: auto;
	}
}


@media screen and (min-width:1000px) {
.relatetitle:hover
{
background-color:rgba(213, 63, 63, 0.7);
}
}

/**
RATING
**/

.post-ratings{
text-align:center;    
}

/**
 * Gallery
 * -----------------------------------------------------------------------------
 */

.gallery:before, .gallery:after {
	content: "";
	display: table;
}

.gallery:after {
	clear: both;
}

.gallery {
	margin-bottom: 1.5em;
}

.gallery-item {
	float: left;
	margin: 0 4px 4px 0;
	overflow: hidden;
	position: relative;
	line-height: 10px;
}

.gallery-columns-1 .gallery-item {
	max-width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 48%;
	max-width: -webkit-calc(50% - 4px);
	max-width:         calc(50% - 4px);
}

.gallery-columns-3 .gallery-item {
	max-width: 32%;
	max-width: -webkit-calc(33.3% - 4px);
	max-width:         calc(33.3% - 4px);
}
#gallery-1 img {
    height: auto;
}
.gallery-columns-4 .gallery-item {
	max-width: 23%;
	max-width: -webkit-calc(25% - 4px);
	max-width:         calc(25% - 4px);
}

.gallery-columns-5 .gallery-item {
	max-width: 19%;
	max-width: -webkit-calc(20% - 4px);
	max-width:         calc(20% - 4px);
}

.gallery-columns-6 .gallery-item {
	max-width: 15%;
	max-width: -webkit-calc(16.7% - 4px);
	max-width:         calc(16.7% - 4px);
}

.gallery-columns-7 .gallery-item {
	max-width: 13%;
	max-width: -webkit-calc(14.28% - 4px);
	max-width:         calc(14.28% - 4px);
}

.gallery-columns-8 .gallery-item {
	max-width: 11%;
	max-width: -webkit-calc(12.5% - 4px);
	max-width:         calc(12.5% - 4px);
}

.gallery-columns-9 .gallery-item {
	max-width: 9%;
	max-width: -webkit-calc(11.1% - 4px);
	max-width:         calc(11.1% - 4px);
}

.gallery-columns-1 .gallery-item:nth-of-type(1n),
.gallery-columns-2 .gallery-item:nth-of-type(2n),
.gallery-columns-3 .gallery-item:nth-of-type(3n),
.gallery-columns-4 .gallery-item:nth-of-type(4n),
.gallery-columns-5 .gallery-item:nth-of-type(5n),
.gallery-columns-6 .gallery-item:nth-of-type(6n),
.gallery-columns-7 .gallery-item:nth-of-type(7n),
.gallery-columns-8 .gallery-item:nth-of-type(8n),
.gallery-columns-9 .gallery-item:nth-of-type(9n) {
	margin-right: 0;
}

.gallery-columns-1.gallery-size-medium figure.gallery-item:nth-of-type(1n+1),
.gallery-columns-1.gallery-size-thumbnail figure.gallery-item:nth-of-type(1n+1),
.gallery-columns-2.gallery-size-thumbnail figure.gallery-item:nth-of-type(2n+1),
.gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1) {
	clear: left;
}

.gallery-caption {
	background-color: rgba(0, 0, 0, 0.7);
	-webkit-box-sizing: border-box;
	-moz-box-sizing:    border-box;
	box-sizing:         border-box;
	color: #fff;
	font-size: 12px;
	line-height: 1.2;
	margin: 0;
	max-height: 50%;
	opacity: 0;
	padding: 6px 8px;
	position: absolute;
	bottom: 0;
	left: 0;
	text-align: left;
	width: 100%;
	font-style: italic;
}

.gallery-caption:before {
	content: "";
	height: 100%;
	min-height: 49px;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
}

.gallery-item:hover .gallery-caption {
	opacity: 1;
}

.gallery-columns-7 .gallery-caption,
.gallery-columns-8 .gallery-caption,
.gallery-columns-9 .gallery-caption {
	display: none;
}

@media screen and (max-width: 600px) {
.cat-list li{
    width: 100%;
}
}
@media screen and (min-width: 1024px) {
	.widget_fixed {
		position: fixed;
		top: 60px;
/*		max-width: 336px;*/
max-width: 230px;
		z-index: 1;
		-webkit-transform: translateZ(0);
	}
	.widget_fixed_bottom {
		top: inherit;
		bottom: 0;
		position: absolute;
	}
}



/* Кнопки Для гаданий */
#knpo {
   margin-top:8px;
   display:inline-block;
   color:grey;
   text-decoration:none;
   font-size:18px;
   padding:2px;
   line-height:1em;
   border-bottom:2px dashed;

}
@media screen and (min-width:1000px) {
#knpo:hover {
  color:#b9b7b7;
 }
}

#knre {
	display:inline-block;
  white-space: pre-line;
  margin-top:5px;
  border: 1px solid #c23a3b;
  color: white;
  background: rgb(194, 58, 59);  
  font-weight: bold;
  text-decoration: none;
  padding: 7px 20px;
  font-size: 16px;
  text-align: center;
  border-radius: 3px;
}

@media screen and (min-width:1000px) {
  #knre:hover {
  background: rgba(194, 58, 59, 0.1);  
    color:blue;
	}
}
div#taro_div_knop {
    text-align: center;
}

div#taro_div_vibor {
    padding: 10px 30px 30px 60px;
    font-size:19px;
    font-style:italic;
    line-height:2em;
    color:black;
    font-weight: bold;
    text-shadow: -1px 1px 2px rgba(112, 128, 144, 0.67);
}

/******* Улучшение вида для мобилок 01.08.2017 */
#eapps-instagram-feed-1
{
background-color: #ece4d5;
margin:0 -10px 15px;
width: calc( 100% + 20px ) !important;
}
.eapps-instagram-feed-title-container
{
  display:none;
}

div#date {
    background-color: #ece4d5;
    border-radius: 5px;
    margin: 0 -10px 20px;
    padding: 15px 20px;
    font-style: italic;
    color: #4c4c4c;
    font-size: 17px;
    line-height: 22px;
    border: none;
    min-height: 121px;
	text-align:center;
}


button#zam {
    display: block;
    background: url(/wp-content/themes/hadanie/i/bt.png) repeat-x;
    height: 30px;
    line-height: 30px;
    border-radius: 5px;
    padding: 0px 20px;
    font-style: normal;
    color: #fff;
    text-decoration: none;
    margin: 5px auto;
}




/* Стили для рекламы - залипайки*/

#horo-pers
{
width:193px;
display:block;
max-width:500px;
}

#horo-pers-border {
   padding: 2px;
    background-color: #af3f3f;
    border-radius: 5px 0px 5px;
      box-shadow: 0 0 7px rgba(0,0,0,0.5);
  }
#horo-pers-bg {
    margin: 0 auto;
    padding: 5px;
    text-align: center;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
	font-size:16px;
    cursor: pointer;
    line-height: 1.2em;
	background:#fff;
	color:#0d376f;
}

#horo-pers-bg-img {
  transform: scaleX(-1);
    height: 150px;
    width: 150px;
    cursor: pointer;
    margin: 0 auto 5px;
    border-radius: 100%;
    border: 2px solid #b73d3d;
}

#horo-pers-bg-img img {
    border-radius: 100%;
    width: 146px;
    height: 146px;
}

.pers-button {
    padding: 5px;
    background: #080c62;
    background-image: linear-gradient(to right, #080c62, #55b3ee);
    max-width: 100%;
    color: white;
    margin-top: 5px;
    display: block;
    width: 300px;
    margin: 0 auto;
    margin-top: 5px;
    border-radius: 5px;
	font-weight:bold;
	font-size: 16px;
	text-align:center;

}

.pers-button:hover {
	background-image:none;
	text-decoration:none;
}

#horo-pers-border.pgloba #horo-pers-bg .pers-button:hover
 {
    color:white;
background-image: linear-gradient(to left, #080c62, #55b3ee);
}

@media screen and (max-width: 1300px) {
 #horo-pers-bg-img {
    height: 130px;
    width: 130px;
  }

 #horo-pers-bg-img img {
    width: 126px;
    height: 126px;
 }
 #horo-pers {
    width:160px;
 }
}
@media screen and (max-width: 730px) {
  #horo-pers
  {
    width:98vw;
  }
	#horo-pers-bg {
		font-size: 18px;
		text-align: left;
	}
	.pers-button {
		width:80%;
	}
	#horo-pers-bg-img {
		margin-right: 10px;
		 width:86px;
    height:86px;
    float:left;
	}
	#horo-pers-bg-img img {
    width: 82px;
    height: 82px;
}
}
@media only screen and (max-width: 350px)
{
  #horo-pers-bg-img {
    width:82px;
    height:82px;
  }
  #horo-pers-bg-img img {
    width: 78px;
    height: 78px;
  }
  #horo-pers-bg {
    font-size: 16px;
  }
}


.grid-ad-box{display:table;table-layout:fixed;flex-wrap:wrap;justify-content:space-between;align-content:space-between}
.grid-container{display:table-row;display:inline-block;display:-webkit-flex;display:flex;vertical-align:top;-webkit-flex-wrap:wrap;flex-wrap:wrap;justify-content:space-between;align-content:space-between}
.grid-link-container{display:table;display:inline-block;display:-webkit-flex;display:flex;align-items:center;justify-content:flex-start;margin-top:-2px}
.grid-link{width:95%;height:90%;display:block;display:-webkit-flex;display:flex;text-align:center;line-height:31px;box-shadow:0 1px 1px rgba(255,255,255,.35) inset,0 1px 1px rgba(0,0,0,.3);align-items:center;justify-content:center;background:linear-gradient(to top, #a04242, #d53636);border:1px solid #99173c;border-radius:30px;-webkit-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none;color:#fff;font-weight:400;font-family:arial,sans-serif;font-size:16px}
.grid-link:hover{background-color:#fff;color:#555;text-decoration:none}
a.grid-link{color:#fff;text-decoration:none;font-weight:bold}
.grid-ad-box{height:90px;width:672px}.grid-container{height:71px;width:672px}.grid-link-container{height:35px;width:336px}
@media only screen and (max-width: 360px) {
.grid-ad-box{height:190px;width:300px}.grid-container{height:171px;width:300px}.grid-link-container{height:42px;width:300px}
}
@media only screen and (max-width: 400px) {.grid-ad-box{height:190px;width:355px}.grid-container{height:171px;width:355px}.grid-link-container{height:42px;width:355px}
}
	.adslot_1 {
width: 580px;
height: 400px;
min-height:280px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.adslot_2 {  width: 336px;
height: 280px;
min-height:280px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  margin-bottom: 8px;}

@media (min-width: 320px){
.adslot_1 { width:300px;height: 250px; }
.adslot_2 { width:auto;height: auto; }
}

@media (min-width: 360px){
.adslot_1 { width: 300px; height: 250px; }
.adslot_2 { width: 320px; height: auto; }
}
@media (min-width: 480px){
.adslot_1 { width: 336px; height: 280px; }
.adslot_2 { width: 336px; height: 280px; }
}

@media screen and (min-width: 1024px) {
	.widget_fixed {
		position: fixed;
		top: 60px;
		max-width: 336px;
		z-index: 1;
		-webkit-transform: translateZ(0);
	}
	.widget_fixed_bottom {
		top: inherit;
		bottom: 0;
		position: absolute;
	}
.adslot_2 {
		width:580px;height:400px
	}
}
