/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

* {
    box-sizing: border-box;
    -ms-overflow-style: scrollbar;
}



html,
body {
  	height: 100%;
}

img {
	display: block;
    max-width: 100%;
    height: auto;
}

a:hover {
	text-decoration: none;
}


.page-header:after {
     clear: both;
    content: "";
    display: block;
}


.obrazek-over,
.overlay-popupu,
.os-overlay {
	position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    top: 0px;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
}

.systemowe-messages {
	clear: both;
	border: 2px solid #8bc43f; /* zielony */
	padding: 20px;
	width: 50%;
	    margin: 0 auto;
}

#block-teatr-local-tasks {
	padding: 20px 0;
}
#block-teatr-local-tasks ul li {
	display: inline-block;
}
#block-teatr-local-tasks ul li a {
	display: block;
	padding: 4px;
	margin: 4px;
	border: 1px solid #838383;
}
 

 article ul > li  p {
    display: inline-block;
 }

 article ul {
    text-align: center;
 }

@media (min-width: 1025px) {

    #block-karandasz-main-menu li a,
    #block-kategoriesidebar li a {
         position: relative;
         display: inline-block;
    }
    #block-karandasz-main-menu li a:before,
    #block-kategoriesidebar li a:before {
        content: '';
        position: absolute;
        width: 0;
        height: 1px;
        bottom: 3px;
        left: 0;
        background: transparent;
        transition: width .5s ease; background-color .5s ease;
    }
    #block-karandasz-main-menu li a:hover:before,
    #block-kategoriesidebar li a:hover:before {
        content: '';
        position: absolute;
        width: 100%;
        background: #000;
        border: 0;
        bottom: 3px;
        left: 0;
    }
    #block-karandasz-main-menu li a.is-active::before,
    #block-kategoriesidebar li a.is-active::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 1px;
        bottom: 5px;
        left: 0;
        background-color: #585757;
    }
    #block-kategoriesidebar li a.is-active::before {
        bottom: 3px;
    }

    #block-kategoriesidebar li#id-1 {
        padding-top: 0;
    } 
    #block-kategoriesidebar li#id-1 > a:after {
        position: absolute;
        display: inline-block;
        content: "+";
        font-size: 20px;
        line-height: 1;
        top: 1px;
        right: -18px;
    }
    body[class*="path-portfolio-okladki-"] #block-kategoriesidebar li#id-1 > a:after,
    #block-kategoriesidebar li#id-1 > a.is-active:after {
        position: absolute;
        display: inline-block;
        content: "-";
        font-size: 20px;
        line-height: 1;
        top: 1px;
        right: -18px;
    }
}


article p img {
    padding-bottom: 25px;
}

.node-2 article p img {
    padding-bottom: 0;
}



/* STRONICOWANIE */

nav.pager {
    text-align: center;
}

.pager > ul {
    display: inline-block;
    padding-left: 0;
    margin: 20px 0;
    border-radius: 0;
}

.pager li {
  display: inline;
}

.pager li > a  {
  position: relative;
float: left;
padding: 6px 12px;
margin-left: -1px;
line-height: 1.42857143;
color: #337ab7;
text-decoration: none;
background-color: #fff;
border: 1px solid #ddd;

}

/* LOCAL TASKS  */

#block-karandasz-primary-local-tasks {
    padding: 20px 0;
}
#block-karandasz-primary-local-tasks ul li {
    display: inline-block;
}
#block-karandasz-primary-local-tasks ul li a {
    display: block;
    padding: 4px;
    margin: 4px;
    border: 1px solid #838383;
}


/* BREADCRUMBS */

#block-karandasz-breadcrumbs ol {
    list-style: none;
    text-align: center;
}

#block-karandasz-breadcrumbs ol li {
    display: inline-block;
}

#block-karandasz-breadcrumbs ol li:after {
    content: "/";
    display: inline-block;
    padding: 0 4px;
}
#block-karandasz-breadcrumbs ol li:last-child:after {
    display: none;
}

/* MOBILE MENU */




/* FLEXSLIDER */

.flex-control-paging li a {
    width: 25px;
    height: 25px;
    display: block;
    background: #8bc43f  !important; /* zielony */
    background: rgba(0, 0, 0, 1);
    cursor: pointer;
    text-indent: -9999px;
    -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
    -o-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 0px;
}
.flex-control-paging li a:hover {
    background: #000 !important;
    background: rgba(0, 0, 0, 1);
}
.flex-control-paging li a.flex-active {
    background: #000 !important;
    background: rgba(0, 0, 0, 1);
    cursor: default;
}
.flex-direction-nav a {
    text-decoration: none;
    display: block;
    width: 40%;
    height: 84%;
    margin: 10% 0 0 0;
    padding: 15% 15% 0 15%;
    position: absolute;
    top: 0%;
    z-index: 10;
    overflow: hidden;
    opacity: 0;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.8);
    background-color: rgba(255,255,255,0.2);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 1);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    font-size: 0;
    text-indent: -9999;
}

.flex-direction-nav a:before {
  display: inline-block;
  content: '';
  color: rgba(0, 0, 0, 0);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.5s;
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
    border-right: 28px solid #000;
}
.flex-direction-nav a.flex-next:before {
  display: inline-block;
  content: '';
  color: rgba(0, 0, 0, 0);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.5s;
    border-top: 24px solid transparent;
    border-bottom: 24px solid transparent;
    border-left: 28px solid #000;
    border-right: 0;
}


.flexslider {
	position: relative;
}
ol.flex-control-nav {
	position: relative;
	text-align: left;
}
.fotolewe ol.flex-control-nav {
	position: absolute;
	top: 20px;
	left: 15px;
	width: 300px;
   height: 50px;
}


@media (min-width: 1280px) {
    article div.siatka-tekstu {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr;
        grid-column-gap: 50px;
        grid-row-gap: 20px;
        
    }
}


.simple-status-messages {
  right: 25%;
}
.simple-status-messages .messages--status {
  background-image: url(../img/checked.svg);
  background-size: 16px;
  background-color: #fff;
  color: #325e1c;
  border-color: #dcd9cf;
  box-shadow: -8px 0 0 #77b259, -4px 0px 15px rgba(0, 0, 0, 0.3);
}
.simple-status-messages .status-message-close span {
  font-size: 24px;
}
.simple-status-messages .status-message-close {
  right: 5px;
}

#backtotop {
  height: 50px;
  width: 50px;
  border-radius: 50%;
}