@import url(https://fonts.googleapis.com/css?family=Cambria);
@import url(https://fonts.googleapis.com/css?family=Lato);

body {
  background-color: ghostwhite;
}

h1 {
  color: #101414;
  font-family: "Lato", sans-serif;
  font-weight: bold;
  font-size: 2.5em;
  text-align: center;
  margin: 0.5em auto 0;
}

h2 {
  color: #101414;
  font-family: "Lato", sans-serif;
  font-weight: bold;
  font-size: 1.5em;
  text-align: left;
  margin: 0.75em 8px 0.25em;
}

h3 {
  color: #101414;
  font-family: "Lato", sans-serif;
  font-weight: normal;
  font-size: 1.75em;
  text-align: center;
  margin: 0.25em auto 0.75em;
  line-height: 1.25;
}

p,
li {
  color: #101414;
  font-family: "Cambria", serif;
  font-size: 1.125em;
  text-align: left;
  text-indent: 2.5em;
  line-height: 1.5;
  margin: 0 8px;
}

li {
  text-indent: 0;
}

a {
  color: #4098e0;
}

sup,
sub {
  font-size: 0.6em;
}

img {
  display: block;
  margin: 0.25em auto 0.75em;

  &.square {
    width: 360px;
  }

  &.long {
    width: 540px;
  }

  &.big {
    width: 400px;
  }
}

table {
  display: flex;
  border-spacing: 8px;
  border-collapse: collapse;
  justify-self: center;
  margin-bottom: 0.75em;
}

tr {
  height: 30px;
}

td,
th {
  font-family: "Lato", sans-serif;
  font-weight: normal;
  color: #101414;
  text-align: center;
  border: 1px solid #101414;
  padding: 4px;
}

hr {
  margin: 1em auto 0.5em;
}

div.doubleimg {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: end;
  margin: 0.25em auto 0.75em;
  gap: 16px;

  &>img {
    margin: 0;
    width: 360px;
  }
}

span.fn {
  vertical-align: super;
  font-size: x-small;
  font-style: normal;

  &>a {
    text-decoration: none;
  }
}

span.math {
  line-height: 2.0;
}

span.bigmath {
  line-height: 2.5;
}

p.caption {
  font-style: italic;
  text-align: center;
  text-indent: 0;
  margin-top: 0.25em;
  margin-bottom: 0.1em;
}

p.noindent {
  text-indent: 0;
}

p.block {
  text-indent: 0;
  margin-left: 50px;
}

p.return {
  font-family: "Lato", sans-serif;
  font-size: 1.25em;
  text-indent: 0;
  margin-top: 1.5em;
}

p#blockmath {
  text-align: center;
  text-indent: 0;
  margin: 0.5em auto;
}

p#rq {
  font-family: "Lato", sans-serif;
  text-indent: 0;
}

a.fn {
  text-decoration: none;
  font-style: normal;

  &:not(#ref-star) {
    vertical-align: super;
    font-size: x-small;
  }
}

a.ref {
  vertical-align: super;
  font-size: small;
}

ul#physnotes {
  margin: 0.1em;
}

ol#chemprod {
  margin: 0;
}

ol#eenotes {
  margin: 0.1em;
}

tr#bold {

  &>th,
  &>td {
    font-weight: bold;
  }
}

#phys1>tbody>tr {
  &>th {
    text-align: left;
    width: 120px;
  }

  &>td {
    width: 60px;
  }
}

#phys2>tbody>tr {
  &>th {
    text-align: left;
    width: 120px;
  }

  &>td {
    width: 108px;
  }
}

#phys3>tbody>tr>th {
  font-weight: bold;
  vertical-align: bottom;
}

#phys4>tbody>tr>th {
  text-align: left;
  width: 120px;
}

#chem1,
#chem2,
#chem3 {
  &>tbody>tr>th {
    font-weight: bold;

    &:nth-child(6n-3) {
      border-right-width: 2px;
    }
  }

  &>tbody>tr>td:nth-child(6n-3) {
    border-right-width: 2px;
  }
}

#chem4,
#chem5,
#chem6 {
  &>tbody>tr>td {
    &:nth-child(odd) {
      text-align: right;
      border-right: none;
    }

    &:nth-child(even) {
      text-align: left;
      border-left: none;
    }
  }
}