/*
 Theme Name:   illdy-child-himosrtrail
 Description:  illdy child theme for Himos Trail
 Author:       Jani Sompi
 Template:     illdy
 Version:      1.0.0
*/

.pace,
.pace-overlay {
	display: none;
}

a {
	word-break: break-word;
}

/* Header */

.header-main-logo {
	width: 500px;
	opacity: 0.9;
	margin-bottom: 50px;
}

#header .top-header {
	padding-top: 0;
	background-color: rgba(0,0,0,0.75);
	position: fixed;
	top: 0;
	z-index: 2000;
}

#header-text-logo {
	float: none;
	margin: 10px 0;
}

.header-main-logo {
	max-width: 400px;
}

#header-text-logo h1,
#header #header-text-logo .header-logo {
	font-size: 25px;
	text-transform: uppercase;
	margin: 0;
	font-weight: normal;
	float: none;
}


#header-text-logo h2 {
	font-size: 18px;
	margin: 0;
	font-weight: normal;
	color: #fff;
}

.open-responsive-menu .fa {
	font-size: 35px;
}

#header .top-header .header-navigation ul li {
	margin-left: 40px;
}

#header .top-header .header-navigation ul li:first-child {
	margin-left: 0;
}

#header .top-header .header-navigation ul li.menu-item-has-children .sub-menu li a {
	background-color: rgba(0,0,0,0.75);
	color: #fff;
}

#header .top-header .header-navigation ul li.menu-item-has-children .sub-menu li {
	border: #000 1px solid;
	border-width: 0 1px 0 1px;
}


#header .top-header .header-navigation ul li.menu-item-has-children .sub-menu li:first-child a {
	border-top-width: 1px;
}

#header .top-header .header-navigation ul li.menu-item-has-children .sub-menu li:last-child a {
	border-bottom-width: 1px;
}

#header .bottom-header {
	padding-top: 100px; /* space for fixed header */
	padding-bottom: 50px;
}

#header .bottom-header.blog {
	padding-top: 180px;
}

#header .bottom-header h2 {
	color: #fff;
	text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
	font-size: 50px;
	line-height: 1;
	margin-bottom: 20px;
	text-transform: uppercase;
}

#header .bottom-header h3 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 40px;
	font-weight: bold;
	text-transform: uppercase;
	color: #f1d204;
	text-shadow: 2px 2px 20px rgba(0,0,0,1);
}

#header .bottom-header .header-button-one,
#header .bottom-header .header-button-two {
	box-shadow: 0 0 40px rgba(0,0,0,0.7);
	font-size: 2.4rem;
}

/* parner logo carousel */
#partner-logo-carousel {
	background-color: #fff;
	margin-bottom: 40px;
}

#partner-logo-carousel h3 {
	text-transform: uppercase;
}

#partner-logo-carousel .owl-stage {
	display: flex;
	align-items: center;
	margin: 0 auto;
}

#partner-logo-carousel .tcls-wrap {
	margin: 0;
}

.partner-logo-carousel-content {
	padding: 0 40px;
}

#partner-logo-carousel img,
#partner-logo-carousel svg {
	border: 0;
	padding: 0 20px;
	max-height: 120px;
	max-width: 100%;
	width: auto;
	height: auto;
	margin: 0 auto;
}

#partner-logo-carousel h3 {
	text-align: center;
}

/* SOME section */
#counter .counter-overlay {
	display: none;
}

#counter .inline-columns {
	display: flex;
	flex-flow: row nowrap;
}

#counter div[class^="col-"] {
	border: 0;
	flex: 1;
	display: flex;
	flex-flow: row nowrap;
}

#counter .widget_text .textwidget,
#counter .widget_custom-twitter-feeds-widget .ctf {
	background-color: rgba(255,255,255,0.9);
	border: rgba(0,0,0,0.75) 1px solid;
	flex: 1;
}

.front-page-section .section-header h3 {
	line-height: 3rem;
}

/* Latest news */
#latest-news .section-header {
	margin-bottom: 0;
}

.latest-news-button {
	margin-top: 40px;
	cursor: pointer;
}

/* Footer */
#footer {
	background-color: #efe7e0;
}

#footer .footer-logo {
	margin-bottom: 40px;
}

#footer .copyright {
	text-align: center;
	font-size: 12px;
	color: #c5b19e;
}

#footer .copyright,
#footer .copyright a {
	color: #c5b19e;
}

#footer .copyright a {
	font-weight: bold;
}

#footer .footer-logo img {
	width: 100%;
	height: auto;
	max-width: 100%;
}

/* single post and post meta */
#blog .blog-post .blog-post-meta .post-meta-author,
#blog .blog-post .blog-post-meta .post-meta-categories,
#blog .blog-post .blog-post-meta .post-meta-comments {
	display: none;
}

.blog-post-related-articles {
	display: none;
}

#blog .blog-post .blog-post-meta .post-meta-time {
	margin-left: 0;
}

.ad-popup {
	position: fixed;
	right: 0;
	bottom: 0;
	width: 30rem;
	height: 15rem;
	max-height: 15rem;
	border-left: solid 7px rgba(255,255,255,0.5);
	border-top: solid 7px rgba(255,255,255,0.5);
	display: flex;
	flex-flow: row wrap;
	z-index: 9000;
	box-shadow: 0 0 20px rgba(0,0,0,0.5);
    	-webkit-transition: max-height 0.3s;
    	-moz-transition: max-height 0.5s;
    	-o-transition: max-height 0.5s;
    	transition: max-height 0.5s;
}

.ad-popup > div {
	flex: 1;
	display: flex;
	background-color: #fff;
}

.ad-popup .ad-content {
	padding: 1rem;
	padding-right: 3.5rem;
	flex: 1;
	position: relative;
}

.ad-link-button {
    width: auto;
    height: auto;
    margin: 0 1.5rem;
    padding: 0.7rem 1rem;
    display: block;
    border-width: 3px;
    border-style: solid;
    border-radius: 3px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    text-align: center;
}

.ad-link-button:hover {
	text-decoration: none;
}

.ad-link-button .fa {
	margin-left: 1rem;
}

.ad-popup-toggle {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 3rem !important;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    color: #fff;
    cursor: pointer;
}

.ad-link-minimized {
	display: none;
	color: #fff;
	text-transform: uppercase;
	font-weight: bold;
	text-align: center;
}

.ad-link-minimized:hover {
	text-decoration: underline;
}

.ad-link-minimized .fa {
	margin-left: 1rem;
}

.ad-popup.minimized .ad-link-minimized {
	display: block;
}

.ad-popup.minimized {
	width: auto;
	max-height: 5rem;
}

.ad-popup.minimized .ad-popup-toggle,
.ad-popup.minimized .ad-link-button,
.ad-popup.minimized .ad-headline {
	display: none !important;
}


/* responsiveness */

@media screen and (max-width: 1200px) {

	#header .container {
		width: 100%;
	}

	#header .top-header .header-navigation ul li {
		margin-left: 20px;
	}

	#header .top-header .header-navigation ul li:first-child {
		margin-left: 0;
	}
}

@media screen and (max-width: 992px) {
	#header .top-header {
		height: 80px;
	}

	#header	.responsive-menu {
		position: fixed;
		z-index:5000;
		top: 60px;
		background-color: #fff;
		height: calc(100vh - 80px);
		overflow: auto;
		background-image: url(http://www.himostrail.fi/wp-content/uploads/2017/03/logo-himos-trail-footer.svg);
		background-repeat: no-repeat;
		background-position: center center;
		background-size: 70% auto;
	}

	#header	.responsive-menu > ul {
		background-color: rgba(255,255,255,0.7);
	}

	.responsive-menu ul li a {
		font-size: 1.8rem;
	}

	#counter .container {
		width: 100%;
	}

	#counter div[class^="col-"] {
		padding-left: 10px;
		padding-right: 10px;
	}
}

@media screen and (max-width: 767px) {

	.header-main-logo {
		width: 370px;
		margin-bottom: 30px;
	}

	/*#header .top-header {
		position: static;
	}*/

	#header .bottom-header h2 {
		font-size: 40px;
	}

	#counter .inline-columns {
		display: block;
	}

	#counter .container {
		padding: 0 30px;
	}

	#counter div[class^="col-"] {
		margin-top: 30px;
	}

	#counter div[class^="col-"]:first-child {
		margin-top: 0;
	}

.ad-popup .ad-link-minimized {
	display: block;
}

.ad-popup,
.ad-popup.minimized {
	height: auto;
	width: 100%;
	border-left: 0;
}

.ad-popup .ad-popup-toggle,
.ad-popup .ad-link-button,
.ad-popup .ad-headline {
	display: none !important;
}


}

@media screen and (max-width: 480px) {
	.header-main-logo {
		width: 225px;
	}

	#header .bottom-header h2 {
		font-size: 30px;
	}
}
