body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
}

/* Fork me banner
----------------------------------------------------------------- */
.fork-on-github {
	z-index: 999999999; 
	position: absolute; 
	top: 0; 
	right: 0; 
	border: 0;
}

/* Logo
----------------------------------------------------------------- */
.logo {
	margin-left: 80px;
	margin-right: 40px;
	width: 120px;
	float: left;
}

/* Logo
----------------------------------------------------------------- */

.author {
	width: 100%;
	margin-top: 20px;
	border-top: 1px solid #ccc;
}

.author-img {
  border-radius: 12px;
  margin-bottom: 10px;
  width: 120px;
  margin-right: 20px;
  float: left;
}

blockquote {
  margin-top: 20px;
  color: #918D8D;
  font-size: 14px;
  line-height: 20px;
  overflow: hidden;
}




/* Fonts
----------------------------------------------------------------- */

a {
  color: #2972E0;
  text-decoration: none;
}

/* Header
----------------------------------------------------------------- */

header {
  position: relative;
  border-bottom: 1px solid #E0E0E0;
}

header h1 {
  font-weight: 300;
  font-size: 20px;
  color: gray;
}

header #buttons {
  position: absolute;
  top: 3px;
  left: 20px;
}

header #buttons a {
  color: gray;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
}

/* Skeleton
----------------------------------------------------------------- */

#flex-box {
  display: flex;
  flex: 1 100%;
}

#flex-box #sidebar {
  flex: 0 0 250px;
  border-right: 1px solid #E0E0E0;
}

#flex-box #content {
  flex: 1;
}

/* TOC
----------------------------------------------------------------- */

/* turn sidebar off by default */
#sidebar {
   display: none;
}

/* First Level */

nav[data-type="toc"] ol {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 10px;
}

nav[data-type="toc"] li {
  padding: 8px 10px 8px 15px;
}

nav[data-type="toc"] a {
  color: #686868;
  font-size: 14px;
}

/* Second Level */

nav[data-type="toc"] li li {
  display: none;
  font-size: 13px;
  list-style-type: lower-roman;
  list-style-position: inside;
}

nav[data-type="toc"] li li a {
  font-size: 13px;
}

/* Third Level */

nav[data-type="toc"] li ol ol {
  display: none;
}

/* Page Navigation
----------------------------------------------------------------- */

ul.page-navigation {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: 15px;
  margin-bottom: 15px;
}

ul.page-navigation li {
  margin: 0;
  padding: 0;
  display: inline-block;
  width: 45%;
}

ul.page-navigation li:nth-child(2) {
  text-align: right;
}

/* Content
----------------------------------------------------------------- */

#content-body {
  width: 750px;
  margin: 0 auto;
}

#content-body h1 {
  font-size: 35px;
  margin-bottom: 0.8em;
}

#content-body p {
  line-height: 1.6em;
}


#content-body img {
	width: 100%;
}


// Codemirror

.CodeMirror {
  padding: 20px;
  background-color: #2e2e2e;
  color: #e9edf1;
  font-size: 14px;
  height: auto;
  line-height: 1.3em;
}

.white .CodeMirror {
  background-color: #F7F7F7;
  color: black;
  // border: 1px solid #DDD;
  padding-left: 0px;
}

.CodeMirror-scroll {
  height: auto;
  overflow-y: hidden;
  overflow-x: auto;
}

// Interactive video

.i-editor .CodeMirror {
  height: 500px;
}

// we need to reset codemirror-scroll too!

// iPython

.ipython {
  width: 100%;
  margin-bottom: 10px;
  @include mq($px1000) {
    margin-left: 10%;
    margin-right: 10%;
    width: 80%;
  }
}

.ipython .control-area {
  position: relative
}

.ipython .control-area a {
  display: block;
  background-color: #414141;
  padding: 6px 8px;
  min-width: 80px;
  color: #D3D3D3;
  text-align: center;
  text-decoration: none;
  position: absolute;
  z-index: 9000;
  top: 25;
  right: 25;
  float: right;
}

.ipython .control-area a:hover {
  background-color: #676767;
}

.ipython .display-area {
  width: 100%;
}

.ipython .display-area .editor {
  position: relative;
  width: 100%;
  height: 350px;
}

.ipython .display-area .output {
  display: none;
  overflow: auto;
  position: relative;
  width: 100%;
  border: none;
}

.ipython .prompt.input_prompt {
  display: none;
}

.ipython .output_wrapper {
  margin-top: 0px;
  margin-left: 0px;
}

.ipython .output.vbox {
  border: 1px solid #808080;
  border-top: none;
}

.cm-s-ipython span.cm-keyword {color: #da5b5b; font-weight: bold;}
// .cm-s-ipython span.cm-number {color: #000080;}
// .cm-s-ipython span.cm-operator {color: #AA22FF; font-weight: bold;}
// .cm-s-ipython span.cm-meta {color: #AA22FF;}
.cm-s-ipython span.cm-comment {color: #4b5e66; }
.cm-s-ipython span.cm-string {color: #da5b5b;}
// .cm-s-ipython span.cm-error {color: #f00;}
// .cm-s-ipython span.cm-builtin {color: #008000;}
// .cm-s-ipython span.cm-variable {color: #e9edf1;}

/* These classes are not currently used in the python.js mode */

/*.cm-s-ipython span.cm-atom {color: #219;}*/
/*.cm-s-ipython span.cm-def {color: #00f;}*/
/*.cm-s-ipython span.cm-variable-2 {color: #05a;}*/
/*.cm-s-ipython span.cm-variable-3 {color: #0a5;}*/
/*.cm-s-ipython span.cm-property {color: black;}*/
/*.cm-s-ipython span.cm-qualifier {color: #555;}*/
/*.cm-s-ipython span.cm-bracket {color: #cc7;}*/
/*.cm-s-ipython span.cm-tag {color: #170;}*/
/*.cm-s-ipython span.cm-attribute {color: #00c;}*/

/* These are the old styles for our pre-themed version */

/*span.py-delimiter {color: #666666;}*/
/*span.py-special {color: #666666;}*/
/*span.py-operator {color: #AA22FF; font-weight: bold;}*/
/*span.py-keyword {color: #008000; font-weight: bold;}*/
/*span.py-number {color: #666666;}*/
/*span.py-identifier {color: #000000;}*/
/*span.py-func {color: #000000;}*/
/*span.py-type {color: #008000;}*/
/*span.py-decorator {color: #AA22FF;}*/
/*span.py-comment {color: #408080; font-style: italic;}*/
/*span.py-string {color: #BA2121;}*/
/*span.py-bytes {color: #BA2121;}*/
/*span.py-raw {color: #BA2121;}*/
/*span.py-unicode {color: #BA2121;}*/



