body {
    background-color: #f8f8f8;
    color: #444;
    line-height: 1.5em;
    margin: 0;
}
main {
    max-width: 1100px;
    word-wrap: break-word;
}

/* Header */

.global-header {
    max-width: 1100px;
}
.global-logo-parent {
    position: relative;
}
.global-logo {
    background-image: url("../images/nesnausk-810-b.png");
    width: 96px;
    height: 96px;
    background-size: cover;
    position: absolute;
    left: -14px;
}

.header-text {
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-left: 76px;
}

a.btn-header {
    display: inline-block;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    color: #000;
    height: 40px;
    padding: 4px 18px 0 40px;
    display: inline-block;
    border-image-source: url('../images/menu-off.png');
    border-image-slice: 100 360 150 810 fill;
    border-image-width: 5px 18px 7px 40px;
    margin-right: -6px; 
}
a.btn-header:hover {
    border-image-source: url('../images/menu-hover.png');
}
a.btn-header.active {
    border-image-source: url('../images/menu.png');
}

/* Footer */

.global-footer {
    padding-top: 10px;
    max-width: 1100px;
    height: 100px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.4);
}

.global-footer .sns-links {
    float: right;
    line-height: 1.2em;
}

.global-footer .sns-links a {
    display: inline-block;
    height: 24px;
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    font-size: 13px;
    transition: color,border-color 0.1s linear;
}

.global-footer .sns-links a:hover {
    color: rgba(0, 0, 0, 0.7);
}

/* Sidebar */

.sidebar {
    display: none;
    border-left: 1px solid #ccc;
    font-size: .8em;
}
.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar li {
    list-style: none;
    margin: 0;
    padding: 0.1em 0;
    border-bottom: 1px solid #ccc
}
.sidebar a {
    color: #235580;
}

/* equal height columns trick using CSS3 flexbox layout */
@media (min-width: 992px) {
    .row-eq-height {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
    }
}

/* Section */

h1.section-parent {
    font-size: 36px;
    line-height: 48px;
}
@media (max-width:767px) {
    h1.section-parent {
        font-size: 26px;
    }
}


.section-parent {
    margin-top: -16px;
    margin-left: 64px;
    margin-bottom: 0;
}
.section {
    color: #f8f8f8;
    height: 81px;
    padding: 0 30px 0 84px;
    display: inline-block;
    border-width: 1px; /* Safari workaround */
    border-image-source: url('../images/section.png');
    border-image-slice: 100 300 100 810 fill;
    border-image-width: 10px 30px 10px 81px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.section-about:before, .section-news:before, .section-proj:before, .section-team:before {
    position: absolute;
    content: "";
    height: 81px;
    width: 81px;
    margin-left: -84px;
    background-size: cover;
    z-index: 1;
}
.section-about:before {
    background-image: url('../images/inset-logo.png');
}
.section-news:before {
    background-image: url('../images/inset-news.png');
}
.section-proj:before {
    background-image: url('../images/inset-proj.png');
}
.section-team:before {
    background-image: url('../images/inset-team.png');
}

/* Article */

article {
    padding-bottom: 2em;
}

.article-list h2 a {
    text-decoration: none;
    transition: color 0.1s linear;
}

.post-meta {
    margin: 5px 0;
}

.post-date {
    color: rgba(0, 0, 0, 0.4);
}

.not-found h1 {
    color: rgba(0, 0, 0, 0.2);
    font-weight: 200;
    font-size: 80px;
}

.not-found {
    text-align: center;
}

/* Pagination */

.pagination
{
	width: 99%;
	text-align: center;
}

.older-posts,.newer-posts
{
	display: inline!important;
	border: 1px solid #ddd;
	border-radius: 15px;
	text-decoration: none;
	transition: border .3s ease;
	padding: 5px 14px;
}

.page-number
{
	display: inline-block;
	min-width: 100px;
	padding: 2px 0;
}

.newer-posts
{
	float: right;
}

.older-posts
{
    float: left;
}

.older-posts:hover,.newer-posts:hover
{
	color: #889093;
	border-color: #98a0a4;
}

/* Override some of Bootstrap's styles */

.article-list hr {
    border-top: 1px solid #888;
    padding-top: 1px;
    border-bottom: 1px solid #aaa;
    margin-top: 4em;
}

pre {
    font-size: 13px;
    tab-size: 4;
}

pre code {
    overflow: auto;
    white-space: pre;
    word-wrap: normal;
}

code {
    padding: 1px 3px;
    font-size: 13px;
    color: #a71e41;
    border-radius: 3px;
}

.pager li>a {
    transition: background-color 0.1s linear;
}

blockquote {
    font-style:italic;
    font-size: 17px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-left: 5px solid #ddd;
    padding: 3px 20px 10px 20px;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: bold;
}

article section img {
    max-width: 100%;
    height: auto;
    margin: 3px auto;
    border: #fff 1px solid;
    border-radius: 1px;
    box-sizing: border-box;
    box-shadow: rgba(0,0,0,0.3) 0 1px 3px;
}

article section p {
    margin-top: 0.5em;
    margin-bottom: 1em;
}

img.right {
    float: right;
    margin-left: 1em;
}
img.left {
    float: left;
    margin-right: 1em;
}
img.raw {
    border: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}
