/*
Theme Name: Referat for WordPress
Author: Dmitriy Kostinenko
Description: Referat theme for WordPress
Version: 0.1
*/


body{
    margin: 0;
    padding: 0;
    color: #343E47;
    font-family: Tahoma,Verdana,Segoe,sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    background-color: #fff;
}
div {box-sizing: border-box;}
h1{
    font-size: 18px;
    color: #000000;

}

h2{
    font-size: 18px;
    color: #000000;

}

h3{
    font-size: 16px;
    color: #343E47;
    padding:0;
    margin: 0;
}

a:link, a:visited{
    text-decoration: none;
    color: #62707c;
    transition: .2s ease-in-out;
}

a:hover{
    color: #343E47;
}
.text-justify{
    text-align: justify;
}
.header{
    display: table;
    background-color: #343e47;
    color: #fff;
    width: 100%;
}
#site-info{
    display: table-cell;
    width: 50%;
    padding-left: 40px;
}
    #site-info img{
        float: left;
        width: 60px;
        margin: 10px;
    }
    #site-info h1{
        padding: 0;
        margin: 0;
        font-size: 32px;
    }
    #site-info a {
        color: #fff;
    }
    #site-info p{
        padding: 0;
        margin: 0;
    }
#site-nav{

}
#main-navigation{
    display: table-cell;
    width: 50%;
    text-align: right;

}
#main-navigation a{
    color: #fff;
    font-size: 20px;
}
#main-navigation ul{
    height: 100%;
    margin: 0;
    padding-right: 40px;
    font-size: 0;
    list-style: none;
}
#main-navigation ul li {
    display: inline-block;
    height: 100%;
    padding: 8px 10px;
    margin: 0;
    font-size: 14px;
}
#search-form{
    text-align: right;
    padding-bottom: 10px;
    font-size: 0;
}
#search-form input#s{
    width: 220px;
    background: url("assets/icons/active-search.svg") no-repeat center left 6px rgba(255, 255, 255, 0.4);
    background-size: 32px 32px;
    border: none;
    padding: 10px 10px 10px 45px;
    border-radius: 5px 0 0 5px;
    transition: all 0.4s ease;
}
#search-form input#s:hover, #search-form input#s:focus, #search-form input#s:active{
    outline:none;
    background: url("assets/icons/active-search.svg") no-repeat center left 6px rgba(255, 255, 255, 1);
    background-size: 32px 32px;

}
#search-form input#searchsubmit{
    cursor: pointer;
    background:rgba(255, 255, 255, 0.4);
    border: none;
    padding: 10px 10px 10px 10px;
    margin-right: 30px;
    border-radius: 0 5px 5px 0;
    transition: all 0.4s ease;

}
#search-form input#searchsubmit:hover{
    background:rgba(255, 255, 255, 1);

}
#main-container {

}
#main-content{
    float: left;
    width: calc(100% - 25%);
    padding: 0 10px 10px 10px;
    margin-top: 10px;
}
#home-latest{
    overflow: auto;
}
#home-top{
    margin-top: 10px;
    overflow: auto;
}
#main-sidebar{
    float: right;
    width: 25%;
    padding: 0 10px 10px 0;
    margin-top:10px;
}
#sidebar-menu{
    width: 100%;
}
    #sidebar-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    #sidebar-menu ul li{
        border-bottom: dotted 1px #ccc;
        margin:0 20px 10px 20px;
        transition: .2s ease-in-out;
    }
    #sidebar-menu ul li:hover{
        border-bottom-color: #343E47;
    }
#sidebar-widgets{
    width: 100%;
}
    #sidebar-widgets ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    #sidebar-widgets ul li{
        border-bottom: dotted 1px #ccc;
        margin:0 20px 10px 20px;
    }
    #sidebar-widgets ul li:hover{
        border-bottom-color: #343E47;
    }
#content{
    overflow: auto;
}
.post{
    padding: 0 20px;
}
.work-tmb{
    float: left;
    width: calc(50% - 8px);
    margin:4px;
    box-shadow: 1px 1px 5px #ccc;
    position: relative;
    transition: 0.3s all;

}
.work-tmb:hover{
    background: #f2f2f2;
}
    .work-tmb header {
        background: #343E47;
        background: linear-gradient(to bottom, #343E47, #40515e);
        padding: 6px 20px;
    }
    .work-tmb header a{
        font-size: 18px;
        transition: .2s ease-in-out;
        border-bottom: solid 2px transparent;
        line-height: 1.5;
        padding-bottom: 4px;
        color: #fff;
    }
    .work-tmb header a:hover{
        border-bottom: solid 2px #fff;
    }
    .work-content{
        font-size: 12px;
        min-height: 100px;
        padding: 16px;
    }
    .work-info{
        position: absolute;
        bottom: 2px;
        display: table;
        table-layout: fixed;
        width: 100% ;
        font-size: 12px;
        padding:2px 6px;
    }
        .work-section{
            display: table-cell;
            width: 70%;
        }
        .work-date{
            display: table-cell;
            text-align: right;
        }


.page-link{
    margin: 0 -30px;
    padding: 10px 0;
    font-size: 18px;
    text-align: center;
    background: #343E47;
    color: #fff;
}
.page-link span{
    padding: 6px 16px;
    margin: 10px;
    border: solid 1px #ccc;
    border-radius: 3px;
    display: inline-block;
    background: #fff;
    color: #ccc;
}
.page-link a span{

    color: #343E47;
}
.navigation{
    overflow: auto;
    font-weight: bold;
}

    .previous {
        float: left;
        width: 50%;
        box-sizing: border-box;
        background: url("assets/icons/arrow-p.svg") no-repeat center left;
        background-size: 30px 30px;
        padding: 6px 0 6px 30px;
        min-height: 60px;
    }

    .next {
        width: 50%;
        float: left;
        box-sizing: border-box;
        background: url("assets/icons/arrow-n.svg") no-repeat center right;
        background-size: 30px 30px;
        padding: 6px 30px 6px 0;
        text-align: right;
        min-height: 60px;
    }
.download-attachment{
    border: solid 1px #ccc;
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    text-align: center;
    margin: 20px 0;
}
#main-footer{
    background-color: #343e47;
    color: #fff;
    width: 100%;
    text-align: center;
    overflow: auto;
}
    #footer-year{
        margin: 10px;
    }
/* Mobile View Styles */
@media screen and (max-width: 991px){
	p{
		margin:5% 0 0 0;
	}
    #site-info{
        display: block;
        width: 100%;
    }
    #main-navigation{
        display: block;
        width: 100%;
    }
    #search-form input#s{
        width: calc(100% - 140px);

    }
    #search-form input#searchsubmit{
        margin-right: 10px;
    }
    #main-content{
        width: 100%;
    }

    #main-sidebar {
        width: 100%;
    }
    #sidebar-menu{
        padding: 20px;
    }
    #sidebar-menu ul li{
        width: calc(50% - 50px);
        display: inline-block;
        font-size: 3vw;
    }
    #sidebar-widgets  {
        padding: 20px;
    }
    .work-tmb header a{
        font-size: 3vw;
        line-height: 1.3;
    }
    .work-content{
        font-size: 2vw;
    }
    .work-info{
        font-size:16px;
    }
    .work-section{
        display: block;
        width: 100%;
    }
    .work-date{
        display: block;
    }
    .previous {
        font-size: 3vw;
    }

    .next {
        font-size: 3vw;
    }
}

@media screen and (max-width: 767px){
    #site-info{
        display: block;
        width: 100%;
    }
    #main-navigation{
        display: block;
        width: 100%;
    }
    #main-navigation ul {
        padding-right: 10px;
    }
    #search-form input#s{
        width: calc(100% - 140px);

    }
    #search-form input#searchsubmit{
        margin-right: 10px;
    }


    #main-content{
        width: 100% ;
        float: none;
    }

    #main-sidebar {
        border-top: dotted 1px #ccc;
        width: 100%;
        float: none;
        margin-top: 0;
    }
    .work-tmb{
        float: none;
        width: 100%;

    }
    .work-tmb header a{
        font-size: 4vw;
    }
    .work-content{
        font-size: 3vw;
    }
}