html {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  height: 100%;
}
body {
  margin: 0px;
  display: flex;
  flex-direction: column;
}
main,
#sidebar {
  box-sizing: border-box;
}
#sidebar {
  display: flex;
  flex-direction: column;
}
#sidebar {
  padding: 0 2.5rem;
}

a {
  text-decoration: none;
}
body,
h1,
h2,
h3,
h4 {
  font-weight: normal;
}

/* Card */

#sidebar header h1 {
  font-size: 2.4rem;
}

/* Navigation panel */
nav {
  padding-bottom: 3rem;
}
nav h4 {
  margin-bottom: 0.2rem;
}
nav p {
  line-height: 1.5;
}
nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
nav li:after {
  content: " •";
  opacity: 0.5;
  margin: 0px 0.3rem;
}
nav li:last-child:after {
  content: "";
  opacity: 1;
  margin: 0;
}
nav h4 {
  margin: 0.5rem 0;
}

/* Main panel */

main header {
  overflow: auto;
  padding: 0 3rem 3rem 3rem;
}
main header h2 {
  margin-top: 2.4rem;
}
main header p {
  margin-top: 2rem;
  margin-bottom: 0;
}

main > section {
  margin: 6rem auto;
  padding: 0 3rem;
}
section .link {
  cursor: pointer;
  display: table;
  margin-right: 1rem;
  padding: 0px 14px 6px 14px;
}

/* Highlight.js */

.hljs {
  font: normal 10pt Consolas, Monaco, monospace;
  line-height: 1.5;
  padding: 3rem 0 5rem 3rem;
}

pre {
  margin: 0;
}

/* Media Queries */

@media (min-width: 1200px), (max-width: 360px) {
  nav li {
    width: 100%;
  }
  nav li:after {
    content: none;
  }
  nav h4 {
    margin: 0.2rem 0 0;
  }
  nav a {
    display: block;
    padding: 2px 0 2px 14px;
  }
}

@media (min-width: 1200px) {
  body {
    flex-direction: row;
    height: 100%;
    overflow: hidden;
  }
  main,
  #sidebar {
    height: 100%;
    overflow-y: auto;
  }
  main {
    flex: 1 0 0px;
  }
  #sidebar {
    flex: 0 0 280px;
  }
  section .link {
    width: 140px;
  }
}

/* Colors */

a {
  color: #177fd6;
}
nav a:hover {
  color: #a131c2;
}
nav a.is-active {
  color: #a131c2;
}

.hljs-title {
  color: #177fd6;
}
.hljs-keyword {
  color: #a131c2;
}

section .link {
  color: #61aeee;
}
section .link:hover {
  color: #c678dd;
}
section .link.is-active {
  color: #c678dd;
}

#sidebar {
  color: #555;
}

#sidebar header h1 a,
#sidebar h2,
#sidebar h3,
#sidebar h4 {
  color: black;
}

main {
  background-color: #333333;
}
main header {
  background-color: #f2f2f2;
  color: #333;
}

main section {
  color: white;
}

.hljs {
  background-color: #f2f2f2;
}
