/*
Theme Name: VaMa-teema
Author: Markkinointi Ukkonen Oy
Author URI: https://markkinointiukkonen.fi/
Description: VaMalle luotu WordPress-teema
Version: 1.0
*/

:root {
    --musta: #000000;
    --valkoinen: #FFFFFF;
    --sininen: #D5E7FF;
    --vaaleanharmaa: #F4F4F4;
    --vihrea: #80A69B;
}

@supports (-moz-appearance:none) {
    img[src$=".svg"] {
        width: 500px !important;
    }
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--valkoinen);
    font-family: 'Mukta', sans-serif;
    font-weight: 300;
font-size: 18px;}

a {
    color: var(--musta);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rowdies', cursive;
    font-weight: 400;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.2em;
}

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

img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.rajoittaja {
    width: 1250px;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    padding-left: 25px;
padding-right: 25px;}

.rajoittaja * {
    box-sizing: border-box;}

.ylapalkki {
    background: var(--sininen);
position: relative;}

.ylapalkki_rajoittaja {
    display: flex;
    padding-top: 25px;
padding-bottom: 25px;}

.yp_vasen {
    display: flex;
    width: calc(50% - 100px);
    justify-content: flex-start;
    align-items: center;
}

.yp_keski {
    display: flex;
    width: 200px;
    justify-content: center;
    align-items: center;
padding: 0 10px;}

.yp_oikea {
    display: flex;
    width: calc(50% - 100px);
    justify-content: flex-end;
    align-items: center;
}

.yp_keski a,
.yp_keski img {
    display: block;
}

.osio {display: block;background: var(--vaaleanharmaa);padding: 60px 0;color: var(--musta);}

.osio.harmaa {background: var(--vaaleanharmaa) !important; color: var(--musta) !important;}

.osio:nth-of-type(2n) {background: var(--vihrea);color: var(--valkoinen);}

.osio.vihrea {background: var(--vihrea) !important;color: var(--valkoinen) !important;}

.hero_rajoittaja {
    padding: 50px;
    position: relative;
    width: 1400px;
}

.hero_sininen {background: var(--sininen);display: block;padding: 40px;}

.hero_sisalto *:first-child {margin-top: 0;}

.hero_sisalto *:last-child {margin-bottom: 0;}

.hero_sisalto {display: block;width: 700px;}

.sarakkeet_2 .sarake {width: 50%;}

.sarake {display: block;padding: 20px 30px;}

.osio.sarakkeet {padding: 60px 0;}

.sarakkeet a {color: inherit;font-weight: bold;text-decoration: none;}

.sarakkeet a:hover {text-decoration: underline;}

.taysipitka {display: block;width: 100%;text-align: center;}

.laatikot_rajoittaja {display: flex;flex-wrap: wrap;justify-content: center;padding-left: 5px;padding-right: 5px;}

article.laatikko {width: calc(25% - 40px);display: block;margin: 20px;text-align: center;background: var(--valkoinen);color: var(--musta);padding: 15px 30px;border-radius: 40px;transition: width 0.25s, margin 0.25s, padding 0.25s;}

.rivilla_1 article.laatikko {
    width: calc(100%  - 40px);
}

.rivilla_2 article.laatikko {
    width: calc(50% - 40px);
}

.rivilla_3 article.laatikko {
    width: calc((100% / 3) - 40px);
}

.rivilla_4 article.laatikko {
    width: calc(25% - 40px);
}

.rivilla_5 article.laatikko {
    width: calc(20% - 40px);
}

.rivilla_6 article.laatikko {
    width: calc((100% / 6) - 40px);
}

.rivilla_7 article.laatikko {
    width: calc((100% / 7) - 40px);
}

.rivilla_8 article.laatikko {
    width: calc(12.5% - 40px);
}

.rivilla_9 article.laatikko {
    width: calc((100% / 9) - 40px);
}

.rivilla_10 article.laatikko {
    width: calc(10% - 40px);
}

.alaosio {display: block;width: 100%;padding: 20px 0 0 0;}

.sarakkeet a.nappula,
.nappula {
	background: var(--musta);
	text-decoration: none;
	color: var(--valkoinen) !important;
	padding: 16px 25px;
	border-radius: 30px;
	display: inline-block;
	font-weight: 700;
	font-size: 17px;
	opacity: 1.0;
	transition: 0.4s opacity;
	min-width: 120px;
	text-align: center;
}

.osio:nth-of-type(2n) .nappula {
	background: var(--sininen);
	color: var(--musta) !important;
}

.sarakkeet_rajoittaja {display: flex;justify-content: center;align-items: center;flex-wrap: wrap;}

.sarakkeet_rajoittaja.tasaa_ylos {
    align-items: flex-start;
}

.sarakkeet_rajoittaja.keskita {
    align-items: center;
}

.sarakkeet_rajoittaja.tasaa_alas {
    align-items: flex-end;
}

.alaosio * {margin-top: 0;}

.upotus_rajoittaja {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-left: 5px;
    padding-right: 5px;
}

.upotus_rajoittaja.tyyppi_kuvat {
    align-items: center;
}

.upotus_rajoittaja.tyyppi_nappulat {
    align-items: center;
    justify-content: center;
}

.yksi_upotus {margin: 20px;}

.upotuksia_4 .yksi_upotus {width: calc(25% - 40px);}

.sarakkeet_1 .sarake {width: 100%;}

footer.alapalkki {display: block;background: var(--sininen);padding: 25px 0;}

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

.footer1, .footer2, .footer3 {display: block;box-sizing: border-box;width: 300px;}

.footer2 {padding: 0 25px;text-align: center;}

nav.paavalikko {display: none;width: 100%;position: absolute;top: 100%;left: 0;background: var(--sininen);box-sizing: border-box;/* overflow: hidden; */transition: 0.5s max-height;z-index: 999;}

nav.paavalikko.auki {max-height: unset;transition: 1s max-height;}

.hero_kuvio {position: absolute;top: 0;right: 0;bottom: 0;width: calc(100% - 720px);background: url('kuvat/vama_hero_v2.png');background-size: auto 100%;background-position: right center;background-repeat: no-repeat;}

nav.paavalikko ul {
    position: relative;
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 20;
}

nav.paavalikko ul ul {padding-left: 25px;}

nav.paavalikko a {
	display: block;
	color: var(--musta);
	text-decoration: none;
	padding: 7px 0;
	font-size: 20px;
	text-transform: initial;
}

.yp_vasen img {display: block;}

span.ypv_menutoggle {cursor: pointer;opacity: 1.0;transition: 0.25s opacity;margin-right: 50px;width: 40px;}

span.ypv_menutoggle:hover {opacity: 0.5;}

.yp_vasen > a {display: block;margin: 5px 20px 5px 0;width: 40px;opacity: 1.0;transition: 0.5s opacity;}

span.ypo_haku, span.ypo_haku img {display: block;}

span.ypo_haku {cursor: pointer;margin-right: 50px;width: 30px;opacity: 1.0;transition: 0.5s opacity;}

h1 {font-size: 38px;}
h2 {font-size: 30px;}
h3 {font-size: 26px}
h4 {font-size: 22px}
h5 {font-size: 18px;}

ul {
    display: block;
    padding-left: 45px;
    margin: 0;
    line-height: 1.5em;
}

p {
    margin: 15px 0;
    line-height: 1.4em;
}

article.laatikko h2 {font-size: 24px;}

a.upotus_kategoria {
    display: block;
    background: var(--sininen);
    text-decoration: none;
    color: var(--musta);
    font-weight: 700;
    text-align: right;
    padding: 5px 10px 3px 10px;
    opacity: 1.0;
    transition: 0.25s opacity;
    text-transform: uppercase;
}

a.upotus_paasisalto {display: block;padding-top: 100%;position: relative;background: url(kuvat/artikkelikuva.jpg);background-size: cover;background-position: center;}

.upotus_tekstit {position: absolute;bottom: 0;left: 0;right: 0;top: auto;padding: 30px;color: var(--valkoinen);background: linear-gradient(to bottom, transparent 0%, black 100%);z-index: 2;}

.upotus_tekstit h2 {font-size: 20px;margin: 0;font-family: 'Mukta', sans-serif;
    font-weight: 300;line-height: 1.1em;}

a.upotus_paasisalto::after {position: absolute;content: '';top: 0;left: 0;right: 0;bottom: 0;background: rgba(0,0,0,0);transition: 0.25s background;z-index: 1;}

a.upotus_paasisalto:hover::after {background: rgba(0,0,0,0.2);}

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

.tyyli_allekain .yksi_upotus {background: var(--musta);color: var(--valkoinen);padding: 20px;}

.tyyli_allekain .yksi_upotus > a:first-child {
    margin: -20px -20px 5px -20px;
    display: block;
}

.tyyli_allekain .yksi_upotus h2 {font-size: 20px;margin-top: 0;}

.tyyli_allekain .yksi_upotus a {
    color: var(--valkoinen);
    text-decoration: none;
}

.tyyli_allekain .yksi_upotus > a {
    display: block;
}

.ote {
    font-size: 16px;
    line-height: 1.2em;
}

a.luekokonaan {
	font-family: 'Rowdies', cursive;
    font-weight: 400;font-size: 16px;
}

.tyyppi_kuvat .yksi_upotus img {
    display: block;
    margin: 0 auto;
    width: auto;
	max-width: 100%;
    height: auto;
	max-height: 140px;
}

.tyyppi_kuvat .yksi_upotus a {display: inline-block;opacity: 1.0;transition: 0.25s opacity;}

.tyyppi_kuvat .yksi_upotus {
    text-align: center;
    background: none !important;
}

span.upotus_kategoria,
span.kategoria_meta {
    text-transform: uppercase;
}

a.upotus_kategoria:hover {opacity: 0.75;}

.upotuksia_3 article.yksi_upotus {width: calc((100% / 3) - 40px);
    }

.tyyppi_nappulat .nappula {display: block;text-align: center;font-size: 22px;}

.upotuksia_2 article.yksi_upotus {width: calc(50% - 40px);
}

.upotuksia_1 article.yksi_upotus {width: calc(100% - 40px);
}

.upotuksia_5 article.yksi_upotus {width: calc((100% / 5) - 40px);
}

.upotuksia_6 article.yksi_upotus {width: calc((100% / 6) - 40px);
}

a.upotus_kuva {display: block;position: relative;}

a.upotus_kuva::after {content: '';display: block;position: absolute;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0,0,0,0);transition: 0.25s background;}

a.upotus_kuva:hover::after {background: rgba(0,0,0,0.2);}

.tyyli_allekain .yksi_upotus a:hover {text-decoration: underline;}

.tyyppi_kuvat .yksi_upotus a:hover {opacity: 0.7;}

.nappula:hover,
.sarakkeet a.nappula:hover {opacity: 0.6;}

p+p .nappula {margin-top: 15px;}

.yp_keski img {width: 100%;height: auto;}

.sarake12 {
    width: 100%;
}

.sarake11 {
    width: calc(100% / 12 * 11);
}

.sarake10 {
    width: calc(100% / 12 * 10);
}

.sarake9 {
    width: 75%;
}

.sarake8 {
    width: calc(100% / 12 * 8);
}

.sarake7 {
    width: calc(100% / 12 * 7);
}

.sarake6 {
    width: 50%;
}

.sarake5 {
    width: calc(100% / 12 * 5);
}

.sarake4 {
    width: calc(100% / 3);
}

.sarake3 {
    width: 25%;
}

.sarake2 {
    width: calc(100% / 12 * 2);
}

.sarake1 {
    width: calc(100% / 12);
}

input.mailchimp {display: block;margin: 0 0 20px 0;width: 100%;font-size: 18px;padding: 10px;}

footer.alapalkki a {color: var(--musta);text-decoration: none;}

footer.alapalkki a.nappula,
footer.alapalkki a.nappula:hover {
    color: var(--valkoinen);
    margin-top: 30px;
    text-decoration: none;
}

footer.alapalkki a:hover {text-decoration: underline;}

nav.paavalikko a:hover {text-decoration: underline;}

.yp_vasen > a:hover {opacity: 0.4;}

span.ypo_haku:hover {opacity: 0.4;}

.footer3 a {display: inline-block;width: 40px;margin-right: 10px;opacity: 1.0;
    transition: 0.5s opacity;}

.footerbottom {display: block;width: 100%;text-align: center;margin-top: 75px;font-size: 0.9em;}

.footer3 a:hover {opacity: 0.6;}

section.hakuosio {position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0,0,0,0.9);display: flex;align-items: center;justify-content: center;overflow: hidden;max-height: 0;transition: 0.25s max-height;z-index: 9999;}

section.hakuosio form {
    display: block;
    width: 100%;
    margin: 0 auto;
}

.haku_sisalto {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    box-sizing: border-box;
    position: relative;
    margin: 0 auto;
}

.haku_sisalto input[type="text"] {display: block;font-size: 20px;padding: 20px;border: 0;width: calc(100% - 63px);box-sizing: border-box;}

.haku_sisalto input[type="submit"] {display: block;width: 63px;height: 63px;border: 0;cursor: pointer;background-color: var(--sininen);background-image: url(kuvat/ikoni_haku.svg);background-size: 60%;background-position: center;background-repeat: no-repeat;box-sizing: border-box;}

section.hakuosio.nayta {max-height: 100vh;}

span.ikoni_sulje {position: absolute;top: -100px;left: calc(50% - 20px);width: 40px;cursor: pointer;opacity: 1.0;transition: 0.5s opacity;}

span.ikoni_sulje:hover {opacity: 0.6;}

.valikko_rajoittaja {padding-bottom: 25px;}

nav.paavalikko ul ul a {font-size: 18px;padding: 5px 40px 5px 20px;}

.sarake > *:first-child {
    margin-top: 0;
}

.sarake > *:last-child {
    margin-bottom: 0;
}

.rajoittaja.pieni_rajoittaja {width: 1000px;}

.mc4wp-form-fields input,
input.wpcf7-form-control {
    display: block;
    font-size: 20px;
    padding: 10px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
    border: 1px solid #bbb;
}

.mc4wp-form-fields input[type="checkbox"] {
    display: inline-block;
    width: auto;
}

.osio.vihrea input.wpcf7-form-control,
.osio:nth-of-type(2n) .mc4wp-form-fields input,
.osio:nth-of-type(2n) input.wpcf7-form-control {
    border: none;
}

.mc4wp-form-fields input[type="submit"],
input.wpcf7-form-control.wpcf7-submit.nappula.nappula_1 {
    border: none;
    cursor: pointer;
}

.wpcf7 form .wpcf7-response-output {
    margin: 0;
    background: #640000;
    color: var(--valkoinen);
    border: none;
}

.mc4wp-form-fields {
    display: block;
    width: 800px;
	max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.mc4wp-form-fields input[type="submit"],
.wpcf7 form .wpcf7-submit {
    border: 0;
    cursor: pointer;
	background: var(--musta);
    text-decoration: none;
    color: var(--valkoinen) !important;
    padding: 16px 25px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 700;
    font-size: 17px;
    opacity: 1.0;
    transition: 0.4s opacity;
    min-width: 120px;
    text-align: center;
}

.mc4wp-form-fields input[type="submit"]:hover,
.wpcf7 form .wpcf7-submit:hover {
	opacity: 0.6;
}

span.wpcf7-not-valid-tip {
    margin: 0;
    background: #640000;
    color: var(--valkoinen);
    border: none;
    display: block;
    width: 100%;
    padding: 5px 14px;
}

.tyhjasivu {
    padding: 100px 0;
}

section.uloskirjautumispalkki {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #168d16;
    color: var(--valkoinen);
    margin-top: -4px;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
}

.sarakkeet .wpcf7 {
    display: block;
    width: 800px;
    margin: 0 auto;
    max-width: 100%;
}

div#pagination {
    display: block;
    width: 100%;
    text-align: center;
}

div#pagination > * {display: inline-block;padding: 10px;text-align: center;font-size: 30px;text-decoration: none;}

div#pagination > .current {opacity: 0.3;}

div#pagination > a:hover {text-decoration: underline;}

div#pagination > a {font-weight: bold;}

h1.paaotsikko {
    text-transform: uppercase;
}

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

p.metatieto {
    font-size: 24px;
    text-transform: uppercase;
}

p.metatieto.viimeinen {
    margin-bottom: 25px;
}

.kirjaudusisaan input {
    display: block;
    width: 100%;
    font-size: 18px;
    border: 1px solid #ababab;
    padding: 17px 10px;
}

p.kirjautuminen_epaonnistui {
    color: #c30000;
    text-align: center;
    font-size: 24px;
}

section.osio.sarakkeet.kirjaudusisaan {
    padding-top: 0;
}

input.nappula.kirjaudusisaan_lomake {
    display: inline-block;
    width: auto;
    padding: 17px 50px;
    cursor: pointer;
}

section.filtterit {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
}

.filter_wrapper {
    display: block;
    position: relative;
    border: 0;
    margin: 0 20px;
    background-color: var(--sininen);
    color: var(--musta);
    padding: 0 20px 0 0;
    border-radius: 30px;
    font-weight: 700;
    font-size: 17px;
    opacity: 1.0;
    transition: 0.4s opacity;
    min-width: 120px;
    text-transform: uppercase;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    position: relative;
}

.filter_wrapper > select {
    background: none;
    border: 0;
    font-weight: 700;
    font-size: 17px;
    padding: 16px 25px 16px 25px;
    cursor: pointer;
    text-transform: uppercase;
}

.filter_wrapper > select option {
    text-transform: none;
}

.tyyppi_vanha_arkisto.ladataan,
.tyyppi_arkisto.ladataan {
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tyyppi_vanha_arkisto.ladataan .ladataan,
.tyyppi_arkisto.ladataan .ladataan {
    display: block;
    width: 50px;
    height: 50px;
    background: url(kuvat/loading.svg);
    background-size: cover;
    background-position: center;
    -webkit-animation:spin 2s linear infinite;
    -moz-animation:spin 2s linear infinite;
    animation:spin 2s linear infinite;
}

section.osio.sarakkeet:nth-of-type(2n) a {
	font-weight: bold;
	color: var(--sininen);
}

section.osio.sarakkeet:nth-of-type(1) a,
section.osio.sarakkeet.harmaa a,
section.osio.sarakkeet:nth-of-type(2n+1) a {
	font-weight: bold;
	color: var(--vihrea);
}

@-moz-keyframes spin { 
    100% { -moz-transform: rotate(360deg); } 
}

@-webkit-keyframes spin { 
    100% { -webkit-transform: rotate(360deg); } 
}
@key
frames spin { 
    100% { 
        -webkit-transform: rotate(360deg); 
        transform:rotate(360deg); 
    } 
}

section.osio.eialapadding {
    padding-bottom: 0 !important;
}

a.ypo_profiili {
    display: block;
    width: 30px;
    height: 30px;
    margin-left: -30px;
    margin-right: 50px;
    opacity: 1.0;
    transition: 0.5s opacity;
}

a.ypo_profiili:hover {
    opacity: 0.4;
}

a.ypo_profiili img {
    display: block;
}

@media screen and (max-width: 1400px) {
    .hero_kuvio {width: 665px;background-size: 100% auto;background-position: right bottom;}

    .hero_sisalto {width: calc(100% - 585px);}

    h1 {font-size: 34px;}
}

@media screen and (max-width: 1100px) {
    .hero_rajoittaja {display: flex;flex-direction: column-reverse;}

    .hero_kuvio {position: initial;width: 100%;;;;height: 400px;/* padding-top: 66%; */background-size: contain !important;background-position: center bottom !important;box-sizing: border-box;}

    .hero_sisalto {width: 100%;}

    .rivilla_1 article.laatikko,
    .rivilla_2 article.laatikko,
    .rivilla_3 article.laatikko,
    .rivilla_4 article.laatikko,
    .rivilla_5 article.laatikko,
    .rivilla_6 article.laatikko,
    .rivilla_7 article.laatikko,
    .rivilla_8 article.laatikko,
    .rivilla_9 article.laatikko,
    .rivilla_10 article.laatikko,
    article.laatikko {
        width: calc(50% - 40px);
    }

    .upotuksia_4 .yksi_upotus {width: calc(50% - 40px);}

    .upotuksia_3 article.yksi_upotus {width: calc(50% - 40px);}

    .hide_m {display: none;}

    .sarake1,
    .sarake2,
    .sarake3,
    .sarake4,
    .sarake5,
    .sarake6 {
        width: 50%;
    }

    .sarake7,
    .sarake8,
    .sarake9,
    .sarake10,
    .sarake11,
    .sarake12 {
        width: 100%;
    }

    .sarakkeet_rajoittaja {padding-left: 5px;padding-right: 5px;justify-content: flex-start;}
    
    span.ypo_haku {margin-right: 26px;}

    .yp_vasen > a {margin-right: 16px;}

    span.ypv_menutoggle {margin-right: 70px;}

    a.ypo_profiili {
        margin-left: -10px;
        margin-right: 32px;
    }
}

@media screen and (max-width: 950px) {
	.footer_rajoittaja {
		display: block;
	}

	.footer1,
	.footer2,
	.footer3 {
		max-width: 100%;
		text-align: left !important;
		margin-bottom: 50px;
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}
	
	footer.alapalkki a.nappula {
		display: block;
	}
}

@media screen and (max-width: 900px) {
    .sarake1,
    .sarake2,
    .sarake3,
    .sarake4,
    .sarake5,
    .sarake6 {
        width: 100%;
    }

    .hero_kuvio {padding-top: 66%;height: unset;}
}

@media screen and (min-width: 801px) {
    .hidedesktop {
        display: none !important;
    }
}



@media screen and (min-width: 801px) {
    .osio {
        font-size: 20px;
    }
}

@media screen and (max-width: 800px) {
    nav.paavalikko div > ul > li.auki {
        background: rgba(0,0,0,0.05);
    }

    .nappula.kirjaudusisaan {text-indent: -9999px;min-width: unset;width: 60px;background-image: url(kuvat/ikoni_kirjaudusisaan.svg);background-size: 50%;background-position: center left 13px;background-repeat: no-repeat;}

    li.menu_ig a {
        background: none;
        vertical-align: middle;
    }

    li.menu_ig a::before {
        display: inline-block;
        width: 25px;
        height: 29px;
        background: url(kuvat/ikoni_instagram.svg);
        background-size: 100% auto;
        content: '';
        margin-right: 10px;
        vertical-align: middle;
        background-repeat: no-repeat;
    }

    li.menu_fb a {
        background: none;
        vertical-align: middle;
    }

    li.menu_fb a::before {
        display: inline-block;
        width: 25px;
        height: 29px;
        background: url(kuvat/ikoni_facebook.svg);
        background-size: 100% auto;
        content: '';
        margin-right: 10px;
        vertical-align: middle;
        background-repeat: no-repeat;
    }

    li.menu_haku a {
        background: none;
        vertical-align: middle;
    }

    li.menu_haku a::before {
        display: inline-block;
        width: 25px;
        height: 29px;
        background: url(kuvat/ikoni_haku.svg);
        background-size: 100% auto;
        content: '';
        margin-right: 10px;
        vertical-align: middle;
        background-repeat: no-repeat;
    }

    li.menu_profiili a {
        background: none;
        vertical-align: middle;
    }

    li.menu_profiili a::before {
        display: inline-block;
        width: 25px;
        height: 29px;
        background: url(kuvat/ikoni_profiili.svg);
        background-size: 100% auto;
        content: '';
        margin-right: 10px;
        vertical-align: middle;
        background-repeat: no-repeat;
    }

    li.menu_kirjauduulos a {
        background: none;
        vertical-align: middle;
    }

    li.menu_kirjauduulos a::before {
        display: inline-block;
        width: 29px;
        height: 29px;
        background-image: url(kuvat/ikoni_kirjaudusisaan.svg);
        background-size: 58% auto;
        background-position: center left 5px;
        background-color: #000;
        border-radius: 20px;
        content: '';
        margin-right: 10px;
        vertical-align: middle;
        background-repeat: no-repeat;
    }

    span.ypo_haku,
	.nappula.kirjaudusisaan.kirjauduulos
     {
        display: none;
    }
	
	a.ypo_profiili {
		margin-left: 0;
		margin-right: 0;
		width: 40px;
		height: 40px;
	}
	
    .yp_vasen > a {display: none;}

    nav.paavalikko ul {text-align: center;}

    nav.paavalikko ul ul {
        padding-left: 0;
    }

    nav.paavalikko div > ul > li {border-bottom: 1px solid #000;background: var(--sininen);transition: 0.25s background;}

    nav.paavalikko ul ul {/* background: rgba(0,0,0,0.05); */display: none;}

    nav.paavalikko div > ul > li.menu-item-has-children > a { background: url(kuvat/ikoni_alas.svg); background-size: 20px;background-position: center right 15px;background-repeat: no-repeat;}

    .current-menu-ancestor ul.sub-menu,
    .current-menu-item ul.sub-menu {
        display: block;
    }

    nav.paavalikko ul ul a {
        padding: 5px 20px;
    }

    ul.sub-menu ul.sub-menu {
        background: rgba(255,255,255,0.2);
    }

    nav.paavalikko ul ul ul a {
        font-size: 16px;
    }

    nav.paavalikko ul ul ul {
        display: block;
    }

	section.filtterit {
		display: block;
	}

	.filter_wrapper > select {
		width: 100%;
	}

	.filter_wrapper {
		margin-bottom: 10px;
	}
	
}

@media screen and (max-width: 600px) {
    h1 {font-size: 28px;}

    h2 {font-size: 24px;}

    h3 {font-size: 20px}
    h4 {font-size: 19px}
    h5 {font-size: 18px;}

    article.laatikko h2 {font-size: 20px;}

    .hero_rajoittaja {padding: 25px;}

    .sarake {padding: 20px 10px;}

    .rivilla_1 article.laatikko,
    .rivilla_2 article.laatikko,
    .rivilla_3 article.laatikko,
    .rivilla_4 article.laatikko,
    .rivilla_5 article.laatikko,
    .rivilla_6 article.laatikko,
    .rivilla_7 article.laatikko,
    .rivilla_8 article.laatikko,
    .rivilla_9 article.laatikko,
    .rivilla_10 article.laatikko,
    article.laatikko {
        margin: 10px;
        width: calc(50% - 20px);
    }

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

    .yksi_upotus {margin: 10px;}

    .upotuksia_3 article.yksi_upotus {width: calc(50% - 20px);}

    .upotuksia_2 article.yksi_upotus {width: calc(50% - 20px);}

    span.ypv_menutoggle {margin-right: 0;}

    a.nappula.kirjaudusisaan {width: 40px;height: 40px;padding: 0;background-position: center left 9px;}

    .haku_sisalto {width: 90%;}
}

@media screen and (max-width: 500px) {
    .yp_vasen, .yp_oikea {width: 20%;}

    .yp_keski {width: 60%;padding: 0 25px;}

    a.ypo_profiili {
        margin-left: 0;
        margin-right: 10px;
    }

    .rivilla_1 article.laatikko,
    .rivilla_2 article.laatikko,
    .rivilla_3 article.laatikko,
    .rivilla_4 article.laatikko,
    .rivilla_5 article.laatikko,
    .rivilla_6 article.laatikko,
    .rivilla_7 article.laatikko,
    .rivilla_8 article.laatikko,
    .rivilla_9 article.laatikko,
    .rivilla_10 article.laatikko,
    article.laatikko {
        margin: 10px 0;
        width: 100%;
    }

    .laatikot_rajoittaja {padding-left: 15px;padding-right: 15px;}

    .upotus_rajoittaja.rajoittaja .yksi_upotus {width: 100%;margin: 10px 0;}

    .upotus_rajoittaja {padding-left: 15px;padding-right: 15px;}

    .footer1, .footer2, .footer3 {width: 100%;margin-bottom: 25px;}

    .footer2 {
        padding-left: 0;
        padding-right: 0;
    }

    .footerbottom {
        text-align: left;
    }

    .footerbottom {margin-top: 25px;}
}

@media screen and (min-width: 801px) {
    span.ypv_menutoggle {
        display: none;
    }

    .footer3 {text-align: right;}

    nav.paavalikko {display: block !important;position: initial;}

    nav.paavalikko .valikko_rajoittaja > ul {display: flex;justify-content: center;}

    .valikko_rajoittaja li {position: relative;}

    nav.paavalikko ul ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--sininen);
        z-index: 1;
        padding: 0;
        min-width: 100%;
        border: none;
        border-left: 2px solid var(--valkoinen);
        border-right: 2px solid var(--valkoinen);
        text-align: left;
        transition: 0.25s max-height;
        white-space: nowrap;
        z-index: 10;
    }

    nav.paavalikko ul.sub-menu li ul {
        display: none;
    }

    nav.paavalikko ul.sub-menu li:hover ul {
        display: block;
        position: absolute;
        top: -2px;
        left: 100%;
        border-top: 0 !important;
    }

    nav.paavalikko a {
        padding: 10px 20px 10px 20px;
        font-size: 22px;
    }

    .rajoittaja.valikko_rajoittaja {
        padding-bottom: 0;
    }

    nav.paavalikko div > ul > li.menu-item-has-children > a {
        background: url(kuvat/ikoni_alas.svg);
        background-size: 16px;
        background-position: top 15px right 15px;
        background-repeat: no-repeat;
        padding-right: 40px;
    }

    nav.paavalikko ul li:hover > ul {
        display: block;
        transition: 0.75s max-height;
        border-top: 2px solid var(--sininen);
        border-bottom: 2px solid var(--valkoinen);
    }

    .valikko_rajoittaja ul.sub-menu li.menu-item-has-children {
        background-image: url(kuvat/ikoni_oikealle.svg);
        background-size: 16px;
        background-position: right 10px center;
        background-repeat: no-repeat;
    }
}

@media screen and (min-width: 801px) and (max-width: 1100px) {
    nav.paavalikko a {
        font-size: 17px;
        padding: 10px;
    }

    nav.paavalikko ul ul a {
        padding: 5px 35px 5px 10px;
        font-size: 16px;
    }
}

/* 27.2.2022 MUUTOKSET */
section.kuvaus {
    clear: both;
}

.product.type-product::after {
    content: '';
    clear: both;
    display: block;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt.disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt.disabled:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:disabled:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:disabled[disabled], .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:disabled[disabled]:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt.disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt.disabled:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:disabled:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:disabled[disabled], .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:disabled[disabled]:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt.disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt.disabled:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:disabled:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:disabled[disabled], .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:disabled[disabled]:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt.disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt.disabled:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:disabled:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:disabled[disabled], .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:disabled[disabled]:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt.disabled, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt.disabled:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt:disabled, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt:disabled:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt:disabled[disabled], :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt:disabled[disabled]:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt.disabled, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt.disabled:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt:disabled, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt:disabled:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt:disabled[disabled], :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt:disabled[disabled]:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt.disabled, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt.disabled:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt:disabled, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt:disabled:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt:disabled[disabled], :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt:disabled[disabled]:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt.disabled, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt.disabled:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt:disabled, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt:disabled:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt:disabled[disabled], :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt:disabled[disabled]:hover {
	background: var(--musta);
    text-decoration: none;
    color: var(--valkoinen) !important;
    padding: 16px 25px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 700;
    font-size: 17px;
    opacity: 1.0;
    transition: 0.4s opacity;
    min-width: 120px;
    text-align: center;
	opacity: 0.5;
	text-transform: uppercase;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt {
	background: var(--musta);
    text-decoration: none;
    color: var(--valkoinen) !important;
    padding: 16px 25px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 700;
    font-size: 17px;
    opacity: 1.0;
    transition: 0.4s opacity;
    min-width: 120px;
    text-align: center;
	opacity: 1;
	text-transform: uppercase;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt:hover {
	background: var(--musta);
	opacity: 0.6;
}

a.reset_variations {
    display: none !important;
}

.woocommerce-variation-price {
    display: block;
    margin-bottom: 25px;
    background: var(--sininen);
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

.woocommerce div.product p.price, .woocommerce div.product span.price {
    color: var(--musta);
}

select#valitse-maksutiheys {
	margin-right: 0;
	width: 100%;
	font-size: 20px;
	padding: 5px;
}

.product-type-variable-subscription .summary > p.price:first-child {
    display: none;
}

.woocommerce-product-details__short-description > *:first-child {
    margin-top: 0;
}

.woocommerce .woocommerce-error .button, .woocommerce .woocommerce-info .button, .woocommerce .woocommerce-message .button, .woocommerce-page .woocommerce-error .button, .woocommerce-page .woocommerce-info .button, .woocommerce-page .woocommerce-message .button {
    background: #000;
    color: #fff !important;
    opacity: 1.0;
    transition: 0.25s opacity;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button:hover {
    background: #000;
    opacity: 0.6;
}

.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
    font-size: 20px;
    padding: 5px 10px;
    font-family: 'Mukta', sans-serif;
    font-weight: 300;
}

section.osio.sarakkeet a.showlogin,
section.osio.sarakkeet a.showcoupon {
    color: #000;
}

div.eitilausta {
    display: block;
    width: 100%;
    box-sizing: border-box;
    color: var(--valkoinen);
    margin-top: -4px;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
    background: #8d1616;
}

div.eitilausta a {
    color: #fff;
    font-weight: bold;
}