/* underlined text should have the underline close to the text */
.ltx_framed_underline { padding:0px; }

/* get rid of lines around equations */
td.ltx_eqn_cell { border: none!important; background: none!important; }
.ltx_eqn_row { border: none!important; background: none!important; }
.ltx_equation.ltx_eqn_div {
  border-top: none;
  border-bottom: none;
}
/* https://github.com/vlmantova/bookml/issues/39 */
.book .book-body .page-wrapper .page-inner section.normal table.ltx_equationgroup tr,
.book .book-body .page-wrapper .page-inner section.normal table.ltx_equationgroup tr th,
.book .book-body .page-wrapper .page-inner section.normal table.ltx_equationgroup tr td {
  border-top-width: 0;
  border-bottom-width: 0;
}

tr.nolines {
  border-top: none !important;
  border-bottom: none !important;
}

blockquote > p:last-child {
    text-align: left !important;
}

/* Add more space around environments */
.ltx_theorem, .ltx_proof {
	margin: 1em 0em 1em -14px;
	padding-left: 10px !important;
}
.book .book-body .page-wrapper .page-inner section.normal {
	overflow: visible;
}

/* Warning box */
.ltx_theorem_warningbox .ltx_title span.ltx_tag .ltx_inline-block {
    display: inline;
}
.ltx_theorem_warningbox {
  border-left: solid 4px #a50034;
  border-right: none;
  padding: 5px;
}

/* Theorem-like */
.ltx_theorem_theorem,
.ltx_theorem_proposition,
.ltx_theorem_lemma,
.ltx_theorem_corollary {
  padding: 5px;
  background-color: #fefcfa; /* 2% of #C66005 on white */
  border-left: solid 4px #C66005;
  border-right: solid 4px #C66005;
}
.color-theme-2 .ltx_theorem_theorem,
.color-theme-2 .ltx_theorem_proposition,
.color-theme-2 .ltx_theorem_lemma,
.color-theme-2 .ltx_theorem_corollary {
  background-color: #633003 !important; /* 2% of #C66005 on black */
}
  
/* Definition-like */
.ltx_theorem_definition,
.ltx_theorem_axiom,
.ltx_theorem_axioms { 
  padding: 5px;
  background-color: #F7FCFC; /* 3% of #009baa on white */
  border-left: solid 4px #009baa;
  border-right: solid 4px #009baa;
}
.color-theme-2 .ltx_theorem_definition,
.color-theme-2 .ltx_theorem_axiom,
.color-theme-2 .ltx_theorem_axioms { 
  background-color: #004e55 !important; /* 3% of #009baa on black */
}


.ltx_proof {
  padding: 5px;
  background-color: transparent !important;
  border-left: solid 4px #c6d1d6;
  border-right: none !important;
}
.color-theme-2  .ltx_proof {
  background-color: transparent !important;
}


/* Example-like */
.ltx_theorem_example,
.ltx_theorem_remark,
.ltx_theorem_remarks,
.ltx_theorem_question { 
  padding: 5px;
  background-color: none !important;
  border-left: solid 4px #466183;
  border-right: none !important;
}
.color-theme-2 .ltx_theorem_example,
.color-theme-2 .ltx_theorem_remark,
.color-theme-2 .ltx_theorem_remarks,
.color-theme-2 .ltx_theorem_question { 
  background-color: #080706 !important;
}

/* Exercise-like */
.ltx_theorem_exercise,
.ltx_theorem_bonus { 
  padding: 5px;
  background-color: none !important;
  border-left: solid 4px #e6cce0; /* 25% of #830065 on white */
  border-right: none !important;
}
.color-theme-2 .ltx_theorem_exercise,
.color-theme-2 .ltx_theorem_bonus { 
  border-left: solid 4px #1a0014; /* 25% of #830065 on black */
}
.ltx_theorem_exercise .fa-pencil {
	color: #830065;
}

/* rounded numbers in theorems etc */
.ltx_tag_item span.deflist,
.ltx_tag_item span.resultlist {
    border: none;
    border-radius: 50%;
    background: #009BA9;
    color: white;
    text-align: center!important;
    margin-right: 0.3em;
    padding: 0!important;
    width: 1.5em;
    display: inline-block;
    height: 1.5em;
    line-height: 1.5em;
}
.ltx_tag_item span.resultlist {
	background: #c66005;
}