@media (max-width: 500px) {
  body {
    border-top: 2px solid #BDE4FC;
  }
  h1 {
    margin-top: 0px;
    padding-top: 0px;
  }
  h2 {
    margin-bottom: 13px;
    margin-left: -15px;
    margin-right: -15px;
    padding-bottom: 3px;
    padding-left: 14px;
  }

  #content {
    margin-top: -60px;
    padding-left: 15px;
    padding-right: 15px;
    text-align: left;
    z-index: -100;
  }
  #header-image {
    display: none;
  }
  #header-image-small {
    display: inline-block;
    z-index: 1;
  }
  #menu {
    display: inline-block;
  }
  #navigation {
    width: 150px;
  }
  #nav-title {
    font-size: 2.2em;
    font-weight: lighter;
    line-height: 1em;
    padding-bottom: 6px;
    padding-top: 8px;
  }
  #nav-links {
    background: white;
    border: 1px solid #eeeeee;
    border-bottom: 2px solid #eeeeee;
    border-top: 68px solid #BDE4FC;
    clear: both;
    position: relative;
    top: -70px;
    z-index: 0;
  }
  #nav-image {
    cursor: pointer;
    display: inline-block;
    margin-left: -7px;
  }
  #menu {
    display: inline-block;
    font-size: 2em;
    font-weight: lighter;
    padding-left: 5px;
    position: relative;
    top: -7px;
    z-index: 1;
  }

  .block-image {
    clear: both;
    display: block;
    padding-bottom: 10px;
  }
  .block-image img {
    max-width: 100%;
  }
  .block-text {
    clear: both;
    display: block;
  }
  .image img {
    max-width: 100%;
  }
  .link {
    cursor: pointer;
    display: none;
    font-size: 1em;
    margin: 0;
    padding: 5px;
  }
  .link:hover {
    color: #1980AD;
  }
  .project-desc {
    clear: both;
    display: block;
    width: 100%;
  }
  .project-img {
    display: inline;
  }
  .project-text {
    display: inline;
  }
  .top-block {
    margin-left: -15px;
    margin-right: -15px;
    display: block;
  }
}

@media (min-width: 501px) and (max-width: 915px) {
  body {
    border-top: 2px solid #BDE4FC;
  }
  h1 {
    padding-top: 0px;
    margin-top: 0px;
  }
  h2 {
    margin-bottom: 13px;
    margin-left: -15px;
    margin-right: -15px;
    padding-bottom: 3px;
    padding-left: 14px;
  }

  #content {
    padding-left: 15px;
    padding-right: 15px;
    margin-top: -60px;
    text-align: left;
    z-index: -100;
  }
  #header-image {
    display: none;
  }
  #header-image-small {
    display: inline-block;
    z-index: 1;
  }
  #menu {
    display: inline-block;
    font-size: 2em;
    font-weight: lighter;
    padding-left: 5px;
    display: inline-block;
    position: relative;
    top: -7px;
    z-index: 1;
  }
  #navigation {
    width: 150px;
  }
  #nav-image {
    display: inline-block;
    margin-left: -7px;
    cursor: pointer;
  }
  #nav-links {
    background: white;
    border: 1px solid #eeeeee;
    border-bottom: 2px solid #eeeeee;
    border-top: 68px solid #BDE4FC;
    clear: both;
    position: relative;
    top: -70px;
    z-index: 0;
  }
  #nav-title {
    font-size: 2.2em;
    font-weight: lighter;
    line-height: 1em;
    padding-bottom: 6px;
    padding-top: 8px;
  }

  .block-image {
    display: table-cell;
    padding-right: 13px;
  }
  .block-text {
    display: table-cell;
  }
  .image img {
    max-width: 100%;
  }
  .link {
    cursor: pointer;
    display: none;
    font-size: 1em;
    margin: 0;
    padding: 5px;
  }
  .link:hover {
    color: #1980AD;
  }
  .project-desc {
    display: inline;
    float: left;
    width: 350px;
  }
  .project-img {
    display: table-cell;
    width: 70px;
  }
  .project-text {
    display: table-cell;
    width: 270px;
  }
  .top-block {
    display: table;
    margin: 0px;
    margin-left: -15px;
    margin-right: -15px;
  }
}

@media (min-width: 916px) {
  h1 {
    padding-top: 30px;
  }
  h2 {
    margin-bottom: 13px;
    padding-bottom: 3px;
  }

  #content {
    margin-top: 5px;
    padding-left: 180px;
    text-align: left;
    width: 700px;
  }
  #header-image {
    padding-bottom: 10px;
    padding-top: 9px;
    width: 150px;
  }
  #header-image-small {
    display: none;
  }
  #menu {
    display: none;
  }
  #navigation {
    position: fixed;
    text-align: right;
    width: 150px;
  }
  #nav-title {
    font-size: 2.2em;
    font-weight: lighter;
    line-height: 1em;
    padding-bottom: 9px;
  }

  .block-image {
    display: table-cell;
    padding-right: 13px;
  }
  .block-text {
    display: table-cell;
  }
  .link {
    border-right: 3px solid #1980AD;
    cursor: pointer;
    display: inline-block;
    font-size: 1em;
    margin: 0;
    padding: 7px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .link:hover {
    border-right: 3px solid #BDE4FC;
  }
  .top-block {
    display: table;
    margin: 0px;
    width: 670px;
  }
  .project-desc {
    display: inline;
    float: left;
    width: 350px;
  }
  .project-img {
    display: table-cell;
    width: 70px;
  }
  .project-text {
    display: table-cell;
    width: 270px;
  }
}

/* ------------------------- STANDARD HTML ELEMENTS ------------------------- */

a {
  color: #1980AD;
  text-decoration: none;
}
a:hover {
  color: #6FBCEB;
}
body {
  font-family: 'Roboto', Trebuchet MS, Helvetica, Arial, sans-serif;
  font-size: 85%;
  letter-spacing: 0.5px;
  margin: 0px;
  margin-bottom: 13px;
  text-align: center;
}
code {
  background: #f4f4f4;
  display: block;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  padding: 15px;
  word-break: break-all;
}
h1 {
  font-family: 'Roboto', Trebuchet MS, Helvetica, Arial, sans-serif;
  font-size: 2.8em;
  font-weight: lighter;
  margin-bottom: 2px;
  margin-left: -15px;
  margin-right: -15px;
  padding-bottom: 6px;
  padding-left: 14px;
}
h2 {
  border-bottom: 1px solid #27A9E0;
  clear: both;
  font-family: 'Roboto', Trebuchet MS, Helvetica, Arial, sans-serif;
  font-size: 1.8em;
  font-weight: lighter;
}
h3 {
  color: #005287;
  font-family: 'Roboto', Trebuchet MS, Helvetica, Arial, sans-serif;
}
img {
  max-width: 700px;
}
li {
  padding-bottom: 5px;
}
object {
  position: relative;
}
span {
  background: #BDE4FC;
  cursor: pointer;
  font-size: 0.8em;
  padding-left: 8px;
  padding-right: 8px;
}
tt {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}
ul {
  margin: 0px;
  padding: 0px;
  padding-left: 1.2em;
}

/* ------------------------- PROJECT AND BLOCK STUFF ------------------------ */

.block {
  border: 0px;
  border-spacing: 0px;
  clear: both;
  display: block;
  margin: 0px;
  margin-bottom: 1.1em;
  vertical-align: top;
}
.block-image, .block-text {
  font-family: 'Roboto', Trebuchet MS, Helvetica, Arial, sans-serif;
  letter-spacing: 0.5px;
  text-align: left;
  vertical-align: top;
}
.project-desc {
  padding-bottom: 15px;
}
.project-img {
  float: left;
  padding-right: 15px;
}
.project-text {
  padding-right: 15px;
}
.top-block {
  background: #DEF2FF;
  border: 0px;
  border-spacing: 0px;
  clear: both;
  margin-bottom: 1.1em;
  padding: 15px;
  vertical-align: top;
}

#content {
  display: block;
  float: left;
  padding-bottom: 15px;
}
#navigation {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------- OTHER HTML ELEMENTS --------------------------- */

.clear {
  width: 14px;
}
.divider {
  clear: both;
  display: block;
  height: 1em;
}
.divider-large {
  clear: both;
  display: block;
  height: 1.5em;
}
.fa {
  color: #aaaaaa;
  padding-top: 10px;
  padding-right: 10px;
}
.fa:hover {
  color: #27A9E0;
}
.image {
  text-align: center;
}
.line {
  border-top: 1px solid #1980AD;
  clear: both;
  display: block;
  height: 0px;
  margin-bottom: 1.1em;
  margin-top: 1.1em;
}
.small-space {
  display: block;
  height: 8px;
}
