/*
Theme Name: Theme Ukkonen
Author: Markkinointi Ukkonen
Author URI: https://www.markkinointiukkonen.fi
Description: Markkinointi Ukkosen Teema. Vaatii PHP7:n. ACF PRO files are not to be used or distributed outside of the premium theme/plugin.
Version: 1.2.9
License: GNU General Public License
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: themeukkonen
*/

/* MUUTETTAVAT START */

body {
	font-size: 18px;
	font-family: Arial, sans-serif;
}

h1, h2, h3 {
	font-family: 'Bebas Neue', cursive;
}

h1, h2, h3, h4 {
	font-weight: 400;
}

h1 {
	font-size: 30px;
}

h2 {
	font-size: 25px;
}

h3 {
	font-size: 20px;
}

h4 {
	font-size: 20px
}

h5 {
	font-size: 18px;
	font-weight: 700;
}

h6 {
	font-size: 18px;
	font-weight: 400;
	font-style: italic;
}

/* Keskittää footerin otsikon ja menuelementit */
.widget-title,
footer .menu-item {
    text-align: center;
}

#main_header.fixed+section#hero > div {
	top: 65px;
}

/* MUUTETTAVAT END */

html, body, section, main, aside, nav, ul {
	margin: 0;
	padding: 0;
}

html, body, div {
	font-size: 18px;
}

body {
	background: #c0c0c0;
	max-width: 100%;
	overflow-x: hidden;
}

section,
main,
aside,
header,
footer {
	display: block;
	box-sizing: border-box;
}

footer {
	color: #fff;
}

a {
	text-decoration: none;
	color: inherit;
}

a:hover {
	text-decoration: underline;
}

p,
a,
span,
h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.5em;
}

p {
    margin: 1em 0;
}

img {
	max-width: 100%;
	height: auto;
}

img.aligncenter {
    margin: 0 auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 1em 0 0.5em 0;
	line-height: 1.25em;
}

blockquote {
	quotes: '"' '"' '"' '"';
	font-style: italic;
}

blockquote:before {
    content: open-quote;
}

blockquote:after {
    content: close-quote;
}

ul {
    padding-left: 25px;
}

li {
	line-height: 1.5em;
	list-style-position: inside;
}

video {
	width: 100% !important;
	height: auto !important;
}

.testipalikka {
	display: block;
	border: 1px solid #000;
	box-sizing: border-box;
	color: red;
	background: #fff;
}

.alignleft {
    float: left;
    margin: 0.3em 2em 2em 0;
}

.alignright {
    float: right;
    margin: 0.3em 0 2em 2em;
}

.wp-caption-text {
    font-size: 0.9em;
    font-style: italic;
    margin-top: 0.25em;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.relative {
	position: relative;
}

span.nappula,
a.nappula {
    display: inline-block;
    padding: 1em 2em;
    cursor: pointer;
    text-decoration: none;
	transition: background 0.15s linear;
}

.nappulawrapper {
	display: block;
	margin: 1em 0;
}

.nappulawrapper.tekstinjoukossa {
    display: inline-block;
    margin-left: 1em;
    margin-right: 1em;
}

.nappulawrapper.tekstinjoukossa > a {
    min-width: 174px;
}

.nappulawrapper.vasen {
	text-align: left;
}

.nappulawrapper.keski {
	text-align: center;
}

.nappulawrapper.oikea {
	text-align: right;
}

.big_wrapper {
    position: relative;
	width: 100%;
	max-width: 1300px;
	margin: 0 auto;
}

.medium_wrapper {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

.small_wrapper {
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

.flexbox {
	display: flex;
}

.flexbox.center {
	justify-content: center;
	align-items: center;
}

.flexbox.wrap {
	flex-wrap: wrap;
}

.flexbox.column {
	flex-direction: column;
}

.flexbox > .grow {
	flex-grow: 1;
}

.flexbox.four_in_row > * {
	width: 25%;
	box-sizing: border-box;
	margin-left: 0;
	margin-right: 0;
}

.flexbox.three_in_row > * {
	width: calc(100% / 3);
	box-sizing: border-box;
	margin-left: 0;
	margin-right: 0;
}

.flexbox.two_in_row > * {
	width: 50%;
	box-sizing: border-box;
	margin-left: 0;
	margin-right: 0;
}

header#main_header.transparent {
    position: absolute;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

@media screen and (min-width: 1051px) {
	.admin-bar header#main_header.transparent {
		top: 32px;
	}
}

#main_header.fixed {
	position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

.home #main_header.absolute {
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}

@media screen and (min-width: 1051px) {
	.home.admin-bar #main_header.absolute {
		top: 32px;
	}
}

header#main_header {   
    position: relative;
    z-index: 10;
}

.admin-bar #main_header.fixed {
	top: 32px;
}

#main_header > .big_wrapper {
	display: flex;
}

#main_header > .big_wrapper > #main_logo {
	width: 30%;
	max-width: 200px;
}

#main_header > .big_wrapper > #main_nav {
	flex-grow: 1;
}

ul#main_navigation,
ul#mobile_top_navigation {
	flex-wrap: wrap;
    padding-left: 0;
	height: 100%;
}

#main_logo {
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

#main_logo > a {
	padding: 0.5em 0;
    line-height: initial;
	display: flex;
    align-items: center;
}

#main_logo > a,
#main_logo > a:hover {
	text-decoration: none;
}

/* HERO */
section#hero p {
	margin-top: 0;
	margin-bottom: 0.5em;
}

section#hero h1,
section#hero h2,
section#hero h3,
section#hero h4,
section#hero h5,
section#hero h6 {
	margin-top: 0;
	margin-bottom: 0.25em;
}

section#hero {
	position: relative;
    margin: 0 auto;
    box-sizing: border-box;
    max-height: 1200px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

section#hero.video,
.home section#hero.video {
	max-height: unset;
}

.home section#hero {
    max-height: calc(100vh - 77px);
}

section#hero > img {
    width: 100%;
    height: auto;
}

section#hero div {
	font-size: inherit;
}

section#hero > div {
    position: absolute;
	top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    align-items: center;
    text-align: initial;
    justify-content: center;
    color: #fff;
    font-size: 100px;
    line-height: 1em;
	box-sizing: border-box;
	padding: 18px 2em;
}

section#hero > div p {
	font-size: 25px;
}

.oletuskuva h1 {
    text-shadow: 0.08em 0.08em rgba(0,0,0,0.6);
}

/* NAVIGAATIO */
ul.menu {
    padding-left: 0;
    list-style: none;
}

#main_navigation,
#mobile_top_navigation {
	display: flex;
	justify-content: flex-end;
}

#main_navigation > li,
#mobile_top_navigation > li {
	display: block;
	position: relative;
}

#main_navigation > li > a,
#mobile_top_navigation > li > a {
	display: block;
	padding: 1em;
}

#main_navigation > li.menu-item-has-children > a:first-child::after,
#mobile_top_navigation > li.menu-item-has-children > a:first-child::after {
    content: " ▾";
    float: right;
    display: block;
    position: relative;
    bottom: 2px;
    margin-left: 5px;
}

#main_navigation > li > a,
#mobile_top_navigation > li > a {
    min-height: 100%;
    box-sizing: border-box;
	display: flex;
    align-items: center;
	transition: background 0.15s linear;
	font-size: 0.9em;
}

@media screen and (min-width: 1051px) and (max-width: 1500px) {
	#main_navigation > li > a,
	#mobile_top_navigation > li > a {
		font-size: 0.9em;
		padding: 1em 1.5em;
	}
}

@media screen and (min-width: 1051px) and (max-width: 1250px) {
	#main_navigation > li > a,
	#mobile_top_navigation > li > a {
		font-size: 0.7em;
		padding: 1em 1.25em;
	}
}

#main_navigation > li:hover > a,
#mobile_top_navigation > li:hover > a,
#main_navigation > li.current-menu-item > a,
#mobile_top_navigation > li.current-menu-item > a {
	text-decoration: none;
}

#main_navigation .sub-menu,
#mobile_top_navigation .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	white-space: nowrap;
	border: 1px solid #000;
	background: #fff;
	list-style: none;
	padding-left: 0;
	min-width: 100%;
	box-sizing: border-box;
}

#main_navigation .sub-menu a,
#mobile_top_navigation .sub-menu a {
	display: block;
	padding: 5px 2em;
	padding-left: calc(2em - 1px);
    padding-right: calc(2em - 1px);
}

#main_navigation .sub-menu a:hover,
#mobile_top_navigation .sub-menu a:hover {
	color: #fff;
	text-decoration: none;
}

@media screen and (min-width: 1050px) {
	#main_navigation > li:hover > .sub-menu,
	#mobile_top_navigation > li:hover > .sub-menu {
		display: block;
	}
}

main#main_content {
    padding: 0 2em;
    margin: 0;
}

main#main_content > .medium_wrapper {
	margin-top: 3.5em;
	margin-bottom: 3.5em;
}

div#content_wrapper {
    display: flex;
}

main#main_content {
    flex-grow: 1;
}

aside#main_sidecontent {
    width: calc(100% / 4);
    background: #fff;
    padding: 2em;
    border-left: 1px solid rgba(0,0,0,0.25);
}

#main_footer_top {
	padding: 3em 1em 2em 1em;
}


#main_footer_bottom {
	padding: 2em 1em 3em 1em;
}

footer#main_footer {
	position: relative;
	padding: 0 2em;
}

#footer_wrapper > .widget-container {
	padding: 2em 1em;
	width: auto;
	flex-basis: 0;
	flex-grow: 1;
}

#footer_wrapper > .widget-container:first-of-type {
	padding-left: 0;
}

#footer_wrapper > .widget-container:last-of-type {
	padding-right: 0;
}

footer ul {
    list-style: none;
    padding-left: 0;
	text-align: center;
}

span.post-date {
    display: block;
    font-size: 0.8em;
    line-height: 0.7em;
    font-style: italic;
	margin-bottom: 0.75em;
}

#mobile_nav_toggle {
	display: none;
}

.widget-title {
    font-size: 1.3em;
    margin-bottom: 0.5em;
    display: block;
}

section.palkki {
    display: block;
    box-sizing: border-box;
    padding: 2em 1em;
	position: relative;
}

.palkit > section.palkki {
	display: flex;
	padding: 0;
}

.palkit > section.palkki:nth-of-type(2n) {
	flex-direction: row-reverse;
}

.palkki_oikea {
	padding: 200px 50px;
}

.palkki_vasen,
.palkki_oikea {
	display: block;
	width: 50%;
	box-sizing: border-box;
}
.palkki_oikea {
	display: flex;
	align-items: center;
	justify-content: center;
}

.palkki_oikea_wrapper {
	display: block;
	width: 800px;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
}

.palkit > section.palkki h1:first-of-type,
.palkit > section.palkki h2:first-of-type,
.palkit > section.palkki h3:first-of-type,
.palkit > section.palkki h4:first-of-type,
.palkit > section.palkki h5:first-of-type,
.palkit > section.palkki h6:first-of-type {
	text-align: center;
}

section.palkki h1:first-of-type,
section.palkki h2:first-of-type,
section.palkki h3:first-of-type,
section.palkki h4:first-of-type,
section.palkki h5:first-of-type,
section.palkki h6:first-of-type {
	margin-top: 0;
}

@media screen and (max-width: 1050px) {
	.palkit > section.palkki,
	.palkit {
		display: block;
	}
	
	.palkki {
		height: auto !important;
	}
	
	.palkki_vasen {
		width: 100%;
		height: 50vh;
	}
	
	.palkki_vasen,
	.palkki_oikea {
		display: block;
		width: 100%;
	}
}

.overlay {
	position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    box-sizing: border-box;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="submit"],
.wpcf7-form textarea {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 20px;
    box-sizing: border-box;
    border: 0;
    border-radius: 15px;
}

.wpcf7-form input[type="radio"] {
    font-size: 43px;
    width: 20px;
    height: 20px;
    display: inline-block;
}

.wpcf7-radio span.wpcf7-list-item {
    display: block;
    margin-left: 0;
}

.wpcf7-radio label {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
	cursor: pointer;
}

.wpcf7-submit {
	cursor: pointer;
}

.wpcf7-submit:hover {
	opacity: 0.9;
}

#before_map_widget .textwidget {
    text-align: center;
}

.google-maps {
	max-width:100%;
    position: relative;
    padding-bottom: 20%;
    overflow: hidden;
	margin: 0;
}

@media screen and (max-width: 992px) {
	.google-maps {
		padding-bottom: 50%;
	}
}

.google-maps iframe {
	pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.woocommerce #main_content h1.page-title {
	display: none;
}

.wpcf7-form input[type="text"], .wpcf7-form input[type="tel"], .wpcf7-form input[type="number"], .wpcf7-form input[type="email"], .wpcf7-form input[type="submit"], .wpcf7-form textarea {
    border: 1px solid #000;
    border-radius: 0;
	margin: 10px 0;
}

.wpcf7-form input[type="submit"] {
	background: #000;
	opacity: 1.0;
	color: #fff;
	transition: 0.25s all;
}

.wpcf7-form input[type="submit"]:hover {
	opacity: 0.75;
}

#main_content hr {
    display: block;
    margin: 50px 0 75px 0;
}

.rivi {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.solu1 {
	width: calc((100% / 12) - 20px);
}

.solu2 {
	width: calc((100% / 6) - 20px);
}

.solu3 {
	width: calc((100% / 4) - 20px);
}

.solu4 {
	width: calc((100% / 3) - 20px);
}

.solu5 {
	width: calc(((100% / 12) * 5) - 20px);
}

.solu6 {
	width: calc(50% - 20px);
}

.solu7 {
	width: calc(((100% / 12) * 7) - 20px);
}

.solu8 {
	width: calc(((100% / 12) * 8) - 20px);
}

.solu9 {
	width: calc(((100% / 12) * 9) - 20px);
}

.solu10 {
	width: calc(((100% / 12) * 10) - 20px);
}

.solu11 {
	width: calc(((100% / 12) * 11) - 20px);
}

.solu12 {
	width: 100%;
	padding-top: 25px;
	padding-bottom: 25px;
}

img.wp-post-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.artikkeli a img.wp-post-image  {
	opacity: 1.0;
	transition: 0.25s all;
}

.artikkeli a:hover img.wp-post-image {
	opacity: 0.75;
}

.artikkeli_luelisaa {
    margin: 0;
}

h2.artikkeli_otsikko {
    margin-top: 20px;
}

.single section#hero {
    max-height: 530px;
}

.harmaapalkki ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
}

.harmaapalkki ul a {
    display: block;
    padding: 5px 20px;
		font-size: 15px;
}

.harmaapalkki ul li.current_page_item a,
.harmaapalkki ul li.current_page_parent a,
.harmaapalkki ul li.current-page-ancestor a {
		font-weight: bold;
}

.harmaapalkki {
    background: #dfe0e2;
    margin-bottom: 40px;
}

.palvelulistaus span.nappula {
    display: inline-block;
    margin: 10px auto;
    font-size: 14px;
    clear: both;
}

@media screen and (max-width: 1050px) {
		#main_header > .big_wrapper > #main_logo {
   		 margin-bottom: 10px;
		}
}

section.palvelulistaus {
    display: block;
    box-sizing: border-box;
    width: 600px;
    max-width: 100%;
    margin: 0 auto;
}

section.palvelulistaus > a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    background: #fff;
    text-decoration: none;
    transition: 0.5s all;
}

a.yksi_palvelulistaus > div {
    display: block;
    flex-grow: 1;
    text-align: center;
    font-size: 24px;
	  padding: 20px 40px;
}

.palvelulistaus_otsikko {
	display: block;
}

section.palvelulistaus > a:hover {
    text-decoration: none;
    background: #f6f6f6;
}

section.palvelulistaus > a img {
		opacity: 1.0;
		transition: 0.5s all;
}

section.palvelulistaus > a:hover img {
		opacity: 0.7;
}

.embed-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
} 

.embed-container iframe,
.embed-container object,
.embed-container embed { 
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

@media screen and (max-width: 1200px) {
	section#hero {
		font-size: 80%;
	}
}

@media screen and (max-width: 1350px) and (min-width: 1051px) {
	#main_header > .big_wrapper > #main_logo {
		padding-left: 1.5em;
	}
}

@media screen and (min-width: 1000px) {
	#main_footer_top,
	#main_footer_bottom {
		padding-left: 0;
		padding-right: 0;
	}
}

@media screen and (max-width: 1000px) {
	section#hero {
		font-size: 70%;
	}
	
	#footer_wrapper {
		flex-wrap: wrap;
	}
	
	#footer_wrapper > .widget-container {
		flex-basis: auto;
		width: 50%;
	}
	
	#footer_wrapper > .widget-container:first-of-type {
		padding-left: 1em;
	}
	
	#footer_wrapper > .widget-container:last-of-type {
		padding-right: 1em;
	}
}

@media screen and (min-width: 1051px) {
	#main_nav {
		display: block !important;
	}
	
	#mobile_nav_toggle {
		display: none !important;
	}
	
	#main_navigation,
	#mobile_top_navigation {
		display: flex !important;
	}
	
	section#hero {
		background: none !important;
	}
	
	#mobile_top_navigation {
		display: none !important;
	}
}

@media screen and (max-width: 1050px) {
	section.palvelulistaus > a {
		display: block;
		text-align: center;
		margin-bottom: 50px;
		padding-bottom: 23px;
		border-bottom: 1px solid #000;
	}

	section.palvelulistaus > a:last-of-type {
		border-bottom: 0;
	}
	
	#main_navigation .sub-menu,
	#mobile_top_navigation .sub-menu {
		position: initial !important;
		border-left: 0;
		border-right: 0;
		border-bottom: 0;
		border-top: 0;
	}
	
	.harmaapalkki {
		display: none !important;
	}
	
	#main_navigation .current-menu-item.menu-item-has-children .sub-menu,
	#mobile_top_navigation .current-menu-item.menu-item-has-children .sub-menu {
		display: block;
	}
	
	.widget-title {
		font-size: 1.25em;
	}
	
	h1 {
		font-size: 2em;
	}
	
	#hero h1 {
		text-align: center;
		font-size: 4em;
	}

	h2 {
		font-size: 1.8em;
	}

	h3 {
		font-size: 1.6em;
	}

	h4 {
		font-size: 1.4em;
	}
	
	#main_nav {
		display: none;
	}
	
	#main_navigation,
	#mobile_top_navigation {
		display: block !important;
	}
	
	.transparent {
		color: #000;
	}
	
	#mobile_nav_toggle {
		display: flex !important;
		justify-content: flex-end;
		align-items: center;
		width: 100%;
		box-sizing: border-box;
		padding: 20px 0.5em 20px 0.5em;
		height: 79px;
		max-width: 50%;
	}
	
	.mobile_nav_toggle_left {
		margin-right: 0.5em;
	}
	
	.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(-8px, 7px);
	}
	
	.change .bar2 {
		opacity: 0;
	}
	
	.change .bar3 {
		-webkit-transform: rotate(45deg) translate(-8px, -8px);
		transform: rotate(45deg) translate(-8px, -8px);
	}
	
	#mobile_nav_toggle > img {
		display: block;
		margin: 0 auto;
	}

	#main_header.fixed+section#hero > div {
		top: 0 !important;
	}
	
	.flexbox {
		flex-wrap: wrap;
	}
	
	.flexbox.four_in_row > * {
		width: 50%;
	}
	
	.flexbox.three_in_row > *,
	.flexbox.two_in_row > * {
		width: 100%;
	}
	
	#main_header {
		position: relative !important;
	}
	
	#main_header > .big_wrapper {
		flex-direction: column;
	}
	
	div#content_wrapper {
		flex-wrap: wrap;
	}

	section#hero {
		font-size: 50%;
	}
	
	main#main_content,
	aside#main_sidecontent {
		width: 100%;
	}
	
	aside#main_sidecontent {
		border-left: 0;
    	border-top: 1px solid rgba(0,0,0,0.25);
	}
	
	#main_header > .big_wrapper > #main_logo,
	#main_header > .big_wrapper > #main_nav	{
		width: 100%;
		max-width: 100%;
	}
	
	#main_header > .big_wrapper > #main_logo {
		justify-content: space-between;
		align-items: center;
		padding: 0.25em 1em;
	}
	
	#main_logo > a {
		width: 70%;
		padding-left: 5%;
		box-sizing: border-box;
		display: flex;
		justify-content: flex-start;
		align-items: center;
	}
	
	#main_logo > span#mobile_nav_toggle {
		width: 50%;
	}
	
	section#hero {
		background-size: cover;
	}
	
	section#hero > .ylakuva {
		display: none !important;
	}
	
	section#hero > div {
    	/*display: none !important;*/
		position: initial;
		width: 100%;
		box-sizing: border-box;
		min-height: 30vh;
	}
	
	.home section#hero > div {
    	display: none !important;
	}
	
	.hinnasto_kategoria_item {
			display: flex;
			flex-direction: column;
	}
	
	.hinnasto_kategoria_item * {
		order: 99;
	}

	.hinnasto_kategoria_item h2 {
			order: 0;
	}
	
	p.hinnasto_kategoria_item_price {
			order: 1;
			float: none;
			margin-left: 0;
			text-align: left;
			font-weight: bold;
			margin-bottom: 0px;
	}
}

@media screen and (max-width: 800px) {
	.solu1,
	.solu2,
	.solu3,
	.solu4,
	.solu5,
	.solu6,
	.solu7,
	.solu8,
	.solu9,
	.solu10,
	.solu11,
	.solu12 {
		display: block;
		width: 100%;
	}
}

@media screen and (max-width: 600px) {
	.flexbox.four_in_row > * {
		width: 100%;
	}
	
	#main_navigation,
	#mobile_top_navigation {
		flex-direction: column;
	}
	
	#main_navigation .sub-menu a,
	#mobile_top_navigation .sub-menu a {
		padding: 5px 2em;
		padding-left: 2em;
		padding-right: 2em;
	}
	
	.alignleft,
	.alignright {
		width: 100% !important;
		float: none;
		margin: 2em 0;
		text-align: center;
	}
	
	div#footer_wrapper {
		padding: 2em 0;
	}
	
	#footer_wrapper > .widget-container,
	footer#main_footer {
		padding: 0 1em;
	}
}

@media screen and (max-width: 600px) {
	#footer_wrapper > .widget-container {
		flex-basis: auto;
		width: 100%;
	}
}

@media screen and (max-width: 350px) {
	html {
		margin-top: 0 !important;
	}
	
	html #wpadminbar {
		display: none !important;
	}
}

/* TÄRKEÄT */
#main_header.transparent+section#hero > div {
    top: 0 !important;
}

@media screen and (max-width: 1050px) {
	#main_logo > a > img {
		max-height: 90px;
	}
	
	#main_footer_top,
	#main_footer_bottom {
		padding: 1em;
	}
	
	div#footer_wrapper {
		padding: 0;
	}
}

#tulosta_kaikki,
#nayta_kaikki {
	width: calc(50% - 0.5em);
}

.wp-video {
	width: 100% !important;
	margin: 0.5em auto;
}

@media screen and (min-width: 1200px) {
	.wp-video {
		width: calc((100% / 2) - 1em) !important;
		margin: 0.5em;
		float: left;
	}
	
	.page-id-143 h3 {
		clear: both;
	}
}

/* GALLERIA */
.galleria {
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	padding-top: 0;
}

.galleria > a {
	display: block;
	width: calc((100% / 4) - 1em);
	margin: 0.5em;
}

@media screen and (max-width: 1150px) {
	.galleria > a {
		width: calc((100% / 3) - 1em);
	}
}

@media screen and (max-width: 600px) {
	.galleria > a {
		width: calc((100% / 2) - 1em);
	}
}

@media screen and (max-width: 300px) {
	.galleria > a {
		width: calc(100% - 1em);
	}
}

/* HINNASTO */
#hinnasto {
	padding-top: 66px;
}

section.hinnasto_otsikot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

a.return_to_top,
a.hinnasto_otsikko {
    display: flex;
	align-items: center;
	justify-content: center;
    background: #c4d6c0;
    color: #fff;
    padding: 0.25em 0.5em;
    margin: 0.25em;
    border: 1px solid #000;
    width: calc((100% / 3) - 0.5em);
    box-sizing: border-box;
    text-align: center;
    font-size: 0.85em;
}

a.hinnasto_otsikko.full {
    width: calc(100% - 0.5em);
    padding: 0.4em 0.6em;
}

a.return_to_top {
    width: 100%;
    padding: 0.4em 0.6em;
	box-sizing: border-box;
}

a.return_to_top:hover,
a.hinnasto_otsikko:hover {
	background: #91bf87;
	text-decoration: none;
}

.hinnasto_kategoria > h1 {
    text-align: center;
    padding-bottom: 0.25em;
	margin-top: 0;
	padding-top: 66px;
    border-bottom: 3px solid #91bf87;
}

.hinnasto_kategoria h2 {
	font-size: 1.25em;
}

.hinnasto_kategoria_item {
	margin-bottom: 0.5em;
	border-bottom: 1px solid #f3f3f3;
}

.hinnasto_kategoria_item:last-of-type {
    border-bottom: 0;
}

.hinnasto_kategoria_item_price {
	float: right;
	margin: 0 0 1.5em 1.5em;
}

/* REFERENSSIT */
article.referenssi {
    display: flex;
	align-items: flex-start;
	padding-bottom: 1.5em;
	margin-bottom: 1.5em;
	border-bottom: 1px solid rgba(0,0,0,0.1);
}

article.referenssi:last-of-type {
	border-bottom: 0;
}

.referenssi_kuva {
    width: 40%;
	min-height: 200px;
}

.referenssi_kuva > img {
	width: 400px;
	max-width: 100%;
	box-sizing: border-box;
	display: block;
}

.referenssi_data {
	width: 60%;
	box-sizing: border-box;
	padding: 0 1.5em 0 1.5em;
}

.referenssi_data h1 {
	margin-top: 0;
	font-size: 25px;
	margin-bottom: 0;
}

.referenssi_data h2 {
	margin: 0.5em 0;
	font-size: 20px;
}

.referenssi_data p {
	margin-bottom: 0;
}

section.lounaspaiva {
    display: none;
    text-align: center;
}

section.lounaspaiva.active {
    display: block;
}

.valitse_paiva {
		display: block;
		width: 100%;
}

.valitsepaiva {
    display: inline-block;
    padding: 0.5em;
    margin: 0.25em;
    border: 1px solid #000;
    background: #000;
    color: #fff;
	cursor: pointer;
	 width: calc((100% / 7) - 0.5em);
    box-sizing: border-box;
    text-align: center;
	text-decoration: none;
}

.valitsepaiva:hover,
.valitsepaiva.active {
	background: #c0c0c0;
    color: #fff;
	text-decoration: none;
}

@media screen and (min-width: 801px) and (max-width: 1000px) {
		.valitsepaiva {
				font-size: 15px;
		}
}

@media screen and (max-width: 800px) {
		.valitse_paiva {
				display: flex;
			  flex-wrap: wrap;
		}
}

@media screen and (max-width:500px) and (max-width: 1000px) {
		.valitsepaiva {
				font-size: 12px;
		}
}

@media screen and (max-width: 512px) {
	.valitsepaiva {
			width: calc((100% / 4) - 0.5em);
	}
	
	.valitsepaiva:nth-of-type(5),
	.valitsepaiva:nth-of-type(6),
	.valitsepaiva:nth-of-type(7) {
			width: calc((100% / 3) - 0.5em);
	}
}

@media screen and (max-width: 600px) {
	article.referenssi {
		flex-direction: column;
	}
	
	.referenssi_kuva,
	.referenssi_data {
		width: 100%;
	}
	
	.referenssi_data {
		padding: 0 0.5em 0 0.5em;
	}
	
	.referenssi_kuva > img {
		margin: 0 auto 1em auto;
	}
	
}

/* YHTEISTYÖKUMPPANIT */
section#yhteistyokumppanit {
    display: flex;
	flex-wrap: wrap;
}

.yhteistyokumppani {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	width: calc((100% / 3) - 10px);
    display: flex;
	margin: 8px 0;
	min-height: 300px;
	background: rgba(0,0,0,0.1);
	transition: background 0.2s linear;
}

.yhteistyokumppani:hover {
	background: rgba(0,0,0,0.2);
}

.yhteistyokumppani:nth-of-type(2),
.yhteistyokumppani:nth-of-type(3n+2) {
	margin: 8px 15px;
}

.yhteistyokumppani > img {
    padding: 10px 10px 60px 10px;
}

.yhteistyokumppani > span {
	display: block;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	box-sizing: border-box;
	padding: 0.5em;
	background: rgba(0,0,0,0.75);
	color: #fff;
	text-align: center;
}

@media screen and (max-width: 1050px) {
	.yhteistyokumppani,
	.yhteistyokumppani:nth-of-type(2),
	.yhteistyokumppani:nth-of-type(3n+2) {
		width: calc((100% / 2) - 20px);
		margin: 10px;
	}
}

@media screen and (max-width: 700px) {
	.yhteistyokumppani,
	.yhteistyokumppani:nth-of-type(2),
	.yhteistyokumppani:nth-of-type(3n+2) {
		width: calc(100% - 20px);
		margin: 10px auto;
	}
}

@media screen and (max-width: 400px) {
	.yhteistyokumppani,
	.yhteistyokumppani:nth-of-type(2),
	.yhteistyokumppani:nth-of-type(3n+2) {
		padding: 0 10px;
	}
}

.woocommerce-LoopProduct-link img {
    max-height: 200px;
}

section.related.products {
    clear: both;
}

.blogi {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 2em;
  padding-bottom: 2em;
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

.blogi > a {
  display: block;
  width: 430px;
  max-width: 43%;
  box-sizing: border-box;
  padding-right: 30px;
}

.blogi > a > img {
	display: block;
	opacity: 1;
	transition: opacity 0.2s linear;
}

.blogi > a:hover > img {
	opacity: 0.85;
}

.blogi_data {
  display: block;
  box-sizing: border-box;
  width: 570px;
  max-width: 57%;
}

.blogi_data h1 {
  margin-top: 0;
  font-size: 50px;
}

@media screen and (max-width: 900px) {
	.blogi {
		flex-direction: column;
	}
	
	.blogi > a,
	.blogi_data {
		width: 100%;
		max-width: 100%;
		padding-right: 0;
	}
	
	.blogi > a {
		margin-bottom: 1em;
	}
	.blogi > a > img {
		display: block;
		margin: 0 auto;
	}
}

/* WOOCOMMERCE */
.qty {
    font-size: 19px;
    padding: 6px;
}

.product_meta {
	display: none;
}

.kuvaus {
	display: block;
	clear: both;
}

#coupon_code {
    font-size: 20px;
    width: auto;
}

.value select {
    width: 100%;
    font-size: 18px;
    margin-top: 6px;
}

.woocommerce .woocommerce-breadcrumb {
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
    box-sizing: border-box;
    background: #ffd639;
    display: block !important;
    width: 100%;
    padding: 5px 25px;
    color: #000;
}

.woocommerce-breadcrumb::before {
    display: block;
    content: '';
    left: -100vw;
    top: 0;
    height: 100%;
    width: 100vw;
    background: #ffd639;
    position: absolute;
    z-index: -9;
}

.woocommerce-breadcrumb::after {
    display: block;
    content: '';
    right: -100vw;
    top: 0;
    height: 100%;
    width: 100vw;
    background: #ffd639;
    position: absolute;
    z-index: -9;
}

.woocommerce #main_content {
	padding-top: 35px;
}

.woocommerce .woocommerce-breadcrumb a {
    position: relative;
    margin-right: 20px;
}

.woocommerce .woocommerce-breadcrumb a::after {
    display: block;
    content: ' / ';
    color: #000;
    text-decoration: none !important;
    position: absolute;
    top: 0;
    right: -14px;
}

section#heroslider.slider {
	display: block;
}

#heroslider.slider .slide,
#heroslider.slider img {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.slide_link {
	display: block;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.slide_content {
	display: flex;
	position: absolute;
	flex-direction: column;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	padding: 25px;
	justify-content: center;
	align-items: center;
	background: rgba(0,0,0,0.5);
}

section#heroslider .slide_content p {
	margin-top: 0;
	margin-bottom: 0;
	color: #fff;
	font-size: 40px;
	line-height: 45px;
	text-align: center;
}

section#heroslider span.nappula {
	display: block;
	margin: 1em auto;
}

.slick-dots {
    bottom: 25px;
}

.slick-dots li button::before {
    font-size: 20px !important;
}

.slick-dots li button::before,
.slick-dots li button::after {
	color: #fff !important;
}

.slick-prev.slick-arrow {
    left: 25px;
    z-index: 10;
}

.slick-next.slick-arrow {
    right: 25px;
    z-index: 10;
}

.slick-prev, .slick-next {
	width: 35px;
	height: 35px;
}

.slick-prev::before, .slick-next::before {
    font-size: 35px !important;
}

@media screen and (max-width: 1050px) {
	
	.slick-dots {
		bottom: 10px;
	}

	.slick-dots li button::before {
		font-size: 10px !important;
	}

	
	.slick-dots li button::before {
		font-size: 15px !important;
	}
	
	section#heroslider .slide_content p {
		font-size: 30px;
		line-height: 33px;
	}
}

@media screen and (max-width: 800px) {
	.slick-dots {
		display: none !important;
	}
	
	section#heroslider .slide_content p {
		font-size: 25px;
		line-height: 27px;
	}
}

/*
UUSI LOGOPALKKI
*/

section.logopalkki_v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
	width: 1920px;
    max-width: 100%;
    margin: 0 auto;
	padding-bottom: 25px;
}

section.logopalkki_v2 > * {
    display: block;
    width: calc(100% / 6);
    box-sizing: border-box;
    padding: 15px 30px;
}

section.logopalkki_v2 a {
	opacity: 1.0;
	transition: 0.25s opacity;
}

section.logopalkki_v2 a:hover {
	opacity: 0.7;
}

section.logopalkki_v2 img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

section.logopalkki_v2 h2 {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin: 0;
}

@media screen and (max-width: 1200px) {
	section.logopalkki_v2 > * {
		padding: 15px 15px;
	}
}

@media screen and (max-width: 1000px) {
	section.logopalkki_v2 > * {
		width: 25%;
	}
}

@media screen and (max-width: 800px) {
	section.logopalkki_v2 > * {
		width: calc(100% / 3);
		padding: 10px 20px;
	}
}

@media screen and (max-width: 500px) {
	section.logopalkki_v2 > * {
		width: 50%;
	}
}

@media screen and (max-width: 350px) {
	section.logopalkki_v2 > * {
		padding: 5px 10px;
	}
}

span.tyontiviistelma {
    display: block;
    margin-bottom: 10px;
}

span.perustieto {
    display: block;
}

.apinappi,
span.avaanappula {
    display: inline-block;
    background: #ff8d28;
    color: #000;
    padding: 10px 25px;
    margin-top: 10px;
    transition: 0.25s background, 0.25s color;
}

.apinappi:hover,
span.avaanappula:hover {
    background: #000;
		text-decoration: none;
    color: #fff;
}

.apinappi+.apinappi {
	margin-left: 10px;
}

.apinappi {
    width: calc(50% - 5px);
    box-sizing: border-box;
    text-align: center;
}

.apinappi.eiaktiivinen,
.apinappi.eiaktiivinen:hover {
    pointer-events: none;
    background: #c0c0c0;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.tyonhakulomake select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 18px;
    padding: 10px 7px;
    border: 1px solid #b5b5b5;
}

.tyonhakulomake label {
    display: block;
    margin-right: 9px;
    margin-bottom: 9px;
    background-color: #efefef;
    padding: 10px 10px 10px 40px;
    cursor: pointer;
    transition: 0.25s background-color;
		background-image: url(/wp-content/themes/themeukkonen/images/checkbox_ei.svg);
    background-size: auto 80%;
    background-position: left 3px center;
    background-repeat: no-repeat;
}

.tyonhakulomake label:hover {
    background-color: #dbdbdb;
}

.tyonhakulomake input[type="checkbox"]:checked+label {
    background-color: #ff8d28 !important;
    background-image: url(/wp-content/themes/themeukkonen/images/checkbox_kylla.svg);
    background-size: auto 80%;
    background-position: left 3px center;
    background-repeat: no-repeat;
}

.tyonhakulomake input[type="checkbox"] {
	display: none;
}

.lomake_sijaintiwrapper {
    display: flex;
    flex-wrap: wrap;
}

.tyonhakulomake label input {
    display: inline-block;
    border-radius: 0;
    border: 1px solid #000;
    margin-right: 7px;
}

input.lomake_laheta {
		font-weight: bold;
    display: block;
    background: #ff8d28;
    color: #000;
    padding: 15px 25px;
    margin-top: 10px;
    transition: 0.25s background, 0.25s color;
    border: 0;
    width: 100%;
    font-size: 20px;
    margin-bottom: 50px;
    cursor: pointer;
}

input.lomake_laheta:hover {
    background: #000;
    color: #fff;
}

@media screen and (max-width: 600px) {
	.tyonhakulomake label {
			width: calc(50% - 5px);
			box-sizing: border-box;
			margin: 5px 0;
	}
	
	.tyonhakulomake label#naytakaikki {
			width: 100%;
			margin-left: 0px;
	}

	.tyonhakulomake label:nth-of-type(2n+1) {
			margin-left: 10px;
	}
}

section.hakupalkki {
    display: block;
    padding: 20px;
    background: #ff8d28;
}

form.hakupalkki_form {
    display: flex;
    justify-content: space-between;
}

form.hakupalkki_form input[type="text"] {
    display: block;
    width: calc(100% - 200px);
    padding: 10px;
    font-size: 18px;
    border: 0;
    box-sizing: border-box;
}

form.hakupalkki_form input[type="submit"] {
    font-size: 18px;
    display: block;
    width: 180px;
    box-sizing: border-box;
    border: 0;
    cursor: pointer;
    background: #efefef;
    color: #000;
    transition: 0.25s background, 0.25s color;
}

form.hakupalkki_form input[type="submit"]:hover {
    background: #000;
    color: #fff;
}

#pagination * {
    display: inline-block;
    font-size: 22px;
    padding: 3px 13.4px;
    background: #ff8d28;
    margin: 0 5px 5px 0;
	transition: 0.25s background, 0.25s color;
}

#pagination a.page-numbers {
    background: #ff8d28;
    color: #000;
}

#pagination span.page-numbers.current {
    opacity: 0.5;
}

#pagination a.page-numbers:hover {
    text-decoration: none;
    background: #000;
	color: #fff;
}

@media screen and (max-width: 500px) {
	form.hakupalkki_form {
		display: block;
	}
	
	form.hakupalkki_form input[type="text"] {
		width: 100%;
	}
	
	form.hakupalkki_form input[type="submit"] {
		width: 100%;
		padding: 10px;
		margin-top: 5px;
	}
}