/**
 * iA Writer Template "Academic" - hacked with foghorn
 *
 * font-family: TimesNewRomanPS
 * font-size:   15px iPhone 5, 16px iPhone 6+, 17px iPad, 17px Mac, 18px
 * line-height: 1.6667 (30px @ font-size: 18px)
 * vert margin: 30px @ 1080px wide
 */

@import url(https://fonts.googleapis.com/css?family=Vollkorn:400,400italic,700,700italic&subset=latin);

/* From min-width: 80px */
html {
  font-family: "Vollkorn", Palatino, Times;
  font-weight: 300; /* SemiLight weight for non-Retina (@1x) */
  font-size: 1.15px; /* Overridden by responsive font sizing */
  line-height: 130%; /* 2.5 = 30px @ font-size: 18px */
}

/* Normal weight for Retina… */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), print {
  html {
    font-weight: 400;
  }
}

/* …but only until 414px breakpoint on OS X */
@media (-webkit-min-device-pixel-ratio: 2) and (min-width: 414px) and (min-device-width: 1152px) , (min-resolution: 192dpi) and (min-width: 414px) and (min-device-width: 1152px) {
  html {
    font-weight: 300;
  }
}

/* Responsive adjustments */

@media screen and (min-width: 81px) {
  html {
    font-size: 1.1px;
  }
}

@media screen and (min-width: 82px) {
  html {
    font-size: 1.2px;
  }
}

@media screen and (min-width: 83px) {
  html {
    font-size: 1.3px;
  }
}

@media screen and (min-width: 84px) {
  html {
    font-size: 1.4px;
  }
}

@media screen and (min-width: 85px) {
  html {
    font-size: 1.5px;
  }
}

@media screen and (min-width: 88px) {
  html {
    font-size: 1.7px;
  }
}

@media screen and (min-width: 90px) {
  html {
    font-size: 1.85px;
  }
}

@media screen and (min-width: 92px) {
  html {
    font-size: 2px;
  }
}

@media screen and (min-width: 97px) {
  html {
    font-size: 2.5px;
  }
}

@media screen and (min-width: 105px) {
  html {
    font-size: 3px;
  }
}

@media screen and (min-width: 114px) {
  html {
    font-size: 3.5px;
  }
}

@media screen and (min-width: 120px) {
  html {
    font-size: 4px;
  }
}

@media screen and (min-width: 135px) {
  html {
    font-size: 5px;
  }
}

@media screen and (min-width: 150px) {
  html {
    font-size: 6px;
  }
}

@media screen and (min-width: 165px) {
  html {
    font-size: 7px;
  }
}

@media screen and (min-width: 180px) {
  html {
    font-size: 8px;
  }
}

@media screen and (min-width: 180px) and (min-device-width: 1152px) {
  html {
    font-size: 7px;
  }
}

@media screen and (min-width: 200px) {
  html {
    font-size: 9px;
  }
}

@media screen and (min-width: 200px) and (min-device-width: 1152px) {
  html {
    font-size: 8px;
  }
}

@media screen and (min-width: 220px) {
  html {
    font-size: 10px;
  }
}

@media screen and (min-width: 220px) and (min-device-width: 1152px) {
  html {
    font-size: 9px;
  }
}

@media screen and (min-width: 240px) {
  html {
    font-size: 11px;
  }
}

@media screen and (min-width: 240px) and (min-device-width: 1152px) {
  html {
    font-size: 9px;
  }
}

@media screen and (min-width: 260px) {
  html {
    font-size: 12px;
  }
}

@media screen and (min-width: 260px) and (min-device-width: 1152px) {
  html {
    font-size: 10px;
  }
}

@media screen and (min-width: 280px) {
  html {
    font-size: 13px;
  }
}

@media screen and (min-width: 280px) and (min-device-width: 1152px) {
  html {
    font-size: 11px;
  }
}

@media screen and (min-width: 300px) {
  html {
    font-size: 14px;
  }
}

@media screen and (min-width: 300px) and (min-device-width: 1152px) {
  html {
    font-size: 12px;
  }
}

/* 15px @320 for iPhone 5 */
@media screen and (min-width: 320px) {
  html {
    font-size: 15px;
  }
}

@media screen and (min-width: 320px) and (min-device-width: 1152px) {
  html {
    font-size: 13px;
  }
}

/* For iPhone 6+ */
@media screen and (min-width: 414px) {
  html {
    font-size: 16px;
  }
}

@media screen and (min-width: 414px) and (min-device-width: 1152px) {
  html {
    font-size: 14px;
  }
}

@media screen and (min-width: 640px) {
  html {
    font-size: 16.5px;
  }
}

@media screen and (min-width: 640px) and (min-device-width: 1152px) {
  html {
    font-size: 15px;
  }
}

/* For iPad and above */
@media screen and (min-width: 768px) {
  html {
    font-size: 17px;
  }
}

@media screen and (min-width: 768px) and (min-device-width: 1152px) {
  html {
    font-size: 18px;
  }
}

/* For widescreen */
@media screen and (min-width: 1080px) {
  html {
    font-size: 18px;
  }
}


body {
  max-width: 38em;
  text-align: justify;
  text-justify: inter-word;
  color: #333;
}
body.wy-body-for-nav {
  margin: 0;
}

@media screen and (min-width: 1080px) {
  body {
    max-width: 900px;
  }
}

/* Headings and Paragraphs */
h1,
h2,
h3,
h4,
h5,
h6,
figure,
p {
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    /* 0.5em to act as space after floated h3 */
    padding: 0 0.5em 0 0;
    text-emphasis: inherit;
    font-weight: inherit;
    -webkit-margin-before: 0;
    -webkit-margin-after: 1.2em;
    -margin-after: 1.2em;
}
h1 {
    font-size:1.8em;
    margin-top: 0;
    font-weight: normal;
    }
h1, h4, h5 {
  text-align: center;
}
h1,
h2 {
    padding-top: 1em;
}
h2 {
    font-size:1.2em;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
h3 {
    font-size:1.2em;
    font-weight: 500;
    font-style: italic;
    margin-top:3em;
}



figure, figcaption {
  padding-top: 1em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.96em;
  font-weight: bold;
}

/* Indent Paragraphs and Figure captions */
p, figcaption {
  margin-top: 0;
}

p {
    margin-top:0;
    -webkit-hypens:auto;
    -moz-hypens:auto;
    hyphens:auto;
    }

ul {
    list-style: disc;
    padding-left:1.2em;
    
    }
ol {
    padding-left:1.2em;
    }
ul ul {
    list-style: circle;
    padding-left:1.2em;
    }

ol, ul, .line-block {
  line-height:inherit !important;
}

/* Prevent super and subscripts from affecting line height */
sup, sub {
  line-height: 0;
}

/* Emphasis */
strong,
blockquote em,
th {
  font-weight: 600;
}

/* definitions */
dt {
  font-weight: 600;
}

/* Ignore paragraph indentation in paragraph lists */
:-webkit-any(li) > :-webkit-any(p) {
    text-indent: 0;
}

/* Indent ordered lists in blockquotes */
blockquote ul,
blockquote ol {
  margin-left: calc((40 / 18) * -1rem); /* -40px when width = 1080px */
}

/* Blockquotes */
blockquote {
  margin-left: 6em;  0.8889rem = 16px when font-size: 12pt 
  margin-right: 0;
  margin-bottom: 0;
  margin-top: 0;
  padding-right: 0;
}

blockquote {
    margin-left: 1em;
    padding-left: 1em;
    border-left: 1px solid #ddd;
    font-style: italic;
}

blockquote p{
  text-indent: 0;
}

blockquote em strong,
blockquote strong em {
  font-weight: 700;
}

/* Page Breaks */

.pagebreak {
    content: "---Page Break---"
}


/* Override core.css */
@media screen and (min-width: 100px) {
  hr {
    margin-top: calc((30 / 18) * 1rem);
    margin-bottom: calc((29 / 18) * 1rem); /* -1px for border-bottom */
  }
}

/* Tables: see core.css */

table {
margin: 1em 0;
border: 1px solid #aaa;
border-collapse: collapse;
table-layout: auto;
}

th {
padding:.25em .5em;
background: #efefef;
border: 1px solid #ccc;  
}

td {
padding:.25em .5em;
border: 1px solid #ccc;
}

/* Code */

code,
samp,
kbd {
  font-size: calc((15 / 18) * 1em); /* 0.8333 = 15px @ font-size: 18px */
}

pre {
padding: 0.1rem;
overflow: hidden;
}

code {
    font-family: "Consolas", "Menlo", "Monaco", monospace, serif;
    /*background: #efefef;*/
    /*border: 1px solid #ccc;*/
    white-space: pre;
    word-wrap: normal;
    font-weight: bold;
}

pre {
  /*overflow: scroll;*/

  padding: 5px;
  white-space: nowrap;
}

div.highlight pre {
  font-family: "Consolas", "Menlo", "Monaco", monospace, serif  !important;
    /*border: 1px solid #ccc;*/
  white-space: pre;
  word-wrap: normal;
  font-weight:300  !important;
  font-size: 0.8em !important;
  border-radius: 3px;
  border: 6px solid #e6e6e6;
}

div[class^='highlight'] { 
  border: 0px !important;
}

code.literal {
    border: 1px solid #e6e6e6 !important;
    border-radius: 2px !important;
    white-space: pre-wrap !important;
    background-color: #e6e6e6 !important;
    font-family: "Consolas", "Menlo", "Monaco", monospace, serif !important;
    white-space: pre !important;
    word-wrap: normal !important;
    color: #333 !important;
    font-weight: bold !important;
}



/* ANCHORS */

a {
    color: #af1e1c;
    text-decoration: none;
    }
a:hover {
    text-decoration: underline;
    }
a:visited {
    color: #af1e1c !important;
}
a img {
    border:none;
    }
h1 a, h1 a:hover {
    color: #333;
    text-decoration: none;
    }

h1 {
    line-height: 1.4;
}

.wy-menu-vertical a, .wy-side-nav-search a {
  color: #af1e1c !important;
  text-decoration: none;
}
.wy-menu-vertical header, .wy-menu-vertical p.caption {
  color:  #333 !important;
}
.wy-side-nav-search >div.version {
  color: #333 !important;
}
.wy-side-nav-search {
  background-color: #FCFCFB !important;
}
.wy-nav-side {
  background-color: #FCFCFB !important;
  margin-left: 50px;
}
.wy-menu-vertical a:hover {
    background-color: #FCFCFB !important;
}
.wy-menu-vertical li.current>a {
    color: #404040;
    padding: .4045em 1.618em;
    font-weight: normal;
    position: relative;
    background: #e3e3e3;
    border: none;
    padding-left: 1.618em -4px;
    border: 0px;
}
.wy-side-nav-search input[type=text] {
    width: 100%;
    border-radius: 10px;
    padding: 12px 12px;
    border-color: #404040;
}
.wy-menu-vertical li.current a {
    border: 0px;
}
.wy-menu-vertical li.toctree-l1.current>a {
    border: 0px;
}
.wy-menu-vertical li.current {
    background: #FCFCFB;
}
.wy-menu-vertical li.toctree-l2.current>a {
    background: #e3e3e3;
    padding: .4045em 2.427em;
}

/* @media Rules */

/* Combined horizontal line styles, supplimenting core.css */

/* Adjust border color to imitate sub-pixel lines */
@media screen and (min-width: 150px) {
    hr,
    caption,
    tbody th,
    td {
        border-bottom-color: #ddd;
    }

    tbody th,
    td {
        border-top-color: #ddd;
    }
}

/* Intended border color from 200px */
@media screen and (min-width: 200px) {
    hr,
    caption,
    tbody th,
    td {
        border-bottom-color: #ddd;
    }

    tbody th,
    td {
        border-top-color: #ddd;
    }
}



/* REMOVE FOOTNOTES AND CITATIONS FROM SCREENS */
/*div.appendix {
  display: none;
}*/

/* Print styles */
/* font-size needs to be set here again otherwise responsive typography overrides it */
@media print {
  html {
    font-size: 11.5pt;
    /* text-align: justify; */
    text-justify: inter-word;
    background: transparent !important; /* Only on html due to checkboxes */
  }

  body {
    margin-left: 1in;
    margin-right: 1in;
    margin-top: 0;
  }
    
  /* Indent Paragraphs */
  p {
    text-indent: 0.5in;
    margin-top: 0;
  }

  /* ...but not the very first one */

  body > :first-child{
    text-indent: 0;
  }

  blockquote {
    margin-left: 1in;
  }
  
  blockquote p{
    text-indent: 0;
  }


  div.appendix {
    display: inline;
  }
    
    
  
}

/** OBJECTS → see core.css base styles for:
 *  - Indent Paragraphs
 *  - Footnotes
 *  - Task lists
 */

adding-left: 1inch;
}

/* Night Mode */

/* Imitate sub-pixel line for narrow widths */

/* First tweakpoint modifying core.css */
@media screen and (min-width: 150px) {
  .night-mode hr,
  .night-mode caption,
  .night-mode tbody th,
  .night-mode td {
    border-bottom-color: #888;
  }

  .night-mode tbody th,
  .night-mode td {
    border-top-color: #888;
  }
}

/* Intended border color from 200px */
@media screen and (min-width: 200px) {
  .night-mode hr,
  .night-mode caption,
  .night-mode tbody th,
  .night-mode td {
    border-bottom-color: #888;
  }

  .night-mode tbody th,
  .night-mode td {
    border-top-color: #888;
  }
}

/* Intended border color from 200px for OS X */
@media screen and (min-width: 200px) and (min-device-width: 1152px) {
  .night-mode hr,
  .night-mode caption,
  .night-mode tbody th,
  .night-mode td {
    border-bottom-color: #888;
  }

  .night-mode tbody th,
  .night-mode td {
    border-top-color: #888;
  }
}




/* Task Lists */

.task-list-item-checkbox {
  width: 1.6667rem; /* line-height */
  height: 1.6667rem; /* same as width */
  background-position: 71% 41%; /* tweak position */
}

.header p {
    float: right;
    margin: auto;
    padding: 0;
}


/* FOGHORN */
header, nav, article, footer {
    width: 700px;
    margin:0 auto;
    }
body.wy-body-for-nav footer {
  width: 100%;
}
article {
    margin-top: 4em;
    margin-bottom: 4em;
    min-height: 400px;
    }
footer {
    margin-bottom:50px;
    }
video {
    margin: 2em 0;
    border:1px solid #ddd;
    }

nav {
    font-size: .9em;
    font-style: italic;
    border-bottom: 1px solid #ddd;
    padding: 1em 0;
    }
nav p {
    margin: 0;
    }
nav.wy-nav-side {
    padding: 0;
    font-style: normal;
    font-size: .8em;
    text-align: left;
}
section.wy-nav-content-wrap {
  background: #fcfcfc;
}

div.highlight-flow {
    border: 0px !important;
}

div.tags a {
  color:#4169E1;
  margin-right: 3px;
}


.pin-title { font-size:1em;text-decoration:none;}
.pin-description { color:#555;}
.pin-tag { text-decoration:none;font-size:0.9em;color:#4169E1; margin-right: 3px; }

div#additional_resources {
  position: absolute;
  width: 100%;
  left: 0%;
  text-align: center;
  background-color: #efefef;
  margin-top:200px;
  padding-bottom:100px;
}

.night-mode {
    background-color: #464643 !important;
    color: white;
}

.night-mode body {
    background-color: #464643 !important;
    color: white;
}

.night-mode code {
  background-color: #66665f;
}



.night-mode .hljs {
  background-color: #66665f;
  background: #3d3d3b;
  display: block;
  overflow-x: auto;
  padding: 0.5em;
  border: 5px solid #66665f;
  border-radius: 2px;
  white-space: pre-wrap;
}





.night-mode a {
    color: #ef3e3b !important;
}

.night-mode  div#additional_resources {
  background-color: #282826;
}

.night-mode  .bigfoot-footnote__button {
  background-color: #66665f;
  color: white;
}

.night-mode  .bigfoot-footnote__button:hover {
  background-color: #5b5b55;
  color: white;
}

.night-mode  .bigfoot-footnote__button:active {
  background-color: #5b5b55;
  color: white;
}

.night-mode  .bigfoot-footnote__button:after {
  color: white;
}

.night-mode  .bigfoot-footnote__wrapper, .night-mode  .bigfoot-footnote__tooltip, .night-mode  .bigfoot-footnote__content, .night-mode th {
  background-color: #3d3d3b;
}




