/* CODE_BLOCKS: Change default bootstrap 'pre' sizing to make smaller and reduce space above code block  */
pre {
    font-size: 12px;
    padding-bottom: 0.2rem;
    padding-top: 0.2rem;
    margin-top: -8px
}
/* My custom formatting for cfg_syntax shortcode */
.cfg-syntax-box {
    font-family: 'Courier New', sans-serif;
    overflow: auto;
    word-wrap: normal;
    overflow-wrap: normal;
    white-space: pre;
    font-weight: 600;
    font-size: 12px;
    margin-top: -8px;
    padding: 4px 8px
}
cfg-syntax-light {
    font-weight: normal;
    font-style: italic
}
/* The single ` code snippet box */
code {
    color: black;
}

/* Table of contents formatting for each layer, only goes up to H5 */
#TableOfContents {
    margin-top: 15px;
    margin-bottom: -15px;
    font-size: 15px;
    padding-left: 2rem;
    line-height: 26px;
}
#TableOfContents ul {
    margin-top: 0px;
    margin-bottom: 0px;
    padding-left: 2.0rem;
    list-style-type: disc;
    font-weight: 900;
}
#TableOfContents ul ul{
    list-style-type: circle;
    font-weight: 600;
}
#TableOfContents ul ul ul{
    font-weight: 400
}
#TableOfContents ul ul ul ul{
    font-weight: 300
}
#TableOfContents ul ul ul ul ul{
    font-weight: 200
}

/* Changing the font size and distance between lines for all webpages */
body {
    line-height: 1.5;
    font-size  : 15px;
}
/* Reduce the top and bottom margin for all paragraphs, so paragraph width halved */
p {
    margin: 18px 0;
}

/* Reduce space between header and first paragraph */
@media (min-width:768px) {
    .post-container {
        margin-top: -15px;
    }
}
/* Reduce the top and bottom margin for headers */
.post-container h2 {
    margin: 19px 0 -3px;
}
.post-container h3,
.post-container h4 {
    margin: 19px 0 -7px;
}

/* Reduce the top and bottom margin and indentation for lists and nested lists */
.post-container ul,
.post-container ol {
    padding-left: 30px;
    margin: -13px 0 18px;
}
.post-container ul ul,
.post-container ol ol {
    padding-left: 20px;
    margin: 0 0 0;
}

/* To change general navibar done for desktops */
@media only screen and (min-width:768px) {
    .navbar-custom .navbar-brand {
        font-size   : 20px;
        padding    : 20px;
    }
}
/* custom navibar (right-hand side) is done for all sizes */
.navbar-custom .nav li a {
    font-size     : 12px;
}

/* All these settings are for non-tablet screensize, so relate to headers and titles (not subtitles) mainly */
@media only screen and (min-width:768px) {
    /* Size of the front page header, width is text just front page (takes precedence */
    .intro-header .site-heading {
        width: 15%;
        padding: 120px 0 110px 0;
    }
    /* Size and positioning of the of the front page subheader */
    .intro-header .site-heading .subheading{
        width: 65%;
        margin: 0 0 0 4rem;
    }
    /* Text size on front page header */
    .intro-header .site-heading h1,
    .intro-header .page-heading h1 {
        font-size: 80px;
        line-height: 0.62;
    }
    /* Size of whole header area for post and main page, including what is cropped on image */
    .intro-header .post-heading,
    .intro-header .page-heading {
        padding: 130px 0px 130px;
    }
    /* Text size on post header */
    .intro-header .post-heading h1 {
        font-size: 45px;
        text-align: center
    }
    .intro-header .post-heading .subheading {
        font-size  : 27px;
        font-style : italic;
        margin-top : -15px;
        text-align: center
    }
}

/* Date format in posts */
.intro-header .post-heading .meta {
    text-align:center;
    display:block;
    font-family: Lora, 'Times New Roman', serif;
    font-size  : 16px;
    margin-top : -14px;
}
/* Date format in page and archive lists */
.list-meta {
    font-family: Lora, 'Times New Roman', serif;
    font-style : italic;
    font-size  : 15px;
    margin-bottom : -25px;
    margin-top: 12px
}

/* Spacing between title, subtitle and post preview on homepage */
.post-preview>a>.post-subtitle {
    margin-top: -3px;
    margin-bottom : 24px;
}
.post-content-preview {
    margin-top: -13px;
    margin-bottom : -2px;
}
.post-content-preview{
    font-size:14px;
}

/* Spacing between title and post preview on archive */
#blog-archives p {
    margin-top: 20px;
    margin-bottom : -10px;
}
#blog-archives h3 {
    margin-top: 14px;
    margin-bottom : 5px;
}

/* Move the next previous and next buttons in a touch */
.pager .next>a,
.pager .next>span {
    position:relative;
    right:10px
}
.pager .previous>a,
.pager .previous>span {
    position:relative;
    left:10px
}
/* Social media in the middle of the pager (previous and next buttons) */
.pager .middle-pager a {
    font-size: 1.33333em;
    border:none;
    padding: 0;
}
.pager .middle-pager a:hover,
.pager .middle-pager a:focus {
    border-radius: 50%;
    background-color: #fff;
    color: #0085a1;
    border: 0px
}

/* Setting for flex at bottom of posts, 3 separate objects in 1 margin */
.container-flex {
    display: flex;
}
.flex-left {
    width: 110%;
    margin-left: 12px
}
.flex-middle {
    width: 110%;
}
.flex-right {
    width: 50%;
    text-align: center;
    margin-right: 10px
}
.flex-meta {
    font-style: italic;
    font-size: 10px;
    margin-top: -20px;
}
/* Used for aboutme page */
.flex-about-left {
    width: 50%;
    text-align: center;
    /* margin-left: 10px */
}
.flex-about-right {
    width: 60%;
    text-align: center;
    /* margin-right: 10px */
}
/* Used by archive for footer */
.flex-arch-left {
    font-size: 17px;
    text-align: center;
    width: 110%;
    margin-left: -100px
}
.flex-arch-middle {
    text-align: center;
    width: 100%;
}
.flex-arch-right {
    width: 100%;
    text-align: center;
    margin-right: 10px
}

/* Darkening all the sidebar text, tag and About Me size/ width */
.sidebar-container {
    color     : #555555;
    font-size:14px
}
.sidebar-container h5 {
    color          : #404040;
}
.sidebar-container h5 a {
    color           : gray!important;
}
.sidebar-container h5 b {
    color           : #404040!important;
}
.sidebar-container a {
    color : #555555!important;
    
}
.sidebar-container .tags a {
    border-color : #555555;
    font-size:12px
}
.tags a {
    margin          : 0 0px;
    margin-bottom   : 6px;
}
.sidebar-container .short-about p {
    width        : 108%;
}
/* Size of social media images (github) in sidebar */
.sidebar-container .short-about .list-inline>li {
    font-size: 1.33333em;
    padding        : 0 10px;
}

/* All the formatting for the search page (search.html) */
/* Space after the bottom of each search entry */
.post-item {
    margin-bottom: 30px;
}
/* Space at the top summary */
.post-snippet {
    margin-top: -10px;
}
/* Formatting for title and highlighting when match search */
.post-link .ais-Highlight {
    color: #111;
    font-style: normal;
    text-decoration: underline;
    margin-bottom: 0px;
}
/* Formatting for summary and tags highlighting when match search */
.post-snippet .ais-Highlight,
.post-tag .ais-Highlight {
    color: #2a7ae2;
    font-style: normal;
    font-weight: bold;
}

/* Formatting for the tag bubble boxes */
.post-tag {
    display        : inline-block;
    border         : 1px solid #555555;;
    border-radius  : 999em;
    padding        : 0 10px;
    color          : #555555;
    line-height    : 24px;
    font-size      : 12px;
    text-decoration: none;
    margin         : 6px 3px 0px;
    background-color: rgba(255, 255, 255, .4);
}
