/*
$overlay1: rgb(213, 49, 98);
$overlay1transparent: rgba(213, 49, 98, .8);
*/
/*
Some basics
=========== */
body {
  font-family: Lato, georgia, sans-serif;
  padding: 45px 0 0;
  margin: 0;
  background-color: #fff;
  color: #333;
}
@media screen and (max-width: 600px) {
  body {
    padding-top: 30px;
  }
}

a {
  color: #178;
}
a:visited {
  color: #666;
}
a:active {
  color: #ce6247;
}

/* 
The black bar across the top of the page (and the links nearby)
=============================================================== */
h1 {
  position: fixed;
  z-index: 5;
  box-sizing: border-box;
  top: 0;
  text-align: center;
  width: 100%;
  height: 45px;
  line-height: 45px;
  display: table;
  font-family: 'Lato', sans-serif;
  text-transform: lowercase;
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  color: #ccc;
  letter-spacing: .75em;
  display: block;
  margin: 0;
  background-color: #222;
}
@media screen and (max-width: 600px) {
  h1 {
    height: 30px;
    line-height: 30px;
    letter-spacing: .5em;
    font-size: 12px;
  }
}
h1 a {
  color: #ccc;
  text-decoration: none;
}
h1 a:visited {
  color: currentColor;
}

#langlinks, #langlinks li {
  display: inline;
  font-size: 1em;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#langlinks {
  position: fixed;
  line-height: 45px;
  height: 45px;
  right: 15px;
  top: 0;
  z-index: 6;
  color: #ddd;
  font-weight: bold;
}
#langlinks a {
  color: #ddd;
  font-weight: normal;
}
@media screen and (max-width: 600px) {
  #langlinks {
    position: fixed;
    margin: 0;
    padding: 0 .5em;
    right: 0;
    height: 30px;
    line-height: 30px;
    font-size: .75em;
  }
  #langlinks li#english {
    display: inline;
    padding-right: .25em;
    margin-right: 0;
  }
}

li#english {
  border-right: 1px solid #999;
  margin-right: .5em;
  padding-right: .75em;
}

.full {
  display: inline;
}

.abbreviation {
  display: none !important;
}

@media screen and (max-width: 800px) {
  .full {
    display: none !important;
  }

  .abbreviation {
    display: inline !important;
  }
}
#contact, #styleswitcher {
  position: fixed;
  right: 0;
  top: 45px;
  white-space: nowrap;
  background-color: #fff;
  height: 35px;
  line-height: 35px;
  padding: 0 1em 0 1.5em;
  box-sizing: border-box;
  box-shadow: -5px 5px 10px #fff, -5px 5px 10px #fff;
  z-index: 4;
}
#contact a, #styleswitcher a {
  color: #497984;
  text-decoration: none;
}
#contact span, #styleswitcher span {
  text-decoration: underline;
}
#contact svg, #styleswitcher svg {
  padding-right: .25em;
}
#contact svg path, #styleswitcher svg path {
  fill: #497984;
}
@media screen and (max-width: 800px) {
  #contact span, #styleswitcher span {
    clip: rect(0 0 0 0) !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
}
@media screen and (max-width: 600px) {
  #contact, #styleswitcher {
    top: 75px;
    margin-top: -2px;
  }
}

#styleswitcher {
  top: 75px;
}
@media screen and (max-width: 600px) {
  #styleswitcher {
    top: 105px;
  }
}

/* 
The navigation bar at left 
========================== */
#main-nav {
  position: fixed;
  width: 25%;
  max-width: 300px;
  min-width: 200px;
  height: 100%;
  font-weight: 300;
  z-index: 2;
  box-sizing: border-box;
  margin-top: -45px;
  overflow: hidden;
}
@media screen and (max-width: 600px) {
  #main-nav {
    height: 45px;
    margin-top: -30px;
    width: 100%;
    max-width: 100%;
    margin-top: -1px;
    overflow: hidden;
    cursor: pointer;
    z-index: 5;
  }
}
#main-nav #menu-icon {
  display: none;
}
@media screen and (max-width: 600px) {
  #main-nav #menu-icon {
    display: block;
    margin: 14px 15px 16px;
    box-sizing: border-box;
    text-align: center;
    z-index: 4;
    position: absolute;
    left: 0;
  }
}
#main-nav ul {
  position: absolute;
  bottom: 45px;
  width: 100%;
  list-style-type: none;
  display: block;
  margin: 0;
  padding: 0;
  text-align: right;
  z-index: 4;
  /* mobile */
}
@media screen and (max-width: 600px) {
  #main-nav ul {
    position: relative;
    width: auto;
    z-index: 3;
    padding-top: 30px;
    bottom: 30px;
  }
}
#main-nav ul.open {
  margin-top: 30px;
  padding-top: 45px;
}
#main-nav ul.open.open::before {
  content: "";
  height: 45px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8;
}
#main-nav ul.open li {
  display: block;
}
#main-nav li {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 28px;
  font-weight: 300;
  border-left-width: 9px;
  border-left-style: solid;
  line-height: 28px;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}
@media screen and (max-width: 600px) {
  #main-nav li {
    font-size: 1.5em;
    font-weight: normal;
    border-left-width: 0;
    padding-left: 20px;
    height: 45px;
    position: relative;
    display: none;
  }
}
#main-nav li.active {
  font-weight: 400;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 4px rgba(0, 0, 0, 0.2);
  border-width: 0;
}
@media screen and (max-width: 600px) {
  #main-nav li.active {
    top: 0;
    display: block;
  }
}
#main-nav li a {
  color: white;
  display: block;
  padding: 10px 20px;
  text-decoration: none;
}
@media screen and (max-width: 600px) {
  #main-nav li a {
    padding: 0 15px;
    height: 45px;
    line-height: 45px;
    width: 100%;
    box-sizing: border-box;
  }
}

object {
  position: absolute;
  top: 30px;
  left: 0;
  z-index: 3;
}
@media screen and (max-width: 600px) {
  object {
    display: none;
  }
}

/* 
The text on the white background (and stuff)
============================================ */
#left-spacer {
  width: 25%;
  max-width: 300px;
  min-width: 200px;
  display: inline-block;
  box-sizing: border-box;
}

#content {
  padding: 0 0 0 45px;
  width: calc(75% - 90px);
  text-align: center;
  box-sizing: border-box;
  display: inline-block;
}
@media screen and (max-width: 600px) {
  #content {
    width: 100%;
    padding: 20px;
  }
}
#content .section {
  border-bottom: 1px solid #ccc;
  text-align: left;
  padding: 0 0 45px;
}
@media screen and (max-width: 600px) {
  #content .section {
    padding: 0 0 20px;
  }
}
#content .section:last-child {
  border-bottom-width: 0px;
}

.section {
  max-width: 800px;
}
.section h2 {
  margin: -45px 0 20px;
  padding-top: 90px;
  font-size: 2em;
  font-weight: 400;
  text-shadow: 0 0 3px rgba(51, 51, 51, 0.1);
}
@media screen and (max-width: 600px) {
  .section h2 {
    margin-top: -65px;
    padding-top: 110px;
    margin-right: 45px;
  }
}
.section h3 {
  color: #666;
  font-size: 1.6em;
  font-weight: 300;
  margin: 1em 0 .5em;
}

/* Work samples on the page
=========================== */
.work-container {
  position: relative;
  width: calc(100% + 2em);
  box-sizing: border-box;
  border: 1px solid transparent;
  display: inline-block;
  vertical-align: top;
  margin: -.5em -.5em 20px -1em;
  transition: all .3s;
  padding: 0;
}
@media screen and (max-width: 600px) {
  .work-container {
    margin: 0 -.5em 1em;
    width: calc(100% + 1em);
  }
}
@media screen and (max-width: 1000px) {
  .work-container#oerpub2 {
    /* at this point this demo becomes rather unusable */
    display: none;
  }
}
.work-container .work {
  padding: .5em .75em;
}
.work-container .work h3 {
  font-size: 1.35em;
  margin: 0 0 .5em;
  color: #178;
  text-decoration: underline;
}
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .work-container .work h3 {
    text-decoration: none;
  }
}
.work-container .work .work-details {
  margin-right: calc($padding / 2);
  margin-bottom: 1em;
  width: 30%;
  float: left;
}
@media screen and (max-width: 1000px) {
  .work-container .work .work-details {
    width: auto;
    float: none;
    margin-right: 0;
  }
}
.work-container .work .work-details .fake-link {
  display: block;
  margin-top: .5em;
  color: #178;
  text-decoration: underline;
}
.work-container .work .work-thumb {
  position: relative;
}
@media screen and (max-width: 1000px) {
  .work-container .work .work-thumb {
    float: none;
    margin-left: 0;
  }
}
.work-container .work .work-thumb img {
  width: calc(70% - calc($padding / 2));
  border: 1px solid #ddd;
  box-sizing: border-box;
}
@media screen and (max-width: 1000px) {
  .work-container .work .work-thumb img {
    width: 100%;
  }
}
.work-container .work .work-thumb svg {
  position: absolute;
  right: .5em;
  top: .5em;
}
.work-container .work .work-thumb svg path {
  transform: rotate(90deg);
  transform-origin: 4px 4px;
}
.work-container .work .work-thumb svg:nth-child(1) {
  fill: #fff;
}
.work-container:hover {
  background-color: rgba(51, 119, 136, 0.8);
  color: #fff;
}
.work-container:hover img {
  opacity: .2;
}
.work-container:hover h3 {
  color: #fff;
  text-decoration: none;
}
.work-container:hover .work-details, .work-container:hover .work-description .fake-link {
  color: #fff;
}
.work-container:focus-within {
  background-color: rgba(51, 119, 136, 0.8);
  color: #fff;
}
.work-container:focus-within img {
  opacity: .2;
}
.work-container:focus-within h3 {
  color: #fff;
  text-decoration: none;
}
.work-container:focus-within .work-details, .work-container:focus-within .work-description .fake-link {
  color: #fff;
}
