html, body, div, span, applet, object, iframe, h2, h3, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, strike, strong, tt, var, b, u, i, enter, 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;
  vertical-align: baseline;
  font-family: Arial, Tahoma, 'Liberation Sans', sans-serif;
}
html {
  background: #604695;
}
body {
  max-width: 52em;
  margin: 0 auto 36px auto;
  vertical-align: top;
  font-size: 16px;
  background: #FFF;
  border: 1px solid #FFCD47;
  border-bottom-left-radius: 0.5em;
  border-bottom-right-radius: 0.5em;
  border-top: 0;
  position: relative;
  box-shadow: 0 0 10px #402e63;
}

a {
  color: #6F1700;
}
a:hover { 
  color: red !important; 
}
code, kbd, pre, samp, dt {
  font-family: 'Consolas', 'Bitstream Vera Sans Mono', 'Lucida Console', 'Courier New', courier, monospace;
  font-size: 0.9em;
}

code, kbd, samp, dt {
  display: inline-block;
  background: #DDD;
  padding: 0 0.5em;
}
strong {
  font-weight: bold;
}

ul, ol {
  list-style-position: outside;
  margin-left: 1.5em;
}

/* main navigation */
#main-nav {
  background: #FEFFCF;
  text-align: center;
  padding: 1em 1em 0.5em 1em;
  border-bottom: 1px solid #FFCD47;
}

#main-nav ul {
  list-style: none;
  margin: 0;
}

#main-nav li {
  display: inline-block;
  margin-bottom: 0.5em;
}

#main-nav a {
  background: #FFCD47;
  display: block;
  padding: 0.5em;
  text-decoration: none;
}

/* table of contents */
.toc {
  position: fixed;
  left: 50%;
  margin-left: 26em;
  background: #FFF;
  padding: 1em;
  border: 1px solid #FFCD47;
  border-top-right-radius: 0.5em;
  border-bottom-right-radius: 0.5em;
  border-left: 0;
  top: 9em;
  box-shadow: 5px 0 5px #402e63;
}

.toc h2 {
  border-bottom: 1px solid #FFCD47;
  margin-bottom: 0.5em;
}

.toc li {
  line-height: 1.5em;
}

.toc ol, .toc h2 {
  display: none;
}

.toc:hover ol, .toc:hover h2, .toc:focus ol, .toc:focus h2 {
  display: block;
}

.toc .anchor::before {
  content: '\1F4D1';
  display: block;
}

.toc:hover .anchor::before, .toc:focus .anchor::before {
  display: none;
}

/* headers */
header {
  background: #FFCD47;
  border-bottom: 1px solid #000;
  padding: 0.7em;
}

header * {
  display: inline-block;
  vertical-align: bottom;
}

header .site-title {
  font-weight: bold;
  display: inline-block;
}

header img {
  display: inline-block;
  height: 1em;
  vertical-align: baseline;
  margin-bottom: -0.15em;
}

header h1::before {
  content: ' \2192 ';
  margin-right: 0.3em;
}

header h1 {
  font-size: 1em;
  margin: 0;
}

article section:first-child h2 {
  margin-top: 1em;
}
  
article h2 {
  border-bottom: 1px solid #FFCD47;
  margin-bottom: 0.5em;
  margin-top: 2em;
}

article h3 {
  font-size: 1em;
  margin: 1.5em 0 0.5em 0;
}

article p, article li {
  line-height: 1.5em;
  margin-bottom: 1em;
}

article li {
  margin-bottom: 0.5em;
}

/* body */
article {
  padding: 1em 2em 2em 2em;
}

li.alt {
  margin-left: 2em;
}

dl {
  margin-top: 1em;
}

dt, dd {
  display: block;
  line-height: 1.5em;
  margin-bottom: 0.25em;
}
dt {
  float: left;
  width: 15em;
  text-align: right;
  margin-right: 1em;
}
dd {
  clear: right;
}

/* footer */
footer {
  text-align: center;
  border-top: 1px solid #CCC;
  padding-top: 1em;
  padding-bottom: 1em;
  font-size: 0.8em;
  margin: 1em 2em 0 2em;
}

footer ul {
  list-style: none;
  margin: 0;
}

footer li {
  display: inline-block;
}

footer li:not(:last-child)::after {
  content: ' - ';
}

/* changelog */
.changelog ul {
  margin-top: 0.5em;
}

/* images */
img.screenshot {
  max-width: 100%;
  transition: .25s;
  margin: 0.5em auto 1.5em auto;
  display: block;
}

img.inline {
  display: inline-block;
  max-height: 1.5em;
  vertical-align: middle;
}

/* mobile */
@media (max-width: 52em) { 
  body {
    border: 0;
    box-shadow: 0;
    margin-bottom: 0;
    border-radius: 0;
  }
  
  header {
    position: fixed;
    width: 100%;
    top: 0;
  }
  
  #main-nav {
    margin-top: 2.5em;
  }
}
