/*
 Theme Name:   TT100
 Theme URI:    http://100-vuotissaatio.teknologiateollisuus.fi
 Description:  TT100 theme
 Author:       Jyri Öhman / Kilda
 Author URI:   http://kilda.fi
 Template:     twentyfifteen
 Version:      1.0.0
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  twenty-fifteen-child
*/

@import url('fonts/MyFontsWebfontsKit.css');

body{
    background: #f2f2f2;
    color: #000;
    font-family: 'FFDINWebProLight';
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    margin: 0;
}

#page{
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6, strong, header + nav a, .search-form .search-submit{
    font-family: 'FFDINWebProBold';
    font-weight: normal;
}

h1{
    font-size: 70px;
    letter-spacing: -0.025em;
    line-height: 75px;
    margin: 25px 0;
}

h2{
    font-size: 45px;
    letter-spacing: -0.025em;
    line-height: 55px;
    margin: 25px 0;
}

h3{
    font-size: 26px;
    font-family: 'FFDINWebProLight';
    letter-spacing: -0.025em;
    line-height: 1.5;
}

h2.fl-post-feed-title{
    font-size: 26px;
    line-height: 1.5;
}

h4, header + nav a, .headlines h2{
    font-size: 18px;
    text-transform: uppercase;
}

a, a:link, a:visited{
    color: #8a69d4;
    text-decoration: none;
    transition: color 0.5s ease;
}

a:hover, a:active{
    color: #a794d4;
}

.more-link{
    display: none;
}

/* Header */

.logo{
    height: auto;
    max-width: 337px;
    width: 100%
}

/* Home */

.number_icon img{
    height: auto;
    max-width: 40px !important;
}

.overset{
    position: relative;
    z-index: 100;
}

/* Header */

header{
    background: #8a69d4;
    overflow: hidden;
    padding: 50px 125px;
}

header > li{
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
    width: 25%;
}

header > li:first-child{
    width: 50%;
}

#menu-ylaosan-valikko{
    float: right;
    margin: 0;
    padding: 0;
}

#menu-ylaosan-valikko li{
    display: inline-block;
    position: relative;
}

/*
#menu-ylaosan-valikko li:last-child{
    border-left: 1px solid #fff;
}
*/

#menu-ylaosan-valikko a{
    color: #fff;
    font-size: 16px;
    margin: 0 10px;
    padding: 0;
}

.some_icon{
    display: inline-block;
    height: 26px;
    overflow: hidden;
    position: relative;
    top: 7px;
    width: 26px;
}

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

.widget_search{
    
}

.search-form{
    float: right;
    position: relative;
}

.search-form label span{
    display: none;
}

.search-form .search-field{
    background: transparent;
    border: 0;
    border-bottom: 1px solid #fff;
    color: #fff;
    font-size: 16px;
    padding: 5px 0 !important;
    border-radius: 0;
    -webkit-appearance: none;
}

.search-form .search-field::-webkit-input-placeholder { color:#dcd2f2; }
.search-form .search-field::-moz-placeholder { color:#dcd2f2; } /* firefox 19+ */
.search-form .search-field:-ms-input-placeholder { color:#dcd2f2; } /* ie */
.search-form .search-field:-moz-placeholder { color:#dcd2f2; }

.search-form .search-submit{
    background: #fff;
    border: 0;
    color: #8a69d4;
    font-size: 12px;
    letter-spacing: 0.05em;
    line-height: 1;
    padding: 5px 10px;
    text-transform: uppercase;
    border-radius: 0;
    -webkit-appearance: none;
}

/* Navigation */

#hamburger{
    display: none;
    height: 15px;
    margin: 0 0 15px 0;
    width: 25px;
}

#hamburger img{
    height: 15px;
    width: 30px;
}

header + nav{
    background: #fff;
    margin: 0 0 50px 0;
    padding: 25px 125px;
}

header + nav ul.menu{
    list-style: none;
    margin: 0;
    padding: 0;
}

header + nav ul.menu > li{
    display: inline-block;
    list-style: none;
    margin: 0 25px 0 0;
    padding: 0;
    vertical-align: top;
}

header + nav ul.sub-menu{
    background: #fff;
    display: none;
    list-style: none;
    margin: 0 0 0 -25px;
    padding: 10px 25px 15px 25px;
    position: absolute;
    z-index: 1000;
}

header + nav ul.sub-menu a{
    font-family: 'FFDINWebProLight';
    text-transform: none;
}

header + nav ul.menu > li > a:hover + ul.sub-menu, 
header + nav ul.menu > li:hover a + ul.sub-menu{
    display: block;
}

/* Calendar */

.calendar ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

.calendar ul li{
    border-bottom: 1px solid #ddd;
    padding: 12.5px 0;
}

.calendar ul li h4{
    margin: 0;
}

.calednar ul li:last-child{
    border: 0;
}

/* Feeds */

.fl-post-feed-post{
    border: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.fl-post-feed-header{
    margin-bottom: -5px;
}

.fl-post-feed-header a{
    color: #000;
}

.fl-post-feed-meta{
    color: #aaa;
    font-size: 18px !important;
}

.fl-post-feed-more{
    font-family: 'FFDINWebProBold';
    text-transform: uppercase;
}

.headlines h2{
    border-bottom: 1px solid #ddd;
    margin: 0;
    padding: 12.5px 0;
}

.headlines h2 a{
    color: #8a69d4 !important;
}

.headlines h2:last-child{
    border: 0;
}

/* Footer */

footer{
    background: #e2e2e2;
    margin: 75px 0 0 0;
    padding: 50px 125px;
}

footer li{
    display: inline-block;
    list-style: none;
    margin: 0 100px 0 0;
    padding: 0;
    vertical-align: top;
}

footer li p{
    margin-top: 0;
}

.black_logo{
    height: auto;
    max-width: 290px;
    width: 100%;
}

/* News feed */

.fl-post-feed{
    text-align: center;
}

.fl-post-feed-post{
    display: inline-block;
    margin: 0 0 50px 0;
    text-align: left;
    width: 28%;
    vertical-align: top;
}

.fl-post-feed-post:nth-child(3n+2){
    margin: 0 5% 50px 5%;
}

#blogroll .fl-post-feed-post{
    margin: 0 0 50px 0;
    width: 90%;
}

#blogheadlines .fl-post-feed-post{
    margin: 0 0 5px 0;
    width: 100%;
}

#blogheadlines .fl-post-feed-post h2{
    font-size: 18px !important;
    line-height: 1.5 !important;
    text-transform: uppercase;
}

#blogheadlines .fl-post-feed-post h2 a{
    color: #8a69d4;
}

#featured_blog .fl-post-feed-post{
    margin: 0 0 5px 0;
    width: 100%;
}

/* Single */

#disqus_thread{
    margin: 0 auto;
    padding: 0 100px;
}

.alignright{
    float: right;
    margin: 25px 0 25px 25px;
}

figure{
    margin: 25px 0;
}

.next_previous_post_links{
    margin: 25px auto;
    max-width: 1100px;
    width: 90%;
}

.next_previous_post_links p{
    display: inline-block;
    width: 50%;
    vertical-align: top;
}

/* Search */

.search #primary{
    max-width: 1000px;
    padding: 0 125px;
}

.search article{
    margin: 0 0 50px 0;
}

/* Page */


.entry-content img{
    height: auto;
    max-width: 100%;
}

#infographics .fl-module-rich-text{
    min-height: 280px;
}


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

}

@media screen and (max-width: 680px){
    
    header{
        padding: 25px;
    }

    header > li{
        width: 100% !important;
    }
    
    #menu-ylaosan-valikko{
        float: none;
        margin: 25px auto;
        text-align: center;
    }
    
    .search-form {
        float: none;
        margin: 0 auto;
        text-align: center;
    }
    
    header + nav{
        margin: 0;
        padding: 25px;
    }
    
    header + nav .menu > li{
        display: block !important;
    }
    
    header + nav .menu > li .sub-menu{
        position: relative;
    }
    
    footer{
        padding: 25px;
    }
    
    footer li{
        margin: 0;
    }
    
    h1{
        font-size: 40px;
        line-height: 45px;
    }

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

    h3{
        font-size: 26px;
    }

    #disqus_thread{
        padding: 0 25px;
    }

    .fl-post-feed-post{
        display: block;
        width: 100%;
    }
    
    .search #primary{
        padding: 25px;
    }
    
    #hamburger{
        display: block;
    }
    
    ul#menu-paavalikko{
        display: none;
    }
    
}


/* 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;
}