/*
Theme Name: Beaver Builder Child Theme
Theme URI: http://www.wpbeaverbuilder.com
Version: 1.0
Description: An example child theme that can be used as a starting point for custom development.
Author: The Beaver Builder Team
Author URI: http://www.fastlinemedia.com
template: bb-theme
*/

/* Add your custom styles here... */ 

/*
Green: #08b0a0;
Blue: #01375b;
*/



button:focus, input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=tel]:focus, input[type=date]:focus, input[type=month]:focus, input[type=week]:focus, input[type=time]:focus, input[type=number]:focus, input[type=search]:focus, input[type=url]:focus, textarea:focus{
    outline: 5px auto rgba(0, 150, 255, 1);
    -webkit-outline: 5px auto rgba(0, 150, 255, 1);
    -moz-outline: 5px auto rgba(0, 150, 255, 1);
    -ms-outline: 5px auto rgba(0, 150, 255, 1);
    -o-outline: 5px auto rgba(0, 150, 255, 1);
}

.fl-page-header{
    min-height: 80px;
}

.fl-page-header-logo{
    margin-top: 10px;
    margin-bottom: 10px;
}
/* desktop NAVI */

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .fl-page-nav-right .fl-page-header-logo {
        padding-left: 0px;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1100px) {
    .fl-page-nav .navbar-nav>li>a.nav-link {
        padding: 15px 5px;
    }
}

@media only screen and (min-width: 992px) {

    .fl-page-nav-right .fl-page-header-row .col-lg-4 {
        width: 20%;
        max-width: 20%;
        flex: 0 0 20%;
    }

    .fl-page-nav-right .fl-page-header-row .col-lg-8 {
        width: 80%;
        max-width: 80%;
        flex: 0 0 80%;   
    }

    .navbar-right{
        min-height: 79px;
    }
    .navbar-right .menu-item a{
        margin-top: 15px;
    }

    .current-menu-item{
        background-color: rgba(0,0,0,0.08);
    }

    .fl-page-header .current-menu-parent{
        background-color: rgba(0,0,0,0.08);
    }

    .fl-page-header .current-page-ancestor{
        background-color: rgba(0,0,0,0.08);
    }


    .fl-page-nav-right .fl-page-nav-wrap .navbar-nav li:hover, .fl-page-nav-right .fl-page-nav-wrap .navbar-nav li:focus{
        background-color: rgba(0,0,0,0.04);
    }

    .fl-page-nav ul.sub-menu{
        border-top: 0px solid #ccc;
        background: #01375B;
        padding: 0px;
    }
    .fl-page-nav ul.sub-menu li{
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .navbar-right ul.sub-menu .menu-item a{
        font-size: 12px;
        color: #fff;    
    }
    .navbar-right ul.sub-menu .current-menu-item{
        background-color: rgba(255,255,255,0.2);  
    }

    .navbar-right ul.sub-menu .current-page-ancestor{
        background-color: rgba(255,255,255,0.2);  
    }

    .fl-page-nav-right .fl-page-nav-wrap .navbar-nav ul.sub-menu li.current-menu-item>a {
        color: #fff;   
    }

    .fl-page-nav-right .fl-page-nav-wrap .navbar-nav ul.sub-menu li>a:hover, .fl-page-nav-right .fl-page-nav-wrap .navbar-nav ul.sub-menu li>a:focus{
        color: #fff;  
    }

    .fl-page-nav-right .fl-page-nav-wrap .navbar-nav ul.sub-menu li:hover, .fl-page-nav-right .fl-page-nav-wrap .navbar-nav ul.sub-menu li:focus{
        background-color: rgba(255,255,255,0.1);
    }


    .navbar-right .menu-item.btn-kirjaudu a{
        margin-top: 8px;
        font-family: Cabin, sans-serif;
    }

    .fl-page-nav-right li.btn-kirjaudu{
        margin-left: 10px;
        margin-right: 10px;
        padding-left: 15px;
        padding-right: 15px;
        background-color: #01375B;
        color: #fff;

        margin-top: 20px;
        margin-bottom: 20px;
        padding-top: 0px;
        padding-bottom: 0px;

        background-image: -moz-linear-gradient(top,#3f6eb4,#012b5b);
        background-image: -ms-linear-gradient(top,#3f6eb4,#012b5b);
        background-image: -webkit-gradient(linear,0 0,0 100%,from(#3f6eb4),to(#012b5b));
        background-image: -webkit-linear-gradient(top,#3f6eb4,#012b5b);
        background-image: -o-linear-gradient(top,#3f6eb4,#012b5b);
        background-image: linear-gradient(top,#3f6eb4,#012b5b);
        border: 1px solid #01375B;
        border-radius: 2px;

    }

    .fl-page-nav-right li.btn-kirjaudu a.nav-link{
        padding: 0px;
        color: #fff;
    }
    .fl-page-nav-right li.btn-kirjaudu a.nav-link i{
        color: #fff;
        margin-right: 5px;
    }
    
    .fl-page-nav-right .fl-page-nav-wrap .navbar-nav li.btn-kirjaudu:hover, .fl-page-nav-right .fl-page-nav-wrap .navbar-nav li.btn-kirjaudu:focus{
        background-color: #01375B;
        color: #fff;
        background-image: none;
    }
    .fl-page-nav-right .fl-page-nav-wrap .navbar-nav li.btn-kirjaudu a:hover, .fl-page-nav-right .fl-page-nav-wrap .navbar-nav li.btn-kirjaudu a:focus{
        color: #fff;
    }

    .fl-page-nav-right .fl-page-nav-wrap .navbar-nav .menu-item.btn-kirjaudu.current-menu-ancestor a{
        color: #fff;
    }

    .fl-page-nav-right li.btn-kirjaudu .sub-menu a.nav-link{
        padding: 10px 15px;
    }

    .fl-page-nav li.btn-kirjaudu ul.sub-menu{
        border-top: 0px solid #ccc;
        background: #fff;
        padding: 0px;
    }
    .navbar-right li.btn-kirjaudu ul.sub-menu .menu-item a{
        color: #01375B;
        font-size: 15px; 
    }

    .fl-page-nav-right .fl-page-nav-wrap .navbar-nav .menu-item.btn-kirjaudu.current-menu-ancestor ul.sub-menu .menu-item a{
        color: #01375B;
    }
    
    .navbar-right li.btn-kirjaudu ul.sub-menu .menu-item a i{
        color: #01375B;
        font-size: 15px;  
    }
    .fl-page-nav-right .fl-page-nav-wrap .navbar-nav li.btn-kirjaudu ul.sub-menu li:hover, .fl-page-nav-right .fl-page-nav-wrap .navbar-nav li.btn-kirjaudu ul.sub-menu li:focus{
        background-color: #efefef;
        color: #01375B;
    }

    .fl-page-nav-right .fl-page-nav-wrap .navbar-nav li.btn-kirjaudu ul.sub-menu a:hover, .fl-page-nav-right .fl-page-nav-wrap .navbar-nav li.btn-kirjaudu ul.sub-menu a:focus{
        color: #01375B;
    }
    .fl-page-nav-right .fl-page-nav-wrap .navbar-nav li.btn-kirjaudu ul.sub-menu a:hover i, .fl-page-nav-right .fl-page-nav-wrap .navbar-nav li.btn-kirjaudu ul.sub-menu a:focus i{
        color: #01375B;
    }
    .fl-page-nav li.btn-kirjaudu ul.sub-menu{
        border: 0px solid #ccc;
    }
}


@media only screen and (min-width : 1200px) {

    .fl-page-nav .navbar-nav, .fl-page-nav .navbar-nav a{
        font-size: 16px;
    }

    .fl-page-nav-left .fl-page-header-row .col-lg-4, .fl-page-nav-right .fl-page-header-row .col-lg-4{
        width: 20%;
        flex: 0 0 20%;
        max-width: 20%;

    }
    .fl-page-nav-left .fl-page-header-row .col-lg-8, .fl-page-nav-right .fl-page-header-row .col-lg-8{
        width: 80%;
        flex: 0 0 80%;
        max-width: 80%;     
    }

    .fl-page-header-logo{
        max-height: 59px;
    }
    .fl-page-header-logo img{
        max-height: 59px;
        width: auto;
    }
}

@media only screen and (max-width: 767px){

    .fl-page-header{
        min-height: 50px;
    }

    .fl-page-header-logo{
        margin-top: 5px;
        margin-bottom: 5px;     
    }

    .fl-page-header-logo img {
        max-height: 40px;
        width: auto;
    }

    .navbar-right{
        min-height: 40px;
    }
    .navbar-right .menu-item a{
        margin-top: 0px;
    }
    .fl-page-nav-toggle-icon.fl-page-nav-toggle-visible-medium-mobile .fl-page-nav .navbar-toggle{
        top: 8px;        
    }
  
}

/* CONTENT */

@media only screen and (min-width : 1100px) {


    body.fl-full-width .fl-page-header-container.container{
        width: 100%;
    }
    body.fl-full-width .fl-page-footer-widgets-container.container{
        width: 100%;  
    }
    body.fl-full-width .fl-page-footer-container.container{
        width: 100%;  
    }
}

.fl-page-footer-wrap{
    background-color: #01375b;
    color: #fff;
    background: #0265a7;
    background: -moz-linear-gradient(top, #0265a7 0%, #01375b 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #0265a7), color-stop(100%, #01375b));
    background: -webkit-linear-gradient(top, #0265a7 0%, #01375b 100%);
    background: -o-linear-gradient(top, #0265a7 0%, #01375b 100%);
    background: -ms-linear-gradient(top, #0265a7 0%, #01375b 100%);
    background: linear-gradient(to bottom, #0265a7 0%, #01375b 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#0265a7, endColorstr=#01375b, GradientType=0);
    background-image: url(https://www.hypo.fi/wp-content/uploads/2020/09/footer_taustakuva_256dither.png); /* OLD: https://www.hypo.fi/wp-content/themes/hypofi/images/footer_taustakuva.png */
    background-repeat: repeat-y;
    background-position: center top;
    background-attachment: scroll;
    background-size: cover;

    text-align: center;
    line-height: 1.2rem;
}
.fl-page-footer-wrap a{
    line-height: 1.5rem;
}

.footer-icon{
    text-align: center;
}

.footer-icon i{
    text-align: center;
    font-size: 30px;
    border: 4px solid #fff;
    padding: 15px;
    border-radius: 40px;
}

.fl-page-footer{
    border: 0px;
}
.fl-page-footer-text-1{
    margin-top: 30px;
}
#avainlippu{
    width: 80px;
}

@media only screen and (min-width: 992px) {
   
}

@media only screen and (min-width: 1100px) {

}
@media only screen and (max-width: 767px){

    body h1{
        font-size: 30px;
    }
    body h2{
        font-size: 24px;
    }
    body h3{
        font-size: 20px;
    }
    body h4{
        font-size: 18px;
    }

    .footer-icon i{
        display: none;
    }
    .fl-widget{
        margin-bottom: 0px;
    }

    /* todo */
    .frontpage_matrix .fl-callout-photo{
        display: none;
    }

}

/* additional elements */

body.home .n2-ss-slider a.n2-ow:hover{
    background-image: none !Important;
}


.btn-banner{
    position: fixed;
    top: 0px;
    margin-top: 70px;
    right: 20px;
    z-index: 999;
/*
    background: rgb(0,186,161);
    background: -moz-linear-gradient(top,  rgb(0,186,161) 0%, rgb(0,84,74) 100%);
    background: -webkit-linear-gradient(top,  rgb(0,186,161) 0%,rgb(0,84,74) 100%);
    background: linear-gradient(to bottom,  rgb(0,186,161) 0%,rgb(0,84,74) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00baa1', endColorstr='#00544a',GradientType=0 );
*/
background: rgb(0,211,176);
background: -moz-linear-gradient(top, rgb(0,211,176) 0%, rgb(0,158,134) 100%);
background: -webkit-linear-gradient(top, rgb(0,211,176) 0%,rgb(0,158,134) 100%);
background: linear-gradient(to bottom, rgb(0,211,176) 0%,rgb(0,158,134) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00d3b0', endColorstr='#009e86',GradientType=0 );

    width: 130px !important;
    height: 130px;
    border-radius: 130px;
    border: 2px solid #fff;
    box-shadow: -10px 10px 8px rgba(0,0,0,0.2);
    /* box-shadow: -5px 5px 8px #666;*/
}
.btn-banner:hover{
    background-image: none;
    background: #01375b;
}

.btn-banner .pl-section-pad{
    padding: 0px;
}
.btn-banner .icallout-head{
    display: none !important;
    margin: 0px !important;
}
.btn-banner.section-icallout .format-inline .icallout-action{
    border: 0px solid #fff;
    display: block;
    margin: 0px 0px;
    max-width: 110px;
    padding: 15px 10px 15px 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Roboto Slab';
    color: #fff;
    vertical-align: top;
    line-height: 23.8px;
    border-radius: 2px;
    text-transform: uppercase;
    margin: auto;
}
.btn-banner.section-icallout .format-inline .icallout-action:hover{
    background: transparent;
}

.btn-banner .hand{
    -ms-transform: rotate(20deg);
    -webkit-transform: rotate(20deg);
    transform: rotate(20deg);
    font-size: 45px;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
}

@media all and (max-width: 979px){
  .btn-banner{
    width: 90px !important;
    height: 90px;
    border-radius: 90px;
  }
  .btn-banner .icallout-head{
      display: none !important;
  }
  .btn-banner.section-icallout .format-inline .icallout-action{
    font-size: 10px;
    margin-top: 0px !important;
    letter-spacing: 1px;
  }

  .btn-banner .hand{
    font-size: 30px;
  }
  
}
@media all and (max-width: 979px){
  .btn-banner.section-icallout .format-inline .icallout-action{
    font-size: 9px;
    margin-top: 15px;
    line-height: 12px;
  }
  
}
.bg-gray-gradient{
    color: #fff; 
    background: rgb(102,102,102);
    background: -moz-linear-gradient(45deg,  rgba(102,102,102,1) 0%, rgba(153,153,153,1) 100%);
    background: -webkit-linear-gradient(45deg,  rgba(102,102,102,1) 0%,rgba(153,153,153,1) 100%);
    background: linear-gradient(45deg,  rgba(102,102,102,1) 0%,rgba(153,153,153,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#666666', endColorstr='#999999',GradientType=1 );

}

#cookie-notice .hypo-btn{
    color: #fff; 
    background: rgb(102,102,102);
}

#cookie-notice .hypo-btn:hover{
    opacity: 0.8;
}


@media all and (min-width: 767px){
     #etusivu-intro-txt h1, #etusivu-intro-txt h2{
        font-size: 22px;
        float: right;
        max-width: 380px;
    }    
}


@media all and (max-width: 767px){
    #etusivu-intro-txt-mobile h1, #etusivu-intro-txt-mobile h2{
        font-size: 16px;
        text-align: center;
    }

    .fl-node-5f3baada7ab4e .fl-photo {
        text-align: right;
    }
}

@media only screen and (max-width: 768px) {
	.fix-photo-margins .fl-callout-photo{
		margin-top: 0px;
		margin-bottom: 25px;
	}
}

.Pikasoittopyynto{
    width: 100%;
}

.video-embed{
    max-height: 500px;
}
.video-embed .fl-module-content{
    background-color: #fff;
}
.video-embed iframe{
    padding: 20px 20px 0px 20px;
    height: auto;
}

.video-embed-block{
    max-height: 500px;
}
.video-embed-block .fl-module-content{
    background-color: #fff;
}

.video-embed-block iframe{
    padding: 20px 20px 20px 20px;
    height: auto;
}

.meltwater-embed{
    height: auto;
}

.meltwater-embed .fl-module-content{
       background-color: #fff; 
}

.meltwater-embed .fl-module-content .fl-html{
    padding: 20px 10px 5px 10px;
    height: auto;
}

.tw-win .fl-html{
    background-color: #fff;
}

.fb-win .fl-html{
    background-color: #fff;
    min-height: 250px;
    text-align: center;
}
.fb-win .fl-html iframe{
    margin-top: 20px;
    margin-bottom: 3px;
    margin-left: auto;
    margin-right: auto;
}

.fb-page{
    min-width: 100%;
    width: auto;    
}

.fb-win-new .fl-html{
    background-color: #fff;
    height: 460px;
    text-align: center;
}
.fb-win-new .fl-html iframe{
    width:  100%;
    margin-left: auto;
    margin-right: auto;
}

.contact-card .fl-cta-button{
    padding-top: 0px;
}


.intro-area-head .fl-module-content{
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
    width: auto;
    display: block;
    float: left;
}

.intro-area-txt .fl-module-content{
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
    width: auto;
    display: block;
    float: left;
    max-width: 75%;
}
.intro-area-txt .fl-module-content p{
    margin-bottom: 0px;
}

.intro-area-btn a.fl-button{
    border: 1px solid #01375B;
    border-radius: 2px;
    background: #01375B;
    background-image: -moz-linear-gradient(top,#3f6eb4,#012b5b);
    background-image: -ms-linear-gradient(top,#3f6eb4,#012b5b);
    background-image: -webkit-gradient(linear,0 0,0 100%,from(#3f6eb4),to(#012b5b));
    background-image: -webkit-linear-gradient(top,#3f6eb4,#012b5b);
    background-image: -o-linear-gradient(top,#3f6eb4,#012b5b);
    background-image: linear-gradient(top,#3f6eb4,#012b5b);
}

.fl-page .intro-area-btn a.fl-button span{
    color: #fff;
    font-size: 14px;
}

.fl-builder-content .quick-link a.fl-button:hover{
    background-color: #01375B !important;
    color: #fff !important;
}
.fl-builder-content .quick-link a.fl-button:hover span{
    color: #fff !important;
}
.fl-builder-content .quick-link a.fl-button:hover i{
    color: #fff !important;
}



body .fl-comments-list .comment-content {
    border: 0px;
    border-bottom: 1px solid #e6e6e6;
    padding: 0px 15px 0px 15px;
}

body #wpdcom .wc-field-submit input[type="submit"]{
    padding-top: 10px;
}

body.archive .fl-post-thumb .wp-post-image{
    max-width: 300px;
}




/* cookie notice */

.cookie-notice-container{
    padding: 50px;
}
@media only screen and (min-width: 992px) {
    .cookie-notice-container{
        padding: 50px 150px;
    }   
}

.cookie-notice-container h5{
    color: #fff;
    font-weight: 500;
    margin-bottom: 15px;
}
.cookie-notice-container a{
    color: #01375b;
}

.cookie-notice-container .cn-buttons-container{
    margin-top: 25px;
}

.cookie-notice-container .cn-buttons-container .cookie-link{
    background-color: #01375b;
    min-width: 180px;
    float: right;

    font-family: -apple-system,BlinkMacSystemFont,Arial,Roboto,"Helvetica Neue",sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: .25px;
    line-height: 20px;
    margin: 0;
    text-align: center;
    text-transform: none;
    display: inline-block;
    cursor: pointer;
    touch-action: manipulation;
    white-space: nowrap;
    outline: none;
    box-shadow: none;
    text-shadow: none;
    border: none;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    text-decoration: none;
    padding: 8.5px 10px;
    line-height: 1; 
    
}
#cn-refuse-cookie{
    background-color: #dddddd;
    color: #000;
}
#cn-accept-cookie{
    color: #fff;
}
body.single-post img.wp-post-image{
    width: 100% !important;
    height: 350px !important;
    object-fit: contain;
    background-color: #000; 
}

body.home .landscape-img img.wp-post-image{
    width: 100% !important;
    height: 185px !important;
    object-fit: contain;
    background-color: #000; 
}

#talletusbtn a { 
    font-size: 11px !important;
}


