/**
 * Primary styles
 *
 * Author: Ty Langlois
 */

/* Give the html and body some style */
html, body {
  background-image: url('https://blog.tjll.net/img/regalblue_small_darker.jpg');
  background-color: #000;
}

/* Wrapper is intended to contain the entire viewport */
#wrapper { padding: 0em 1em; }

/* Container styling */
#container {
  background-color: #fff;
  max-width: 1000px;
  min-width: 400px;
  margin: 0 auto;

  box-shadow: 0 0 30px #000;

  position: relative;
  padding: 1em 1.6em;
}

/* Very general font settings */
#header h1,
#header h2,
#content h3,
#content h4,
#content h5,
#content h6 {
  font-family: "Exo 2";
  /* font-family: Verdana, Helvetica, Arial, sans-serif; */
  font-weight: normal;
}
#content p, #content > ul, #content > ol {
    line-height: 1.45em;
    font-size: 1.3em;
}
#content ul li {
    font-size: 1em;
}
#content {
    font-family: "Open Sans", Verdana, Helvetica, Arial, sans-serif;
}

/* Header styling */
#header a { text-decoration: none; color: #444; }
#header h1 {
  font-size: 3.5em;
  display: inline;

  text-shadow: #ccc 0.1em 0.1em 0.2em;
}
#header h2 {
  font-size: 1.4em;
  float: right;
  padding-top: 0.2em;

  text-shadow: #ccc 0.1em 0.1em 0.15em;
  text-align: right;
}

/* Navigation styling */
#nav {
  font-family: Helvetica, sans;
  font-weight: bold;
  clear: right;
  position: relative;
}
#nav #menu {
  margin: 1em -1.6em;

  background: -webkit-gradient(linear, 0 0, 0 bottom, from(#449ce0), to(#193a53));
  background: -moz-linear-gradient(#449ce0, #193a53);
  background: linear-gradient(#449ce0, #193a53);

  -pie-background: linear-gradient(#449ce0, #193a53);
  behavior: url(https://blog.tjll.net/css/PIE-1.0.htc);

  filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#449ce0', endColorstr='#193a53');

  position: relative;
}
#nav #menu a, #nav ul#menu a:visited {
  color: #fff;
  text-decoration: none;

  text-shadow: #333 0.15em 0.15em 0.3em;
}
#nav #menu a:hover { color: #000; }

#nav #menu a:first-child li {
  padding-left: 0.9em;
}
#nav #menu li {
  display: inline-block;
  padding: 0.47em;
}
#nav #menu a.selected {
  font-weight: bold;
  font-style: italic;
}
#nav #menu a.selected li {
  background: -webkit-gradient(linear, 0 0, 0 bottom, from(#449ce0), to(#2F70A2));
  background: -moz-linear-gradient(#449ce0, #2F70A2);
  background: linear-gradient(#449ce0, #2F70A2);

  filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#449ce0', endColorstr='#2F70A2');
}
#nav #menu a:hover li {
  background: -webkit-gradient(linear, 0 0, 0 bottom, from(#193a53), to(#449ce0));
  background: -moz-linear-gradient(#193a53, #449ce0);
  background: linear-gradient(#193a53, #449ce0);

  filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#193a53', endColorstr='#449ce0');

  text-shadow: #fff 0.15em 0.15em 0.5em;
}
#nav #submenu {
  position: relative;
  top: -0.6em;
  margin: 0 1em;
  padding: 0.5em;
  background-color: #2F70A2;
  color: #fff;
  display: hidden;

  -webkit-border-bottom-right-radius: 8px;
  -webkit-border-bottom-left-radius: 8px;
  -moz-border-radius-bottomright: 8px;
  -moz-border-radius-bottomleft: 8px;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}
#nav #search {
  position: absolute;
  right: 0;
}
#nav #search-results {
  position: absolute;
  top: 4.85em;
  right: -1em;
  margin: 0 1em;
  padding: 0.5em;
  background-color: #2F70A2;
  color: #fff;
  display: none;

  -webkit-border-bottom-right-radius: 8px;
  -webkit-border-bottom-left-radius: 8px;
  -webkit-border-top-left-radius: 8px;
  -moz-border-radius-bottomright: 8px;
  -moz-border-radius-bottomleft: 8px;
  -moz-border-radius-topleft: 8px;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  border-top-left-radius: 8px;
}
#nav #search-results a,
#nav #search-results a:active,
#nav #search-results a:visited { color: #fff; }
#nav #search-results a:hover { color: #999 }
#nav #submenu li { display: inline-block; }
#nav #submenu:hover { display: block; }
/* Breadcrumb styling */
#breadcrumb {
  margin: 0.9em 0 0.5em 1em;
  line-height: 1em;

  color: #ccc;
  font-family: "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif;
  font-style: italic;
  font-weight: normal;
  font-size: 1.2em;
}
#breadcrumb #marker { margin-right: 0.4em; }
#breadcrumb .spacer { margin: 0 0.2em 0 0.2em; }
#breadcrumb a {
  text-decoration: none;
  border-bottom: 1px dotted #ccc;
}

/* Main content styling */
#content { margin: 0.25em 0 0.5em 0; }
#content h3, #content h4 { text-transform: capitalize; }
#content h3 {
  font-size: 2.3em;
  margin-bottom: 0.3em;
  margin-top: 0.5em;
}
#content h3 a {
  text-decoration: none;
  position: relative;
  bottom: 0.1em;
}
#content h4 {
  font-size: 1.9em;
  margin: 0.6em 0em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid #ccc;
}
#content post h4:first-child { border-bottom: none; }
#content h4 a,
#content h5 a,
#content h6 a { text-decoration: none; }
#content h5 {
  font-size: 1.5em;
  margin: 0.6em 0em;
}

#content h6 {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 0.5em;
}

#content em { font-style: italic; }

#content .sub {
  font-size: 1.1em;
  font-family: "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif;
  font-style: italic;
  font-weight: normal;
  color: #666;
  display: block;
  margin: 0.5em 0 0.3em 0;
  padding: 0 0 0.5em 1em;
}
#content hr.postsep {
  background: url(https://blog.tjll.net/img/hr.png) no-repeat center;
  border: 0;
  padding: 1.0em 1.8em;
  margin: 1.7em auto;
}
#post-details li {
    display: inline;
}
#post-details li:first-child:before {
    content: '';
}
#post-details li:before {
    content: '|';
    margin-right: 0.4em;
}
#content p { margin-bottom: 1em; }
#content p:last-child:after { content: "  \262F"; }
#content > post p:last-child:after { content: "  \2026"; }
#content blockquote p:last-child:after { content: ""; }

#content blockquote {
  margin: 1em;
  color: #666;
  font-size: 0.9em;
  font-style: italic;
}

#content figcaption {
  color: #666;
  font-family: "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif;
  font-style: italic;
  font-weight: normal;
  font-size: 1.1em;

  text-align: center;

  margin-top: 0.2em;
  margin-bottom: 1em;
}
#content figure {
  text-align: center;
}
#content figure.highlight {
  text-align: left;
}
#content figure.mainline {
    margin-top: 0.2em;
}
#content img.mainline {
    max-width: 100%;
}
#content figure.righty {
  float: right;
  margin-left: 1em;
}
#content figure.lefty {
  float: left;
  margin-right: 1.4em;
}

.responsive {
    max-width: 100%;
    height: auto;
}

#content .excerpt figure {
  display: none;
}

#content > ul,
#content > ol {
  margin-bottom: 1em;
  margin-top: 1em;
  font-size: 1.3em;
}
#content > ul li,
#content > ol li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
code, #content pre {
  color: #fff;
  background-color: #333;
  border-radius: 5px;
}
p code, li code { background-color: #666; }
#content li code { font-size: 0.8em; }
#content p code { font-size: 0.8em; }
#content p code, #content li code { padding: 0.2em 0.5em; }
#content pre {
  margin: 2em 0;
  box-shadow: 5px 5px 15px #333;
}
#content > hr { width: 75%; margin: 1em auto; }

#plot-controls {
  width: 100%;
  text-align: center;
  margin: 1em 0;
}
#content label,
#content input {
  padding: 1em;
}

#content .yelling {
  font-size: 3em;
}

#content #page-nav { margin-top: 0.5em; }
#content #page-nav #prev { float: left; }
#content #page-nav #next { float: right; }

#content .footnotes {
  font-size: 0.65em;
}

/* Footer styles */
footer {
  color: #666;
  font-family: "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif;
  font-style: italic;
  font-weight: normal;

  margin-top: 0.9em;
  padding-top: 1.1em;
  text-align: right;

  border-top: 1px solid #ccc;
}
#email { float: left; }
#timestamp {
    opacity: 0.5;
}
/* #copyright { */
/*     float: right; */
/* } */

.highlight .puppet .nt {
    color: lightblue;
}

/* Clearfix hacks */
.group:before,
.group:after {
  content:"";
  display:table;
}
.group:after {
  clear:both;
}
.group {
  zoom:1; /* For IE 6/7 (trigger hasLayout) */
}

/* These are some IE overrides - require Paul Irish's conditional HTML classes fix */
.ie #container,
.ie #nav ul#submenu,
.ie #content pre,
.ie #content p code,
.ie #content li code,
.ie #nav #menu,
.ie #nav #menu a.selected li,
.ie #nav ul#menu a:hover li {
  behavior: url(https://blog.tjll.net/css/PIE-1.0.htc);
}

.ie #nav #menu a.selected li {
  -pie-background: linear-gradient(#449ce0, #2F70A2);
}

.ie #nav ul#menu a:hover li {
  -pie-background: linear-gradient(#193a53,#449ce0);
}

.ie6 #menu li { float: left; }

.ie6 #nav { margin-top: 1em; }

.ie6 #content p { padding-top: 1em; }

.ie6 #menu a:hover { cursor: pointer; }

