@import url(https://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic);
@import url(https://fonts.googleapis.com/css?family=Roboto+Slab:400,700);
body, ul, p, h1, h2, h3, h4, h5, h6, p, blockquote { margin: 0; padding: 0; }

html { font-size: 64.5%; }

body { background: #fdfdfd; font-family: "Lato", sans-serif; margin: 0; font-size: 1.4rem; color: #404040; }

a { text-decoration: none; color: rgba(0, 0, 0, 0.8); }
a:hover, a:focus { text-decoration: underline; color: rgba(0, 0, 0, 0.6); }

p a { text-decoration: underline; color: #5f90d1; }
p a:hover, p a:focus { color: #729ed7; }

.github-lk { background: url(./img/github.png) 0 50% no-repeat; padding-left: 26px; line-height: 22px; }

.download-lk { background: url(./img/download.png) 2px 50% no-repeat; padding-left: 26px; line-height: 22px; }

.col-left { background-color: #404040; color: rgba(0, 0, 0, 0.9); position: fixed; top: 0; left: 0; width: 300px; height: 100%; overflow: auto; }

.col-left #resources { background-color: #d6e2f3; padding: 20px; }
.col-left #resources a { display: block; }
.col-left #resources pre { padding: 6px; }

.col-left #secondary-nav h2 { font-weight: normal; font-family: "Roboto Slab", serif; font-size: 1.3rem; padding: 10px 20px; color: rgba(255, 255, 255, 0.8); text-transform: uppercase; background-color: #363636; border-bottom: 1px solid #212121; }
.col-left #secondary-nav a { display: block; font-family: "Roboto Slab", serif; font-size: 1.2rem; }
.col-left #secondary-nav a:hover, .col-left #secondary-nav a:active { text-decoration: none; }
.col-left #secondary-nav ul li { list-style-type: none; border-bottom: 1px dotted gray; }
.col-left #secondary-nav ul li a { color: #cccccc; padding: 10px 20px; }
.col-left #secondary-nav ul li a:active, .col-left #secondary-nav ul li a:hover { background-color: #4f4f4f; }
.col-left #secondary-nav ul li ul { display: none; }
.col-left #secondary-nav ul li ul li { border-bottom: none; }
.col-left #secondary-nav ul li ul li a { padding: 5px 20px 5px 40px; color: gray; background-color: #dddddd; }
.col-left #secondary-nav ul li ul li a:active, .col-left #secondary-nav ul li ul li a:hover { background-color: #f7f7f7; }

.main { margin-left: 300px; padding: 20px 20px 20px 60px; width: 800px; position: relative; }

.main #header { border-bottom: 1px solid silver; margin-bottom: 5px; padding-bottom: 10px; position: relative; }
.main #header h1 { font-family: "Roboto Slab", serif; font-size: 4rem; }
.main #header nav { position: absolute; bottom: 16px; right: 0; }
.main #header nav ul li { list-style-type: none; float: left; margin-left: 12px; display: inline-block; }
.main #header nav ul li a { display: block; background-color: #aec7e8; padding: 4px 8px; border-radius: 2px; color: rgba(255, 255, 255, 0.9); }
.main #header nav ul li a:hover, .main #header nav ul li a:active { text-decoration: none; background-color: #bed2ed; }

.main #filters ul li { list-style-type: none; display: inline-block; margin-right: 3px; }
.main #filters ul li a { display: block; padding: 2px 6px; background-color: silver; border-radius: 2px; }
.main #filters ul li a:hover, .main #filters ul li a:active { text-decoration: none; background-color: #cacaca; }

.main #home ul { overflow: auto; }
.main #home ul li { width: 48%; }
.main #home ul li:nth-child(odd) { float: left; }
.main #home ul li:nth-child(even) { float: right; }
.main #home ul li a { display: block; background-color: #404040; margin: 8px 0; height: 140px; text-align: center; line-height: 140px; color: #ffffff; font-size: 3rem; }
.main #home ul li a:hover { background-color: gray; text-decoration: none; }

pre { margin: 0; border-radius: 2px; padding: 12px; margin: 3px 0; background-color: rgba(0, 0, 0, 0.05); font-size: 1.5rem; font-family: Monaco, Consolas, "Lucida Console", monospace; }

code { font-size: 12px; font-style: normal; font-family: monospace; }

h1, h2, h3, h4, h5, h6 { font-family: "Roboto Slab", serif; position: relative; }

.anchor { position: absolute; width: 36px; height: 100%; top: 50%; left: -36px; margin-top: -7px; background: url(./img/anchor-link.png) 0 1px no-repeat; opacity: 0.4; }

.category { background-color: #e6edf8; padding: 30px; border-radius: 2px; margin-top: 30px; }
.category h1 { text-transform: uppercase; margin-bottom: 12px; }
.category .anchor { left: -56px; width: 56px; }
.category p { color: rgba(0, 0, 0, 0.7); margin: 12px 0; line-height: 22px; }
.category p:first-of-type { font-style: italic; }
.category ul { list-style-type: none; margin: 0 60px 0 40px; }

.class-definition { padding: 14px 0 28px; border-bottom: 1px dotted gray; }
.class-definition:last-child { border-bottom: none; }
.class-definition h1 { font-size: 2rem; margin: 16px 0; }
.class-definition h2 { font-size: 1.6rem; margin: 20px 0; }
.class-definition h3 { font-size: 1.4rem; margin: 10px 0; position: relative; }
.class-definition h3 code { font-style: normal; display: inline-block; margin-left: 20px; background-color: rgba(0, 0, 0, 0.05); font-weight: normal; position: absolute; left: 15%; top: 4px; }
.class-definition h3 em { font-size: 1.2rem; font-style: italic; font-weight: normal; display: inline-block; margin-left: 20px; position: absolute; left: 35%; top: 4px; }
.class-definition h3 em a { color: #5f90d1; }
.class-definition h3 em code { margin-left: 0; }
.class-definition h3 + p { display: inline-block; margin: 0; margin-left: 20px; }
.class-definition h3 + p em { display: inline-block; color: gray; }
.class-definition pre { margin: 20px 0; }
.class-definition p { font-size: 1.4rem; line-height: 2.2rem; margin: 16px 0; width: 70%; }
.class-definition p code { padding: 1px 3px; display: inline-block; background-color: rgba(0, 0, 0, 0.035); }
.class-definition ul { margin: 16px 0 16px 36px; }
.class-definition ul li p { font-size: 1.2rem; line-height: 1.7rem; margin: 10px 0; }
.class-definition ul li p code:first-of-type { display: inline-block; margin-left: 12px; }
.class-definition ul li p br { line-height: 24px; }

/** Syntax highlighting styles */
.highlight { margin: 0; border-radius: 2px; padding: 12px; margin: 3px 0; background-color: rgba(0, 0, 0, 0.05); font-size: 1.5rem; font-family: Monaco, Consolas, "Lucida Console", monospace; }
.highlight .c { color: #998; font-style: italic; }
.highlight .err { color: #a61717; background-color: #e3d2d2; }
.highlight .k { font-weight: bold; }
.highlight .o { font-weight: bold; }
.highlight .cm { color: #998; font-style: italic; }
.highlight .cp { color: #999; font-weight: bold; }
.highlight .c1 { color: #998; font-style: italic; }
.highlight .cs { color: #999; font-weight: bold; font-style: italic; }
.highlight .gd { color: #000; background-color: #fdd; }
.highlight .gd .x { color: #000; background-color: #faa; }
.highlight .ge { font-style: italic; }
.highlight .gr { color: #a00; }
.highlight .gh { color: #999; }
.highlight .gi { color: #000; background-color: #dfd; }
.highlight .gi .x { color: #000; background-color: #afa; }
.highlight .go { color: #888; }
.highlight .gp { color: #555; }
.highlight .gs { font-weight: bold; }
.highlight .gu { color: #aaa; }
.highlight .gt { color: #a00; }
.highlight .kc { font-weight: bold; }
.highlight .kd { font-weight: bold; }
.highlight .kp { font-weight: bold; }
.highlight .kr { font-weight: bold; }
.highlight .kt { color: #458; font-weight: bold; }
.highlight .m { color: #099; }
.highlight .s { color: #d14; }
.highlight .na { color: #008080; }
.highlight .nb { color: #0086B3; }
.highlight .nc { color: #458; font-weight: bold; }
.highlight .no { color: #008080; }
.highlight .ni { color: #800080; }
.highlight .ne { color: #900; font-weight: bold; }
.highlight .nf { color: #900; font-weight: bold; }
.highlight .nn { color: #555; }
.highlight .nt { color: #000080; }
.highlight .nv { color: #008080; }
.highlight .ow { font-weight: bold; }
.highlight .w { color: #bbb; }
.highlight .mf { color: #099; }
.highlight .mh { color: #099; }
.highlight .mi { color: #099; }
.highlight .mo { color: #099; }
.highlight .sb { color: #d14; }
.highlight .sc { color: #d14; }
.highlight .sd { color: #d14; }
.highlight .s2 { color: #d14; }
.highlight .se { color: #d14; }
.highlight .sh { color: #d14; }
.highlight .si { color: #d14; }
.highlight .sx { color: #d14; }
.highlight .sr { color: #009926; }
.highlight .s1 { color: #d14; }
.highlight .ss { color: #990073; }
.highlight .bp { color: #999; }
.highlight .vc { color: #008080; }
.highlight .vg { color: #008080; }
.highlight .vi { color: #008080; }
.highlight .il { color: #099; }
