@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: 7px;
  padding-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
section.chapter-title {
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: none;
  color: #000;
  border-top: 2px solid #F8F8F8;
  margin-top: 2px;
}
.chapter-title h2 {
  padding: 60px 0 0;
  margin: 0;
}
h1 {
  line-height: 140%;
  font-size: 28px;
}
h2 {
  line-height: 130%;
  font-size: 23px;
}
h3 {
  padding-top: 3px;
  line-height: 140%;
  font-size: 18px;
}
@media only screen and (min-width: 640px) {
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 28px;
  }
  h3 {
    font-size: 22px;
  }
}
@media only screen and (min-width: 768px) {
  header {
    padding-top: 35px;
  }
}
code {
  font-family: 'Inconsolata';
  font-size: 16px;
  padding: 0 1px;
  font-weight: bold;
}
code.big {
  font-size: 19px;
}
code em {
  font-style: normal;
  padding: 2px 0 2px;
}
code strong {
  color: #A00;
}
em.identifier {
  color: #0084D1;
}
em.statement {
  color: #c678dd;
}
pre {
  margin: 20px 0 20px 0;
}
pre > code {
  font-size: 14px;
  font-weight: normal;
}
figcaption {
  width: 100%;
  margin-top: -20px;
}
figcaption.small {
  font-size: 14px;
  color: #444;
}
figure {
  background-color: #FFF;
  text-align: center;
  margin: 20px 0;
}
figure.extended {
  max-width: 1022px;
}
figure.extended figcaption {
  margin: 10px 0;
}
figure img {
  display: block;
  height: auto;
  margin: 0 auto;
  width: 100%;
}
figure img.vertical-margin {
  margin-top: 30px;
  margin-bottom: 30px;
}
figure img.width-full {
  display: block;
  width: 100%;
  margin: 0;
}
figure img.width-100 {
  max-width: 600px;
}
figure img.width-90 {
  width: 90%;
  max-width: 540px;
}
figure img.width-80 {
  width: 80%;
  max-width: 480px;
}
figure img.width-60 {
  width: 60%;
  max-width: 360px;
}
figure img.width-50 {
  width: 50%;
  max-width: 300px;
}
figure img.width-40 {
  width: 40%;
  max-width: 240px;
}
figure img.width-30 {
  width: 30%;
  max-width: 180px;
}
figure figcaption {
  box-sizing: border-box;
  margin-top: 10px;
  margin-bottom: 20px;
  padding: 0 15px;
}
figure figcaption a:hover {
  text-decoration: underline;
}
section figure figcaption a:before {
  text-decoration: none !important;
  /* funziona? */
}
.text-box {
  box-sizing: border-box;
  background-color: #FFF;
  margin: 20px 0;
  padding: 35px 20px 45px;
  text-align: center;
}
strong.h3 {
  display: block;
  font-size: 22px;
  margin: 4px;
  line-height: 150%;
}
strong.h4 {
  display: block;
  font-size: 18px;
  margin: 4px;
  line-height: 150%;
}
.text-box .block {
  margin-left: 15px;
  padding-left: 15px;
  border-left: 3px solid #888;
  text-align: left;
}
.text-box .block.yellow {
  border-left-color: #FE0;
}
.text-box .block.cyan {
  border-left-color: #2DF;
}
.text-box .block.magenta {
  border-left-color: #E2E;
}
.text-box .block.orange {
  border-left-color: #FF0;
}
p.separation {
  margin: -10px 0;
}
p.separation:before {
  content: '\00a0';
}
p + ul {
  margin-top: 0;
}
.name-text {
  color: #007FC5;
}
.value-text {
  color: #800;
}
.hint,
.note {
  box-sizing: border-box;
  padding-left: 11px;
  padding-bottom: 3px;
  margin-top: 23px;
}
.hint {
  font-size: 15px;
  color: #444;
  border-left: 5px solid #555;
}
.note {
  font-size: 14px;
  line-height: 140%;
  color: #444;
  border-left: 3px solid #777;
  border-radius: 6px;
}
.note a {
  color: #444;
  white-space: nowrap;
}
.note a:hover {
  color: #000;
}
p code,
.hint code,
.note code {
  white-space: nowrap;
}
code.block {
  display: block;
  overflow-x: auto;
}
.hint code {
  font-size: 15px;
}
.note code {
  font-size: 14px;
}
.note + .note {
  margin-top: 8px;
}
p img {
  max-width: 100%;
}
.legend {
  margin-top: 0px;
  text-indent: -27px;
  margin-left: 27px;
  width: calc(100% - 27px);
  max-width: 572px;
  /* 600px - 28px */
}
pre + .legend {
  margin-top: 5px;
}
.legend:before {
  content: '\00a0__\00a0';
  margin-right: 6px;
  background-color: #282c34;
}
.legend.yellow:before {
  color: #DD0;
}
.legend.cyan:before {
  color: #0DF;
}
.legend.magenta:before {
  color: #D0D;
}
.legend.orange:before {
  color: #F70;
}
.hljs-comment,
.hljs-quote {
  color: #6e7787;
}
pre em {
  font-style: normal;
  padding: 2px 0 2px;
}
pre em.bar {
  border-left: 2px solid #CCC;
  box-sizing: border-box;
  margin-right: -4px;
  margin-left: 2px;
}
pre em.yellow {
  border-bottom: 1px solid #AA0;
  border-left-color: #AA0;
}
pre em.cyan {
  border-bottom: 1px solid #0AC;
  border-left-color: #0AC;
}
pre em.magenta {
  border-bottom: 1px solid #A0A;
  border-left-color: #A0A;
}
pre em.orange {
  border-bottom: 1px solid #C40;
  border-left-color: #C40;
}
em.red {
  background-color: #300;
}
em.green {
  background-color: #002800;
}
em.blue {
  background-color: #003;
}
em.placeholder {
  color: #7E8797;
  color: #AEB7C7;
  font-style: italic;
}
pre.scheme code {
  background-color: #16181d;
  font-size: 17px;
  line-height: 160%;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}
