/** CSS reset **/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-weight: inherit;
    font-style: inherit;
    font-family: inherit;
    font-size: 100%;
    vertical-align: baseline;
}
body {
  line-height: 1;
  color: black;
  background: white;
}
ol, ul {
  list-style: none;
}
a img {
  border: none;
}

/** Basics **/

body {
    font-family: 'Helvetica Neue', Helvetica, Arial;
}

pre {
    font-family: monospace;
}

code {
    font-family: monospace;
    font-size: 1.1em;
}

ul {
    list-style-type: disc;
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 40px;
}

dl {
    margin-top: 1em;
    margin-bottom: 1em;
}

dd {
    margin-left: 40px;
}

h1, h2, h3, h4 {
    color: black;
    font-weight: bold;
}

h1 {
    font-size: 2em;
    letter-spacing: -1px;
}

h1 {
    margin: 1.5em 0 .67em 0;
}

h2 {
    font-size: 1.5em;
    margin: 1.25em 0 .5em 0;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.17em;
    margin: 1em 0 1em 0;
    letter-spacing: -1px;
}

h4 {
}

p {
    margin-bottom: 1em;
}

em {
    font-style: italic;
}

a:hover {
    background-color: yellow;
}

/** Section nav **/

#nav {
    line-height: 1.2;
    border-width: 1px;
    border-color: black;
    border-style: none dotted none none;
}

#nav-inner {
    padding-left: 30px;
    padding-right: 30px;
    padding-top: -10px;
    padding-bottom: 30px;
}

#nav a {
    text-decoration: none;
    color: black;
}

#nav a:hover {
    margin: 0px -5px 0px -5px;
    padding: 2px 5px 2px 5px;
}

#nav h1 {
    font-size: 1.8em;
    margin: 1.2em 0 .2em 0;
}

#nav h2 {
    font-size: 1.33em;
    font-weight: normal;
    margin: .6em 0 .3em 0;
}

#nav h3 {
    font-size: .8em;
    font-weight: normal;
    margin: 4px 0px 4px 0px;
    padding-left: 10px;
    color: #333333;
    letter-spacing: 0px;
}

#nav h4 {
    font-size: .8em;
    font-weight: normal;
    margin: 4px 0px 4px 0px;
    padding-left: 20px;
    color: #333333;
    letter-spacing: 0px;
}

#nav .spacer {
    height: .33em;
}

#nav .noncode {
    font-style: italic;
}

#nav .current {
    color: red;
}

/** Main pane **/

#main {
    margin: 10px;
    line-height: 1.3;
    color: #333333;
}

#main strong {
    font-weight: bold;
}

#main h1 {
    border-style: solid none none none;
    border-color: #999;
    border-width: 2px;
}

#main h2 span {
    background-color: yellow;
    margin: 0px -5px 0px -5px;
    padding: 2px 5px 2px 5px;
}

#main a:link, #main a:visited {
    text-decoration: none;
    border-bottom: 1px dashed #000;
    color: inherit;
}

#main code a:link, #main code a:visited {
    border: none;
}

dl.involved {
    padding-left: 10px;
}

dl.involved dt {
    text-transform: uppercase;
    font-weight: bold;
}

dl.involved dt span {
    background-color: yellow;
}

dl.involved dd {
    margin-left: 20px;
    margin-bottom: 1em;
}

dl.involved a {
    font-weight: bold;
}

dl.involved code {
    font-weight: bold;
}

dl.example dt {
    font-weight: bold;
    margin-left: 10px;
}

dl.example dd {
    margin-bottom: 10px;
}

.objdesc dt {
    margin-top: 1em;
    margin-left: 1.5em;
}

.objdesc dt .name {
    font-weight: bold;
}

.objdesc dt .type {
    margin-left: 15px;
    font-size: .9em;
    font-weight: 200;
    color: black;
}

.objdesc dd {
    margin-bottom: 1em;
    margin-left: 1.5em;
}

.callbacks dt .name, .methods dt .name {
  /* like code tag */
  font-family: monospace;
  font-size: 1.1em;
}

#main dd p {
    margin-top: 0.5em;
}



/** API **/

.warning {
    border-width: 0px 0px 0px 3px;
    border-style: solid;
    border-color: red;
    margin: 21px 0px 21px 10px;
    padding-left: 15px;
    font-weight: bold;
    color: red;
}

.note {
    border-width: 0px 0px 0px 2px;
    border-style: solid;
    border-color: black;
    margin: 21px 0px 21px 10px;
    padding-left: 15px;
    font-style: italic;
    color: black;
}

.locus {
    font-style: italic;
}

.api {
    border-width: 0px 0px 2px 0px;
    border-style: dashed;
    border-color: #ccc;
    padding-top: 2em;
    margin-bottom: 1em;
}

.bareapi {
    border-width: 0;
}

.api h3 {
    margin: 0px 0px 1.33em 0px;
    border-width: 2px 0px 2px 0px;
    border-style: solid;
    border-color: black;
    padding-bottom: 1px;
}

.api h4 {
    font-weight: normal;
    font-style: italic;
    margin-bottom: .25em;
    text-decoration: underline;
    margin-left: 20px;
}

.api dl {
    margin-top: .25em;
}

.api dl.args {
    margin-left:  40px;
}

.api dl.constants {
    margin-left:  20px;
}

.api dt {
    margin-top: 1em;
}

.api dt .name {
    font-weight: bold;
}

.api dt .type {
    margin-left: 15px;
    font-size: .9em;
    font-weight: 200;
    color: black;
}

.api dd {
    margin-bottom: 1em;
    margin-left: 0;
}

.api .desc {
    margin: 1em 0 1em 20px;
}

.api .locus {
    float: right;
    font-weight: normal;
    padding-right: 5px;
}

#main pre {
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    -o-border-radius: 10px;
    -ms-border-radius: 10px;
    -khtml-border-radius: 10px;
    border-radius: 10px;
    border-color: #777;
    border-style: solid;
    background-color: white;
    border-width: 1px;
    padding: 5px;
    margin: 1em 0 1em 0;
}

#main pre, #main pre code { /* override inline code font and white-space*/
  font-size: 12px;
  font-weight: bold;
}

#main a.selflink:link, #main a.selflink:visited, #main a.selflink:hover {
  text-decoration: none;
  border: none;
  color: inherit;
  background: none;
}

/** layout control **/

/* default to no sidebar */
#nav {
    display: none;
}
.github-ribbon {
    display: none;
}
pre {
    white-space: pre-wrap;
}

@media (min-width: 768px) {
/* ipad portrait or better */
#main {
    width: 440px;
    height: 100%;
    margin-left: 260px; /* nav width + padding */
    padding: 30px;
}
#nav {
    display: block;
    width: 200px;
    position: fixed;
    overflow: auto;
    height: 100%;
    top: 0;
    left: 0;
}
.main-headline {
    display: none;
}
}

@media (min-width: 1024px) {
/* ipad landscape and desktop */
#main {
    width: 600px;
    margin-left: 310px; /* nav width + padding */
}
#nav {
    width: 250px;
}
.github-ribbon {
    display: block;
}
}
