@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap');

h1, h2 {
  font-weight: normal;
  font-family: 'Montserrat', sans-serif;
  color: black;
}

h2 {
  margin-top: 2em;
}

body {
  font-family: sans-serif;
  line-height: 1.3em;
  color: #222;
}

article {
    max-width: 800px;
    position: relative;
}

code {
  border: solid #ddd 1px;
  background: #e8e8e8;
  color: #266392;
  padding: 0.1em 0.2em;
  border-radius: 2px;
}

.exercises {
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 1.5em;
}

.exercise img:first-child {
  float: left;
  clear: left;
  margin: -4px 10px 10px 0;
}

.exercise {
  list-style: none;
  margin: 1.5em 0 1em 0;
  padding-left: 15px;
}

img.emoji {
  height: 1em;
  width: 1em;
  margin: 0 .05em 0 .1em;
  vertical-align: -0.1em;
}


@media screen and (min-width: 1100px) {
  article {
    position: absolute;
    left: 300px;
    top: 80px;
    width: 800px;
  }

  nav {
    position: absolute;
    top: 80px;
    left: 10px;
    width: 280px;
  }

  article h2:first-child,
  nav h2:first-child {
    margin-top: 0;
  }
}

.output {
  color: silver;
  background-color: black;

  padding: 0.5em 0.8em 1em;
  margin: 0;
}

.err {
  color: #a00;
}

.CodeMirror {
  font-size: 10pt;
  height: auto;
  padding: 4px;
}

/* CSS class for the prompt gutter in REPL mode */
.prompt-gutter {
  width: 3em;
  background-color: #2b2b2b;
}
.prompt {
  color: white;
  padding: 0.0em 0.5em;
  font-family: monospace;
}

.run {
  position: absolute;
  right: 6px;
  z-index: 10000;
  margin-top: 6px;
  color: white;
  background-color: #266392;
  border-radius: 4px;
  border: none;
  padding: 0.3em 0.6em;
}

.outbox {
  max-height: 300px;
  overflow-y: auto;
}

/* Style the "fork me on GitHub ribbon */
.github-fork-ribbon:before {
  background-color: #444;
}

/* Throbber taken from https://projects.lukehaas.me/css-loaders/ */
.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
}
.loader {
  color: #1f497e;
  font-size: 11px;
  text-indent: -99999em;
  margin: 55px auto;
  position: relative;
  width: 10em;
  height: 10em;
  box-shadow: inset 0 0 0 1em;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.loader:before,
.loader:after {
  position: absolute;
  content: '';
}
.loader:before {
  width: 5.2em;
  height: 10.2em;
  background: #ffffff;
  border-radius: 10.2em 0 0 10.2em;
  top: -0.1em;
  left: -0.1em;
  -webkit-transform-origin: 5.1em 5.1em;
  transform-origin: 5.1em 5.1em;
  -webkit-animation: load2 1s infinite ease 0.75s;
  animation: load2 1s infinite ease 0.75s;
}
.loader:after {
  width: 5.2em;
  height: 10.2em;
  background: #ffffff;
  border-radius: 0 10.2em 10.2em 0;
  top: -0.1em;
  left: 4.9em;
  -webkit-transform-origin: 0.1em 5.1em;
  transform-origin: 0.1em 5.1em;
  -webkit-animation: load2 1s infinite ease;
  animation: load2 1s infinite ease;
}
@-webkit-keyframes load2 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load2 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
