/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2015 John Otander
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
*/

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

pre,
code {
  font-family: Menlo, Monaco, "Courier New", monospace;
}

pre {
  padding: .5rem;
  line-height: 1.25;
  overflow-x: scroll;
}

a,
a:visited {
  font-size: 1rem;
  color: #3498db;
}

a:hover,
a:focus,
a:active {
  color: #2980b9;
}

.modest-no-decoration {
  text-decoration: none;
}

html {
  font-size: 12px;
}

@media screen and (min-width: 32rem) and (max-width: 48rem) {
  html {
    font-size: 15px;
  }
}

@media screen and (min-width: 48rem) {
  html {
    font-size: 16px;
  }
}

html {
  line-height: 1.85;
  padding-left: 2rem;
  padding-right: 2rem;
}

p,
.modest-p {
  font-size: 1rem;
  margin-bottom: 1.3rem;
}

h1,
.modest-h1,
h2,
.modest-h2,
h3,
.modest-h3,
h4,
.modest-h4 {
  margin: 1.414rem 0 .5rem;
  font-weight: inherit;
  line-height: 1.42;
}

h1,
.modest-h1 {
  margin-top: 0;
  font-size: 3.998rem;
}

h2,
.modest-h2 {
  font-size: 2.827rem;
}

h3,
.modest-h3 {
  font-size: 1.999rem;
}

h4,
.modest-h4 {
  font-size: 1.414rem;
}

h5,
.modest-h5 {
  font-size: 1.121rem;
}

h6,
.modest-h6 {
  font-size: .88rem;
}

small,
.modest-small {
  font-size: .707em;
}

/* https://github.com/mrmrs/fluidity */

img,
canvas,
iframe,
video,
svg,
select,
textarea {
  max-width: 100%;
}

/*
html {
  font-size: 18px;
  max-width: 100%;
}
*/

body {
  color: #444;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  margin: 0 auto;
  max-width: 48rem;
  line-height: 1.45;
  padding: .25rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Arimo, Helvetica, sans-serif;
}

h1,
h2,
h3 {
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 1.15rem;
  padding-bottom: .5rem;
  text-align: center;
}

blockquote {
  border-left: 8px solid #257fad;
  padding: 1rem;
}

/*
pre,
code {
  background-color: #e0e0e0;
}
*/

/* What follows are additions by Brendan Dougherty */

.date {
  clear: both;
  margin-bottom: 0.35rem;
  color: #888;
  font-size: 0.9rem;
}

.title {
  text-align: left;
  margin-top: 0;
  line-height: 1;
  color: #468;
}

.nav {
  margin-top: 1.414rem;
  margin-bottom: 1.414rem;
}

.nav-link {
  margin-left: 1rem;
}

.display-inline {
  display: inline;
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.nav::after {
  content: "";
  clear: both;
  display: table;
}

.copyright-notice {
  text-align: center;
  color: #888;
  font-size: 0.8rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid #e0e0e0;
 }

.hljs-ln {
  border-collapse: collapse;
}

.hljs-ln-n td {
  padding: 0;
}

.hljs-ln-n:before {
  content: attr(data-line-number);
}

.hljs-ln-numbers {
  color: #aaa;
  padding-left: 20px;
  padding-right: 20px;
  text-align: right;
}

hr {
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.project {
  display: flex;
  flex-direction: row;
  margin-bottom: 2rem;
}

.project-preview {
  width: 30%;
}

.project-info {
  width: 70%;
  display: flex;
  padding-left: 1rem;
  flex-direction: column;
  justify-content: space-between;
}

.project-link {
  margin-right: 15px;
}

@media screen and (max-width: 768px) {
  .project {
    flex-direction: column;
  }

  .project-preview {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .project-info {
    padding-left: 0;
    padding-top: 1rem;
    width: 90%;
  }

  .project-description {
    margin-bottom: 1rem;
  }
}

