@font-face {
    font-family: 'DejaVuSansMono';
    src: url('fonts/dejavu/DejaVuSansMono-webfont.eot');
    src: url('fonts/dejavu/DejaVuSansMono-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/dejavu/DejaVuSansMono-webfont.woff') format('woff'),
         url('fonts/dejavu/DejaVuSansMono-webfont.ttf') format('truetype'),
         url('fonts/dejavu/DejaVuSansMono-webfont.svg#webfontKMM3nOA8') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'DejaVuSansMono';
    src: url('fonts/dejavu/DejaVuSansMono-Oblique-webfont.eot');
    src: url('fonts/dejavu/DejaVuSansMono-Oblique-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/dejavu/DejaVuSansMono-Oblique-webfont.woff') format('woff'),
         url('fonts/dejavu/DejaVuSansMono-Oblique-webfont.ttf') format('truetype'),
         url('fonts/dejavu/DejaVuSansMono-Oblique-webfont.svg#webfont6UGvJmb8') format('svg');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'DejaVuSansMono';
    src: url('fonts/dejavu/DejaVuSansMono-Bold-webfont.eot');
    src: url('fonts/dejavu/DejaVuSansMono-Bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/dejavu/DejaVuSansMono-Bold-webfont.woff') format('woff'),
         url('fonts/dejavu/DejaVuSansMono-Bold-webfont.ttf') format('truetype'),
         url('fonts/dejavu/DejaVuSansMono-Bold-webfont.svg#webfontsmclDnj1') format('svg');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'DejaVuSansMono';
    src: url('fonts/dejavu/DejaVuSansMono-BoldOblique-webfont.eot');
    src: url('fonts/dejavu/DejaVuSansMono-BoldOblique-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/dejavu/DejaVuSansMono-BoldOblique-webfont.woff') format('woff'),
         url('fonts/dejavu/DejaVuSansMono-BoldOblique-webfont.ttf') format('truetype'),
         url('fonts/dejavu/DejaVuSansMono-BoldOblique-webfont.svg#webfontIFS0kNTn') format('svg');
    font-weight: bold;
    font-style: italic;
}



html {
    font-family: Helvetica, Verdana, Arial, sans-serif;
    font-size: 100%;
    margin: 0;
    padding: 0;
    background-color: #666;
}
/*
html::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background: #666;
    border-left: solid 1px #000;
}
html::-webkit-scrollbar-thumb:vertical {
    min-height: 20px;
    background: rgba(0, 0, 0, 1);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}
*/
body {
    width: 800px;
    margin: 10px auto;
    padding: 2em;
    background-color: #fff;
    -moz-box-shadow: #333 3px 3px 10px;
    -webkit-box-shadow: #333 3px 3px 10px;
    box-shadow: #333 3px 3px 10px;
}
body:after {
    content: "";
    display: block;
    clear: both;
}


/* SCREEN SPECIFIC */
@media screen and (max-width: 800px) {
    html {
        padding: 2em;
        background-color: #fff;
    }
    body {
        margin: 0;
        padding: 0;
        width: 100%;
        -moz-box-shadow: none;
        -webkit-box-shadow: none;
        box-shadow: none;
    }
}
@media screen and (max-device-width: 800px) {
    * {
        font-size: 120%;
    }
}
@media screen and (max-device-width: 800px) and (orientation: portrait) {
    * {
        font-size: 150%;
    }
}

/* HEADINGS */
h1 {
    margin: 1em 0;
    border-bottom: solid 1px #663;
    font-size: 1.6em;
    color: #663;
    clear: both;
}
h1:first-child {
    margin-top: 0;
}
h2 {
    margin: 1em 0;
    font-size: 1.4em;
    color: #336;
    border-bottom: solid 1px #336;
    clear: both;
}
h3 {
    margin: 1em 0;
    font-size: 1.25em;
    color: #363;
    clear: both;
}
h4 {
    margin: 1em 0;
    font-size: 1.2em;
    color: #000;
    clear: both;
}
h5 {
    margin: 1em 0;
    font-size: 1.1em;
    color: #000;
    clear: both;
}
h6 {
    margin: 1em 0;
    font-size: 1.05em;
    color: #000;
    clear: both;
}

/* LINKS */
a {
    color: #00f;
    font-size: 1em;
}
a:hover {
    color: #009;
}
a:active {
    color: #003;
}


/* PARAGRAPH */
p {
    font-size: 1em;
}

/* PHRASE MODIFIERS */
sup, sub {
    font-size: .8em;
}
strong, em {
    font-size: 1em;
}

/* BLOCKQUOTE */
blockquote {
    padding: 0;
    margin: 0 0 .5em 2em;
    padding: 10px 2.5em 10px 2.5em;
    position: relative;
    background-color: #eee;
    color: #666;
    text-align: justify;
    -webkit-box-shadow: 0px 0px 5px #ababab;
    -moz-box-shadow: 0px 0px 5px #ababab;
    box-shadow: 0px 0px 5px #ababab;
    -moz-border-radius: 10px;
    border-radius: 10px;
}
blockquote p:first-child {
    margin-top: 0;
}
blockquote p:last-child {
    margin-bottom: 0;
}
blockquote:before {
    content: "❝";
    position: absolute;
    top: .2em;
    left: .2em;
    font-size: 2em;
    color: #ccc;
}
blockquote:after {
    content: "❞";
    float: right;
    margin-top: -1ex;
    margin-right: -1em;
    font-size: 2em;
    color: #ccc;
}


/* TABLES */
table {
    margin: .5em 0;
    border-collapse: separate;
    border-spacing: 2px;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;
    border: solid 1px #999;
}
th, td {
    padding: .2em .5em;
}
th {
    background: #499bea;
    background: -moz-linear-gradient(top, #499bea 0%, #207ce5 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#499bea), color-stop(100%,#207ce5));
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#499bea', endColorstr='#207ce5',GradientType=0 );
    color: #fff;
    text-shadow: 0px 1px 1px #333;
    text-align: left;
}
th:first-child {
    -webkit-border-top-left-radius: 5px;
    -moz-border-radius-topleft: 5px;
    border-top-left-radius: 5px;
}
th:last-child {
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topright: 5px;
    border-top-right-radius: 5px;
}
tr {
    background-color: #fff;
}
tr:nth-child(odd) {
    background-color: #eee;
    border: solid 1px #fff;
}
tr:last-child td:first-child {
    -webkit-border-bottom-left-radius: 5px;
    -moz-border-radius-bottomleft: 5px;
    border-bottom-left-radius: 5px;
}
tr:last-child td:last-child {
    -webkit-border-bottom-right-radius: 5px;
    -moz-border-radius-bottomright: 5px;
    border-bottom-right-radius: 5px;
}


/* BROWSE */
.browse {
    list-style: none;
    margin: 0;
    padding: 0;
}
    .browse li {
        margin: 5px;
    }
    .browse a {
        display: block;
        text-decoration: none;
        background-repeat: no-repeat;
        background-position: 5px center;
        padding: 3px 3px 3px 25px;
        color: #00f;
        -moz-border-radius: 5px;
        border-radius: 5px;
    }
    .browse a:hover {
        background-color: #9dd9f8;
        color: #009;
    }
    .browse a:active {
        background-color: #7db9e8;
        color: #003;
    }
    .browse a.file {
        background-image: url(images/page_white.png);
    }
    .browse a.folder {
        background-image: url(images/folder.png);
    }

/* CODE */
pre {
    overflow: auto;
    border: solid 2px #999;
    padding: 1.7em .5em .5em .5em;
    background-color: #ffd;
    font-family: "DejaVuSansMono", monospace;
    font-size: 1em;
}
pre * {
    font-family: "DejaVuSansMono", monospace;
    font-size: 1em;
}
code {
    font-family: "DejaVuSansMono", monospace;
    font-size: .9em;
}
pre:before {
    content: "Code";
    display: block;
    position: absolute;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    line-height: 1em;
    height: 1em;
    padding: .1em 5em .2em .5em;
    margin: -1.7em -.5em 0 -.5em;
    text-shadow: 0px 0px 2px #666;
    filter: dropshadow(color=#666666, offx=0, offy=0);
    background: #999;
    background: -moz-linear-gradient(left, #999999 0%, #FFFFDD 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,#999999), color-stop(100%,#FFFFDD));
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#999999', endColorstr='#FFFFDD',GradientType=1 );
}

.sh_keyword { color: blue; font-weight: bold; }             /** language keywords */
.sh_type { color: darkgreen; }                              /** basic types */
.sh_usertype { color: teal; }                               /** user defined types */
.sh_string { color: red; }                                  /** strings and chars */
.sh_regexp { color: orange; }                               /** regular expressions */
.sh_specialchar { color: pink; }                            /** e.g., \n, \t, \\ */
.sh_comment { color: #666; font-style: italic; }           /** comments */
.sh_number { color: purple; }                               /** literal numbers */
.sh_preproc { color: darkblue; font-weight: bold; }         /** e.g., #include, import */
.sh_symbol { color: darkred; }                              /** e.g., <, >, + */
.sh_function { color: black; font-weight: bold; }           /** function calls and declarations */
.sh_cbracket { color: red; }                                /** block brackets (e.g., {, }) */
.sh_todo { font-weight: bold; background-color: cyan; }     /** TODO and FIXME */
.sh_classname { color: teal; }                              /** for OOP */
.sh_linenum { color: black; }                               /** line numbers (not yet implemented) */
.sh_url { color: blue; text-decoration: underline; }        /** Internet related */
.sh_variable { color: darkgreen; }                          /** for Prolog, Perl... */

/** for ChangeLog and Log files */
.sh_date { color: blue; font-weight: bold; }
.sh_time, pre.sh_sourceCode .sh_file { color: darkblue; font-weight: bold; }
.sh_ip, .sh_name { color: darkgreen; }

/** for LaTeX */
.sh_italics { color: darkgreen; font-style: italic; }
.sh_bold { color: darkgreen; font-weight: bold; }
.sh_underline { color: darkgreen; text-decoration: underline; }
.sh_fixed { color: green; }
.sh_argument { color: darkgreen; }
.sh_optionalargument { color: purple; }
.sh_math { color: orange; }
.sh_bibtex { color: blue; }

/** for diffs */
pre.sh_sourceCode .sh_oldfile { color: orange; }
pre.sh_sourceCode .sh_newfile { color: darkgreen; }
pre.sh_sourceCode .sh_difflines { color: blue; }

/** for css */
pre.sh_sourceCode .sh_selector { color: purple; }
pre.sh_sourceCode .sh_property { color: blue; }
pre.sh_sourceCode .sh_value { color: darkgreen; }

/** other */
pre.sh_sourceCode .sh_section { color: black; font-weight: bold; }
pre.sh_sourceCode .sh_paren { color: red; }
pre.sh_sourceCode .sh_attribute { color: darkgreen; }




/** Captions */
pre.textile:before {
    content: "Textile";
}
pre.javascript:before {
    content: "Javascript";
}
pre.html:before {
    content: "HTML";
}
pre.bison:before {
    content: "Bison";
}
pre.c:before {
    content: "C";
}
pre.changelog:before {
    content: "Changelog";
}
pre.code:before {
    content: "Code";
}
pre.cpp:before {
    content: "C++";
}
pre.css:before {
    content: "CSS";
}
pre.diff:before {
    content: "Diff";
}
pre.haxe:before {
    content: "HaXe";
}
pre.java:before {
    content: "Java";
}
pre.latex:before {
    content: "LaTeX";
}
pre.log:before {
    content: "Log";
}
pre.makefile:before {
    content: "Make file";
}
pre.pascal:before {
    content: "Pascal";
}
pre.perl:before {
    content: "Perl";
}
pre.php:before {
    content: "PHP";
}
pre.prolog:before {
    content: "Prolog";
}
pre.properties:before {
    content: "Properties";
}
pre.python:before {
    content: "Python";
}
pre.ruby:before {
    content: "Ruby";
}
pre.scala:before {
    content: "Scala";
}
pre.sh:before {
    content: "sh";
}
pre.sql:before {
    content: "SQL";
}
pre.xml:before {
    content: "XML";
}
pre.xorg:before {
    content: "xorg";
}
pre.bash {
    color: #eee;
    background-color: #333;
    border-color: #000;
}
pre.bash * {
    color: inherit;
}
pre.bash:before {
    background: #000;
    background: -moz-linear-gradient(left, #000 0%, #333 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,#000), color-stop(100%,#333));
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#333333',GradientType=1 );
}
pre.bash:before {
    content: "bash";
    color: #efefef;
}




/* TOOLBAR */
#toolbar {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 2em;
    border-bottom: solid 1px #999;

    background: #000;
    background: -moz-linear-gradient(top, #45484d 0%, #000000 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#45484d), color-stop(100%,#000000));
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#000000',GradientType=0 );
    -webkit-box-shadow: 0px 1px 5px #000;
    -moz-box-shadow: 0px 1px 5px #000;
    box-shadow: 0px 1px 5px #000;
}
#toc {
    background-color: #000;
    color: #ddd;
    border: solid 1px #999;
    border-top: solid 1px #000;
    border-right: solid 1px #000;
    padding: 10px 20px;
    position: fixed;
    top: 2em;
    right: 0;
    -webkit-box-shadow: 0px 1px 5px #000;
    -moz-box-shadow: 0px 1px 5px #000;
    box-shadow: 0px 1px 5px #000;
    -webkit-border-bottom-left-radius: 10px;
    -moz-border-radius-bottomleft: 10px;
    border-bottom-left-radius: 10px;

    max-height: 70%;
    max-width: 30%;
    overflow-x: hidden;
    overflow-y: auto;
}
    #toc * {
        font-size: .9em;
        margin: 0 0 .5em 0;
    }
    #toc a {
        color: inherit;
        font-size: 1em;
        text-decoration: none;
        white-space: nowrap;
    }
    #toc a:hover {
        color: #fff;
        text-decoration: underline;
    }
    #toc .level1 {
    }
    #toc .level2 {
        margin-left: 1.5em;
    }
    #toc .level3 {
        margin-left: 3em;
    }
    #toc .level4 {
        margin-left: 4.5em;
    }
    #toc .level5 {
        margin-left: 6em;
    }
    #toc .level6 {
        margin-left: 7.5em;
    }

#toc::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
#toc::-webkit-scrollbar-thumb:vertical {
    min-height: 20px;
    background: rgba(255, 255, 0, .5);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}


#search {
    padding: .25em;
}
    #search input {
        font-size: .9em;
        background: #000;
        color: #fff;
        border: solid 1px #ddd;
        background-image: url(images/search.png);
        background-repeat: no-repeat;
        background-position: 2px center;
        padding-left: 20px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
    }
    #search input.loading {
        background-image: url(images/loading.gif);
    }
    #search input:focus {
        -webkit-box-shadow: 0px 0px 4px #ff0;
        -moz-box-shadow: 0px 0px 4px #ff0;
        box-shadow: 0px 0px 4px #ff0;
        outline: none;
    }
#searchResult {
    display: none;
    position: absolute;
    top: 2em;
    left: 0;
    background-color: #000;
    color: #ddd;
    border: solid 1px #999;
    border-top: solid 1px #000;
    border-left: solid 1px #000;
    padding: 10px;
    -webkit-box-shadow: 0px 1px 5px #000;
    -moz-box-shadow: 0px 1px 5px #000;
    box-shadow: 0px 1px 5px #000;
    -webkit-border-bottom-right-radius: 10px;
    -moz-border-radius-bottomright: 10px;
    border-bottom-right-radius: 10px;
}
    #searchResult p {
        font-size: .9em;
        margin: 0;
    }
    #searchResult h1 {
        font-size: .9em;
        border: none;
        color: #fff;
        background-color: inherit;
        margin: 0 0 .8em 0;
        text-decoration: underline;
    }
    #searchResult ul {
        margin: 0;
        padding: 0;
        list-style: none;
        font-size: .9em;
    }
    #searchResult li {
        margin: .4em 0;
    }
    #searchResult a {
        color: #ddd;
        text-decoration: none;
    }
    #searchResult a:hover {
        color: #fff;
        text-decoration: underline;
    }
    #searchResult .error {
        color: #f99;
        font-weight: bold;
    }

#breadcrumb {
    color: #fff;
    display: inline;
    margin: 0 0 0 20px;
    padding: 0;
    font-weight: bold;
    text-transform: uppercase;
}
    #breadcrumb li {
        margin: 0;
        padding: 0;
        display: inline;
    }
    #breadcrumb li:before {
        content: "/";
        margin: 0 .5em;
    }
    #breadcrumb a {
        color: inherit;
        text-decoration: none;
    }
    #breadcrumb a:hover {
        text-decoration: underline;
    }


