---
--- /* empty YAML block */

/*** Reset ***/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
    display: block;
}
ol {
    list-style-type: bullet;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
    content: '';
    content: none;
}

/* Note: See table.css for table customizations */

/*** Basics ***/
body {
    font-family: Verdana, serif;
    font-size:16px;
    line-height: 1.7;
    text-align: justify;
}

a, a:active, a:visited {
    text-decoration: none;
    padding-bottom: 2px;
}
a:hover {
    text-decoration: underline;
}

p { margin-bottom: 15px; }
ul, ol { padding: 0 0 18px 30px; }
ol li, ul li { margin-top: 10px; margin-bottom: 10px; }
em, i { font-style: italic; }
strong, b { font-weight: bold; }
small { font-size: 0.85em; }
sup { vertical-align: super; font-size: 0.85em; }
sub { vertical-align: sub; font-size: 0.85em; }

code {
    font: 0.85em Monaco, Courier, Monospace;
}

blockquote {
    margin: 22px 22px;
    padding: 0 20px;

    /* TODO: for some reason putting this in colors-templatized.css doesn't work */
    border-left: 2px solid var(--blockquote-left);
    font-size: 1.0em;
    font-style: italic;
    line-height: 1.5em;
}

acronym, abbr {
    cursor: help;
    letter-spacing: 1px;
    border-bottom: 1px dashed;
}


figcaption {
    text-align: center;
}


h1 {
    font-size: 200%;
    margin: 24px 0 24px 0;
    text-align: left;  /* don't justify because justified big text can leave huge gaps */
}
h2 {
    font-size: 160%;
    font-weight: bold;
    margin: 20px 0 20px 0;
    text-align: left;  /* don't justify because justified big text can leave huge gaps */
}
h3 {
    font-size: 125%;
    margin: 0 0 10px 0;
    text-align: left;  /* don't justify because justified big text can leave huge gaps */
}
h4 {
    font-size: 100%;
    margin: 0 0 10px 0;
}

/* make fonts smaller on mobile */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 160%;
        margin: 16px 0 16px 0;
    }
    h2 {
        font-size: 140%;
        margin: 12px 0 12px 0;
    }
}

.sneaky {
    display: none;
}

/* `tooltip` is used to show footnotes on hover */

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    width: 400px;
    text-align: justified;
    border-radius: 6px;
    padding: 10px;

    /* Position the tooltip text */
    position: absolute;
    z-index: 1; /* Make sure tooltip goes on top of page */
    top: 100%;
    margin-left: -200px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.tooltip .reversefootnote {
    /* Hide the return link in footnote tooltips */
    display: none;
}

.credence {
    vertical-align: sub;
    font-size: 1em;
    font-weight: lighter;

    /* Push it down a bit more */
    position: relative;
    bottom: -0.1em;
}

@media (pointer: coarse), (hover: none) {
    /* Don't display tooltips on mobile/touch devices. Theoretically they should
       work but they're displaying as transparent, so this is a workaround to remove
       them entirely for now. */
    .tooltip .tooltiptext {
        display: none;
    }
}


/*** Useful Classes ***/
.clear { clear: both; }
.float-left { float: left; }
.float-right { float: right; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.img-left { float: left; margin: 4px 10px 4px 0; }
.img-right { float: right; margin: 4px 0 4px 10px; }
.img-middle { vertical-align: middle; }
.nopadding { padding: 0; }
.nounderline { text-decoration: underline; }

/* Tabs */

.tab {
    float: left;
    height: 44px;
    width: 100px;
    margin: 0 8px -1px 0;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    list-style-type: none;
    position: relative;
    bottom: 26px;
}

@media (max-width: 768px) {
    #main-tabs {
        /* display: none; */
    }

    .tab {
        width: 80px;
    }
}

.tab li {
    display: inline-block;
    padding-left: 14px;
}

.tabSelected {
    border-bottom: none;
}

/*** Structure ***/

#page {
    width: 770px;
    margin: 0 auto;
    position: relative;
}

#header {
    align: center;
    margin: 40px auto 50px auto;
    padding: 15px 35px 15px 35px;
}
#header h1 {
    font-size: 175%;
    margin-bottom: 4px;
}
#header h1 a {
    border: none;
}

@media (max-width: 768px) {
    #header {
        margin: 20px auto 25px auto;
        padding: 15px;
    }

    /* Make header font smaller on mobile */
    #header h1 {
        font-size: 125%;
        margin: 20px auto 25px auto;
    }

    #site-description {
        font-size: 75%;
    }
}

#footer {
    width: 770px;
    margin: 50px auto 20px auto;
    padding-top: 10px;
    font-size: 0.85em;
}

#content {
    width: 770px;
    margin: 0 auto;
    top: 0;
}

#sidebar {
    position: absolute;
    text-align: right;
    width: 180px;
    left: -240px;
}

#sidebar li {
    list-style: none;
    margin: 2px 0;
}

#sidebar a {
    border: none;
    font-family: "Helvetica Neue", "Helvetica", serif;
    font-size: 1.2em;
    padding: 2px 4px;
}

#sidebar-mobile {
    display: none;
}

#sidebar-mobile-label {
    display: none;
}

/* When screen gets too small, switch sidebar to a dropdown menu */
@media (max-width: 1060px) {
    .sidebar-divider {
        display: none;
    }

    #sidebar {
        position: relative;
        width: 100%;
        left: 0;
    }

    #sidebar li {
        display: inline;
    }

    #sidebar-mobile {
        display: block;
    }

    #sidebar-mobile-label {
        display: block;
    }
}

#adbar1 {
    position: absolute;
    width: 180px;
    top: 0px;
    right: ;
}

#projects ul {
    width: 700px;
    list-style: none;
}

#projects li {
    float: left;
    width: 300px;
    height: 200px;
    margin: 20px auto 20px auto;
    border-radius: 5px;
}

#projects img {
    display: block;
    margin: auto;
    width: 260px;
    height: 168px;
    border-radius: 5px;
}

.barchart {
    display: inline-block;
    align: center;
    height: 150px;
    width: 30%;
}

.alignleft {
    float: left;
}
.alignright {
    float: right;
}

hr.thick {
    border-style: double;
    border-width: 10px;
}

/*** Structure for two-column page  ***/

#columns {
    margin: 0 auto;
    position: relative;
    /* position: fixed; */
    left: 180px;
    width: 60em;
}

#colheader {
    /* position: fixed; */
    width: 60em;
    left: 180px;
    margin: 3em auto 3em auto;
}
#colheader h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}
#colheader h1 a {
    border: none;
}

#leftcol {
    float: left;
    width: 45%;
}

#rightcol {
    float: right;
    width: 45%;
}

#sectiontitle {
    font-size: 1.2em;
    font-weight: bold;
}

/*** Posts ***/
article {
    margin-bottom: 40px;
    padding: 5%;
    border-radius: 5px;
}

article h1 a {
    border: none;
}
article h1 a.anchor {
    margin-left: 8px;
}

article img {
    max-width: 100%;
    display: block;
    text-align: center;
    margin: 0 auto 1em auto;
}

.footnotes img {
    width: 680px;
    display: block;
    text-align: center;
    margin: 0 auto 1em auto;
}

article .meta {
    padding-top: 6px;
    font-size: 0.85em;
    font-style: italic;
}

#articleborder {
    margin-top: 40px;
    margin-bottom: 40px;
    margin-left: 20px;
    margin-right: 20px;
}

img.left {
    float: left;
    margin: 0 1em 1em 0;
}
img.right {
    float: right;
    margin: 0 0 1em 1em;
}
img.center {
    display: block;
    text-align: center;
    margin: 0 auto 1em auto;
}

.mathbox {
    width: 700px;
    overflow: auto;  /* scroll in case of overflow, otherwise no scroll */
}

/*** Archived Article ***/
archivedarticle {
    width: 770px;
    margin-bottom: 5px;
    padding: 5%;
    border-radius: 5px;
}


/*** Comment Form ***/
#commentform table, th, tr, td {
    border: none;
}


/*** Pagination ***/
.postnavigation {
    padding-top: 10px;
    text-align: center;
    font-size: 0.85em;
}

.postnavigation .left {
    float: left;
}

.postnavigation .right {
    float: right;
}

/*** Media Queries ***/
@media all and (max-width: 870px) {

    #page, #colheader, #content, #footer {
	width: inherit;
	padding-left: 10px;
	padding-right: 10px;
    }

    #sidebar {
	position: relative;
	text-align: left;
	width: 100%;
	left: 0;
	margin: 10px 10px 20px 10px;
    }

    #sidebar nav select.mnav {
	display: block;
	margin-bottom: 15px;
    }

}



/*** Icons ***/
@font-face {
    font-family: 'solarthemeicons';
    src: url('../fonts/solarthemeicons.eot');
    src: url('../fonts/solarthemeicons.eot#iefix') format('embedded-opentype'),
    url('../fonts/solarthemeicons.woff') format('woff'),
    url('../fonts/solarthemeicons.ttf') format('truetype'),
    url('../fonts/solarthemeicons.svg#solarthemeicons') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^="icon-"]:before, [class*=" icon-"]:before {
    font-family: "solarthemeicons";
    font-style: normal;
    font-weight: normal;
    speak: none;
    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    margin-right: .2em;
    text-align: center;
    font-variant: normal;
    text-transform: none;
    line-height: 1.7;
}

.icon-sun:before { content: '\e801'; }
.icon-anchor:before { content: '\e800'; }
.icon-anchor {
    font-size: 65%;
}

.button {
	font: bold;
	border-radius: 5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	display: inline-block;
	padding: 8px 40px 8px;
	text-decoration: none;
	cursor: pointer;
	border-style: none;
	text-align: center;
	overflow: visible;
}

.math {
    text-align: center;
    font-size: 125%;
    font-family: monospace;
}

.collapsible-content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
}

.checkmark-image {
    width: 20px;
    height: 20px;
    align: center;
    margin: 0 auto 0 auto;
}
