/*
 Theme Name:   Ilmiö
 Theme URI:    http://ilmiomedia.fi
 Description:  Ilmiö theme
 Author:       Jyri Öhman / Kilda
 Author URI:   http://kilda.fi
 Template:     twentyseventeen
 Version:      1.0.0
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  twenty-seventeen-child
*/

@import url('https://fonts.googleapis.com/css?family=Gentium+Basic:400,400i,700,700i');

@import url('fonts/bagnard/stylesheet.css');

@import url('fonts/bicyclette/stylesheet.css');

body{
    color: #222;
    font-family: 'Gentium Basic', serif;
    font-size: 18px;
    letter-spacing: 0.01em;
    line-height: 1.389;
    margin: 0;
}

#page{
    overflow: hidden;
}

.tag, .author, .search{
    padding-top: 85px;
}

h1, h2{
    font-family: 'Bagnard';
    font-weight: normal;
    letter-spacing: -0.02em;
    line-height: 1.083;
}

h3, h4, h5, h6, 
.menu a, 
#navigation #logo span, 
.fl-post-feed-meta, 
.widget_tag_cloud, 
.fl-button, 
h2.widget-title, 
header#masthead, 
#post-tags, #post-meta, 
#search input{
    font-family: 'Bicyclette';
    font-style: normal;
    font-weight: normal;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

h1{
    font-size: 60px;
}

.single h1{
    margin: 25px 0 0 0;
}

h1.page-title{
    margin-bottom: 75px;
    text-align: center;
}

h2{
    font-size: 30px;
}

h3, h3.fl-heading{
    border-bottom: 2px solid #3AD091;
    display: inline-block;
    font-size: 24px;
    padding-bottom: 8px !important;
}

h4{
    font-size: 16px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

h5{
    font-size: 16px;
}

h6{
    font-size: 14px;
}

.fl-lightbox-width-slim .mce-btn[aria-label=Blockquote], .fl-lightbox-width-slim .mce-btn[aria-label=Fullscreen]{
    display: inline-block !important;
}

blockquote{
    margin: 0;
}

blockquote p{
    border-left: 1px solid #3AD091;
    font-size: 36px;
    font-style: italic;
    margin: 50px 0;
    padding: 0 50px;
}

.center{
    text-align: center;
}

.entry-content a, 
.entry-content a:link, 
.entry-content a:visited, 
footer#colophon a, 
footer#colophon a:link, 
footer#colophon a:visited{
    color: #3AD091;
    cursor: pointer;
    font-weight: bold;
    outline: none;
    text-decoration: none;
}

.entry-content a:hover, 
.entry-content a:active, 
footer#colophon a:hover, 
footer#colophon a:active{
    color: #8EC7AC;
}

.fl-rich-text img{
    height: auto;
    margin: 50px 0;
    width: 100%;
}

.fl-button{
    background: #3AD091 !important;
    border: none !important;
    padding: 15px 25px !important;
    -moz-border-radius: 60px !important;
    border-radius: 60px !important;
}

.fl-button span{
    color: #fff !important;
    font-size: 20px !important;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a{
    color: #222 !important;
    font-style: normal !important;
    font-weight: normal !important;
}

p span{
    font-family: inherit !important;
}

/* Header */

header#masthead{
    background: #fff;
    padding: 25px 0;
    position: fixed;
    text-align: center;
    top: 0;
    width: 100%;
    z-index: 2000;
}

header#masthead aside{
    display: inline-block;
    position: relative;
    vertical-align: top;
}

header#masthead aside:first-child{
    float: left;
    margin-left: 50px;
}

header#masthead aside:nth-child(3){
    float: right;
    margin-right: 50px;
}

header#masthead aside:first-child img{
    height: auto !important;
    max-width: 125px !important;
}

header#masthead aside:first-child::after{
    color: #8EC7AC;
    content: "sosiologinen media kaikille";
    font-size: 16px;
    left: 140px;
    line-height: 0.9;
    position: absolute;
    text-align: left;
    top: 8px;
    width: 100px;
    z-index: 2000;
}

header#masthead aside:nth-child(3) img{
    height: auto !important;
    max-width: 35px !important;
    position: relative;
    top: 0;
}

.menu{
    list-style: none;
    margin: 10px 0;
    text-align: center;
}

.menu li{
    display: inline-block;
    margin: 0 2px;
    position: relative;
    vertical-align: middle;
}

.menu a{
    color: #222 !important;
    font-size: 24px;
    font-style: normal !important;
    font-weight: normal !important;
    padding: 10px;
    text-decoration: none;
}

.menu a:hover{
    color: #3AD091 !important;
}

.menu li:hover > .sub-menu{
    display: block;
}

.sub-menu{
    background: #fff;
    border-top: 2px solid #3AD091;
    display: none;
    left: 0;
    padding: 12.5px !important;
    position: absolute;
    text-align: left;
    top: 40px;
    z-index: 2001;
}

.sub-menu a{
    font-size: 18px;
    line-height: 1;
    padding: 0 !important;
}

#hamburger{
    display: none;
    height: 20px;
    overflow: hidden;
    position: absolute;
    right: 25px;
    top: 15px;
    width: 30px;
}

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

/* Footer */

footer#colophon{
    background: #222;
    color: #fff;
    padding: 50px;
    text-align: center;
}

footer#colophon > div{
    margin: 0 auto;
    max-width: 1440px;
}

footer#colophon aside{
    display: inline-block;
    text-align: left;
    vertical-align: top;
    width: 25%;
}

footer#colophon .widget_media_image img{
    height: auto;
    width: 200px;
}


/* Single */

#featured{
    height: 500px;
    overflow: hidden;
}

.content{
    background: #fff;
    margin: -375px 0 0 0;
    padding: 0 50px;
    position: relative;
    z-index: 1000;
}

#post-tags, #post-meta{
    color: #aaa;
}

#post-tags a, #post-meta a{
    color: #aaa;
    font-weight: normal;
}

#post-meta{
    margin: 30px 0 50px 0;
}

#main > #post-tags, #main > #post-meta{
    display: none;
}

/* Coming soon */

#comingsoon{
    text-align: center;
}

#comingsoon .logo img{
    height: auto;
    max-width: 250px;
}

body #comingsoon h3{
    text-align: center !important;
}

/* Main */

.fl-post-grid-image{
    margin: 0 0 25px 0;
}

.fl-post-grid-image img{
    height: auto;
    width: 100%;
}

.fl-post-grid-content p{
    font-size: 18px !important;
    line-height: 1.389 !important;
}

.fl-post-grid-meta{
    font-size: 14px;
}

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

.fl-post-column{
    display: inline-block;
    float: none !important;
    text-align: left;
    vertical-align: top;
    width: 33% !important;
}

/* Archive */

.archive #main, .search #main{
    margin: 0 auto;
    max-width: 1100px;
    text-align: center;
}

.archive article, .search article{
    display: inline-block;
    padding: 0 25px 50px 25px;
    text-align: left;
    vertical-align: top;
    width: 33%;
    box-sizing: border-box;
}

/* Sidebar */

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

/* Tag cloud */

.widget_tag_cloud .widgettitle{
    display: none;
}

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

.front-page-tag-cloud .widget_tag_cloud ul{
    margin: 0 auto;
    text-align: center;
    width: 50%;
}

.widget_tag_cloud li{
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

.widget_tag_cloud a{
    color: #222 !important;
    font-weight: normal !important;
}

/* Search */

#search{
    background: #666666;
    display: none;
    margin: 25px 0 -25px 0;
    padding: 25px 0;
}

#search form{
    margin: 0 auto;
    width: 50%;
}

#search input[type="search"]{
    border: 0;
    border-bottom: 1px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 20px;
    margin: 0 5%;
    max-width: 500px;
    padding: 10px 0;
    width: 60%;
    -webkit-appearance: none;
    border-radius: 0;
}

#search input[type="submit"]{
    background: #3AD091;
    border: 0;
    color: #fff;
    font-size: 20px;
    margin: 0 5%;
    padding: 10px 0;
    text-align: center;
    width: 20%;
    -webkit-appearance: none;
    border-radius: 0;
}

#article-share-buttons{
    margin: 25px;
}

#article-share-buttons .jssocials-share:first-child{
    margin-top: 0;
}

.fl-module-social-buttons{
    display: none;
}

.IN-widget {
    position: relative;
    top: -6px;
}

#twitter-widget-1 {
    top: -1px !important;
    position: relative !important;
}


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

    header#masthead aside:first-child::after{
        content: "";
        width: 0;
    }
    
}

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

    .fl-module-content, 
    #article-share-buttons{
        margin: 15px;
    }
    
    h1{
        font-size: 40px;
    }
    
    h2{
        font-size: 32px;
    }
    
    #featured{
        height: 500px;
        margin: 0 -25px;
    }
    
    #featured .fl-module-content{
        margin: 0;
    }
    
    #featured img{
        width: 100%;
        height: auto;
        max-width: none;
    }
    
    .content{
        background: #fff;
        flex: 80% !important;
        margin: -350px 0 0 0;
        padding: 0;
        position: relative;
        width: 80% !important;
        z-index: 1000;
    }
    
    header#masthead{
        padding: 10px 0;
        position: fixed;
    }
    
    header#masthead aside:first-child{
        margin: 0 0 0 25px;
        text-align: left;
    }
    
    header#masthead aside:first-child img{
        max-width: 100px !important;
    }
    
    header#masthead aside:first-child::after{
        content: "";
        width: 0;
    }
    
    header#masthead aside{
        width: 100%;
    }
    
    header#masthead aside:last-child{
        display: none;
    }
    
    .search-toggle{
        display: none !important;
        margin-right: 25px !important;
        text-align: right;
    }
    
    #hamburger{
        display: block;
    }
    
    header#masthead aside.widget_nav_menu{
        display: none;
    }
    
    .menu{
        margin: 0 25px;
        padding: 0;
    }
    
    .menu li{
        display: block;
        text-align: right;
    }
    
    .menu li a{
        padding: 10px 0;
    }
    
    .sub-menu{
        padding: 12.5px 0 !important;
        position: relative;
        top: 0;
    }
    
    footer#colophon aside{
        text-align: center;
        width: 100%;
    }
    
    .archive article, .search article{
        width: 100%;
    }
    
    #search form{
        text-align: left;
        width: 90%;
    }
    
    #search input[type="search"]{
        margin: 0;
        width: 100%;
    }
    
    #search input[type="submit"]{
        margin: 20px 0 0 0;
        padding: 10px 20px;
        width: auto;
    }
    
    .fl-post-column{
        width: 100% !important;
    }
    
}


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