/* Divides the main content pane into mulltiple pieces so can space content 
a bit better */
section.main div.chunk {
  vertical-align: top;
  padding-bottom: 20px;  
}

/* Other embedded media types in content not accommodated in core style*/
section.main .content .markdown video {
  margin: 1rem 0;
  max-width: 100%;
}

section.main .content .markdown audio {
  margin: 1rem 0;
  max-width: 100%;
}

/** Contains the image and text block preview for all my fun things */
section.main div.funthing {
  display: block;
  clear: both;
  margin-bottom: 1rem;
  height: 80px;
  min-width:450px;
  word-wrap: break-word;
}

section.main .content .markdown .funthing .previewImg {
  display:block;
  float:left; 
  margin-right:10px; 
  border: 1px solid black;
}

section.main .content .markdown .funthing img {
  margin: 0px;
  width: 200px;
  height: 80px;
  vertical-align: top;
}

section.main .content .markdown .funthing .previewText {
  overflow:hidden; 
  height: 80px;
  border: 2px dashed #aed6f1;
  border-radius: 5px; 
  margin-right: 10px;
}

section.main .content .markdown .funthing p {
  margin: 0px;
  padding: 0 0 0 5px;
}

/** Allows us to add captions to all inlined content like images  */
figure {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.75em;
  padding: 0.5em;
  width: 65%;
  border: thin silver solid;
  font-style: italic;
  font-size: smaller;
  text-align: center;
  text-indent: 0;
}

/* Centers any content in content sections */
section.main .container .content .center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}


/* Creates a popup when hovering over a footnote link. The popup displays 
a footnote inline. The buffer around the popup is an invisible border of a 
few pixels which effectively makes the hover area larger for the popup. This 
forgivingly keeps the popup displayed when the user moves the mouse around 
the popup imprecisely. */

span.footpop {
  position: relative;
}

span.footpop > a {
  color: white;
  background-color: #428bca;
}

span.footpop > a:hover {
  color: white;
}

span.footpop .footpopBuffer {
  display:none;  
  position: relative;
}

span:hover.footpop .footpopBuffer {
  display:block;
  position: absolute;
  top: -10px;
  left: -10px;
  padding: 5px 10px 10px 10px;
  z-index: 5;

  /* border:1px solid black;  for debug purposes */
}

span.footpop > .footpopText {
  display:none;  
  position: relative;
}

span:hover.footpop .footpopText {
  display:block;
  margin-top: 1em;
  padding-left: 5px;
  width: 400px;
  max-height: 200px;
  overflow: auto;
  overflow-x: auto;
  background:#e9f3f5;
  border: 2px dashed #aed6f1;
  border-radius: 5px; 
  box-shadow: 2px 2px 2px 2px rgba(0,0,0,.4);
  z-index: 10;

  /* Firefox only scrollbar customization */
  scrollbar-color: #0ae #aed6f1;
  scrollbar-width: thin;
}

/* Chrome only scrollbar customization */
span.footpop .footpopText::-webkit-scrollbar {
  width: 10px;
  background-color: #aed6f1;
}

span.footpop .footpopText::-webkit-scrollbar-track {
  background-color: #aed6f1;
}

span.footpop .footpopText::-webkit-scrollbar-thumb {
  background-color: #0ae;
}

