/*
Theme Name: XO Rakennus
Version: 1.0
Template: twentythirteen
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/

@import url("../twentythirteen/style.css");

* {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}
body {
    background: #eee url('img/tileable_wood_texture.png');
}
.navbar {
    background-color: transparent;
    width: 100%;
    margin: 0;
    position: absolute;
    top: 50px;
}
ul.nav-menu,
div.nav-menu > ul,
.menu-paavalikko-container {
    padding: 0;
    text-align: center;
}
.nav-menu li a {
    color: #8d2e21;
    padding: 10px;
    font-weight: 700;
}
.nav-menu li.vasen {
    position: absolute;
    right: 50%;
    margin-right: 150px;
}
.nav-menu li.oikea {
    position: absolute;
    left: 50%;
    margin-left: 150px;
}

.nav-menu li a {
    font-size: 17px;
}
.nav-menu .current_page_item > a, 
.nav-menu .current_page_ancestor > a, 
.nav-menu .current-menu-item > a, 
.nav-menu .current-menu-ancestor > a {
    color: inherit;
    font-style: normal;
}
h1 {
    margin-top: 0;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    line-height: 1.1;
    font-style: normal;
    font-weight: 200 !important;
}
.widget .widget-title {
    font-family: 'Raleway', sans-serif;
    font-style: normal;
    font-weight: 700 !important;
}
.site-header {
    background-color: transparent;
    margin-top: 10px;
    margin-bottom: 20px;
}
.site-title {
    display: block;
    width: 262px;
    height: 150px;
    background: url(img/logo.png) no-repeat center center;
    text-indent: -9999px;
    margin: 0 auto;
    padding: 0;
}
.hentry {
    padding: 10px 0;
}
.entry-header {
    
}
.entry-title a,
.entry-title a:hover {
    color: #000;
    text-decoration: none;
}
.entry-header, .entry-content, .entry-summary, .entry-meta {
    margin: 0 auto;
    max-width: 100%;
    width: auto;
}

.site {
    background-color: transparent;
    border-left: none;
    border-right: none;
    margin: 0 auto;
    max-width: 1100px;
    width: 100%;
}

.page-header {
    background-color: transparent;
}
.site-footer {
    background-color: transparent;
    color: #666;
}
#main {
    padding: 0 0 50px;
    background: #fff;
    margin: 0 20px;
}
#primary {
    width: 60%;
    float: left;
    padding: 0 5%;
}
#secondary {
    width: 27%;
    float: left;
    height: auto;
    position: relative;
    top: auto;
}
.widget {
    -moz-hyphens: none;
    -webkit-hyphens: none;
    background-color: transparent;
    font-size: 14px;
    margin: 0 0 24px;
    padding: 10px 20px;
    word-wrap: normal;
}
.rfbp-page-link-wrap {
    margin: 0;
}
span.displaynone { 
    display:none; 
}
#topbg {
    background: url('img/topbg.png') no-repeat center top;
    top: -40px;
    position: absolute;
    height: 42px;
    width: 100%;
}
.site-header .home-link {
    min-height: 150px;
    width: 270px;
    margin-bottom: 0px;
    padding: 0;
}
.archive-header {
    background-color: transparent;
}
.referenssi {
    position: relative;
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
}
.referenssi > a {
    display: block;
}
.referenssi > a > span {
    position: absolute;
    width: 100%;
    display: block;
    bottom: 0;
    left: 0;
    background-color: rgba(256, 256, 256, 0.5);
    text-align: center;
}
.referenssi > a:hover > span {
    background-color: #ddd;
}
.referenssi > a > span > span {
    padding: 10px;
    color: #000;
    
}

@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (   min--moz-device-pixel-ratio: 2),
only screen and (     -o-min-device-pixel-ratio: 2/1),
only screen and (        min-device-pixel-ratio: 2),
only screen and (                min-resolution: 192dpi),
only screen and (                min-resolution: 2dppx) { 
    #topbg {
        background: url('img/topbg_@2X.png') no-repeat center top;
        background-size: 1210px 42px;
    }
    .site-title {
        background: url('img/logo_@2X.png') no-repeat center center;
        background-size: 262px 146px;
    }
}

@media (max-width: 643px) {
    #primary,
    #secondary {
        float: none;
        position: relative;
        width: 90%;
        padding: 0 5%;
    }
    #main {
        margin: 0;
        padding: 0;
    }
    .widget {
        padding: 20px;

    }
    .navbar {
        background-color: transparent;
        margin: 0;
        position: relative;
        top: 0;
        width: 100%;
    }
    .menu-toggle {
        display: none;
    }
    ul.nav-menu, div.nav-menu > ul {
        display: block;
    }
    .toggled-on .nav-menu li.vasen,
    .nav-menu li.vasen,
    .toggled-on .nav-menu li.oikea,
    .nav-menu li.oikea {
        position: relative;
        left: auto;
        right: auto;
        margin: 0;
        display: inline-block;
    }
    .entry-title {
        font-size: 25px !important;
        font-weight: 700 !important;
    }
}