body {
  margin: 0;
}

/* NavBar */

ul.navbar {
  list-style-type: none;
  margin: 0;
  padding: 0;
  width: 200px;
  background-color: #f1f1f1;
  position: fixed;
  height: 100%;
  overflow: auto;
}

li.navitem a {
  display: block;
  color: #000;
  padding: 8px 16px;
  text-decoration: none;
}

li.navitem a.active {
  background-color: #417D80;
  color: white;
}

li.navitem a:hover:not(.active) {
    background-color: #0D4A4D;
    color: white;
}

/* Body Frame */

html,body {
  height: 100%;
}

div.body {
  margin-left: 225px;
  padding: 1px 20px;
  min-height: 100%;
  height: 100%;
  background: #ffffff;
}

/* Replaces radio buttons with images. */

label > input { /* Hides radio */
  visibility: hidden;
  position: absolute;
}

label > input + img { /* Adds pointer cursor to radio (unchecked) */
  cursor:pointer;
  border:2px solid transparent;
}

label > input:checked + img { /* Checked radio button */
  border:2px solid #f00;
}

/* Localization Flags */

div.localization {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px 10px;
}

/* Titles */

html {
  font-family: "Roboto", sans-serif;
  font-size: 14pt;
}

h1 {
  font-size: 24pt;
  color: #023844;
}

h2 {
  font-size: 18pt;
  color: #044351;
}

h2.subtitle {
  font-size: 14pt;
  color: #417D80;
}

h2.subtitle a {
  text-decoration: none;
  color: #417D80;
}

h2.subtitle a:hover {
  color: #0D4A4D;
}

h3 {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 16pt;
  color: #053d77;
}

h4 {
  font-size: 14pt;
  color: #0D4A4D;
}

b {
  color: #096ea0;
  display: inline;
}

/* Tables */

table {
  border: 1px solid #bbb;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  margin-bottom: 40px;
  max-width: 700px;
  width: 75%;
  text-align: center;
  border-spacing: 0;
  border-collapse: separate;
  background-color: #fff;
}

th {
  padding: 7px;
  color: #053d77;
}

tr:nth-child(even) {
  background-color: #c8b7a769;
}

tr:hover {
  background-color: #6c81ae69;
}

tr:hover:nth-child(1) {
  background-color: #fff;
}

td {
  padding: 7px;
}

/* Lists */

ol {
  margin-left: 20px;
}

ol li {
  padding: 3px;
}

ul:not(.navbar) {
  margin-left: 20px;
  list-style-type: square;
}

ul:not(.navbar) li {
  padding: 3px;
}

/* Links */

a {
  color: #0D4A4D;
  text-decoration: none;
}

a:hover {
  font-weight: bold;
}

/* Images */

img.portrait {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 5px;
  width: 250px;
  box-shadow: .1em .1em 5px 2px rgba(0, 0, 0, 0.5);
}

/* Boxes */

div.box {
  margin: 30px 50px;
  padding: 10px;
  border-left: 5px solid #2D8633;
  width: 80%;
  box-shadow: .1em .1em 5px 2px rgba(0, 0, 0, 0.5);
}

div.cite {
  border-left: 5px solid #AA6D39;
}

div.research {
  border-left: 5px solid #2E4172;
}

div.project {
  border-left: 5px solid #2D8633;
}

div.residuals {
  border-left: 5px solid #B32B61;
}

div.subtext {
  padding-left: 20px;
}

div.email {
  margin: auto;
  margin-top: 40px;
  margin-bottom: 40px;
  width: 300px;
  height: 50px;
  text-align: center;
  border-left: 5px solid #AA3C39;
}

/* Quotes */

blockquote {
  margin: 30px 50px;
  padding: 10px;
  width: 80%;
  border-left: 5px solid #B32B61;
}

/* IC page */

div.topbar {
  position: relative;
  width: 100%;
  height: 100px;
  background-color: #236467;
}

div.icbar {
  position: absolute;
  top: 50%;
  left: 25px;
  transform: translate(0, -50%);
  margin: auto 0;
}

h1.ic {
  padding: 0px;
  margin: 0px;
  margin-bottom: 5px;
  font-size: 26pt;
  color: #fff;
}

h2.ic {
  padding: 0px;
  margin: 0px;
  margin-top: 5px;
  font-size: 16pt;
  color: #fff;
}

a.back {
  position: absolute;
  margin-right: 50px;
  padding: 5px;
  right: 0;
  font-size: 14pt;
  box-shadow: .1em .1em 5px 2px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  color: #fff;
  background-color: #236467;
}

/* Email obfuscation */

button.decode {
  margin: auto;
  text-align:center;
  display: block;
}

/* Center hack */
div.centerer {
  text-align: center;
}
