/*
 * Theme Name: STRESSFREE
 * Author: Tadeusz Grudzien
 */

div, main, header {
    /*    border: 1px black solid;
        border-collapse: collapse;*/
}

.margged { 
    margin: 0 auto;
}

.clr {
    clear: both;
}

.row {

}

body {
    font-family: 'Open Sans', sans-serif; background-color:#ffffff; font-size:16px;
}

#page, .container {
    margin: 0 auto;
}

#page {

}

.container {
    max-width: 1170px;
}

iframe {
	max-width: 100%;
}

#TopMenu ul {
    list-style: none;
}

#TopMenu li {
    float: left;
}

#TopMenu .menu-underline, .chosen_categories .menu-underline{
    display: none;
    clear: both; 
    margin: 0 auto; 
    position: relative; 
    top: 14px;
}

#TopMenu .menu-underline {
    border: 2px #1471b4 solid; 
    width: 80px; 
}

#TopMenu .current_page_item .menu-underline, .chosen_categories .active .menu-underline {
    display: block;
}

#TopMenu .current_page_item a {
    color: #1471b4;
}

.chosen_categories .menu-underline {
    border: 2px #9ac24b solid;
    width: 60px; 
}

.chosen_categories .active {
    color: #9ac24b;
}

#TopMenu .menu-underline {
    display: none;
    border: 2px #1471b4 solid;
    clear: both;
    width: 80px;
    margin: 0 auto;
    position: relative;
    top: 14px;
}

#searchform {
    display: none;
    clear: both;
    position: absolute;
    top: 100%;
    right: 0px;
    z-index: 999999;
    background-color: white;
    padding: 5px;
    border: 1px #9ac24b solid;
    border-top: none;    
    max-width: 300px;
}

#searchform > div {
    margin-bottom: 15px;
}

.screen-reader-text, #s {
    padding: 5px;
    font-size: 18px;
}

#searchsubmit {
    width: 100%;
    border: none;
    background-color: #9ac24b;
    color: white;    
    padding: 5px;
    font-size: 18px;
}

h6, .h6 {
color:#333333;
font-size:16px;
padding-top: 10px;
line-height:1.5em;
}

h6 a, .h6 a{
color:#1471b4;
font-size:20px;
font-style:normal;
font-weight:bold;
text-align:center;
}

h6 a:hover, .h6 a:hover{
color:#005898;
font-size:20px;
font-style:normal;
font-weight:bold;
text-align:center;
text-decoration:none;
}

h6 a img{
margin-right:20px!important;
margin-top:-10px!important;}

.post .single h6 hr {
border-bottom:1px solid #cccccc;
clear:both;
}

.top-social-row {
    max-height: 15px;
    text-align: right;
}

#breadcrumbs {
    font-weight: 400;
    font-size: 16px;
    display: inline-block;
    list-style-type: none;
    margin: 5px 0;
    float: left;
    padding: 0;
text-align: left;
}
#breadcrumbs li{
    margin-right: 5px;
    float: left;
}

#breadcrumbs a, #breadcrumbs .separator{
    color: #9ac24b;
}

#breadcrumbs a, #breadcrumbs a:visited {
    text-decoration: none;
}

#breadcrumbs .bread-current {
    font-weight: 400;
    color: #999999;
}

#breadcrumbs .current {
    text-transform: capitalize;}

#breadcrumbs .itemListElement:not(:first-child) span{
    text-transform: capitalize;
}

.reset-padding {
    padding: 0;
}

.post-category {
    padding: 4px 6px; 
    margin-right: 5px;
    margin-bottom:5px;
    float: left;
}

/* Navigation */ 

#navigation {
    display: inline-block;
    width: 100%;
    margin-top: 35px;
    margin-bottom: 35px;
    clear: both;
}
.nav-links > div {
    display: inline-block;
}

nav .post_link {
    display: inline-block;
    background-color: #9ac24b;
}

nav .post_link img {
    max-width: 35px;
}

nav .post_link .link, nav .post_link .arrow {
    display: inline-block;
    font-size: 20px;
    line-height: 25px;
    padding: 10px 15px;
    text-transform: lowercase;
}

nav .post_link a, nav .post_link .arrow {
    color: white;
    text-decoration: none;
}

nav .post_link .arrow {
    background-color: #7d9d3f;
}

nav .post_link .link {
    background-color: #9ac24b;
}

#previous_post_link {
    float: left;
}

#next_post_link {
    float: right;
}

/* Single author page */

.category-post {
    padding: 20px 0;    
    min-height: 200px;
}

.category-post.single {
    min-height: 440px;
}

.search .category-post.single{
    min-height: 370px;
}
.category .category-post.single{
    min-height: 380px;
}
.category-post .inner {

}

.category-post .post-title {
    margin-top: 3%;
}

.search .category-post .post-title, .category .category-post .post-title {
    margin-top: 3%;
}

.category-post .post-thumbnail {
    height: 115px;
    overflow: hidden;
}

.category-post .post-thumbnail, .category-post .post-data {

}

.category-post .post-author {
    margin: 10px 0;
    height: 15px;
}

.category-post .post-tags {
    margin-top: 10px;
}

.single-post .post-categories {
    float: right;
}

.single-post .post-categories .post-category {
    padding: 15px 10px; 
    margin-left: 10px; 
    float: left;
}

.single-post .post-tags {
    margin-top: 30px;
}

.popular_posts ul{
    padding: 5px;
    list-style-type: none;
}

/* Comments section */ 

.post-comments {
    margin-top: 30px;
    min-height: 152px;
}

/* Author section */ 

.post-author {
    margin-top: 30px;
}

.post-author .data, .post-author div.avatar {
    padding: 30px;
}

.avatar img {
    display: block;
}

.post-author .data > div {
    margin-top: 5px;
}

.post-author #author-info .data > span{
    margin-bottom: 5px
}

/* Author page */

#author-info {

}

#author-info .avatar img{
    margin: 0 auto;
    vertical-align: middle;
}

#author-info .data, #author-info div.avatar {
    padding: 10px 15px;
}

#author-info .data > div {
    margin-top: 15px
}

/* Top Social */
.social-links-menu {
    margin: 10px 0;
}

.social-links-menu img {
    max-height: 40px;
}

/* Old stressfree styles */

.post-title h1, .post-title h2 {
    font-size: 50px;
    font-family: 'Open-sans', sans-serif;
    margin-top: 0;
    font-weight:bolder;
    color:#333333;
}

.post-content h3, #main h3 {
    font-family: 'Open-sans', sans-serif;
    color: #333333;
    font-size: 31px;
    line-height: 36px;
    margin-bottom: 10px;
    font-weight:bold;
}

.post-content h4 {
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    margin: 25px 0;
  line-height:24px;
}

.post-content p {
    margin-bottom: 10px;
}

.post { margin-bottom: 10px; }
.post-excerpt {line-height: 18px}
.post-thumb { width: 213px; height: 142px; float: left; margin-right: 20px; }
.post-thumb img { border: 1px solid #979596; margin-bottom: 15px; }
h3.post-title {font-family: 'Open-sans', sans-serif; color: #0e76bc; font-size: 24px; margin-bottom: 15px; line-height: 24px;}
.post-title a { text-decoration: none; color: #0e76bc; }
h3.post-title a { /* font-family: Verdana; */ }
.post-inner { float: left; width: 360px; }
.post-inner.wide { width: 600px; }
.post-social { float: right; width: 70px; }

.post-social-autorzy { position: absolute; right: 0; top: 0; }

.post-title-autorzy { width: 600px; }
.oneAuthor { min-height: 135px; }

.post.single h3 {
    color: #333333;
    font-family: 'Open-sans', sans-serif;
    font-size: 30px;
    margin: 31px 0 15px 0;
    font-weight:bolder;

}

.post.single h4 {
    font-size:18px; 
    line-height:24px;
    font-family:'Open-sans', sans-serif;
    margin-bottom:20px; 
    padding-bottom:20px;
    font-size: 16px;
    font-weight: 400;
    display: table;
    color:#000000;
}

.post.single h5 {
    text-align: center!important; 
    line-height:20px;
    font-family: 'Open-sans', sans-serif;
    padding: 20px 0px 0 0;
    font-size: 16px;
    font-weight: 700;
    display: table;
    width: 100%!important;
    margin-top: 20px;
	margin-bottom:20px;
	background:url('/wp-content/uploads/2017/09/pasek2.png');
	background-repeat:no-repeat;
	background-position: center;
}

.post.single hr {
    color: #fff;
    border-top: 0;
    border-left: 0;
    border-bottom: 1px solid #cccccc;
    border-right: 0;
    margin: 0 0 20px 0;
    clear:both;
	padding-top:20px;
}

.post.single ul { 
    padding-left: 25px; //OLD: 40px
    margin-bottom: 20px; 
    list-style: disc; 
    display: table;
}
.post.single ol { 
    padding-left: 10px; //OLD: 40px
    margin-bottom: 20px; 
    list-style: decimal; 
    display: table;
}

.post .cc {
    display: inline-block; padding-left: 13px; margin-left: 5px;
    background: url(images/cc.png) no-repeat 0 2px;
    font-size: 10px; color: #2083C6;
}

.alignright { float: right; margin: 10px 0 10px 10px; }
.alignleft  { float: left; margin: 10px 10px 10px 0; }
.aligncenter { display:block; margin: 10px auto; }



/* Menu Górne */

#TopMenu  {
    display: table;
    height: 60px;
}

#FooterMenu {
    width: 100%;
}

#TopMenu > ul {
    display: table-cell;
    vertical-align: middle;
    padding-left: 0;
    list-style-type: none;
}

#TopMenu > ul li{
    margin: 0 20px;
}

#FooterMenu ul {
    padding-left: 0;
    list-style-type: none;
}

#FooterMenu ul li{
    margin: 0 10px;
    display: inline-block;
}

/* Stopka */

#footer-sf {background-color:#efefef;
            margin-top:30px;
}

/* Strona autorów */

#page-authors {
    margin-top: 20px;
}

h3.widget-title {
    font-family: 'Open Sans', sans-serif!important;
    font-weight:100!important;
    font-size:36px!important;
}

.border-grey-double-1px {
    border-bottom:0!important;}

.chosen_categories .menu-underline {
    width:100%!important;}

.recommended_post a:hover{
    line-height:1!important;
    text-decoration:none;
}

.recommended_post a{
    line-height:32px!important;
    padding-bottom:20px;
}

#FooterMenu {
    text-align:center!important;}

.center {
    text-align:center;}

.opis-footer {
    padding-left:50px;
    padding-top:10px;
    text-align:right;}

#facebook_slider_widget{
    top:60%;}

#page-after-post {
    margin-top:30px;}



.sub-menu {
    display: none;
}

.sf-logo-top img {
    max-height: 60px; float: left;
}

#menu-TopMenu {
    margin: 0;
}

.layer {
    list-style-type: none;
}
.layer span, .layer div, .layer .menu-item {
    cursor: pointer;
}
.layer li {
    display: list-item;
    float: left;
    margin: 0 15px;
}

.middle-layer, .bottom-layer {
    display: none;float: left;
    clear: both
}

.middle-layer, .mega-single {
    margin: 15px 0 25px;
}

.mega-single {
    margin-bottom: 0;
}

.middle-layer, .open {
    font-weight: 600;
}

.bottom-layer .open-gallery {
    margin-bottom: 15px;
}

.bottom-layer li {
    display: block;
}

.megamenu-link, .megamenu-link:hover {
    color: black;
    text-decoration: none;
}
#megamenu-middle {
    z-index: 99;
    background-color: white;
    position: absolute;
    max-width: 1200px;
    padding-bottom: 30px;
    padding-top:15px;
    -webkit-box-shadow: 0px 20px 0px 0px rgba(0,0,0,0.5);
-moz-box-shadow: 0px 20px 0px 0px rgba(0,0,0,0.5);
box-shadow: 0px 20px 0px 0px rgba(0,0,0,0.5);
}
#menu-TopMenu .active, #megamenu-middle .active, #megamenu-middle .active a, #megamenu-middle .active span {
    font-weight: bold;
    color: #337ab7;
}

.mega-gallery {
    display: none;
}

.mega-gallery a.cut {
    max-height: 115px;    
    display: block;
    overflow: hidden;
}
.mega-gallery .gallery-overlay {
    transition: 0.5s;
}
.mega-gallery .gallery-overlay a {
    align-self: center;
    margin: 0 auto;
    color: transparent;
}
.mega-gallery .gallery-overlay:hover {
    background-color:rgba(51,122,183,0.5);
}

.mega-gallery .gallery-overlay:hover a{
    color: white;
    font-weight: bold;
}


.mega-gallery .gallery-image img{
    margin-bottom:10px;
}

.mega-gallery .gallery-title a, 
.mega-gallery .gallery-title a:hover {
    padding-top: 5px;
    color: #000;
}

.menu-clickable:hover, .open:hover, .open-gallery:hover {
    font-weight: bold;
    color: #337ab7;
}

.mega-single .gallery-image {
    
}

.mega-single .gallery-overlay {
    display: flex;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}
.ngg-gallery-thumbnail-box img {
    margin: 0 auto !important;
}
/* Large desktops and laptops */
@media (min-width: 1200px) {
    .category .category-post .post-thumbnail {
        display: block;
        height: 200px;
        overflow: hidden;
    }
    .ngg-gallery-columns-4 .ngg-gallery-thumbnail-box { 
        width: 25%; 
    }
    .ngg-gallery-columns-3 .ngg-gallery-thumbnail-box { 
        width: 33%; 
    }
    .ngg-gallery-columns-2 .ngg-gallery-thumbnail-box { 
        width: 50%; 
    }
}

/* Landscape tablets and medium desktops */
@media (min-width: 992px) and (max-width: 1199px) {
    .mega-gallery a {
        max-height: 95px;
    } 
    .ngg-gallery-columns-4 .ngg-gallery-thumbnail-box { 
        width: 25%; 
    }
    .ngg-gallery-columns-3 .ngg-gallery-thumbnail-box { 
        width: 33%; 
    }
    .ngg-gallery-columns-2 .ngg-gallery-thumbnail-box { 
        width: 50%; 
    }
}

/* Portrait tablets and small desktops */
@media (min-width: 768px) and (max-width: 991px) {
    .ngg-gallery-columns-4 .ngg-gallery-thumbnail-box { 
        width: 25%; 
    }
    .ngg-gallery-columns-3 .ngg-gallery-thumbnail-box { 
        width: 33%; 
    }
    .ngg-gallery-columns-2 .ngg-gallery-thumbnail-box { 
        width: 50%; 
    }
}

/* Landscape phones and portrait tablets */
@media (max-width: 767px) {
    .ngg-gallery-columns-4 .ngg-gallery-thumbnail-box, .ngg-gallery-columns-3 .ngg-gallery-thumbnail-box, .ngg-gallery-columns-2 .ngg-gallery-thumbnail-box { 
        width: 50%; 
    }
}

/* Portrait phones and smaller */
@media (max-width: 480px) {
    .ngg-gallery-columns-4 .ngg-gallery-thumbnail-box, .ngg-gallery-columns-3 .ngg-gallery-thumbnail-box, .ngg-gallery-columns-2 .ngg-gallery-thumbnail-box { 
        width: 100%; 
    }
    h6 a img{
margin-right:20px!important;
margin-top:-10px!important;
height:0!important;}

h6, .h6 {
color:#333333;
font-size:16px;
padding-top: 10px;
line-height:1.5em;
text-align:center;
}
}

.button-warsztaty, .button-warsztaty:visited {
	-moz-box-shadow:inset 0px 1px 0px 0px #c6e070;
	-webkit-box-shadow:inset 0px 1px 0px 0px #c6e070;
	box-shadow:inset 0px 1px 0px 0px #c6e070;
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #8fc204), color-stop(1, #77a809));
	background:-moz-linear-gradient(top, #8fc204 5%, #77a809 100%);
	background:-webkit-linear-gradient(top, #8fc204 5%, #77a809 100%);
	background:-o-linear-gradient(top, #8fc204 5%, #77a809 100%);
	background:-ms-linear-gradient(top, #8fc204 5%, #77a809 100%);
	background:linear-gradient(to bottom, #8fc204 5%, #77a809 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#8fc204', endColorstr='#77a809',GradientType=0);
	background-color:#8fc204;
	-moz-border-radius:3px;
	-webkit-border-radius:3px;
	border-radius:3px;
	border:1px solid #8fb807;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-size:15px;
	font-weight:bold;
	padding:10px 24px;
	text-decoration:none;
	text-shadow:0px 1px 5px #528009;
	text-decoration:none;
}
.button-warsztaty:hover {
	background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #77a809), color-stop(1, #8fc204));
	background:-moz-linear-gradient(top, #77a809 5%, #8fc204 100%);
	background:-webkit-linear-gradient(top, #77a809 5%, #8fc204 100%);
	background:-o-linear-gradient(top, #77a809 5%, #8fc204 100%);
	background:-ms-linear-gradient(top, #77a809 5%, #8fc204 100%);
	background:linear-gradient(to bottom, #77a809 5%, #8fc204 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#77a809', endColorstr='#8fc204',GradientType=0);
	background-color:#77a809;
 	color: white;
	text-decoration:none;
}
.button-warsztaty:active {
	position:relative;
	top:1px;
}
.gallery .gallery-item {
	display: inline-block;
	text-align: center;
}
.gallery.gallery-columns-2 .gallery-item{
	width: 50%;
}
.gallery.gallery-columns-3 .gallery-item{
	width: 33%;
}
.gallery.gallery-columns-4 .gallery-item{
	width: 25%;
}
.post-content li{
padding-bottom:5px}

#main img {
height: auto;
max-width: 100%;
}
.post-social-wide {
margin-top: 5px;
}

/* Landscape tablets and medium desktops */
@media (min-width: 992px) and (max-width: 1199px) {
	.post-title h1, .post-title h2 {
	font-size: 50px;
}

#megamenu-top {
    display: flex;
    align-items: center;
}
}

/* Portrait tablets and small desktops */
@media (min-width: 768px) and (max-width: 991px) {
	.post-title h1, .post-title h2 {
	font-size: 50px;
}

#megamenu-top {
    display: flex;
    align-items: center;
}
}

/* Landscape phones and portrait tablets */
@media (max-width: 767px) {
    post-title h1, .post-title h2 {
        font-size: 38px;
    }
}
@media (min-width: 481px) and (max-width: 767px) {
    #megamenu-top {
        display: flex;
        align-items: center;
    }
}
/* Portrait phones and smaller */
@media (max-width: 480px) {
	post-title h1, .post-title h2 {
	font-size: 32px;
}
}