  @import url('https://fonts.googleapis.com/css?family=Muli:400,400i,700&display=swap');
  @import url('https://fonts.googleapis.com/css?family=Prata&display=swap');
  @import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

p.caption {
  color: #777;
  margin-top: 10px;
}
p code {
  white-space: inherit;
}
pre {
  word-break: normal;
  word-wrap: normal;
}
pre code {
  white-space: inherit;
}

/* The next two rules make the horizontal line go straight across in top navbar */

.summary > li:first-child {
    height: 50px;
    padding-top: 10px;
    border-bottom: 1px solid rgba(0,0,0,.07);
}

.book .book-summary ul.summary li.divider {
    height: 0px;
}

/*____Code Chunks____*/

.sourceCode pre {
  margin: 0 !important; /* makes space above and below symmetrical*/
}

.sourceCode {
  margin-bottom: 0.85em; /* adds same amount of margin as a <p> would */
}

/*------------- Body and header text---------------- */

.book.font-family-1 {
  font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: #3a8bf5;
}

.title {
  font-family: 'Poppins', sans-serif;
  font-size: 3em !important;
  color: #2c1f6e;
 }

.subtitle {
  font-family: 'Poppins', sans-serif;
  color: #2c1f6e;
}

/*--- LOGO ---*/

.toc-logo {
  width: 200px !important;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.toc-logo img {
  max-width: 100%;
  margin-bottom: 10px;
}

.summary > li:first-child {
  height: auto !important; 
}

.summary{
font-family: 'Poppins', sans-serif;
}


  /* all TOC list items, basically */

.book .book-summary ul.summary li a, 
.book .book-summary ul.summary li span {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 15px;
  padding-right: 15px;
  color: #2c1f6e;
}


.summary a:hover {
  color: #3a8bf5 !important;
} 


.book .book-summary ul.summary li.active>a { /*active TOC links*/
  color: #3a8bf5 !important;
  border-left: solid 4px;
  border-color: #7766f3;
  padding-left: 11px !important;
}  

li.appendix span, li.part span { /* for TOC part names */
  margin-top: 1em;
  color: color: #3a8bf5 !important;
  opacity: 1 !important;
  text-transform: uppercase;
}

/* -----------Section anchors -------------*/

.book .book-body .page-wrapper .page-inner section.normal {
  overflow: visible !important; /*so anchor link doesnt get cut off */
}

a.anchor {
  margin-left: -30px;
  padding-right: 3px;
  display:inline-block;
  width: 30px;
  height: 30px;
  background-image: url(https://raw.githubusercontent.com/EPFR/EPFR-QuantNotebooks/master/docs/images/link.png) !important;
  background-repeat: no-repeat !important;
  background-size: 20px 20px !important;
  background-position: center bottom !important;
  opacity: 0;
}


.hasAnchor:hover a.anchor, a.anchor:hover {
  opacity: 0.6;
}

@media (max-width: 1144px) { /* dont show anchor link on small screens */
  .hasAnchor:hover a.anchor {
visibility: hidden;
  }
}

/* -----------Sidebar div tips------------- */
/* from r-pkgs.org*/

  div.puzzle, div.fyi, div.demo, div.note {
    padding: 1em;
    margin: 1em 0;
    padding-left: 100px;
    background-size: 70px;
    background-repeat: no-repeat;
    background-position: 15px center;
    min-height: 120px;
    color: #1f5386;
    background-color: #e6f3fc;
    border: solid 5px #5699cc;
  }



.copy {
  width: inherit;
  background-color: #ffffff;
  border: none;
  border-radius: 2px;
  float: right;
  font-size: 60%;
  padding: 4px 4px 4px 4px;
}