/*
Theme Name: Ainola Elementor
Version: 1.1
Description: Ainolan teema Elementor lisäosalle
Author: Dataseed Oy
*/

.textwidget {
padding-left: 10px;
}
h2, h3 {
	line-height: normal;
}

.ajankohtaista {
	background-color: #10383d;
	color: #fff;
	padding: 10px 10px;
}
.ajankohtaista time {
	color: #fff;
}

.ajankohtaista h2 {
	margin-top: 5px;
}

.upw-posts article {
	margin-bottom: 5px !important;
}


.upw-posts article h4 {
	margin-bottom: 5px !important;
	margin-top: 5px !important;
}

.upw-posts .entry-title a {
	margin-left: 5px;
	color: #fff;
	font-weight: 100;
	font-size: 14px;
}

.upw-posts article {
	border-bottom: 0px !important;
	padding-bottom: 0em !important;
}

#searchform {
    padding: 10px;
}
@media screen {
  .screen-reader-text {
    display: none;
  }
}
.page-title {
    margin-left: 0;
    margin-top: 14px;
}
img {
    max-width: 100%;
    height: auto;
}
.menu-paavalikko-container ul {
    list-style-type: none;
    padding-left: 5px;
    margin-top: 5px;
}
.menu-paavalikko-container ul li {
    line-height: 21px;
    font-size: 13px;
}
.vasen-footer {
    background: #9f9a97;
    padding: 0px;
    min-height: 110px;
    padding-top: 20px;
    text-align: center;
}
.oikea-footer {
   
}

.etusivu-kuva-holder img {
    width: 100%;
}
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    position: relative;
    min-height: 1px;
    padding-left: 0;
    padding-right: 0;
}

.row {
    margin-left: 0;
    margin-right: 0;
}
.element{
    margin-bottom: -99999px;
    padding-bottom: 99999px;
}

.equal{
    overflow: hidden;
}

.navbar {
    margin-bottom: 0;
}
.page-canvas {
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.8);
}
.nav {
    margin-bottom: 0;
}
.navbar-default .navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11.7px;
}

.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
    background-color: rgba(0,0,0,0.1);
    color: #ffffff;
    text-decoration: none;
}

.navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
    background-color: rgba(0,0,0,0.1);
    color: #ffffff;
}
.navbar-default li:hover a {

}

h1, .fpost .entry-title {
    font-size: 16px;
    margin: 5px 0 0 10px;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 16px;
}

body {
    font-size: 14px;
    line-height: 18px;
}

/* molemmista sarakkeista yhta korkeat */
#pagelines_content {
    display: flex;
}

.content .content-pad {
    padding: 0;
}

#content .content-pad {
    padding: 0;
}

#column-wrap {
    background-color: #fff;
}

#sidebar-wrap  {
    background-color: #e2d0ac;
}

div.mcolumn-pad {
    padding: 0px 0px 0px 0px !important;
}

div.entry_content {
   padding: 10px 10px 10px 10px !important;
}

.widget .textwidget {
  padding: 0px;
}
.menu-paavalikko-container {
  background-color: #12393e;
  min-height: 45px;
  padding-left: 5px;
  padding-top: 10px;
  padding-bottom: 5px;
}

.menu-paavalikko-container a {
  color: #fff;
text-decoration: underline;
}

.upw-posts article {
    margin-bottom: 20px;
}

.sosbuttons {
  padding: 10px;
  background-color: #e2d0ac;
}

.kielivalinta {
    display: inline;
}

.lang {
    display: inline;
    float: right;
    padding-right: 15px;
    margin-top: 4px;
}

footer {
    width: 97%;
}
#vasen-footer {
    background: #9f9a97;
    padding: 0px;
    width: 70.9091%;
    min-height: 110px;
    padding-top: 20px;
text-align: center;

}
.fixed_width #page, .fixed_width #footer {
    width: 97%;
}

#vasen-header {
    /*float: left;
    width: 70.9091%;
    line-height: 170px;*/
    text-align: center;
}

#oikea-header {
/*float: right;*/
background-color: #e2d0ac;
/*width: 29.0909%;*/
}

.oikea-header-sisalto {
	font-weight: bold; 
	padding-top: 10px;
}

#rivi-item {
padding-bottom: 10px;
}

body.fixed_width #footer {
    background-color: #e2d0ac;
    margin: 0 auto;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.8);
}

.navbar.navbar-content-width {
    border-radius: 0px;
}

#site .navbar {
background-color: #713933;
background-image: none;
box-shadow: none;
border-top: none;
text-transform: uppercase;
font-size: 13px;
}

#header .content-pad {
    background-color: #12393e;
}

#header .widget .widget-pad {
    padding: 0px;

}

#header .widget .textwidget {
    padding: 0px 0px;
}

.dropdown-menu li > a:hover, .dropdown-menu li > a:focus, .dropdown-submenu:hover > a, .dropdown-menu li.current-menu-item > a {
    background-color: #ccc !important;
    background-image: -moz-linear-gradient(center top , #ccc, #fff);
    color: #000;
    font-weight: bold;
}
.dropdown-menu a {
    font-size: 12px;
}
.dropdown-menu li > a:hover, .dropdown-menu li > a:focus, .dropdown-submenu:hover > a, .dropdown-menu li.current-menu-item > a {
    background-color: #ccc !important;
    background-image: -moz-linear-gradient(center top , #ccc, #fff);
    color: #000;
    font-weight: normal;
}
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
    color: #fff;
    background-color: transparent;
}
.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus {
    color: #000;
    text-decoration: none;
    outline: 0;
    background-color: #337ab7;
}



/* Images Widget muokkauset */

.widget .widget-pad {
    padding: 0px;
}

div.widget_sp_image-description p {
  margin: 0em 0.6em 1em;
}
.upw-posts article {
    /*padding: 0px 10px;*/
}

/* Sosiaalipainikepalkki */

section.copy {
    margin: 0em 0;
}

section#sharebar.copy.clone_1.section-sharebar {
    margin: 0;
    background-color: #9F9A97;
}

.navbar.navbar-content-width {
    width: 100%;
}

.navbar {
    background-color: #713933;
    background-image: none;
    box-shadow: none;
    border-top: none;
    text-transform: uppercase;
    font-size: 13px;
    border-radius: 0;
}
.navbar-default {
    border: none;
}

@media (max-width: 768px) {
    .navbar-default .navbar-nav .open .dropdown-menu > li > a {
        color: rgba(255, 255, 255, 0.8);
    }
}

/* Responsiivisuuden */
@media (max-width: 1050px) {
   #oikea-header {
   clear: both;
   width: 100%;
   transition: all 0.2s linear 0s;
   }

   #vasen-header {
   width: 100%;
   }

   #vasen-footer {
   width: 100%;
   }

   #pagelines_content {
   display: flex;
   flex-direction: column;
   }

   #sidebar-wrap {
       width: 100% !important;
   }

   #column-wrap {
   width: 100% !important;
   }

    #rivi-item {
    display: inline-block;
    padding-right: 30px;
    }
}

@media (min-width: 1051px) {
    .kuva {display:none}
    .teksti {display:inline-block}
}

.lang-switcher-mobile, .lang-switcher-wide {
    display: none;
}
@media (max-width: 1050px) {
    .kuva {display:inline-block}
    .teksti {display:none}
    .kielivalinta .teksti {
        display: inline;
        padding-right: 12px;
    }
}

@media (max-width: 429px) {
    .lang-switcher-mobile {
        display: inline;
    }
}
@media (min-width:430px) {
    .lang-switcher-wide {
        display: inline;
    }
}

@media (min-width: 1050px) {
    .vasen-palsta {
        width: 100%;
    }
    .oikea-palsta {
        /*width: 29.0909%;*/
        width: 29.092%;
    }
}
@media (max-width: 1050px) {
    .vasen-palsta {
        width: 100%;
    }
    .oikea-palsta {
        /*width: 29.0909%;*/
        width: 100%;
    }
}


/* NAV */
.navbar-toggle {
    display: none;
    float: right;
    position: relative;
    z-index: 50;
    padding: 7px 10px;
    margin: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background-color: rgba(155,155,155,0.028);
    background-image: -moz-linear-gradient(top,rgba(255,255,255,0.1),rgba(0,0,0,0.08));
    background-image: -ms-linear-gradient(top,rgba(255,255,255,0.1),rgba(0,0,0,0.08));
    background-image: -webkit-gradient(linear,0 0,0 100%,from(rgba(255,255,255,0.1)),to(rgba(0,0,0,0.08)));
    background-image: -webkit-linear-gradient(top,rgba(255,255,255,0.1),rgba(0,0,0,0.08));
    background-image: -o-linear-gradient(top,rgba(255,255,255,0.1),rgba(0,0,0,0.08));
    background-image: linear-gradient(top,rgba(255,255,255,0.1),rgba(0,0,0,0.08));
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='rgba(255,255,255,0.1)',endColorstr='rgba(0,0,0,0.08)',GradientType=0);
    border: 1px solid rgba(0,0,0,0.25);
    border-left: 1px solid rgba(0,0,0,0.17);
    border-top: 1px solid rgba(0,0,0,0.17);
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.3);
}
@media (min-width: 1197px) {
    .navbar-toggle-title {
        display: none;
    }
}
@media (max-width: 1196px) {
    .navbar-toggle-title {
        display: inline-block;
        padding: 7px 10px;
        padding-right: 50px;
        margin: 5px;
        position: absolute;
        right: 0px;
        cursor: pointer;
    }
}

.navbar {
    color: rgba(255,255,255,0.7);
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
    background-color: rgba(155,155,155,0.19);
}
.navbar-default .navbar-toggle {
    background-color: rgba(155,155,155,0.028);
}
.navbar-default .navbar-toggle {
    border-color: #63322d;
}
.navbar-default .navbar-collapse, .navbar-default .navbar-form {
    border-color: transparent;
}
.navbar-default .navbar-toggle .icon-bar {
    background-color: #fff;
}

@media (max-width: 1196px) {
    .navbar-header {
        float: none;
    }
    .navbar-left, .navbar-right {
        float: none !important;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .navbar-fixed-top {
        top: 0;
        border-width: 0 0 1px;
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin-top: 7.5px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .collapse.in{
        display:block !important;
    }

    .open > .dropdown-menu {
        display: block;
    }

    .navbar-nav .open .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
        color: rgba(255, 255, 255, 0.8);
    }
    .dropdown-menu > li > a {
        color: rgba(255, 255, 255, 0.8);
    }
    .navbar-nav .open .dropdown-menu > li > a {
        line-height: 20px;
    }
}
