

/* 1. Enable smooth scrolling */
html {
    scroll-behavior: smooth;
    background: #f5f5f5;
    font-size: 100%;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}



/* 3. ScrollSpy active styles (see JS tab for activation) */
[role="doc-toc"] li.active > a {
    color: #333;
    font-weight: 500;
}

/* Sidebar Navigation */
[role="doc-toc"] {
    padding-left: 0;
    border-left: 1px solid #efefef;
}

[role="doc-toc"] a {
    text-decoration: none;
    display: block;
    padding: .125rem 0;
    color: gray;
    transition: all 50ms ease-in-out; /* 💡 This small transition makes setting of the active state smooth */
}

[role="doc-toc"] a:hover,
[role="doc-toc"] a:focus {
    color: black;
}

[role="doc-endnotes"] {
  padding: 1em;
  border-left: 6px solid black;
  background-color: lightgrey;
}


/** Poor man's reset **/
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    font-size: 1.2em;
    line-height: 1.7;
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    padding: 1em;
    margin: auto;
    max-width: 1000px;
}

blockquote {
  margin: 0;
  padding-left: 3em;
  border-left: 0.5em #EEE solid;
}

img {
  max-width: 100%;
  border: 0;
  -ms-interpolation-mode: bicubic;
  vertical-align: middle;
}

img.second {
  height: 50%;
  width: 50%;
}

figure {
  display: block;
  text-align: center;
  margin: 1em 0;
}

figure img {
  border: none;
  margin: 0 auto;
}

figcaption, caption {
  font-style: italic;
  margin: 1em;
}


table {
  width: 100%;
  margin-bottom: 2em;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-spacing: 0;
  border-collapse: collapse;
}

table th {
  padding: .3em;
  background-color: #eee;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  text-align: center;
  font-size: .8em;
}

table td {
  padding: .3em;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  vertical-align: top;
  text-align: center;
  font-size: .8em;
}

button {
  background-color: gray;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

ul, nav.ol {
  font-size: 1em;
  text-align: left;
  list-style: none;
  margin: 0;
  padding: 0;
}
li {
    margin-left: 1rem;
}

li[role=doc-endnote] {margin-left: 0;}

h1, h2, h3, h4, h5, h6 {
  color: #111;
  line-height: 125%;
  margin-top: 2em;
  font-weight: normal;
  text-align: left;
}

h4, h5, h6 {
  font-weight: bold;
}

h1 {
  font-size: 2.5em;
}

h2 {
  font-size: 2em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.2em;
}

h5 {
  font-size: 1em;
}

h6 {
  font-size: 0.9em;
}

/** page layout **/
main {
  display: flex;
  flex-direction: column-reverse;
}

/** enlarge the sections for this demo, so that we have a long scrollable page **/
section {
    padding-bottom: 3rem;
}

section > section {
    padding-bottom: 2rem;
}

section > section > section{
    padding-bottom: 1rem;
}

@media screen and (min-width : 600px){
  main {
    display: flex;
    flex-direction: row;
    grid-gap: 1rem;
  }
  /* 2. Make nav sticky */
  main > nav {
      position: sticky;
      top: 2rem;
      align-self: start;
  }
}
