/* Increase margin of standard .icon-ul. */
.icon-ul {
    margin-left: 4em;
}

/* Add background color to GitHub icon. */
a.sc-github-circled {
    background-color: #111010;
}

/* Add background color to Mastodon icon. */
ul.social > li > a.sc-at {
    background-color: #3088d4;
}

/* Standard image box with image and caption (em) for content. */
.image-box {
    margin: 0;
    padding: 1em;
    background-color: #ddd;
    font-size: 0.8em;
    font-style: italic;
}

.image-box > img {
    display: block;
    margin: 0 auto;
}

/* Callout styles. */
main article blockquote {
    line-height: 1.5em;
    font-weight: 400;
    background-color: rgba(0, 0, 100, 0.1);
    border-left: 8px solid rgba(0, 0, 100, 0.07);
}

/* Basic table styles. */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

table.docutils {
    border: 0;
    font-size: 12px;
}

table.docutils td {
    border: 1px solid #ddd;
}

table.docutils th {
    border: 0;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0;
}

table.docutils tr:nth-of-type(odd) td {
    background: #eee;
}

/* Console styles. */
div.highlight > pre {
    border: 1px solid #999;
    border-left-width: 5px;
    border-radius: 0;
}

div.highlight > pre > span.go:before {
	content: "[user@host] $ ";
    color: #333;
}

div.highlight > pre > span.gp {
    display: none;
}


/* Syntax highlight styles. */
.highlight {
    background: none;
}

table.highlighttable {
    table-layout: fixed;
    white-space: nowrap;
    width: 100%;
    border: 1px solid #999;
}

table.highlighttable td.linenos {
    padding: 0;
    border-top: 0;
    width: 35px;
    text-align: right;
    color: #aaa;
}

table.highlighttable td.linenos div.linenodiv pre {
    padding: 5px;
    margin: 0;
}

table.highlighttable td.code {
    padding: 0;
    border-top: 0;
}

table.highlighttable td.code div.highlight pre {
    padding: 5px;
    margin: 0;
    border: none;
    border-left: 1px solid #ddd;
}

/* Bootstrap style formatting for pre */
tt.docutils.literal {
    padding: 2px 4px;
    color: #c7254e;
    background-color: #f9f2f4;
    border-radius: 4px;
}

/* Contain plotly graphs so they can be horizontally scrolled on mobile. */
.overflow-x-container {
    white-space: nowrap;
    overflow-x: auto;
}

.overflow-x-container > .plotly-graph-div {
    min-width: 600px;
}

/* Center static image graphs inside plotly divs (no js backup images). */
.plotly-graph-div img {
    display: block;
    margin: 0 auto;
}

/* Youtube */
.youtube iframe {
    display: block;
    margin: 0 auto;
}

/* Add spacing for footer logos. */
footer .logos {
    margin-top: 5px;
}

footer .logos a {
    margin: 0 10px;
}

/* Misc. */
.em {
    font-style: italic;
}

/* Adjustments for small screens. */
@media (max-width: 576px) {

    /* Increase base font size and line spacing. */
    body {
        font-size: 1.2em;
        line-height: 1.5em;
    }

    /* Hide logo image. */
    #site-logo {
        display: none;
    }

    /* Decrease footprint of site title. */
    #site-title {
        margin: 0;
        font-size: 1.65em;
    }

    /* Decrease footprint of nav. */
    nav ul.list {
        padding-bottom: 0;
    }

    /* Decrease footprint of social icons. */
    ul.social {
        padding-top: 0.5em;
    }
    ul.social li {
        font-size: 0.6em;
    }
    ul.social a {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 1em;
    }

    /* Remove call-out margins. */
    main article blockquote {
        margin: 0;
    }
}