/*
 Theme Name:   Meidanmetsa
 Template:     aate
 Text Domain:  meidanmetsa
*/

@import url("https://use.typekit.net/jwo8wnk.css");

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
font-family: "lato", sans-serif;
font-weight: 400;
font-style: normal;
background-color: #fcf1e4;
}

/***********************
*       TYPOGRAFIA     *
***********************/

h1, h2, h3, h4, h5 {
font-family: henderson-slab-basic, serif;
font-weight: 700;
font-style: normal;
color: #191C1F;
text-align: center;
}

h2 {
    font-size: 1.9em;
    margin-bottom: .5em;
}

h3 {
    font-size: 1.4em;
    font-weight: 400;
}

h1 {
    font-family: henderson-slab-basic, serif;
    font-weight: 700;
    font-style: normal;
    /* color: #ffffff; */
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0;
    font-size: 5.6em;
    text-align: center;
}

.home h1 {
    font-size: 2.8em;
    text-align: center;
}


.tumma-tausta h2, .tumma-tausta p {
    color: #FCF1E4;
}

div#rt-56d2df7c0594b5c9f3b8ace789f181e9 {
    height: 60px !important;
    width: 60px !important;
}

div#text-cover {
    display: none !important;
}

.logged-in #text-cover {
    display: block !important;
}

.vihrea-tausta p {
    color: #FCF1E4;
}

.kapea-h2 h2 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


a, a:visited, summary, a:focus, a:hover {
    font-weight: 400;
    color: #333 !important;
}

#wpadminbar a,
#wpadminbar a:visited,
#wpadminbar a:focus,
#wpadminbar a:hover {
    color: #fff !important;
}

.vihrea-tausta a, .vihrea-tausta a:visited, .vihrea-tausta a:focus, .vihrea-tausta a:hover {
    font-weight: 400;
    color: #FCF1E4 !important;
}

span.nostoteksti {
    font-size: 1.2em;
    margin-top: .7em;
    display: inline-block;
    font-weight: 700;
    color: #191c1f;
}

.display-none {
    display: none !important;
}

/***********************
*       HEADER         *
***********************/


header .container {
    height: 100%;
    width: 100%;
    clear: both;
    position: relative;
}

header .row {
position: absolute;
    top: calc(50% + 20px);
    transform: translate(-50%, -50%);
    left: 50%;
    width: 70%;
}

header p.nosto {
    text-align: left;
}

.ylapalkki button.menu-plus, .ylapalkki button.menu-plus:focus, .ylapalkki button.menu-plus:hover {
    background-color: #63bb35;
    border: 2px solid #333;
    color: #fff !important;
    height: 35px;
    width: 35px;
}

/***********************
*       NAV         *
***********************/
    
.menu-plus:before {
    content: '\002B';
    margin-left: 0;
    margin-top: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.menu-minus:before {
    content: "\2212"; /* Unicode character for "minus" sign (-) */
       margin-left: 1px;
    margin-top: 0;
}

.ylapalkki #navbar-collapse-1,
button.navbar-toggler.nbta-to-x-left{
    display: none !important;
}

nav.navbar.navbar-expand-lg {
    justify-content: center;
}

p.heading {
    font-family: henderson-slab-basic, serif;
    font-weight: 700;
    font-style: normal;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 0;
    font-size: 1.3em;
}

.heading a {
    font-size: 1em;
    color: #ffffff !important;
    font-weight: 600;
}

.heading a:hover, .heading a:focus {
    color: #ffffff !important;
}

/***********************
*        RAKENNE       *
***********************/

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
    padding-right: 25px;
    padding-left: 25px;
}

.container, .container-fluid {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
}

.row, .container {
    max-width: 900px;
    margin: 0 auto;
}

.row.kaksi-tekstia {
    max-width: 1100px;
}


.container.logot, .logot .row {
    max-width: 1200px;
}

.container-fluid.wide .row {
    max-width: 100%;
}

.tumma-beige {
    background-color:#F2E2CE;
}
.text {
    padding-top: 50px;
    padding-bottom: 50px;
    order: 2;
}

.background {
    padding-left: 0;
    padding-right: 0;
    height: 300px;
    order: 1;
}

.kuva {
    order: 1;
}

.teksti {
    margin-top: 30px;
    order: 2;
}

.background-image {
    background-size: cover;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.laatikko {
    height: 100%;
    margin-bottom: 30px;
    overflow: hidden;
}

.laatikkokuva {
    height: 200px;
    width: 100%;
    background-position: center;
    background-size: cover;
}

.laatikkoteksti {
    padding: 20px;
}

.alamargin {
    margin-bottom: 20px;
}

.logo-otsikko {
    margin-bottom: 30px;
}

.logot img {
    margin: 0 auto;
    width: 100%;
    max-width: 150px;
        padding: 20px;
}

ul.nav {
    padding-top: 20px;
}

a:focus {
    color: #0082ff !important;
    text-decoration: underline !important;
}

a.button:focus, nav a:focus {
    text-decoration: none !important;
}

img {
    width: 100%;
}
/*********************
*   KUVAGALLERIA     *
*********************/

.wrapper.galleria {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.kuvagalleriakuva {
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: .3s all;
    cursor: pointer;
    margin-bottom: 15px;
}

.kuvagalleriakuva:last-child{
    margin-bottom: 0;
}

.kuvagalleriakuva:hover {
    opacity: .7;
}

.light-box {
    position: fixed;
    height: 100%;
    width: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 999;
    top: 0;
    left: 0;
    cursor: pointer;
}

.light-box img {
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
    width: auto;
}
 
.light-box p {
    max-width: 80%;
    max-height: 80%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    cursor: pointer;
}
 
 .light-box img:hover {
    cursor: pointer;
}

.progress.active .progress-bar {
    -webkit-transition: none !important;
    transition: none !important;
}

.progress-bar {
  transition: width 2.5s ease-in-out;
}

.progress {
    height: 30px;
}

.progress-bar {
    background-color: #82CB87;
    border-right: 3px solid #000;
}

.keratty, .tavoite {
    position: absolute;

    font-family: henderson-slab-basic, serif;
    font-weight: 700;
    font-style: normal;
    color: #ffffff;
    text-align: center;
    bottom: -60px;
}

.keratty {
}

.tavoite {
    right: 25px;
    bottom: auto;
    top: -60px;
}

span.maara {
    display: block;
}

.keratty p, .tavoite p {
    margin-bottom: 0;
    text-align: center;
        font-size: 1.1em;
}

.laskuri-otsikko {
    margin-bottom: 70px;
}

#laskuri {
    padding-bottom: 150px;
}

.laskuri-tekstisisalto {
    margin-top: 100px;
}

/**********************
*   NAIN LAHJOITAT    *
**********************/

img.lahjoita-kuva {
    max-width: 120px;
    margin-left: auto;
    margin-right: auto;
}

.row.lahjoita {
    margin-top: 50px;
    max-width: 800px;
}

.lahjoita h4 {
    margin-top: 2em;
    font-size: 1.3em;
    text-align: center;
}

.lahjoita p {
    text-align: center;
}

.container-fluid.rahankerayslupa {
    padding-top: 15px;
    padding-bottom: 15px;
}

.rahankerayslupa p {
    text-align: center;
    margin-bottom: 0;
    font-size: 1.1em;
}

.lahjoita .col-md-12.col-lg-6:nth-child(1) {
    margin-bottom: 50px;
}

/************************
*        UKK            *
************************/

.ukk h2.center {
    margin-bottom: 50px;
}

a.accordion-toggle {
    font-size: 1.3em;
    font-weight: 600;
    display: block;
}

.accordion {
    margin-top: 0;
    width: 100%;
}

#accordion1 {
    margin-top: 0;
}
/*
.ukk.accordion {
    margin-bottom: 1em;
}

.ukk.accordion:not(:last-child)  {
    margin-bottom: 1em;
}*/

span.glyphicon.glyphicon-plus.subnav-icon {
    color: #fff;
    background: #44B3C2;
    width: 40px;
    border-radius: 50%;
    height: 40px;
    text-align: center;
    font-size: 1.6rem;
}

.btn-link:hover, .btn-link:focus {
    text-decoration: none;
}

.glyphicon-plus:before {
    content: "\2212";
    margin-left: 1px;
    margin-top: -1px;
      
}
.collapsed .glyphicon-plus:before {
    content: "\2b";
    margin-left: 0;
    margin-top: -1px;
}
    
span.glyphicon.glyphicon-plus.subnav-icon {
    color: #191C1F;
    background: transparent;
    width: 40px;
    border-radius: 50%;
    height: 40px;
    text-align: center;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    float: right;
}

.accordion a:focus, .accordion a:active, .accordion a:hover {
    outline: none !important; 
   box-shadow: none;
   text-decoration: none !important;
}

.accordion h2:active, .accordion h2:hover, .accordion h2:focus {
    text-decoration: none;
    outline: none !important; 
}

.accordion-group .accordion-group {
    padding-left: 20px;
    padding-right: 20px;
    /* padding-top: 20px; */
}
    
.card {
    border: none;
    background-color: transparent;
}

.card-body {
    display: flex;
    flex-wrap: wrap;
    padding: 0 25px 1.25rem 25px;
}

.card-body.block {
    display: block;
}

.card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border: none;
    background: transparent;
    padding-bottom: 0;
    padding: .75rem 25px 0 25px;
}
.accordion h2, .accordion {
    width: 100%;
}

#accordion button.btn.btn-link, #accordion1 button.btn.btn-link, #accordion2 button.btn.btn-link, #accordion3 button.btn.btn-link {
    width: 100%;
    text-align: left;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 0;
    border: 0 solid transparent;
}

#accordion button:hover, #accordion1 button:hover, #accordion2 button:hover, #accordion3 button:hover  {
    background-color: transparent;
    border: 0 solid transparent;
}

#accordion h2 button, #accordion1 h2 button, #accordion2 h2 button, #accordion3 h2 button {
    font-size: 1.1rem;
    color: #333;
}

#accordion h2:after, #accordion1 h2:after, #accordion2 h2:after, #accordion3 h2:after  {
    content: none;
}

#accordion button:focus, #accordion1 button:focus, #accordion2 button:focus, #accordion3 button:focus {
    background-color: transparent;
}

.tuoteryhmat #accordion h2 button, .tuoteryhmat #accordion1 h2 button, .tuoteryhmat #accordion2 h2 button, .tuoteryhmat #accordion3 h2 button {
    font-family: 'Ubuntu', sans-serif;
    background-color: #222;
    font-weight: 600;
    font-size: 1.4rem;
    color: #fff;
    text-transform: none;
    padding: 3px 2px 3px 17px!important;
    border-radius: 0;
}

.tuoteryhmat .tuotteen-tuotekuva {
    background-size: cover;
    height: 100%;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.tuoteryhmat span.glyphicon.glyphicon-plus.subnav-icon {
    background-color: transparent;
}

#accordion button.btn:focus, #accordion button.btn:active, #accordion button.btn:hover{
    outline: none !important; 
   box-shadow: none;
   text-decoration: none;
   text-transform: none;
}

.accordion h2 {
    background: #f3f3f5;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    font-size: 1em;
    text-transform: none;
}

.accordion h3 {
    font-size: .8em;
    font-weight: 600;
    text-align: left;
    color: #191C1F;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 8px 13px 6px 13px;
    margin-bottom: 1em;
}

.acc-head {
    width: calc(100% - 50px);
        display: block;
}

.accordion-sisalto {
    padding: 0 20px 15px 20px;
}

.ukk .accordion-sisalto a {
    color: #44B3C2;
}


.accordion-heading {
    background: #81CB87;
}

/*********************
*  yleiset luokat  *
*********************/

.nosto p, p.nosto {
    font-size: 1.1em;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

.iso-ingressi .nosto p {
    font-family: henderson-slab-basic, serif;
    font-weight: 700;
    font-style: normal;
    color: #191C1F;
    text-align: center;
    font-size: 1.4em;
    font-weight: 400;
    margin-bottom: 1em;
}

.no-paddings {
    padding-top: 0;
    padding-bottom: 0;
}

.padding-bottom-0 {
    padding-bottom: 0;
}

.padding-top-0 {
    padding-top: 0;
}

.padding-top-puolikas {
    padding-top: 40px;
}

.center img {
    margin-left: auto;
    margin-right: auto;
}

.kapea {
    max-width: 900px;
}

img.sll-logo {
    max-width: 140px;
    margin-left: auto;
    margin-top: 80px;
    margin-right: auto;
}


/*********************
*    ARTIKKELIT      *
*********************/

.artikkeli {
    margin-bottom: 30px;
}

.artikkelikirjoitus {
    height: 100%;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: 0.5s;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    display: flex;
    flex-direction: column;
}

.artikkelikuva {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: all .5s;
}

.artikkeliteksti {
    padding: 30px 0 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.artikkeliteksti h3 {
    margin-bottom: .2em;
    font-size: 1.3em;
    text-align: left;
}

.artikkelit {
    max-width: 1200px;
}

p.julkaistu {
    font-size: .8em;
    text-align: left;
    margin-top: 0;
}

p.teksti {
    margin-bottom: 1.2rem;
}

p.alin {
    display: flex;
    margin-top: auto;
    border: 0;
    outline: 0;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 0;
}

.single h1 {
    margin-bottom: 0;
    font-size: 1.7em;
}

h1 {
    font-size: 3em;
    text-align: left;
    margin-bottom: .5em;
}

.page-template .tekstiblokki h2, .single main h2 {
    font-size: 1.8em;
    text-align: left;
    margin-top: 1.5em;
}

.page-template .tekstiblokki h3, .single main h3 {
    font-size: 1.3em;
    text-align: left;
    margin-top: 1.5em;
}

.single main h1, main .single h2, main .single h3 {
    text-align: left;
}

.single p.paivays {
    margin-bottom: 2em;
}
/*********************
*    YHTEYSTIEDOT    *
*********************/

.henkilo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 50px;
    justify-content: center;
}

.henkilokuva, .henkilotekstit p, .henkilotekstit h2, .henkilotekstit h3 {
    width: 100%;
    text-align: center;
}

.henkilokuva img {
    width: 100%;
    border-radius: 50%;
    max-width: 200px;
    margin: 0 auto;
}


/*********************
*  VAIN MALLIULKASSA *
*********************/

.text h2, .text p {
    max-width: 700px;
}

.page-header {
    max-height: 500px;
}

.home .header-image {
    height: 500px;
}

.ylapalkki {
    background-color: #115C39;
}

a.nav-link {
    color: #b25c2e;
    text-transform: uppercase;
}

.button, .button:visited, a.button, a.button:visited {
    background-color: #115c39;
    border: 2px solid #115c39;
    padding: 2px 17px;
    color: #fff !important;
    display: inline-block;
    font-size: 1em;
    font-family: "lato", sans-serif;
    font-weight: 600;
    font-style: normal;
    letter-spacing: 0;
    text-transform: none;
    width: auto;
    text-decoration: none;
    text-align: center;
    text-indent: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    transition: all .2s ease-in-out;
    border-radius: 50px;
    font-family: henderson-slab-basic, serif;
}

.button:hover, .button:visited:hover, a.button:hover, a.button:visited:hover  {
    text-decoration: none;
    background-color: transparent;
    color: #115c39 !important;
    border-color: #115c39;
}



footer {
    background-color: #191C1F;
}

footer a, footer p, footer h2, footer a:visited, footer a:focus, footer a:hover {
    text-align: center;
    color: #fff !important;
}

.container-fluid.copy {
    padding: 10px 0;
    background: #000000;
}

.container-fluid.copy p {
    font-size: .8em;
    margin-bottom: 0;
}

footer h2 {
    font-size: 2em;
}
div#footer-palsta-1 {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


@media only screen and (min-width: 481px) {
	.single h2 {
        font-size: 1.5rem;
    }
}

@media only screen and (min-width: 576px) {

}

@media only screen and (min-width: 768px) {
    
    .iso-ingressi a.button {
        font-size: 1.2em;
        padding: 7px 25px;
    }

    p.heading {
        font-size: 1.6em;
    }
    .home h1 {
        font-size: 3em;
    }
    
    h2 {
        font-size: 3.5em;
    }
    h3 {
        font-size: 2em;
    }
    
    .iso-ingressi .nosto p {
        font-size: 1.7em;
    }
    footer h2 {
        font-size: 2.3em;
    }
    
    span.nostoteksti {
        font-size: 1.5em;
    }
    
    .keratty p, .tavoite p {
            font-size: 1.2em;
    }
    
    .laskuri-otsikko {
        margin-bottom: 40px;
    }

    .home .header-image {
        height: 600px;
    }


    /* Animaatio */

    main .row, .header-image .row {
        opacity:1;
    }
    .page-template-page-artikkelit main .row, .single main .row, main .row.kuvagalleria, main .row.henkilot, .no-animation .row {
        opacity: 1;
    }
        .kuvagalleriakuva, .kuvagalleriakuva:last-child {
        height: 250px;
        margin-bottom: 0;
    }
    .henkilotekstit {
        width: 50%;
    }
    .henkilotekstit p, .henkilotekstit h2, .henkilotekstit h3 {
        text-align: left;
    }
    .henkilokuva {
        padding-right: 30px;
        width: calc(50% - 30px);
    }
    .henkilokuva img {
        float: right;
    }
}

@media only screen and (min-width: 992px) {
    ul.nav {
        padding-top: 0;
    }
    h2 {
        font-size: 4em;
    }
    
    .home h1 {
        font-size: 4em;
    }
    
    .home .header-image {
        height: 700px;
    }

.lahjoita .col-md-12.col-lg-6:nth-child(1) {
    margin-bottom: 0;
}

.row.lahjoita {
    margin-top: 80px;
}
    .text {
        padding-top: 120px;
        padding-bottom: 120px;
    }
    .background {
        height: auto;
    }
    .background, .text, .kuva, .teksti {
        order: inherit;
    }
    .teksti {
        margin-top: 0;
    }
	.laatikko {
	    margin-bottom: 0;
	}
	.artikkelit .col-lg-4 {
        padding-right: 25px;
        padding-left: 25px;
    }
    .kuvagalleriakuva, .kuvagalleriakuva:last-child {
        height: 350px;
    }
    .ylapalkki {
        padding: .4rem 0;
    }

}

@media only screen and (min-width: 1200px) {
	.home .header-image {
    height: 800px;
}
    .home h1 {
        font-size: 5em;
    }

}


@media only screen and (min-width: 1800px) {
    .container-fluid.wide .kuvagalleriakuva {
        height: 450px;
    }
}




