@font-face {
  font-family: 'Inconsolata';
  src: url('../fonts/inconsolata-regular.woff') format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Inconsolata';
  src: url('../fonts/inconsolata-bold.woff') format("woff");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Regular.woff') format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Bold.woff') format("woff");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-Italic.woff') format("woff");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/Roboto-BoldItalic.woff') format("woff");
  font-weight: 700;
  font-style: italic;
}
html,
body {
  height: 100%;
}
body {
  padding: 0;
  margin: 0;
  background-color: #EEE;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  line-height: 140%;
}
a {
  color: #000;
  text-decoration: none;
}
a:hover {
  background-color: #FFF;
}
h1 {
  margin-left: auto;
  margin-right: auto;
}
header,
section,
footer {
  padding: 40px 6.5% 55px;
  border-bottom: 2px solid #F8F8F8;
}
section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
header > *,
section > *,
footer > * {
  width: 100%;
  max-width: 600px;
}
@media only screen and (min-width: 768px) {
  header,
  section,
  footer {
    /*        padding-left: 5%;
        padding-right: ~"calc(5% + @{toc768width} + 40px)"; */
    padding-right: 5%;
    padding-left: calc(5% + 198px + 40px);
  }
}
@media only screen and (min-width: 992px) {
  header,
  section,
  footer {
    /*        padding-left: 3.5%;
        padding-right: ~"calc(3.5% + @{toc992width} + 40px)"; */
    padding-right: 3.5%;
    padding-left: calc(3.5% + 248px + 40px);
  }
}
p a {
  border-bottom: 1px solid #888;
}
p a[target="_blank"]:before {
  font-family: "fontello";
  content: '\f14c';
  padding: 0 4px 0 2px;
  line-height: 17px;
  font-size: 13px;
  vertical-align: text-bottom;
}
p a.no-icon:before {
  content: '';
  padding: 0;
}
header nav {
  margin: 8px 0 40px;
}
i {
  font-style: normal;
  padding: 0;
  vertical-align: bottom;
}
.go-parent .icon-level-up:before {
  transform: scaleX(-1);
}
i.icon-js:before {
  font-family: "Roboto", sans-serif;
  content: 'JS';
  font-weight: bold;
  margin-left: 0;
  margin-right: .4em;
  color: #000;
}
i.icon-asterisk:before {
  margin-left: .1em;
  margin-right: .4em;
  color: #333;
}
i.icon-download:before {
  margin-left: .1em;
  margin-right: .4em;
  color: #333;
  vertical-align: text-top;
}
#top-nav {
  margin-bottom: 30px;
}
#top-nav a,
#side-nav a {
  display: inline-block;
}
#top-nav i,
#side-nav i {
  display: inline-block;
  padding: 5px 0;
  color: #D8D8D8;
  margin-bottom: -4px;
}
#side-nav i {
  color: #C0C0C0;
}
#side-nav .go-prev-next i {
  line-height: 16px;
  padding: 4px 3px 6px;
}
#top-nav a i,
#side-nav a i {
  color: #000;
}
#top-nav .go-parent a {
  margin-left: -5px;
  padding-right: 14px;
}
#top-nav .go-parent i {
  /*	padding-right: 0;  */
  font-size: 18px;
}
#top-nav .go-prev-next {
  float: right;
  margin-right: -10px;
  font-size: 18px;
  padding-top: 2px;
}
#side-nav {
  margin-top: 5px;
  /*    margin-bottom: -3px; */
  padding-bottom: 11px;
  /*	border-bottom: 2px solid #ebedef; */
  /*	border-bottom: 1px solid #efefec; */
  border-bottom: 1px solid #F2F2F2;
  display: none;
}
#side-nav a {
  /*	padding: 5px 5px 3px 5px; */
}
#side-nav .go-parent {
  margin-left: -3px;
}
#side-nav .go-parent a {
  margin-left: -5px;
  padding: 0 7px 3px 2px;
}
#side-nav .go-parent i {
  padding-bottom: 4px;
}
#side-nav .go-prev-next {
  float: right;
  margin-right: -4px;
  /*	font-size: 18px; */
  padding-top: 3px;
}
#lessons-nav {
  position: fixed;
  top: 4px;
  left: 0;
  width: 32px;
  color: #AAA;
  opacity: 0.2;
}
#lessons-nav.show {
  display: block;
}
#lessons-nav:hover {
  opacity: 1;
}
#lessons-nav a {
  line-height: 100%;
  display: inline-block;
  color: #000;
  width: 26px;
  height: 27px;
}
#lessons-nav .go-next {
  margin-bottom: 5px;
}
#lessons-nav i:before {
  font-size: 18px;
  margin: 4px 7px 4px 1px;
}
#lessons-nav .go-parent i:before {
  font-size: 16px;
  margin-top: 5px;
  margin-left: 3px;
}
#lessons-nav .go-next i:before {
  margin-left: 2px;
}
#lessons-nav .go-p5js i:before {
  font-size: 13px;
  margin-top: 7px;
  margin-left: 4px;
}
#lessons-nav .go-js i:before {
  font-family: "Roboto", sans-serif;
  content: 'JS';
  font-weight: bold;
  font-size: 12px;
  margin-top: 7px;
  margin-left: 3px;
}
/*
.toc {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	padding: 0.6vh 0 0;
}

.toc a {
    display: block;
	width: 20px;
	padding-bottom: 0;
	padding-right: 10px;
	text-decoration: none;
	text-align: right;
	font-weight: bold;
	color: #D8D8D8;
	font-size: 1.6vh;
	line-height: 2vh;
}

.toc a.current {
	color: #333;
}

.toc .chapter {
	padding-bottom: 0.4vh;
}
*/
#toc {
  padding: 20px 6.5% 20px;
  border-bottom: 2px solid #F8F8F8;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#toc ol,
#toc ul {
  padding-left: 0;
}
#toc li {
  margin-top: 10px;
}
/* #toc li a { */
#toc a {
  line-height: 19px;
  background-color: transparent;
}
#toc a:hover {
  background-color: #FFF;
}
#toc .toc-lists {
  width: 100%;
  max-width: 600px;
}
#toc .toc-page-title {
  display: none;
}
#toc .toc-titles {
  padding-left: 20px;
  font-weight: bold;
  font-size: 17px;
}
#toc .toc-titles li {
  list-style: none;
  text-indent: -20px;
  margin-left: 2px;
}
#toc .toc-titles li.chapter {
  text-indent: -34px;
  margin-left: 16px;
}
#toc .toc-links {
  padding-top: 5px;
  padding-left: 0;
  list-style: none;
}
@media only screen and (min-width: 768px) {
  #top-nav {
    display: none;
  }
  #side-nav {
    display: block;
  }
  #toc {
    position: fixed;
    top: 0;
    /*		right: 0; */
    left: 0;
    bottom: 0;
    background-color: #dedddd;
    padding: 6px 18px 0 22px;
    justify-content: normal;
  }
  #toc a:hover {
    background-color: #f6f4f2;
  }
  #toc .toc-lists {
    border-bottom: none;
    width: 198px;
    font-size: 14px;
    line-height: 16px;
  }
  #toc .toc-page-title {
    display: block;
    margin-top: 17px;
    font-weight: bold;
    font-size: 15px;
    padding-left: 18px;
    text-indent: -17px;
    /*
		padding-top: 16px;
		border-top: 2px solid #ebedef;
*/
  }
  #toc .toc-titles {
    margin-top: 0;
  }
  #toc .toc-titles li {
    font-weight: normal;
    color: #888;
    /*	}

	#toc .toc-titles li {  */
    text-indent: -16px;
    margin-left: -3px;
  }
  #toc .toc-titles li.chapter {
    text-indent: -27px;
    margin-left: 8px;
  }
  #toc .toc-titles a {
    font-weight: normal;
    font-size: 14px;
    line-height: 14px;
  }
  #toc .toc-titles li.current a .number {
    border-bottom: 2px solid #000;
  }
  #toc .toc-links {
    padding-top: 7px;
    padding-left: 0;
    list-style: none;
    /*		border-top: 2px solid #ebedef; */
    /*		border-top: 1px solid #efefec; */
    border-top: 1px solid #F2F2F2;
  }
}
@media only screen and (min-width: 992px) {
  #toc .toc-lists {
    width: 248px;
  }
}
#to-top {
  display: none;
  position: fixed;
  bottom: 3px;
  right: 3px;
  width: 36px;
  height: 36px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: rgba(255, 255, 255, 0.8);
  color: #444;
  cursor: pointer;
  padding: 2px 0;
  border-radius: 50%;
  font-size: 18px;
}
#to-top:hover {
  background-color: #555;
}
#to-top.show {
  display: block;
}
header {
  padding-top: 30px;
  padding-bottom: 30px;
}
section {
  padding-top: 30px;
  padding-bottom: 30px;
}
h1 {
  line-height: 140%;
  margin: 0 auto ;
}
h2 {
  margin: 0 0 5px;
  line-height: 130%;
}
h3 {
  margin: 10px 0 5px;
  font-size: 16px;
  line-height: 140%;
}
h4 {
  margin: 0 0;
  font-size: 15px;
  font-weight: normal;
}
