/*
 Theme Name:   Tapanilan urheilukeskus - Theme child
 Theme URI:    https://jj-net.site
 Description:  JJ-Net Theme child theme
 Author:       JJ-Net Group Oy
 Author URI:   http://example.com
 Template:     jj-net-theme
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  jjnet
*/

body {font-family: 'Lato', sans-serif !important;}
h2 {font-family: 'Oswald', sans-serif !important; font-weight: 400 !important; text-transform: uppercase; font-size: 36px !important;}
h3 {font-family: "rucksack",sans-serif !important; font-weight: 400 !important; text-transform: uppercase; color: #8c8c8c !important; margin-bottom: 0 !important; font-size: 24px !important;}

img {max-width: 100%; height: auto;}

.wrapper {overflow-x:hidden;}

.topbar-container > .container > .topbar > .navbar-top > li {margin: 0 5px;}

#mega-menu-wrap-max_mega_menu_1 { margin-left:auto; }

.navigation-container {background: #000 !important;}
.navigation-container > .container > .navbar > .navbar-brand+.navbar-collapse > .navbar-nav { margin-left:0 !important; margin-right:auto; }
.navigation-container.navigation-container1 { background-color:#121212; }
.navigation-container.navigation-container1 li > a, .navigation-container.navigation-container1 .search-toggle { color:#fff; }
.navigation-container.navigation-container1 li > a {text-transform: uppercase; font-size: 12px !important; font-weight: 700 !important;}
.navigation-container.navigation-container1 li > a.dropdown-item {color: #000;}
.topbar a {text-transform: uppercase; font-size: 12px !important; font-weight: 700 !important; text-decoration: none !important; color: #fff !important;}

.search-toggle > .fa {color: #fff !important;}

.carousel-caption {bottom: auto !important; top: 40%; transform: translatey(-50%); text-align: left !important; color: #fff !important; }
.carousel-caption h1 {font-family: 'Oswald', sans-serif !important; font-weight: 500 !important; text-transform: uppercase; font-size: 72px !important; text-shadow: 0 0 5px #000000;}
.carousel-caption h2 {font-family: 'Oswald', sans-serif !important; font-weight: 500 !important; text-transform: uppercase; font-size: 72px !important; text-shadow: 0 0 5px #000000;}
.carousel-caption .subtitle {font-weight: 700 !important; font-size: 16px !important; text-shadow: 0 0 5px #000000;}
.carousel-caption a {display: inline-block; padding: 10px 15px; background: #fedf02; color: #000; text-transform: uppercase; font-weight: 700 !important; font-size: 13px !important; margin-top: 30px; letter-spacing: 1px;}

.content { position:relative; z-index:1; }

.content.first-element { overflow:hidden; position:relative; z-index:10; margin:-160px 0 -7%; padding-bottom: 7%; perspective:1000px; transform-style: preserve-3d; }
.content.first-element::after { content:""; position:absolute; top:0; left:0; width:200%; height:100%; transform-origin: 50% 50%; transform:rotateY(-7deg) translateX(-50%); background-color: #f5f7f6; outline: 1px solid transparent; }
.content.first-element > .container-fluid { position:relative; z-index:11; }
.content.first-element > .container { position:relative; z-index:11; }

.content.first-element .col-content_highlights {padding-top: 140px;}
.content.first-element.content-12 .col-content_highlights {padding-top: 0;}
.content.first-element .col-image {padding-top: 170px;}
.content > .container-fluid > .row > div:first-child > .col-image.col-image-bg { margin-left:-15px; }
.content > .container-fluid > .row > div:not(:first-child) > .col-image.col-image-bg { margin-right:-15px; }
/*
normal:White BG,white-top:White TOP,
gray-bg:Gray BG,gray:Gray TOP,
orange-bg:Orange BG,orange:Orange TOP,
black-bg:Black BG,black:Black TOP,
dark-gray:Dark-gray BG,dark-gray-top:Dark-gray TOP,
first-element:First element on front page*/

.content.white-top { overflow:hidden; position:relative; z-index:10; margin:-7% 0; padding: 7% 0; perspective:1000px; transform-style: preserve-3d; }
.content.white-top::after { content:""; position:absolute; top:0; left:0; width:200%; height:100%; transform-origin: 50% 50%; transform:rotateY(-7deg) translateX(-50%); background-color: #fff; outline: 1px solid transparent; }
.content.white-top > .container-fluid { position:relative; z-index:11; }
.content.white-top > .container { position:relative; z-index:11; }

.content.gray { overflow:hidden; position:relative; z-index:10; margin:-7% 0; padding: 7% 0; perspective:1000px; transform-style: preserve-3d; }
.content.gray::after { content:""; position:absolute; top:0; left:0; width:200%; height:100%; transform-origin: 50% 50%; transform:rotateY(-7deg) translateX(-50%); background-color: #f5f7f6; outline: 1px solid transparent; }
.content.gray > .container-fluid { position:relative; z-index:11; }
.content.gray > .container { position:relative; z-index:11; }
.content.gray-bg { background-color: #f5f7f6; }

.content.orange { overflow:hidden; position:relative; z-index:10; margin:-7% 0; padding-bottom: 5%; perspective:1000px; transform-style: preserve-3d; }
.content.orange h2 { color:#fff; }
.content.orange h3 { color:#333 !important; }
.content.orange::after { content:""; position:absolute; top:0; left:0; width:200%; height:100%; transform-origin: 50% 50%; transform:rotateY(-7deg) translateX(-50%); background-color: #f89406; outline: 1px solid transparent; }
.content.orange > .container { position:relative; z-index:11; }
.content.orange > .container-fluid { position:relative; z-index:11; }
.content.orange-bg {  background-color: #f89406; }

.content.black { color:#fff; overflow:hidden; position:relative; z-index:10; margin:-7% 0; padding: 7% 0; perspective:1000px; transform-style: preserve-3d; }
.content.black h2 { color:#fff; }
.content.black::after { content:""; position:absolute; top:0; left:0; width:200%; height:100%; transform-origin: 50% 50%; transform:rotateY(-7deg) translateX(-50%); background-color: #000; outline: 1px solid transparent; }
.content.black > .container { position:relative; z-index:11; }
.content.black > .container-fluid { position:relative; z-index:11; }
.content.black-bg { background-color:#000; color:#fff; }
.content.black-bg h2 { color:#fedf02; }
.content.black-bg h3 { color:#fff; }

.content.dark-gray-top { overflow:hidden; position:relative; z-index:10; margin:-7% 0; padding: 7% 0; perspective:1000px; transform-style: preserve-3d; }
.content.dark-gray-top::after { content:""; position:absolute; top:0; left:0; width:200%; height:100%; transform-origin: 50% 50%; transform:rotateY(-7deg) translateX(-50%); background-color: #262626; outline: 1px solid transparent; }
.content.dark-gray-top > .container-fluid { position:relative; z-index:11; }
.content.dark-gray-top > .container { position:relative; z-index:11; }
.content.dark-gray { background-color:#262626; color:#fff; }
.content.dark-gray h2 { color: #fedf02; }
.content.dark-gray h3 { color:#fff; }

.map-wrapper,.map-wrapper > .location-map, .col-location { height:100%; }
.location-map .leaflet-bottom.leaflet-right { position:static; }
.location-map .leaflet-bottom.leaflet-right .leaflet-control-attribution { position: absolute; top: 50%; left: 0; transform: translateY(75px) rotate(-90deg); transform-origin: 0 0; }

.content .col-text {padding-top: 170px; padding-bottom: 170px;}
.content-8_4-fluid .col-text:last-child {padding-right: 30px;}
.content-4_8-fluid .col-text:first-child {padding-left: 30px;}

.content.normal .col-content_highlights {padding-top: 170px; padding-bottom: 170px;}
.content.normal .col-instagram_smashballoon {padding-top: 170px; padding-bottom: 170px;}

.content-12.normal+.orange { margin-top:0; }

.content.content-8_4-fluid .col-location { margin-left:-15px; margin-right:-15px; }
.content.content-8_4-fluid .col-location+.col-text { max-width:450px; }

.content > .container > .row > .col-text:first-child { padding-right:35px; }

.col-content_highlights .content-highlight { margin: 15px 0; z-index: 200;}
.col-content_highlights .content-highlight .content-highlight-container { position:relative; overflow:hidden; }
.col-content_highlights .content-highlight:nth-child(4n+1) .content-highlight-container { background-color: #000; background-image: linear-gradient(120deg, #000 67%, #f7d920 0%); }
.col-content_highlights .content-highlight:nth-child(4n+1) .content-highlight-container .content-highlight-inner { color:#fff !important; }
.col-content_highlights .content-highlight:nth-child(4n+1) .content-highlight-container .content-highlight-bg {background: rgba(0,0,0,0.3); width: 100%; z-index: 100; width: 100%; height: 100%; position: absolute; left: 0; top: 0;}
.col-content_highlights .content-highlight:nth-child(4n+1) .content-highlight-container .content-highlight-inner h3 { color:#fff !important; font-family: 'Oswald', sans-serif !important; }
.col-content_highlights .content-highlight:nth-child(4n+2) .content-highlight-container, .col-content_highlights .content-highlight:nth-child(4n+3) .content-highlight-container { background-color:#f7d920; background-image: linear-gradient(120deg, #f7d920 67%, #000 0%); }
.col-content_highlights .content-highlight:nth-child(4n+2) .content-highlight-container .content-highlight-inner, .col-content_highlights .content-highlight:nth-child(4n+3) .content-highlight-container .content-highlight-inner { color:#000 !important; }
.col-content_highlights .content-highlight:nth-child(4n+2) .content-highlight-container .content-highlight-bg {background: rgba(247,217,32,0.3); width: 100%; z-index: 100; width: 100%; height: 100%; position: absolute; left: 0; top: 0;}
.col-content_highlights .content-highlight:nth-child(4n+3) .content-highlight-container .content-highlight-bg {background: rgba(247,217,32,0.3); width: 100%; z-index: 100; width: 100%; height: 100%; position: absolute; left: 0; top: 0;}
.col-content_highlights .content-highlight:nth-child(4n+2) .content-highlight-container .content-highlight-inner h3, .col-content_highlights .content-highlight:nth-child(4n+3) .content-highlight-container .content-highlight-inner h3 { color:#000 !important; font-family: 'Oswald', sans-serif !important; }
.col-content_highlights .content-highlight:nth-child(4n+4) .content-highlight-container { background-color: #000; background-image: linear-gradient(120deg, #000 67%, #f7d920 0%); }
.col-content_highlights .content-highlight:nth-child(4n+4) .content-highlight-container .content-highlight-inner { color:#fff !important; }
.col-content_highlights .content-highlight:nth-child(4n+4) .content-highlight-container .content-highlight-bg {background: rgba(0,0,0,0.3); width: 100%; z-index: 100; width: 100%; height: 100%; position: absolute; left: 0; top: 0;}
.col-content_highlights .content-highlight:nth-child(4n+4) .content-highlight-container .content-highlight-inner h3 { color:#fff !important; font-family: 'Oswald', sans-serif !important; }

.col-content_highlights .content-highlight .content-highlight-container { position:relative; box-shadow:0 0; height: 100%; }
.col-content_highlights .content-highlight-container > img { position:absolute; right:0; bottom:0; max-height:100%; width:auto; z-index:1;}
.col-content_highlights .content-highlight-container .content-highlight-inner {padding: 10px; z-index: 500;position:relative; width:65%; height:100%; display:flex; flex-wrap:wrap; align-content:center; background-color:transparent; text-align:left; z-index:150; }
.col-content_highlights .content-highlight-container .content-highlight-inner > h3 { padding:0; margin:0; }
.col-content_highlights .content-highlight-container .content-highlight-inner > h3,.col-content_highlights .content-highlight-container .content-highlight-inner > .ingress { width:100%; }
.col-content_highlights .content-highlight-container .content-highlight-inner > .ingress { padding:15px 0; }
.content-highlight-link::after { content: "\f105"; font-family:"FontAwesome"; display:inline-block; margin-left:8px; color: #dc7c1f; }

.content.orange > .container > .row > div:not(:first-child) > .col-content_highlights { padding-top:170px; }

.col-image .img-object { object-fit: cover; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

@media (max-width:575px) {
	.col-image .img-object { position:static; height:auto; max-width:100%; width:auto; }
}
@media (max-width:767px) {
	.col-md-12 > .col-image .img-object { position:static; height:auto; max-width:100%; width:auto; }
}
@media (max-width:1199px) {
	.col-lg-12 > .col-image .img-object { position:static; height:auto; max-width:100%; width:auto; }
}


.content-0-12 > .container-fluid > .row { overflow:hidden; }
.col-content_carousel {padding: 100px 0 !important;}
.orange .col-content_carousel, .black .col-content_carousel {padding: 120px 0 40px !important;}
.gray .col-content_carousel,.dark-gray-top .col-content_carousel, .white-top .col-content_carousel {padding: 80px 0 40px !important;}
.dark-gray .col-content_carousel, .normal .col-content_carousel, .black-bg .col-content_carousel,.orange-bg .col-content_carousel {padding: 160px 0 160px !important;}

.col-content_carousel .content-carousel-description { position: relative; z-index: 200;}
.col-content_carousel .owl-carousel .owl-stage-outer { overflow:visible; }
.col-content_carousel .content-carousel-container .owl-carousel-item > a { display:block; color:#000; font-size: 20px; line-height: 30px; padding:10px 12px; background-color:#fff; font-family: 'Oswald', sans-serif !important;}
.col-content_carousel .content-carousel-container .owl-carousel-item > a:hover,.col-content_carousel .content-carousel-container .owl-carousel-item > a:focus, .col-content_carousel .content-carousel-container .activeslide a { color:#000; text-decoration:none; box-shadow: 0px 1px 24px 4px rgba(0,0,0,0.3); background: #f89406;}
.col-content_carousel .content-carousel-container > div.owl-carousel-arrow { top:80px; transform:translateY(0px); color:#000; background-color:#f7d920; width: 50px; height:50px; font-size:29px; line-height: 47px; vertical-align: bottom; }
.col-content_carousel .content-carousel-container > div.owl-carousel-arrow-left { left:0; right: auto;}
.col-content_carousel .content-carousel-container > div.owl-carousel-arrow-left > .fa::after { content: "\f104"; }
.col-content_carousel .content-carousel-container > div.owl-carousel-arrow-right { left:auto; right:0px; }
.col-content_carousel .content-carousel-container > div.owl-carousel-arrow-right > .fa::after { content:"\f105"; }
.col-content_carousel .content-carousel-container::before { content:""; z-index:2500; position:absolute; width:100%; height:100%; right:100%; top:0; background-image:linear-gradient(90deg, rgba(245,247,246,1) 67%, rgba(245,247,246,0)); }
.col-content_carousel .content-carousel-container::after { content:""; z-index:2500; position:absolute; width:100%; height:100%; left:100%; top:0; background-image:linear-gradient(90deg, rgba(245,247,246,0), rgba(245,247,246,1) 33%); }
.col-content_carousel .content-carousel-container .content-carousel-contents { position:relative; }
.col-content_carousel .content-carousel-container .content-carousel-content {padding: 30px; width: 80%; margin: 0 auto;}

.orange .col-content_carousel .content-carousel-container::before,
.orange-bg .col-content_carousel .content-carousel-container::before { content:""; z-index:2500; position:absolute; width:100%; height:100%; right:100%; top:0; background-image:linear-gradient(90deg, rgba(248,148,6,1) 67%, rgba(248,148,6,0)); }
.orange .col-content_carousel .content-carousel-container::after,
.orange-bg .col-content_carousel .content-carousel-container::after { content:""; z-index:2500; position:absolute; width:100%; height:100%; left:100%; top:0; background-image:linear-gradient(90deg, rgba(248,148,6,0), rgba(248,148,6,1) 33%); }

.dark-gray .col-content_carousel .content-carousel-container::before,
.dark-gray-top .col-content_carousel .content-carousel-container::before { content:""; z-index:2500; position:absolute; width:100%; height:100%; right:100%; top:0; background-image:linear-gradient(90deg, rgba(38,38,38,1) 67%, rgba(38,38,38,0)); }
.dark-gray .col-content_carousel .content-carousel-container::after,
.dark-gray-top .col-content_carousel .content-carousel-container::after { content:""; z-index:2500; position:absolute; width:100%; height:100%; left:100%; top:0; background-image:linear-gradient(90deg, rgba(38,38,38,0), rgba(38,38,38,1) 33%); }

.normal .col-content_carousel .content-carousel-container::before,
.white-top .col-content_carousel .content-carousel-container::before { content:""; z-index:2500; position:absolute; width:100%; height:100%; right:100%; top:0; background-image:linear-gradient(90deg, rgba(255,255,255,1) 67%, rgba(255,255,255,0)); }
.normal .col-content_carousel .content-carousel-container::after,
.white-top .col-content_carousel .content-carousel-container::after { content:""; z-index:2500; position:absolute; width:100%; height:100%; left:100%; top:0; background-image:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,1) 33%); }

.black .col-content_carousel .content-carousel-container::before,
.black-bg .col-content_carousel .content-carousel-container::before { content:""; z-index:2500; position:absolute; width:100%; height:100%; right:100%; top:0; background-image:linear-gradient(90deg, rgba(0,0,0,1) 67%, rgba(0,0,0,0)); }
.black .col-content_carousel .content-carousel-container::after,
.black-bg .col-content_carousel .content-carousel-container::after { content:""; z-index:2500; position:absolute; width:100%; height:100%; left:100%; top:0; background-image:linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,1) 33%); }

.content.black .news-highlight-inner,.content.black-bg .news-highlight-inner { color:#fff; text-decoration:none; display:block; border:0; }
.content.black .news-highlight-inner:hover,.content.black .news-highlight-inner:focus,.content.black .news-highlight-inner:active,
.content.black-bg .news-highlight-inner:hover,.content.black-bg .news-highlight-inner:focus,.content.black-bg .news-highlight-inner:active { text-decoration:none; color:#fff; }

.col-gallery {margin: 15px 0;}
.col-gallery .owl-carousel {padding: 0 35px;}
.col-gallery .owl-carousel .owl-item {padding: 0 5px;}
.col-gallery .owl-carousel .owl-nav .owl-prev {position: absolute; left: 0; top: 0; display: block; background: #fedf02; height: 100%;}
.col-gallery .owl-carousel .owl-nav .owl-next {position: absolute; right: 0; top: 0; display: block; background: #fedf02; height: 100%;}
.col-gallery .owl-carousel .owl-nav .owl-prev span {font-size: 35px; line-height: 1; padding: 10px; display: block; margin-top: -5px;}
.col-gallery .owl-carousel .owl-nav .owl-next span {font-size: 35px; line-height: 1; padding: 10px; display: block; margin-top: -5px;}

.col-gallery .main-image-title {display: none;}
.col-gallery .gallery-main-image {position: relative;}
.col-gallery .gallery-main-image .main-image-title {display: block; position: absolute; left: 0; bottom: 0; width: 100%; padding: 5px 10px; background: #000; opacity: 0.8; color: #fff; }

.col-news_highlights .news-highlight-date {font-size: 15px !important; font-weight: 700 !important; letter-spacing: 1px; margin-bottom: 30px;}

.btn-yellow { display:inline-block; padding: 15px 44px; border:0px; color:#000; background-color:#f7d920; }
.btn-yellow:hover,.btn-yellow:focus,.btn-yellow:active { text-decoration:none; }
.footer-container2 .btn-yellow { border:1px solid #fff; color:#fff; }

.btn-transparent { display:inline-block; }
.btn-transparent a {display: block; padding: 15px 44px; color: #000; border:1px solid #000;}
a .btn-transparent {display: block; padding: 15px 44px; color: #000; border:1px solid #000;}
.btn-transparent a:hover,.btn-transparent a:focus,.btn-transparent a:active { text-decoration:none; color: #000;}
a .btn-transparent:hover,a .btn-transparent:focus,a .btn-transparent:active { text-decoration:none; color: #000;}

.col-facebook_smashballoon {padding-top: 130px;}

.person-highlight {margin-top: 30px;}
.person-info-wrap {background: #f89406; height: 100%;}
.person-info {padding: 15px; color: #000;}
.person-info h2 {font-size: 26px !important; color: #fff;}
.person-info .person-title {font-weight: 700; text-transform: uppercase; font-size: 14px; margin-bottom: 5px; margin-top: 15px;}
.person-info .person-additional-info a {color: #000; text-decoration: underline;}
.person-info ul {list-style: none; padding: 0; margin: 0 0 5px; font-weight: 700;}
.person-info ul a {color: #fff; font-size: 13px;}

.light-gray { color: #8c8c8c; font-weight: 300; }

.footer-container { background-color: #262626; color:#a7a7a7; padding: 90px 0; font-size: 14px !important;}
.footer-container a { color:#a7a7a7; }
.footer-container a:hover,.footer-container a:focus,.footer-container a:active { color:#a7a7a7; }
.black+.footer-container,.orange+.footer-container,.grey+.footer-container,
.white-top+.footer-container,.dark-gray-top+.footer-container { padding-top:190px; }
.footer-someicons { border-top:1px solid #a7a7a7; margin-top:25px; padding-top:25px; }
.footer-container h3 {font-size: 14px !important; font-weight: 900!important; font-family: 'Lato', sans-serif !important;}
.footer-container ul {list-style: none; padding: 0;}
.footer-container .footer-some-icons {text-align: center;}
.footer-container .footer-some-icons > li { display:inline-block; }
.footer-container .footer-some-icons .fa {font-size: 20px; padding: 10px; height: 40px; width: 40px; text-align: center; background: #606060; color: #000; margin: 5px; border-radius: 5px;}
.footer-container .footer-some-icons span {display: none;}

#fancybox-wrap,#fancybox-content { box-sizing:content-box; }

textarea.lz-input { line-height:1.15; }

@media screen and (max-width: 1199px) {
	.topbar-container > .container > .topbar {position: static !important; text-align: right;}
	.topbar-container {background: #000;}
	.carousel-caption h2, .carousel-caption h1 {font-size: 52px !important;}
	.carousel-caption {top: 35%;}
	h2 {font-size: 28px !important;}
}

@media screen and (max-width: 991px) {
	.carousel-caption {top: 0; transform: translateY(0);}
	.carousel-caption h1, .carousel-caption h2 {font-size: 52px !important;}
	.mega-menu-wrap {width: 100% !important;}
	.banner-container .owl-stage-outer {min-height: 500px;}
	.banner-container {min-height: 500px;}
	.searchform-1 {width: 100%;}
	.searchform-1 > .search-toggle {text-align: right;}
}

@media screen and (max-width: 767px) {
	.carousel-caption {top: 5%;}
	.carousel-caption h1, .carousel-caption h2 {font-size: 40px !important;}
	.banner-container1 .owl-carousel .owl-stage-outer {padding-bottom: 75% !important;}
}

@media screen and (max-width: 575px) {
	.carousel-caption {top: 1%;}
	.carousel-caption h1, .carousel-caption h2 {font-size: 28px !important;}
	.col-location {height: 300px;}
	/*.col-image {min-height: 300px;}*/
	.content.first-element .col-content_highlights,
	.content.orange .col-content_highlights,
	.content.orange-bg .col-content_highlights,
	.content.black-bg .col-content_highlights,
	.content.normal .col-content_highlights,
	.content.white-top .col-content_highlights,
	.content.dark-gray-top .col-content_highlights,
	.content.normal .col-instagram_smashballoon,
	.col-facebook_smashballoon { padding-top: 30px !important; padding-bottom:60px; }
	.content > div > .row > div:first-child > .col-text { padding-top:100px; }
	.content .col-text { padding-top: 30px; padding-bottom: 30px; }
	.col-content_carousel .content-carousel-container .content-carousel-content { padding-left:0; padding-right:0; }
	.content.orange::after,.content.black::after,.content.gray::after,.content.first-element::after,
	.content.white-top::after,.content.dark-gray-top::after { transform: rotateY(-3deg) translateX(-50%); }
	
	.col-image > .img-background > div.img-background-content { position:static; }
	
	.black + .footer-container, .orange + .footer-container, .grey + .footer-container { padding-top: 125px; }
}

@media (min-width:1921px) {
	.content.first-element { margin: -210px 0 -7%; }
	.content .col-text { padding-top: 230px; padding-bottom: 250px; }
}