/**
 * Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
 * file at the top-level directory of this distribution and at
 * http://rust-lang.org/COPYRIGHT.
 * With elements taken from Bootstrap v3.0.2 (MIT licensed).
 *
 * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
 * http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
 * <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
 * option. This file may not be copied, modified, or distributed
 * except according to those terms.
 */

/**
 * Copyright 2017 The ResEl Project.
 */

body {
    background-color: white;
    margin: 0 auto;
    padding: 0 15px;
    font-family: "Source Serif Pro", Georgia, Times, "Times New Roman", serif;
    font-size: 18px;
    color: #333;
    line-height: 1.428571429;

    max-width: none;
  
    -webkit-font-feature-settings: "kern", "liga";
    -moz-font-feature-settings: "kern", "liga";
    font-feature-settings: "kern", "liga";
}


h1, h2, h3, h4, h5, h6, nav, #versioninfo {
    font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}


h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}
h1, h2, h3 {
    margin-top: 20px;
    margin-bottom: 15px;
}
h1 {
    margin-bottom: 20px;
}
h4, h5, h6 {
    margin-top: 12px;
    margin-bottom: 10px;
    padding: 5px 10px;
}
h5, h6 {
    text-decoration: underline;
}

h1 {
    font-size: 28px;
    font-weight: 500;
    padding: .1em .4em;
    border-bottom: 2px solid #ddd;
}
h1.title {
    line-height: 1.5em;
}
h2 {
    font-size: 26px;
    padding: .2em .5em;
    border-bottom: 1px solid #ddd;
}
h3 {
    font-size: 24px;
    padding: .2em .7em;
    border-bottom: 1px solid #DDE8FC;
}
h4 {
    font-size: 22px;
}
h5 {
    font-size: 20px;
}
h6 {
    font-size: 18px;
}
@media (min-width: 992px) {
    h1 {
        font-size: 36px;
    }
    h2 {
        font-size: 30px;
    }
    h3 {
        font-size: 26px;
    }
}



nav {
    column-count: 2;
    -moz-column-count: 2;
    -webkit-column-count: 2;
    font-size: 15px;
    margin: 0 0 1em 0;
}
p {
    margin: 0 0 1em 0;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

/* footer { */
/*     border-top: 1px solid #ddd; */
/*     font-size: 14px; */
/*     font-style: italic; */
/*     padding-top: 5px; */
/*     margin-top: 3em; */
/*     margin-bottom: 1em; */
/* } */

/* Links layout */

a {
    text-decoration: none;
    color: #428BCA;
    background: transparent;
}
a:hover, a:focus {
    color: #2A6496;
    text-decoration: underline;
}
a:focus {
    outline: thin dotted #333;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}
a:hover, a:active {
    outline: 0;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover,
h5 a:hover {text-decoration: none;}

/* Code */

pre, code {
    font-family: "Source Code Pro", Menlo, Monaco, Consolas, "DejaVu Sans Mono", monospace;
    word-wrap: break-word;
}
pre {
    border-left: 2px solid #eee;
    white-space: pre-wrap;
    padding: 14px;
    padding-right: 0;
    margin: 20px 0;
    font-size: 13px;
    word-break: break-all;
}
code {
    padding: 0 2px;
    color: #8D1A38;
}
pre code {
    padding: 0;
    font-size: inherit;
    color: inherit;
}

a > code {
    color: #428BCA;
}

.section-header > a > code {
    color: #8D1A38;
}

/* HEAD SPECIFIGS */
#wiki-wrapper {
    width:100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

#head {
     margin: 0 0 0 300px;
     padding: 10px 100px;
}

#head h1 {
  font-size: 4em;
  padding: 0 0px 10px 0.667em;
  border-bottom: none;
}

#head h1::before {
    background-image: url('/logo_smeagol.ico');
    background-size: 90px 90px;
    display: inline-block;
    width: 90px;
    height: 90px;
    content: "";
    margin: 0px 30px -20px 0px;
}


/* body */
.has-sidebar #wiki-body {
    width: inherit;
    left: 300px;
    right: 0px;
    padding: 0 15px;
    position: absolute;
}

.markdown-body {
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
}


/* SIDEBAR STUFF */
#wiki-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 285px;
    overflow-y: auto;
    border-right: 1px solid #e8e8e8;
    padding: 15px 15px;
    font-size: 14px;
    -webkit-overflow-scrolling: touch;
 }

#page-wrapper {
    position: absolute;
    top: 0;
    left: 300px;
    right: 0;
    padding: 0 15px;
    -webkit-overflow-scrolling: touch;
}

#sidebar-content li {
    list-style-type: none;
}

.toc {
    background-color: none;
}

.toc > ul {
    font-size 1em;
    line-height: 1.5;
}

.toc-title {
    color: #333;
}

.toc a {
    color: #333;
}

.toc a:hover {
    color:#4183c4;
    text-decoration: none; 
}
#sidebar-content {
    padding: 0px;
}

/* FOOTER */
#footer {
    display: none;
    position: absolute;
    bottom: 0px;
}


/* action buttons */
.actions {
   font-size: .7em;
}

.minibutton a {
   font-family: Sans-Serif;
   background: none;
}

/* mobile version */
@media (max-width: 992px) {
    #wiki-sidebar {
        display: none;
    }
    
    #head, #page-wrapper {
        margin:0;
    }
    #head {
	padding: 10px;
        font-size: .8em
    }
    #head h1 {
        font-size: 3em;
    }
    .has-sidebar #wiki-body {
        left: 0;
    } 
    #head h1::before {
        display: none;
    }
}


/* ************************************ */
/* ************************************ */


.markdown-body h1 {
    font-size: 2.5em;
    color: #333;
    border-bottom: 2px solid #ddd;
}

.markdown-body {
    line-height: 1.3;
    font-size: 1em;
}

.markdown-body ul, .markdown-body ol {
    margin: 5px 0;
}


/* Other stuffs */
strong{
    color: #8D1A38;
}

h1 .emoji {
    width: 40px;
    height: 40px;
    vertical-align: -7%;
}

#wiki-history {
    margin: 10px auto;
    width: 100%;
    max-width: 1400px;
}