/*
Theme Name: TES 2022 Child Theme
Theme URI: http://www.tekniikanedistamissaatio.fi
Version: 1.0
Description: TES 2022 Child Theme
Author: Jyri Öhman / Kilda
Author URI: http://www.kilda.fi
template: bb-theme
*/

@import url('https://fonts.googleapis.com/css?family=Nunito+Sans:200,200i,300,300i,600,600i,900');

body{
    color: #222;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.5;
    margin: 0;
}

#page{
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6, .fl-accordion-button{
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 900;
    margin-top: 0;
}

h1{
    font-size: 60px;
    line-height: 1;
}

.single h1{
    font-size: 48px;
}

h2{
    font-size: 30px;
    line-height: 1;
}

h2.fl-post-grid-title a:link, 
h2.fl-post-feed-title a:link, 
.search h2 a:link{
    color: #1259a8 !important;
    display: block;
    font-size: 20px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    margin: 25px 0;
    text-transform: none !important;
}

p + h2, 
ul + h2, 
ol + h2{
    margin-top: 40px;
}

h3{
    font-size: 20px;
    line-height: 1;
}

p + h3, ul + h3{
    margin-top: 45px;
}

h4{
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

em{
    color: #555;
}

.fl-button{
    background: #222 !important;
    border: 0 !important;
    -moz-border-radius: 100px !important;
    border-radius: 100px !important;
}

.fl-button span{
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#content a, #content a:link, #content a:visited, header a, footer a{
    color: #1259a8;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    outline: none;
    text-decoration: none;
    text-transform: uppercase;
}

.fl-post-grid-author a, .fl-post-feed-author a{
    color: #222 !important;
    font-weight: 300 !important;
    text-decoration: none !important;
}

#content a:hover, #content a:active{
    outline: none;
    text-decoration: underline;
}

#content ul li, 
#content ol li{
    margin: 10px 0;
}

.quote{
    font-size: 40px;
    font-style: italic;
    font-weight: 200;
    line-height: 1.25;
}

a, a:link, a:visited{
    color: #1259a8;
}

a:hover, a:focus{
    color: #1259a8;
}

/*
#content a:link::before{
    color: #222;
    content: '> ';
    position: relative;
    top: -2px;
}

#content a:link::after{
    color: #222;
    content: ' >';
    position: relative;
    top: -2px;
}
*/

.fl-post-grid-text{
    padding: 0 !important;
}

.fl-post-grid-content p{
    line-height: 1.5;
}

.fl-post-grid-image{
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.fl-post-grid-image img{
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translateY(-50%) translateX(-50%);
}

/* Navigation / header */

header{
    background: #eee;
    padding: 30px;
}

header ul{
    list-style: none;
    margin: 0 auto;
    max-width: 100% !important;
    padding: 0;
    text-align: right;
    width: 100%;
}

header li{
    cursor: pointer;
    display: inline-block;
    margin: 5px 0 0 45px;
}

header .menu > li:first-child{
    float: left;
    margin: 0 50px 0 0;
}

header .menu > li:first-child a{
    background: url('img/tes_symbols_anim_big.gif') no-repeat left top;
    background-size: 100% auto;
    display: block;
    font-size: 0;
    height: 45px;
    text-indent: 9999px;
    width: 60px;
}

header .sub-menu li{
    display: block;
}

header .sub-menu li a::before{
    content: '';
}

#menu-item-228{
    margin-left: 15px;
}

header a:hover, header a:focus, 
header .current-menu-item a, 
header .current-page-ancestor a{
    color: #222;
    cursor: pointer !important;
}

header .fb{
    background: url('img/fb_icon.png') no-repeat left top;
    background-size: 100% auto;
    display: inline-block;
    height: 40px;
    margin: 0 10px;
    text-indent: 9999px;
    vertical-align: middle;
    width: 40px;
}

header .twitter{
    background: url('img/twitter_icon.png') no-repeat left top;
    background-size: 100% auto;
    display: inline-block;
    height: 40px;
    margin: 0 10px;
    text-indent: 9999px;
    vertical-align: middle;
    width: 40px;
}

header #hamburger{
    cursor: pointer;
    display: none !important;
    float: none;
    height: 20px;
    margin: 0 auto;
    padding: 0 !important;
    width: 30px;
}

header #hamburger img{
    height: 10px;
    width: 100%;
}

/* Footer */

footer{
    background: #eee;
    overflow: hidden;
    padding: 75px 0;
}

footer div{
    margin: 0 auto;
    max-width: 1200px;
    text-align: center;
    width: 100%;
}

footer aside{
    display: inline-block;
    vertical-align: middle;
    width: 50%;
}

footer div aside:first-child div{
    text-align: left;
}

footer div aside:last-child div{
    text-align: right;
}

footer img{
    height: auto;
    max-width: 150px;
}

/* Accordion */

.fl-accordion-button, .fl-accordion-content{
    padding: 12.5px !important;
}

.fl-accordion-content{
    padding-top: 0 !important;
}

.fl-accordion-button-icon{
    color: #1259a8;
    zoom: 1;
    filter: alpha(opacity=100);
    opacity: 1;
    outline: none !important;
}

.fl-accordion-button-label{
    outline: none !important;
}

.alignleft{
    clear: both;
    float: left;
    margin: 0 40px 40px 0;
}

.alignright{
    clear: both;
    float: right;
    margin: 0 0 40px 40px;
}

.aligncenter{
    clear: both;
    display: block;
    float: none;
    margin: 20px auto 10px auto;
}

/* Extranet */

.extranet form{
    margin: 50px auto;
    max-width: 600px;
}

input[type="password"], 
input[type="search"]{
    border: 1px solid #ddd;
    color: #222;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.5;
    padding: 10px 20px;
}

input[type="submit"]{
    background: #1259a8;
    border: 0;
    color: #fff;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    padding: 10px 20px;
}

/* Search */

#search{
    background: #ddd;
    padding: 25px 0;
    text-align: center;
}

span.screen-reader-text{
    display: none;
}

.search #content{
    margin: 50px auto;
    max-width: 1000px;
}

.search .hentry{
    display: block;
    margin: 50px 0;
}

.search .more-link{
    display: none;
}


@media only screen and (device-width: 768px){

}

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

    footer aside{
        text-align: center !important;
        width: 100%;
    }
    
    header{
        padding: 20px;
    }
    
    header #hamburger{
        display: block !important;
    }
    
    ul.menu{
        display: none;
        text-align: center !important;
    }
    
    header li{
        display: block;
        float: none !important;
        margin: 5px 10px;
        text-align: center;
        vertical-align: middle;
    }
    
    header .menu > li:first-child{
        display: block;
        float: none !important;
        margin: 0 !important;
        text-align: center;
    }
    
    header .menu > li:first-child a{
        margin: 20px auto 10px auto;
    }
    
    #menu-item-83{
        clear: both;
    }
    
    .fl-row-content-wrap{
        padding: 0;
    }
    
    .alignleft, .alignright{
        float: none;
        height: auto;
        margin: 0;
        width: 100%:
    }
    
}


/* Sharp fonts */

body{
    text-rendering: optimizeLegibility;
    text-rendering: geometricPrecision;
    font-smooth: always;
    font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    -webkit-font-smoothing: subpixel-antialiased;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}