body {
    margin: 0;
    font-family: monospace;
}

.sidebar {
    position: fixed;
    float: left;
    width: 100px;
    height: 100%;
    background-color: #f9f9f9;
    padding-top: 20px;
    box-shadow: 1px 0 0 2px rgba(0,0,0,1); 
}

.content .boxed {
  display: inline-block;
  border: 1px solid #ccc;
  box-shadow: 3px 3px 0px rgba(0,0,0,1); 
   padding: 12px 20px;
  background: #f9f9f9;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin: 20px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: block;
    padding: 10px;
}

.sidebar ul li a:hover {
    background-color: #ddd;
    color: #fff;
}

.sidebar ul#note-links li a {
  color: #448dd7;
  font-weight: normal;
  text-decoration: none;
}

.sidebar ul#note-links li a:hover {
  color: #fff;
  text-decoration: none;
}

.content {
  margin-left: 100px;
  padding: 20px;
  max-width: 800px; 
  width: calc(100% - 120px);
}

/* Markdown content styles */

section {
    margin-bottom: 30px;
}

#markdown-content img {
    max-width: 50%;
    display: block; 
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Footnotes container */
.footnotes {
  font-size: 0.9em;
  color: #555;
  margin-left: 0px;
  padding-left: 0px;
  line-height: 1.2;
  padding-top: 0;
  padding-bottom: 0;
}

 /*Numbered list in footnotes */
.footnotes ol {
    margin-left: 0px;
    padding-left: 2em;
    line-height: 1.0;
}

/* Each footnote item */
.footnotes li {
  line-height: 1.2;
  padding: 0em 0;
}

/* Superscript links in the main text */
sup a {
  text-decoration: none;
  font-size: 0.5em;
}

hr.footnotes-sep {
  border: none;
  border-top: .5px dashed #999;
}

/* "Back to text" arrow link in the footnotes */
.footnotes a[href^="#fnref"] {
  text-decoration: none;
  font-size: 0.9em;
}

@media screen and (max-width: 800px) {
    .content {
        margin-left: 75px;
        padding: 10px;
        width: calc(100% - 100px);
    }
    .content p {
        text-align: justify;
    }
    .sidebar {
        width: 70px;
    }
    #markdown-content img {
        max-width: 100%;
    }
}
