
body {
  background-color: white;
  margin: 0;
  border: 0;
  padding: 0;
  overflow: scroll;
  font-family: Sans-Serif;
  line-height: 1.6;
}

div.page {
  background-color: white;
  color: black;
  margin: 0 auto;
  border: 0;
  padding: 10px 30px;
  width: 840px;
}

div.jswarning {
  background-color: white;
  margin: 30px auto;
  border: 0;
  padding: 30px 20px;
  width: 840px;
  text-align: center;
}

/*** Navigation ***/

div.navigation {
  background-color: rgb(237, 231, 253);
  border: 1px solid black;
  padding: 2px;
  text-align: center;
}

div.navigation.header {
  margin: 5px 0 40px 0;
}

div.navigation.footer {
  margin: 40px 0 5px 0;
}

/*** Headings ***/

h1 {
  margin: 40px 0;
  font-size: 1.6em;
  text-align: center;
}

h2 {
  margin: 30px 0 20px 0;
  font-size: 1.2em;
  text-align: center;
}

/*** Table of Contents ***/

div.toc {
  width: 350px;
  margin: 40px auto;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  border-left: 0;
  border-right: 0;
  padding: 0 20px;
  line-height: 1.2;
}

div.toc ul {
  list-style-type: none;
  margin: 10px 0;
  padding: 0;
}

div.toc li {
  margin: 0;
}

div.toc p {
  margin: 10px 0;
}

div.toc span.part {
  font-weight: bold;
}

div.toc span.summ {
  font-weight: normal;
}

div.toc span.app {
  font-weight: normal;
}

/*** Group ***/

div.group {
  margin: 22px 0;
  border: 0;
  padding: 0 20px;    
}

div.group.definition,
div.group.formula,
div.group.formulas,
div.group.important,
div.group.law,
div.group.laws,
div.group.question,
div.group.theorem {
  background-color: rgb(237, 231, 253);
  margin: 20px 0;
  border: 2px;
  border-style: solid;
  border-color: black;
  padding: 8px 18px 10px 18px;
}

div.group.example {
  margin: 20px 0;
  border: 2px;
  border-style: solid;
  border-color: black;
  padding: 8px 18px 10px 18px;
}

div.group.why {
  margin: 20px 0;
  border: 2px;
  border-style: dotted;
  border-color: black;
  padding: 8px 18px 10px 18px;
}

div.group div.head {
  font-weight: bold;
  margin-bottom: 8px;
}

/*** Layout ***/

div.layout {
  margin: 22px 0;
}

div.entry {
  margin: 22px 0;
}

div.figure {
  text-align: center;
}

span.title {
  border-bottom-style: solid;
  border-bottom-width: 1px;
  border-bottom-color: black;
}

div.layout.titlebody div.body {
  margin-top: 10px;
  margin-left: 30px;
}

div.layout.titlebodyfigure div.bodyfigure {
  margin-top: 10px;
  overflow: hidden;
}

div.layout.titlebodyfigure div.body {
  width: 470px;
  margin-left: 30px;
  float: left;
}

div.layout.titlebodyfigure div.figure {
  width: 300px;
  float: right;
}

div.layout.bodyfigure div.entry {
  overflow: hidden;
}

div.layout.bodyfigure div.body {
  width: 500px;
  float: left;
}

div.layout.bodyfigure div.figure {
  width: 300px;
  float: right;
}

/*** Passages ***/

div.passage {
  margin: 22px 0;
}

div.passage.table {
  text-align: center;
}

/*** Matter ***/

div.matter {
  margin: 10px 0;
}

div.matter.image {
  text-align: center;
}

/*** Collapsing Margins ***/

div.group.ct,
div.layout.ct,
div.entry.ct,
div.passage.ct,
div.matter.ct,
li.ct {
  margin-top: 0;
}

div.group.cb,
div.layout.cb,
div.entry.cb,
div.passage.cb,
div.matter.cb,
li.cb {
  margin-bottom: 0;
}

/*** Content ***/

table {
  margin: 0 auto;
  border-collapse: collapse;
  border: 1px solid black;
}

div.passage.table.short table {
  line-height: 1.2;
}

div.passage.table.long table {
  line-height: 1.6;
}

th {
  border-bottom: 1px solid black;
  border-left: 1px solid black;
  padding: 5px 15px;
  /* background-color: rgb(237, 231, 253); */
  font-weight: normal;
  text-align: center;
}

td {
  border-left: 1px solid black;
  padding: 5px 15px;
}

th.left,
td.left {
  text-align: left;
}

th.center,
td.center {
  text-align: center;
}

th.right,
td.right {
  text-align: right;
}

img {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 30px;
}

ol {
  margin: 0;
  padding-left: 30px;
}

li {
  margin: 5px 0;
}

span.inline {
  white-space: nowrap;
}

a {
  color: #2a7ae2;
  text-decoration: none;
}

a:hover {
  color: #111;
  text-decoration: underline;
}
  
a:visited {
  color: #1756a9;
}
