@import url('https://fonts.googleapis.com/css?family=Bitter:400i|Open+Sans:300,400,700');

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
}

.container {
  width: 100vw;
  transition: all 500ms ease;
}
.content {
  margin: 1em auto;
  font-size: 16px;
}

img {
  width: 100%;
}

p {
  margin: 1.2em 0;
}

p, h2, h3, ul {
  margin-left: 5%;
  margin-right: 5%;
}

#toctitle {
  padding: 0 0.5em;
}

#back-to-top {
  position: fixed;
  bottom: 0.25em;
  right: 0.25em;
  cursor: pointer;
  opacity: 1;
  transition: all 500ms ease;
  background-color: rgba(0,0,0, 0.75);
  border: none;
  color: white;
  border-radius: 0.25em;
  padding: 0.5em 0.5em;
}

#firstHeading{
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
}

blockquote {
  margin: 1em 2em;
  font-family: 'Bitter', serif;
  background-color: #F9F9F9;
  padding: 0.25em;
  border-radius: 0.75em;
  color: #6d6d6d;
  quotes: "\201C""\201D""\2018""\2019";
}
blockquote p{
  font-style: italic;
  margin-top: 0;
  margin-bottom: 1em;
}
blockquote:before, blockquote:after {
  font-size: 2em;
  font-family: "Lucida Sans Unicode", Serif;
  line-height: 0.01em;
  position: relative;
}
blockquote:before{
  content: open-quote;
  top: 0.3em;
  left: 0.1em;
}

blockquote:after{
  content: close-quote;
  float: right;
  right: 0.1em;
}

/* Navigation */

.sidebar {
  position: fixed;
  top: 0;
  bottom:0;
  width: 300px;
  transition: all 500ms ease;
  transform: translateX(-300px);
  background-color: #212A35;
  color: #FFF;
  z-index: 2;
  overflow-y: scroll;
}
.sidebar ul{
  list-style: none;
  padding: 0;
}

.sidebar li{
  padding: 0.5em 0;
}
nav > ul > li {
  border-top: 1px solid #1a212a;
  font-weight:400;
  max-width: 100%;
}
nav > ul > li > ul > li {
  padding-bottom: 0;
  font-weight: lighter;
}
nav li a:hover {
  color: #CE1E1E;
}
#toctitle h2 {
  text-align: center;
  font-weight: 400;
  text-transform: uppercase;
}

.sidebar a{
  color: #FFF;
  text-decoration: none;
}

.sidebar-visible #back-to-top{
  opacity: 0;
}

.sidebar-visible .container{
  background-color: rgba(0, 0, 0,0.4);
  filter: blur(2px);
  cursor: pointer;
  position: fixed;
}

.sidebar-visible .sidebar{
  transform: translateX(0);
}

#hamburger {
  padding: 0.5em;
  cursor: pointer;
  transition: all 500ms ease;
}
.hamburger-line {
  height:3px;
  width:20px;
  margin: 3px 0 3px 3px;
  display:block;
  background-color: black;
  transition: all 500ms ease;
}

/* Desktop Layouts*/

@media screen and (min-width: 1000px) {
  .content{
    margin: 0 auto;
    width: 80vw;
  }
  h1, img {
    display:block;
    margin: 1em auto;
  }
  .content p, .content li {
    max-width: 65%;
  }
  blockquote {
    position: relative;
    display: block;
    float: right;
    max-width: 30%;
    transform: translateX(3em);
    clear: both;
  }
  .content blockquote p{
    max-width: 100%;
  }
  blockquote:after{
    top: 0.05em;
  }
  h2, h3{
    transform: translateX(-2em);
  }
  .blockfix{
    bottom: 10em;
  }
}
