.rmdcaution,
.rmdimportant,
.rmdinfo,
.rmdtip,
.rmdwarning,
.rmdknit {
  padding: 1em 1em 1em 2em;
  /* margin-bottom: 10px; */
  /* background: #F2E2D7 5px center/3em no-repeat; */
  /* border-radius: 25px; */
}


.rmdknit {
  /* color:white; */
  background-size: 80px 60px;
}

/*
p.date {
  color:transparent;
}
*/

h1 {
  overflow: hidden;
  width: 1px;
  height: 1px;
}

section.normal strong {
  font-weight: 700;
  color: #243663;
}

section.normal h1 {
  color: #243663;
}

section.normal h2 {
  color: #243663;
}

section.normal h3 {
  color: #243663;
}

section.normal h4 {
  color: #243663;
}

section.normal h5 {
  color: #243663;
}

section.normal h6 {
  color: #243663;
}

.caption {
  color: #777;
  margin-top: 10px;
}

 p{
  text-align: justify;
}

p code {
  white-space: inherit;
}

pre {
  word-break: normal;
  word-wrap: normal;
}

pre code {
  white-space: inherit;
}

.sourceCode, pre {
  /* border-radius: 10px 10px 10px 10px; */
}

div.book-header.fixed[style] {
  background-color: #243663 !important;
}


.book-header.fixed a:hover {
  color: #FE6E2F !important;
}

.book-header.fixed a:active {
  color: #FE6E2F !important;
}

.page-wrapper a:hover {
  color: #FE6E2F !important;
}

.page-wrapper a:active {
  color: #FE6E2F !important;
}

.dropdown-menu .buttons .button {
  color: #914d09;
}

/* ADDDED BY MARTIN S. */

.folded>pre,
.unfolded>pre {
  min-height: 30px;
  position: relative;
  padding-top: 30px;
}

.showopt {
  /*position: absolute;*/
  left: 100%;
  top: 7.5px;
  transform: translateX(-105%);
  background-color: #243663;
  color: #243663;
  width: 100px;
  height: 20px;
  text-align: center;
  vertical-align: middle !important;
  font-family: serif;
  /* border-radius: 8px; */
}

.showopt:hover {
  background-color: #243663;
  color: #243663;
}

.plot {
  background-color: white !important;
}

.image {
  display: block;
  margin: auto;
}

.imgContainer::after {
  content: attr(cap);
  display: block;
  text-align: center;
}

/* ADDED BY ALEX */

/* Class for key concepts */

.keyconcept {
  /* background-color: #F2E2D7; */
  /* border-radius: 15px 50px; */
  /* border-color: #F2E2D7; */
  /* color: white; */
  margin: 20px 0 20px 0;
  padding-left: 25px;
  padding-right: 25px;
  padding-top: 0px;
  padding-bottom: 15px;
}

.keyconcept h3.right {
  float: right;
  /* color: white; */
  width: 25%;
  text-align: center;
}

.keyconcept h3.left {
  float: left;
  /* color: white; */
  width: 65%;
}

.keyconcept strong {
  color: black !important;
}

.keyconcept a:link {
  color: black !important;
}

.keyconcept a:visited {
  color: black !important;
}

.keyconcept a:hover {
  color: black !important;
}

.keyconcept a:active {
  color: black !important;
}

.keyconcept p {
  clear: both;
}

/* Added by Martin A. */

/* class for DataCamp exercise div */

.DCexercise {
  /* border-radius: 15px 15px 15px 15px; */
  /* background-color: #F2E2D7; */
  /* border-color: #F2E2D7; */
  /* color: white; */
  margin: 20px 0 20px 0;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 5px;
  padding-bottom: 15px;
}

.DCexercise strong {
  color: black !important;
}

.DCexercise h4 {
  color: black !important;
}

.DCexercise a:link {
  color: black !important;
}

.DCexercise a:visited {
  color: black !important;
}

.DCexercise a:hover {
  color: black !important;
}

.DCexercise a:active {
  color: black !important;
}

/* Elements for D3.js Regression visualizations  */

.h,
.v {
  stroke: black;
  stroke-dasharray: 4 4;
  stroke-width: 1;
  stroke-opacity: .5;
}

.axis path,
.axis line {
  fill: none;
  stroke: #000;
  shape-rendering: crispEdges;
}

.axis text {
  font-family: serif;
  font-size: 11px;
}

#resid_button {
  position: relative;
  top: -300px;
  left: 720px;
}

#reset_button {
  position: relative;
  top: -345px;
  left: 603px;
  width: 112px;
}

/* ndistwlln */
.share {
  stroke: steelblue;
  stroke-width: 2;
  fill: none;
}

/* open review block */

.h-icon-chevron-left {
  /* background: white; */
  padding: 3px;
  border: #eee 1px solid;
  color: #666;
}

.fa-rotate-315 {
  -webkit-transform: rotate(315deg);
  -moz-transform: rotate(315deg);
  -ms-transform: rotate(315deg);
  -o-transform: rotate(315deg);
  transform: rotate(315deg);
}

.rmdreview {
  padding: 1em 1em 1em 5em;
  margin-bottom: 0px;
  background: #f5f5f5 5px center/3em no-repeat;
  position: relative;
}

.rmdreview:before {
  content: "\f0e6";
  font-family: FontAwesome;
  left: 10px;
  /*position:absolute;*/
  top: 10px;
  bottom: 0;
  font-size: 60px;
}

/* TOC */
/*html*/
.book .book-summary {
  /*position: absolute;*/
  top: 0;
  left: -300px;
  bottom: 0;
  z-index: 1;
  width: 300px;
  color: #FFFFFF;
  /*background: #315479;*/
  /*background: #014463;*/
  background: #0c2c42;
  border-right: 1px solid #FE6E2Faf;
}

.book .book-summary ul.summary li a,
.book .book-summary ul.summary li span {
  margin: 5px 5px 5px 5px;
  display: block;
  padding: 10px 20px 10px 20px;
  color: #FFFFFF;
  background: 0 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.book .book-summary ul.summary li.active>a {
  padding-left: 5px;
  /* border-radius: 10px 10px 10px 10px; */
  color: #0c2c42 ;
  font-weight: bold;
  background: #FE6E2F;
  text-decoration: none;
}

.book .book-summary ul.summary li a:hover {
  padding-left: 5px;
  /* border-radius: 10px 10px 10px 10px; */
  font-weight: bold;
  color: #FFFFFF;
  background: rgba(243, 242, 242, .40);
  text-decoration: none;
}

/* Tables */

td,
tr,
th {
  color: black !important;
  background-color: transparent !important;
}

table {
  /* border-radius: 10px 10px 10px 10px; */
  color: black !important;
  /* background-color: #F2E2D7 !important; */
}

caption {
  color: black;
}

.book .book-body .page-wrapper .page-inner section.normal table td,
.book .book-body .page-wrapper .page-inner section.normal table th {
  padding: 6px 13px;
  border: 1px solid transparent;
}

/* source code copy button */
.copy {
  width: inherit;
  background-color: #e2e2e2;
  border: none;
  /* border-radius: 2px; */
  float: right;
  font-size: 60%;
  padding: 4px 4px 4px 4px;
}

.book .book-header.fixed {
  font-family: 'Pacifico', Serif;
  background-color: #F2F2F2;
}

.title {
  font-family: 'Pacifico', Serif;
}

.book .book-summary {
  font-family: 'PT Serif', Serif;
}

.book.font-family-0 {
  font-family: 'Source Serif Pro', arial, Serif;
}

/*
.book .book-body .page-wrapper .page-inner {
  max-width: 980px !important;
}
*/

.video-responsive {
	height: 0;
	overflow: hidden;
	padding-bottom: 56.25%;
	padding-top: 30px;
	position: relative;
	}
.video-responsive iframe, .video-responsive object, .video-responsive embed {
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	}