/*  Customized normalize.css to remove ALL padding/margin */
* {
  margin: 0;
  padding: 0;
}

/* normalize.css v2.1.2 | MIT License | git.io/normalize */
/* ==========================================================================
   HTML5 display definitions
   ========================================================================== */
/**
 * Correct `block` display not defined in IE 8/9.
 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}

/**
 * Correct `inline-block` display not defined in IE 8/9.
 */
audio,
canvas,
video {
  display: inline-block;
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */
audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Address styling not present in IE 8/9.
 */
[hidden] {
  display: none;
}

/* ==========================================================================
   Base
   ========================================================================== */
/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */
html {
  font-family: sans-serif;
  /* 1 */
  -ms-text-size-adjust: 100%;
  /* 2 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

/* ==========================================================================
   Links
   ========================================================================== */
/**
 * Address `outline` inconsistency between Chrome and other browsers.
 */
a:focus {
  outline: thin dotted;
}

/**
 * Improve readability when focused and also mouse hovered in all browsers.
 */
a:active,
a:hover {
  outline: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */
/**
 * Address variable `h1` font-size within `section` and `article`
 * contexts in Firefox 4+, Safari 5, and Chrome.
 */
h1 {
  font-size: 2em;
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
 */
b,
strong {
  font-weight: bold;
}

/**
 * Address styling not present in Safari 5 and Chrome.
 */
dfn {
  font-style: italic;
}

/**
 * Address differences between Firefox and other browsers.
 */
hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

/**
 * Address styling not present in IE 8/9.
 */
mark {
  background: #ff0;
  color: #000;
}

/**
 * Correct font family set oddly in Safari 5 and Chrome.
 */
code,
kbd,
pre,
samp {
  font-family: monospace, serif;
  font-size: 1em;
}

/**
 * Improve readability of pre-formatted text in all browsers.
 */
pre {
  white-space: pre-wrap;
}

/**
 * Set consistent quote types.
 */
q {
  quotes: "\201C" "\201D" "\2018" "\2019";
}

/**
 * Address inconsistent and variable font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* ==========================================================================
   Embedded content
   ========================================================================== */
/**
 * Correct overflow displayed oddly in IE 9.
 */
svg:not(:root) {
  overflow: hidden;
}

/* ==========================================================================
   Forms
   ========================================================================== */
/**
 * 1. Correct font family not being inherited in all browsers.
 * 2. Correct font size not being inherited in all browsers.
 */
button,
input,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 2 */
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */
button,
input {
  line-height: normal;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
 * Correct `select` style inheritance in Firefox 4+ and Opera.
 */
button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  /* 2 */
  cursor: pointer;
  /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */
button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * 1. Address box sizing set to `content-box` in IE 8/9.
 */
input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  /* 1 */
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
 *    (include `-moz` to future-proof).
 */
input[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  /* 2 */
  box-sizing: content-box;
}

/**
 * Remove inner padding and search cancel button in Safari 5 and Chrome
 * on OS X.
 */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Remove default vertical scrollbar in IE 8/9.
 * 2. Improve readability and alignment in all browsers.
 */
textarea {
  overflow: auto;
  /* 1 */
  vertical-align: top;
  /* 2 */
}

/* ==========================================================================
   Tables
   ========================================================================== */
/**
 * Remove most spacing between table cells.
 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

dl:after, .group:after {
  content: "";
  display: table;
  clear: both;
}

pre {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

::-moz-selection {
  color: white;
  background-color: #4444dd;
}

::selection {
  color: white;
  background-color: #4444dd;
}

html {
  font: 14px/1.5 "Merriweather Sans", sans-serif;
}

body {
  color: #222;
  min-width: 22.85714rem;
}

a {
  text-decoration: none;
  color: #4444dd;
}

main {
  position: relative;
  max-width: 100%;
  overflow-x: hidden;
}

header {
  background-color: #222;
  color: #eee;
  text-align: center;
  padding-bottom: 0.75rem;
}
header > h1 {
  font-size: 2rem;
  border-bottom: 0;
  padding: 0.75rem 0;
}
header > nav {
  display: table;
  width: 100%;
}
header > nav > a {
  display: table-cell;
  width: 20%;
  color: white;
  cursor: pointer;
}

article, aside {
  -webkit-transition: left .5s;
  transition: left .5s;
}

article {
  position: relative;
}
article.viewHistory {
  left: 250px;
}

aside {
  position: fixed;
  top: 6.75rem;
  bottom: 0;
  overflow-y: scroll;
  width: 250px;
  left: -100%;
  background-color: #222;
}
aside li {
  border-top: 1px solid #eee;
  padding-left: 1rem;
  text-indent: -1rem;
}
aside > a {
  display: block;
  text-align: center;
  border-top: 1px solid #eee;
}
aside a {
  color: white;
  padding: 0.75rem 1.5rem;
  display: block;
}
aside.viewHistory {
  left: 0;
  z-index: 15;
}

article {
  width: 90%;
  margin: 0 auto;
  padding-bottom: 3rem;
}
article ul,
article ol {
  margin-left: 2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

h1 {
  font-family: 'Arvo', serif;
  font-size: 3rem;
  padding-top: 2.25rem;
  border-bottom: 0.25rem solid #222222;
  font-weight: 400;
}

.date {
  padding-bottom: 1.25rem;
  text-align: right;
  display: block;
}

h2 {
  font-family: 'Arvo', serif;
  font-size: 1.5em;
  line-height: 1;
  padding-top: 1.5rem;
  font-weight: normal;
}

pre {
  margin: 1.5rem 0;
  padding: 1.5rem;
  font-family: 'Source Code Pro', monotype;
  background-color: #222;
  color: white;
  white-space: pre;
  overflow-x: auto;
}

p {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  padding-bottom: 1.5rem;
}

.group {
  display: block;
}

dt,
dd {
  float: left;
}

dd {
  clear: left;
  text-indent: 1.5rem;
}

footer {
    background-color: #222;
    color: #eee;
    text-align: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
footer > a {
    color: white;
}

@media (min-width: 400px) {
  .selfie {
    float: left;
    display: inline;
    margin: 0;
    height: 15rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
  }
}
@media (min-width: 450px) {
  .group {
    width: 50%;
    float: left;
  }
}
@media (min-width: 650px) {
  article {
    width: 80%;
  }

  aside {
    width: 300px;
  }

  .smallImg {
    float: left;
    display: inline;
    margin: 0;
    height: 15rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
  }
}
@media (min-width: 715px) {
  html {
    font: 16px/1.5 "Merriweather Sans", sans-serif;
  }

  article {
    max-width: 660px;
  }
  article.viewHistory {
    left: 250px;
  }
}
