/*
Theme Name: John Resig
Theme URI: https://johnresig.com/
Author: John Resig
Author URI: https://johnresig.com/
Description: Theme for johnresig.com.
Version: 1.0
License: None
License URI: https://johnresig.com/
Tags: johnresig
GitHub Theme URI: https://github.com/jeresig/johnresig.com-wp-theme
*/

html, body {
    font-family: Helvetica, Arial, Sans-Serif;
    font-size: 18px;
    color: #000;
    background: #F0F0F0;
    margin: 0px;
    padding: 0px;
}

a {
    color: #385C85;
}

#wrapper {
    width: 1015px;
    margin: 10px auto;
    box-shadow: 0px 0px 10px #666;
    overflow: hidden;
}

#head {
    height: 56px;
    background: #1E3F64;
    position: relative;
}

#head a {
    color: #FFF;
}

#head ul {
    margin: 0 88px 0 20px;
    padding: 0;
    list-style: none;
    position: absolute;
    bottom: 8px;
}

#head ul li {
    display: inline;
    margin-right: 10px;
}

#head .side {
    width: 295px;
    position: absolute;
    top: 2px;
    right: -7px;
    font-size: 14px;
    color: #FFF;
}

#head .side .custom-logo {
    float: left;
    margin: 2px 7px 0 0;
    border: 0px;
    width: 48px;
    height: 48px;
}

#head .side .contact-menu,
#head .side .contact-menu li {
    display: inline;
    margin: 0;
    padding: 0;
    position: static;
}

#head .side .text {
    margin-top: 2px;
}

#head .side .text .name {
    font-size: 24px;
    margin-bottom: 5px;
}

#wrap {
    position: relative;
    /*background: #6889AE;*/
    background: #FFF;
}

.main {
    font-size: 18px;
}

#body {
    width: 720px;
    min-height: 800px;
    background: #FFF;
    color: #000;
    padding: 10px 0;
    line-height: 1.3em;
}

#body .wrap {
    margin: 0 20px 20px 20px;
    padding: 8px 0 10px 0;
    position: relative;
}

#body h2 {
    margin: 0;
    padding: 0;
    line-height: 35px;
    font-size: 30px;
    font-weight: normal;
}

#body h2 span {
    font-weight: bold;
}

#body .date {
    margin: 10px 0 0 10px;
    padding: 0;
    color: #6A6A6A;
    font-weight: normal;
    font-size: 24px;
}

#body div.projects {
    float: left;
    width: 360px;
    margin-right: 15px;
}

#body .rest {
    padding: 0 5px 0 5px;
    overflow: hidden;
}

#body .rest .bsap {
        margin-bottom: 15px;
}

pre {
    overflow: auto;
    background-color: #F0F0F0;
    margin: 0 15px;
    padding: 15px;
    font-size: 13px;
    line-height: 1.1em;
    font-family: Consolas, monospace;
    border: 1px solid #DDD;
}

ol.projects, ol.posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

ol.projects li {
    width: 45%;
}

ol.projects p {
    margin-top: 5px;
    font-size: 0.8em;
    color: #444;
}

ol.posts li {
    margin: 10px 0;
    font-size: 0.8em;
    color: #444;
}

ol.posts strong {
    font-size: 1.2em;
}

h3 {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

.item {
    position: relative;
    font-size: 18px;
}

.item img {
    position: absolute;
    top: 0px;
    left: 10px;
    display: none;
}

.item .box {
    margin: 20px 0 20px 10px;
    height: 213px;
    width: 560px;
    overflow: hidden;
    position: relative;
}

.item .box h2 {
    margin: 4px 0 5px 10px;
    padding: 0;
    font-size: 30px;
    font-weight: normal;

}

h2 a {
    color: #000;
}

.item .box .more {
    position: absolute;
    top: 4px;
    right: 10px;
    font-size: 14px;
}

.item .box ol {
    list-style: none;
    margin: 0 10px 0 10px;
    padding: 0px;
    height: 150px;
    overflow: hidden;
}

.item .box li {
    margin: 0 2px 0 0;
    padding: 0;
}

.item .box li.blog {
    margin-bottom: 8px;
    line-height: 18px;
}

.item .box li.blog a {
    font-weight: bold;
}

.item .box li.blog .desc {
    display: inline;
    font-size: 16px;
}

.item .box li.link .desc {
    display: none;
}

#side {
    position: absolute;
    top: 0px;
    left: 726px;
    color: #FFF;
}

#side h3 {
    font-size: 20px;
    font-weight: normal;
    margin: 20px 0 0 0;
    padding: 0;
}

#side h3 span {
    font-weight: bold;
}

#side a {
    color: #FFF;
}

#body h2 a {
    color: #000;
}

#side .box {
    width: 268px;
    background: #446E95;
    position: relative;
    padding: 8px;
    margin: 15px 0;
    overflow: auto;
    font-size: 12px;
}

#side .box label {
    font-size: 18px;
}

#side .box img {
    float: left;
    border: 0;
}

#side .box .desc {
    margin: 0 0 0 82px;
}

#side .box .padding {
    margin: 0 8px;
}

#side .box h3 {
    font-size: 18px;
    font-weight: normal;
    margin: 0 0 5px 0;
    padding: 0;
}

#side .box .desc p {
    line-height: 18px;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

.more {
    text-align: right;
    font-size: 18px;
}

.header-img {
    width: 960px;
    margin-left: -140px;
}

.header-caption {
    width: 960px;
    margin-left: -140px;
    text-align: right;
    font-size: 0.6em;
    color: #666;
    margin-top: -18px;
}

.header-caption a {
    margin-right: 20px;
}

@media screen and (max-width: 960px) {
    .header-img, .header-caption {
            width: 100%;
            margin-left: 0;
    }
}

/*@media screen and (max-width: 1015px) {*/
    #wrapper {
        width: 100%;
        margin: 0px;
        min-width: 600px;
    }

    #head.other .side {
        right: -95px;
    }

    #side {
        position: static;
        width: 100%;
        max-width: 720px;
        left: 0px;
        overflow: hidden;
        margin: 0 auto;
        background: #6889AE;
    }

    #side #projects {
        width: 608px;
        margin: 0 auto;
    }

    #side .box {
        float: left;
        margin: 10px;
    }

    #side br {
        clear: both;
    }

    #head .wrap, #body {
        width: 720px;
        margin: 0 auto;
        position: relative;
        height: 100%;
    }

    #side .bsap {
        float: left;
        margin: 10px;
    }
/*}*/

@media screen and (max-width: 719px) {
    #wrapper {
        min-width: 0;
    }

    #head .wrap {
        width: 100%;
    }

    #head.other .side {
        right: 0;
        width: 68px;
    }

    #head .side .text {
        display: none;
    }

    #body {
        width: 100%;
    }

    #body div.projects {
        width: 100%;
        margin-bottom: 20px;
    }

    #body .box.large {
        width: 100%;
    }

    #body .rest {
        width: 100%;
    }

    #body img {
        max-width: 100%;
    }

    #side .box {
        float: none;
        margin: 10px auto;
    }

    #side #projects {
        width: 100%;
        margin: 0;
    }
}

@media screen and (max-width: 399px) {
    #head ul {
        position: static;
        padding: 8px 0 0 0;
        margin: 0 68px 0 10px;
    }

    #head ul li {
        margin-right: 0;
    }

    #head.other .side {
        width: 58px;
    }
}

.incanvas a {
    text-decoration: underline;
}

.syntax_hilite {
    font-family: Courier New;
    padding: 8px;
    margin: 8px;
    background: #F5F5F5;
    border-top: 1px solid #BBB;
    border-bottom: 1px solid #BBB;
    font-size: 14px;
}

.postentry h3 { font-weight: bold; }
.postentry blockquote { padding-left: 5px; border-left: 3px solid #BBB; }
.syntax_hilite ol { list-style: none; margin: 0px; padding: 0px; }

#commentlist { list-style:none;margin:0;padding:0; }
#commentlist li { font-size: 13px; margin: 0 0 10px 0; }
#commentlist li.author { background: #FFECC7; }
#commentlist li h3 { background: #F5F5F5; border-bottom: 1px solid #BBB; padding: 4px; }
#commentlist li div.comment-text { padding: 10px; overflow: auto; }
#commentlist li div.comment-text p { margin: 0; padding: 4px 0; }
#commentform { border-top: 1px solid #BBB; border-bottom: 1px solid #BBB; margin-left: 20px; margin-right: 20px; background: #F5F5F5; padding: 5px; margin-top: 50px; }
#commentform h4 { margin: 0; }
code { white-space: pre; }
code br { display: none; }

#carbonads {
    margin-top: -12px;
}

.carbon-img img {
    margin-right: 8px;
}

.carbon-poweredby {
    display: block;
    margin-top: 1em;
}
