/*
Theme Name: Dimundi Theme
Author: Krzysztof Głośnicki
Description: 
Version: 0.0.1
*/

/*

	1. Layout
	2. Header
	3. Content
	4. Footer
	5. Front-page
	6. Formularz
	7. Sidebar
	8. Responsive
	
	10. Margins and paddings
	11. Other

*/




/*===============================

	1. LAYOUT

================================*/
* {
	box-sizing: border-box;
}

body { 
	background: #fff;
	background-repeat: no-repeat;
	background-position: center 500px;
	color: #171717;
	font-family: "Montserrat", "Sans Serif";
	font-weight: 500;
}

a:hover {
	text-decoration: none;
	color: #990f0e;
}
input, button, submit {
	outline: none !important;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Montserrat", "Sans Serif";	
	font-weight: 700;
	color: #171717;
}
h3 {
	font-size: 24px;
}
.entry-content.flex {
	display: flex;
}
.content {
	padding-right: 40px;
}
.sidebar {
	background: #ffb55c;
	padding: 20px 50px;
	flex: 0 0 400px;
}
.entry-content ul {
	list-style: none;
	margin-left: 0;
}
.entry-content ul li {
	background: url(images/list-item.png);
	background-repeat: no-repeat;
	background-position: left 6px;
	padding-left: 32px;
	font-weight: bold;
	margin-bottom: 20px;
}
.entry-content #row-triple ul li {
	background: url(images/play.png);
	background-repeat: no-repeat;
	background-position: left 3px;
	color: #fff;
}

.row {
	display: flex;
	margin-bottom: 40px;
}
.post-excerpt {
	padding: 0 40px 0 80px;
}
.post-excerpt p {
	margin-bottom: 0;
}
.post-thumbnail {
	flex: 0 0 300px;
}
.category-title {
	margin-bottom: 30px;
}




#main > .wrapper {
	display: flex;
	flex-direction: row;
}
#main > .wrapper.no-flex {
	display: block;
}
.hentry, .home-posts {
	width: 100%;
	padding: 0 10px;
}
#sidebar {
	width: 300px;
    display: inline-block;
    vertical-align: top;
}
.wrapper {
	max-width: 1400px;
	margin: 0 auto;
	padding: 15px;
	position: relative;
}
.tight {
	max-width: 800px;
	padding: 25px;
}

.whitebox {
	display: table;
    background: white;
    padding: 53px 45px;
    margin: 0 auto;
    box-shadow: 0 0 3px 0px #989898;
}

.murk-bg {
	background-color: #d4d6de;
}
.section-padding {
	padding: 50px 0;
}
.highlight {
	color: #ffd101;
}
.tick-list {
	list-style: none;
	margin-left: 0;
}
.tick-list li {
	padding-left: 40px;
    margin-bottom: 18px;
	background-image: url('images/tick.png');
	background-repeat: no-repeat;
	background-position: left center;
	height: 35px;
	line-height: 35px;
}

.batonik {
	display: block;
	background: #01E399;
	color: #fff;
	width: 340px;
	height: 90px;
	line-height: 60px;
	padding: 17px 35px;
	margin: 0 auto;
	position: relative;
	transition: background 0.3s ease;
}
.batonik:hover {
	background: #2197ca;
	color: #fff;
}
.batonik:after {
    content: "";
    width: 19px;
    height: 19px;
    background: url(images/play.png);
    display: block;
    position: absolute;
    top: 37px;
    right: 40px;
}
#masthead .batonik {
	position: absolute;
    bottom: -90px;
    left: 0;
    max-width: 100%;
	line-height: 30px;
}
@media screen and (max-width: 1200px) {
	#masthead .batonik {
		top: 0px;
	}
}

.modal-source {
	display: none;
}

/*===============================

	2. HEADER

================================*/
.lang-item {
    display: inline-block;
}
.lang-item a,
#upper-bar .menu-item a
{
	color:   #000;
	font-size: 14px;
	line-height: 16px;
	padding: 0 15px 0 0;
	font-size: 12px;
}
.lang-item:first-child:after {
	content: "/";
	margin-left: 5px;
	color: #000;
	font-weight: bold;
}
#upper-bar ul {
	line-height: 16px;
}
#upper-bar {
	width:  100%;
    height: 46px;
	margin-bottom: 5px;
}
#upper-bar .menu-item a:hover,
.lang-item a:hover {
	color: #999;
}
.top-bar {
	min-height: 37px;
}
.widget.header-widget {
    display: inline-block;
    margin-bottom: 0;
	float: right;
}
.header-widget ul {
    margin: 0;
}
.header-slide {
	position: absolute;
	top:0;
	left:0;
	opacity: 0;
	transition: opacity 1s ease;
	width:100%;
	z-index: 1;
}
.header-slide.active {
	position: absolute;
	opacity: 1;
	transition: opacity 1s ease;
	z-index: 999;
}

.custom-logo {
	width: 400px;
    max-width: 100vw;
	position: absolute;
    left: 0;
    top: 0;
    padding: 11px 25px;
    background: #fff;
	border-bottom: 1px solid #ccc;
}

/*https://www.labnol.org/internet/embed-responsive-google-maps/28333/*/
.google-maps {
	position: relative;
	padding-bottom: 85%;
	height: 0;
	overflow: hidden;
}
.google-maps iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
}

.home .header-menu {
	padding: 6px 15px;
	background: #fff;
	border-bottom: 1px solid #ccc;
	position: fixed;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
}
.header-menu .menu-item {
	text-transform: uppercase;
}
.header-menu .menu-item:last-child a {
	padding-right: 0;
}
.header-features {
	padding-top: 52px;
	padding-bottom: 90px;
}

#site-title {
	color: white;
}
#masthead {
	position: relative;
	background-color: #f0f0f0;
}
.home #masthead {
	height: 100vh;
}
#header-overlay, #header-bg {
	width: 100%;
    height: 100%;
    position: absolute !important;
	background-size: cover;
	background-position: center bottom;
}
.cycle-bg-image {
	background-repeat: no-repeat;
	background-attachment: fixed;
    background-size: cover;
	background-position: center center !important;
	height: 100vh;
}
.header-info {
	display: inline-block;
    color: white;
    margin: 20px 0 30px 0;
    vertical-align: top;
    text-align: center;
    width: 100%;
}
.header-features img {
    width: 100%;
}
#masthead h1 {
	color: #393939;
	font-size: 36px;
	text-align: left;
    text-shadow: none;
	margin: 15px;
}
.home #masthead h1 {
	color: #555;
}
.header-info h2 {
	font-size: 20px;
}

/*http://tobiasahlin.com/blog/css-trick-animating-link-underlines/*/
.menu-nav-menu-container .menu li {
	display: block;
	list-style: none;
}
.menu-nav-menu-container .menu .sub-menu {
	padding-top: 15px;
}
.menu-nav-menu-container .menu .sub-menu li {
	background: #00000047;
}
.menu-nav-menu-container .menu ul {
	list-style: none;
}
.menu-nav-menu-container .menu a {
	position: relative;
    color: #393939;
    text-decoration: none;
	text-shadow: none;
	font-size: 14px;
    padding: 0.7rem 0.9rem;
}
.home .menu-nav-menu-container .menu a {
	color: #555;
}
@media screen and (min-width: 1040px) and (max-width: 1200px) {
	.menu-nav-menu-container .menu a {
		font-size: 12px;
	}
}

footer  .menu-nav-menu-container .menu  a {
	color: #fff;
}

.menu-nav-menu-container .menu  a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #555;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}
.menu-nav-menu-container .menu  a:hover:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}



/*  SUBMENU  */
.home ul > li.menu-item-has-children > a:after {
	border-top:   7px solid #fff;
}
ul > li.menu-item-has-children > a:after {
	content: "";
	width: 0;
	height: 0;
	float: right;
	margin-left: 10px;
    margin-top: 3px;
    border-left:  6px solid transparent;
    border-right: 6px solid transparent;
    border-top:   7px solid #000;
	transition: transform 0.3s ease, border 0.3s ease;
}
ul > li.menu-item-has-children.clicked > a:after {
	border-top:   7px solid #ffcc0b;
	transform: rotate(-90deg);
}

.sub-menu {
	display: none;
}
.menu-nav-menu-container .clicked > .sub-menu {
	display: table;
    position: absolute;
    width: 500px;
    margin: 0;
	z-index: 999;
}
li.menu-item-depth-1.menu-item-has-children.clicked > .sub-menu {
	display: table;
    position: absolute;
	top: 0;
	left: -340px;
    width: 340px;
    margin: 0;
	z-index: 999;
}
.mobile-menu .clicked > .sub-menu {
	display: table;
}
li.menu-item-depth-1.menu-item-has-children.clicked > .sub-menu {
	display: table;
}
.sub-menu li {
	display: block;
}
.sub-menu li {
    display: block;
	transition: background 0.3s ease;
	min-width: 222px;
}
.sub-menu li:hover {
}



#nav-menu-item-239 {
	display: none;
}
.logged-in #nav-menu-item-239 {
	display: inherit;
}




/*===============================

	3. CONTENT

================================*/
#main {
	padding: 0px;
}
.year {
	display: inline-block;
	font-size: 21px;
	font-weight: bold;
	margin-right: 21px;
}
article.post {
	
     margin-bottom: 38px;
}

.dimundi-archives {
    padding: 20px 50px;
    background: url(images/calendar.png);
	background-position: center left;
	background-repeat: no-repeat;
}

.dimundi-archives a {
	margin-right: 25px;
	color: #5f6ace;
}

.entry-title {
	margin-bottom: 20px;
}

.oferta .widget-title {
	color: #f20808;
}


/*===============================

	4. FOOTER

================================*/

/* Members */
.members img {
    height: 68px;
    width: auto;
}
@media screen and (max-width: 1300px) {
	.members a {
		width: 14%;
		display: inline-block;
		margin-bottom: 20px;
	}
}
@media screen and (max-width: 1000px) {
	.members a {
		width: 23%;
	}
}
@media screen and (max-width: 680px) {
	.members a {
		width: 40%;
	}
}
#footer-widgets .textwidget .members img {
    margin-left:  6px;
	margin-right: 6px;
}
#footer-widgets .textwidget .members a:first-child img {
    margin-left: 0;
}
@media screen and (max-width: 512px) {
	#footer-widgets h3 {
		text-align: center;
	}
	.widget-title,
	.oferta p {
		text-align: center;
	}
}
@media screen and (max-width: 475px) {
	#footer-widgets .textwidget .members a {
		display: block;
		width: 100%;
	}
	#footer-widgets .textwidget .members img,
	#footer-widgets .textwidget .members a:first-child img {
		display: block;
		margin: 3px auto;
	}
}


#footer-widgets .textwidget .members a {
    transition: opacity 0.3s ease;
}
#footer-widgets .textwidget .members a:hover {
    opacity: 0.5;
}
#footer-widgets h3 {
	font-size: 20px;
    color: #b3b3b3;
    margin-bottom: 25px;
}


footer.dark-bg {
	position: relative;
}
.dark-bg {
	padding: 9px 0;
}
.bottom-bar {
	background: #f20808;
	color: #000;
	font-size: 12px;
	font-weight: bold;
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 10px;
	margin: 0;
	width: 100%;
	text-align: center;
}
.contact-info {
	display: table;
	margin: 0 auto;
}

.footer-image {
	max-width: 152px;
    margin: 10px;
    display: inline-block;
    vertical-align: top;
}

footer a {
	color: #000;
}
footer p {
	display: inline-block;
}
#footer-widgets .textwidget img {
	max-width: 314px;
	margin: 0 20px
}
#footer-widgets {
	background: #060606;
}
#footer-widgets .widget {
	margin: 0;
}
#footer-widgets .widget p {
	font-size: 11px;
	color: #e1e1e1;
}
footer nav {
	display: table;
    margin: 0 auto;
}



/*===============================

	5. FRONT PAGE

================================*/
#row-triple .panel-widget-style {
	transition: background 0.5s ease;
}
#row-triple .panel-widget-style:hover {
	background-color: #f08d17; /*#ffb55c;*/
}
#row-triple a {
	color: white;
}

.panel-grid-cell >  div,
.panel-grid-cell > div > div {
	height: 100%;
}

/*===============================

	6. FORMULARZ

================================*/

#contact-form.whitebox {
	background: #ffffffd1;
}
#contact-form-holder {
    position: relative;
    top: -50px;
	width: 100%;
}
@media screen and (max-width: 639px)
{
	#contact-form-holder {
		top: 0;
	}
}
#contact-form {
	max-width: 826px;
}

#contact .whitebox {
    padding: 44px 45px;
}

.wpcf7 .grid-x .input-field.cell {
    margin-right: 69px;
    max-width: 175px;
}

.wpcf7 .input-field.cell {
    margin-top: 0;
    margin-bottom: 0;
	height: 65px;
}
.wpcf7 .grid-x .input-field.cell:last-child {
	margin-right: 0;
}
.wpcf7 .button {
	position: relative;
	left: 10px;
	padding: 0.85em 4.6em;
	margin: 0;
}

@media screen and (min-width: 640px) and (max-width: 769px) {
	.wpcf7 .grid-x .input-field.cell {
		margin: 0;
		max-width: 142px;
		margin-right: 47px;
	}
	.wpcf7 .button {
		position: relative;
		left: 0;
		padding: 0.85em 4.0em;
		margin: 0;
	}
}
@media screen and (max-width: 639px) {
	.wpcf7 .grid-x .input-field.cell {
		max-width: none;
	}
}

#searchsubmit, input[type=submit] {
	background: #2b3f88;
	padding: 10px;
	color: #fff;
	border: none;
	text-transform: uppercase;
}
.search h1 {
	margin: 50px 0
}

/*===============================

	7. SIDEBAR

================================*/
.widget {
	padding: 15px;
	margin-bottom: 40px;
}
#sidebar .widget {
	color: white;
	text-align: center;
	width: 300px;
}
#sidebar ul {
	list-style: none;
}

/*===============================

	8. RESPONSIVE

================================*/
.mobile-menu a {
	color: #fff;
}
.mobile-menu a:hover {
	color: #888;
}
.mobile-menu .sub-menu {
    float: right;
}
.mobile-menu-container {
    display: none;
    cursor: pointer;
	position: absolute;
    top: 5px;
    right: 50px;
    margin-bottom: 10px;
}


.bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #000;
    margin: 6px 0;
    transition: 0.4s;
}

.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px);
    transform: rotate(-45deg) translate(-9px, 6px);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    transform: rotate(45deg) translate(-8px, -8px);
}

@media screen and (max-width: 1040px) {
	
	.menu-nav-menu-container {
		display: none;
	}
	.mobile-menu-container {
		display: inline-block;
	}
	
}


.mobile-menu  {
    display: none;
    background: #000000bd;
    position: absolute;
    z-index: 999;
    right: 0;
    top: 50px;
}
.mobile-menu.change {
	display: none;
}
.mobile-menu ul {
	flex-direction: column;
}
.mobile-menu  {
	text-align: right;
}
@media screen and (max-width: 499px) {
	.mobile-menu-container {
		cursor: pointer;
		top: 114px;
		right: 0px;
		margin-bottom: 10px;
		background: #fff;
		padding: 10px;
	}
	.mobile-menu { 
		position: fixed;
		top: 170px; 
		right: 0;
	}
	#kontakt div.so-panel {
		margin: 0;
	}
}

.wp-caption {
	max-width: 100%;
}


@media screen and (max-width: 652px) {
	#first-row {
		background-image: url(https://eugin.info/wp-content/uploads/2018/08/zaglowa.png);
		background-position: center center;
		background-size: cover;
	}
	#takietam h2, #takietam {
		color: #fff;
	}
	.header-info h1 {
		font-size: 26px;
	}
	.header-features {
		padding-bottom: 1px;
	}
	#page-slider {
		height: 95px !important;
	}
}

/*@media screen and (min-width: 653px) and (max-width: 1200px) {
	body.home {
		background-image: none;
	}
	#learn-more h3 {
		color: #082c6a;
	}
	.header-info h1 {
		font-size: 36px;
	}
	.header-features {
		padding-bottom: 20px;
	}
	.entry-content #learn-more li {
		background-image: url(images/play_blue.png);
	}
}*/

@media screen and (max-width: 1024px) {
	#masthead {
		background-size: cover;
	}
}

@media screen and (max-width: 780px) {
	#learn-more h3 {
		margin-bottom: 10px;
	}
	#row-wydawnictwa {
		height: 353px;
	}
}

@media screen and (max-width: 710px) {
	.header-info {
		margin-top: 50px;
	}
	.header-features {
		padding: 20px 10px 0 10px;
	}
}

@media screen and (max-width: 500px) {
	.header-info {
		margin-top: 30px;
		padding: 10px;
		width: 100%;
	}
	.header-features {
		padding: 0;
	}
	#main > .wrapper {
		flex-direction: column;
	}
	#sidebar {
		margin: 20px;
		width: 100%;
	}
	#sidebar .widget {
		width: 100%;
	}
}




/*===============================

	10. MARGINS AND PADDINGS

================================*/
.m0{ margin:0 }
.mt0{ margin-top:0 }
.mr0{ margin-right:0 }
.mb0{ margin-bottom:0 }
.ml0{ margin-left:0 }
.mx0{ margin-left:0; margin-right:0 }
.my0{ margin-top:0; margin-bottom:0 }

.m1{ margin: .5rem }
.mt1{ margin-top: .5rem }
.mr1{ margin-right: .5rem }
.mb1{ margin-bottom: .5rem }
.ml1{ margin-left: .5rem }
.mx1{ margin-left: .5rem; margin-right: .5rem }
.my1{ margin-top: .5rem; margin-bottom: .5rem }

.m2{ margin: 1rem }
.mt2{ margin-top: 1rem }
.mr2{ margin-right: 1rem }
.mb2{ margin-bottom: 1rem }
.ml2{ margin-left: 1rem }
.mx2{ margin-left: 1rem; margin-right: 1rem }
.my2{ margin-top: 1rem; margin-bottom: 1rem }

.m3{ margin: 2rem }
.mt3{ margin-top: 2rem }
.mr3{ margin-right: 2rem }
.mb3{ margin-bottom: 2rem }
.ml3{ margin-left: 2rem }
.mx3{ margin-left: 2rem; margin-right: 2rem }
.my3{ margin-top: 2rem; margin-bottom: 2rem }

.m4{ margin: 4rem }
.mt4{ margin-top: 4rem }
.mr4{ margin-right: 4rem }
.mb4{ margin-bottom: 4rem }
.ml4{ margin-left: 4rem }
.mx4{ margin-left: 4rem; margin-right: 4rem }
.my4{ margin-top: 4rem; margin-bottom: 4rem }

.ml-auto{ margin-left:auto }
.mr-auto{ margin-right:auto }
.mx-auto{ margin-left:auto; margin-right:auto; }

.p0{ padding:0 }
.pt0{ padding-top:0 }
.pr0{ padding-right:0 }
.pb0{ padding-bottom:0 }
.pl0{ padding-left:0 }
.px0{ padding-left:0; padding-right:0 }
.py0{ padding-top:0;  padding-bottom:0 }

.p1{ padding: .5rem }
.pt1{ padding-top: .5rem }
.pr1{ padding-right: .5rem }
.pb1{ padding-bottom: .5rem }
.pl1{ padding-left: .5rem }
.py1{ padding-top: .5rem; padding-bottom: .5rem }
.px1{ padding-left: .5rem; padding-right: .5rem }

.p2{ padding: 1rem }
.pt2{ padding-top: 1rem }
.pr2{ padding-right: 1rem }
.pb2{ padding-bottom: 1rem }
.pl2{ padding-left: 1rem }
.py2{ padding-top: 1rem; padding-bottom: 1rem }
.px2{ padding-left: 1rem; padding-right: 1rem }

.p3{ padding: 2rem }
.pt3{ padding-top: 2rem }
.pr3{ padding-right: 2rem }
.pb3{ padding-bottom: 2rem }
.pl3{ padding-left: 2rem }
.py3{ padding-top: 2rem; padding-bottom: 2rem }
.px3{ padding-left: 2rem; padding-right: 2rem }

.p4{ padding: 4rem }
.pt4{ padding-top: 4rem }
.pr4{ padding-right: 4rem }
.pb4{ padding-bottom: 4rem }
.pl4{ padding-left: 4rem }
.py4{ padding-top: 4rem; padding-bottom: 4rem }
.px4{ padding-left: 4rem; padding-right: 4rem }





/*===============================

	11. OTHER

================================*/
.login-remember {
	display: none;
}

.posts-col {
	width: 50%;
	display: inline-block;
	vertical-align: top;
}
@media screen and (max-width: 540px) {
	.posts-col {
		width: 100%;
	}
}
.posts-col:first-child {
	padding-right: 15px;
}
.posts-col:last-child {
	padding-left: 15px;
}



.post-inside h3 {
	margin: 30px 0 0 0;
}
.gallery {
   margin: auto;
}
.gallery-item {
   float: left;
   margin: 0;
   text-align: center;
   width: 20%;
}
.gallery-caption {
   margin-left: 0;
}
.gallery-item dt {
	margin: 0;
}

.wp-caption-text {
    font-size: 14px;
    text-align: center;
}

.alignleft {float:left; margin:0 1em 3px 0}
.alignright {float:right; margin:0 0 1em 1em}
.aligncenter, .aligncenter img {display: block; margin-left: auto; margin-right: auto}