/**
 * Colors
 *
 * green - #00c800
 * blackBackground - #222
 * greyBorder - #aaa
 * menuHoverBackground - #444
 * greyBackground - #f6f6f6
 *
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  line-height: 1;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  background: #fff;
  padding-bottom: 200px;
}
a {
  text-decoration: none;
  color: #00c800;
}
p {
  line-height: 1.5;
}
video, img {
  max-width: 100%;
}

.container {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto;
}
.page-title {
  font-size: 36px;
  padding-bottom: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #aaa;
}

#header {
  background: #222;
  margin-bottom: 20px;
  position: relative;
}
#logo {
  color: #fff;
  font-size: 24px;
  font-weight: normal;
  text-transform: uppercase;
  text-decoration: none;
  padding: 20px;
  display: inline-block;
  letter-spacing: .1em;
}
#logo:hover {
  transition: 1s;
  color: #00c800;
  transform: skewX(15deg);
}
#menu-trigger {
  display: none;
}
#menu {
  float: right;
}
#menu a {
  float: left;
  color: #fff;
  line-height: 24px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 20px;
  letter-spacing: .1em;
  display: inline-block;
  background: #222;
  text-align: center;
}
#menu a:hover {
  transition: 1s;
  border-radius: 50%;
  color: #00c800;
  background: #444;
}
@media (max-width: 480px) {
  #menu-trigger {
    float: right;
    display: block;
    height: 64px;
    width: 64px;
    position: relative;
    cursor: pointer;
  }
  #menu-trigger span {
    position: absolute;
    display: inline-block;
    height: 3px;
    background: white;
    left: 15px;
    right: 15px;
    transition: .25s;
  }
  #menu-trigger.active span {
    background: #00c800;
  }
  #menu-trigger span:nth-child(1) {
    top: 20px;
  }
  #menu-trigger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  } 
  #menu-trigger span:nth-child(3) {
    bottom: 20px;
  }
  #menu-trigger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 30px;
  }
  #menu-trigger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 31px;
  }
  #menu-trigger.active span:nth-child(2) {
    display: none;
  }    
  #menu {
    float: none;
    background: #222;
    display: none;
  }
  #menu.active {
    display: block;
  }
  #menu a {
    border-top: 1px solid white;
    float: none;
    display: block;
    text-align: left;
    font-size: 14px;
    line-height: 1;
  }
}

.portfolio-category {
  margin-bottom: 30px;
}
.portfolio-category h2 {
  margin-bottom: 20px;
  font-size: 24px;
}
.portfolio-item {
  padding: 20px;
  background: #f6f6f6;
  margin-bottom: 10px;
}
.portfolio-item h3 {
  font-size: 20px;
  margin-bottom: 20px;
}
.portfolio-item h3 a {
  font-weight: normal;
  font-size: 14px;
  letter-spacing: .05em;
  text-decoration: none;
}
.portfolio-item h3 a:hover {
  text-decoration: underline;
}
.portfolio-item li {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 5px;
  margin-left: 40px;
}
.portfolio-item li a {
  text-decoration: underline;
  letter-spacing: .02em;
}
.portfolio-item li a:hover {
  text-decoration: none;
}
.portfolio-screenshots-overlay {
  display: none;
  background: rgba(0,0,0,0.6);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
}
.portfolio-screenshots-overlay.active {
  display: block;
}
.portfolio-screenshots-overlay .inner {
  width: 1024px;
  max-width: 100%;
  max-height: 100%;
  overflow: scroll;
  margin: 0 auto;
  padding: 20px 50px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.portfolio-screenshots-overlay img {
  max-width: 90%;
  border: 10px solid #fff;
  display: none;
}
.portfolio-screenshots-overlay img.active {
  display: inline-block;
}
.portfolio-screenshots-close,
.portfolio-screenshots-prev,
.portfolio-screenshots-next {
  position: absolute;
  color: #00c800;
  padding: 10px;
}
.portfolio-screenshots-close {
    top: -10px;
    right: 0;
    font-size: 30px;
    font-weight: bold;
}
.portfolio-screenshots-close:before {
  content: 'x';
}
.portfolio-screenshots-prev,
.portfolio-screenshots-next {
  top: 50%;
  padding: 10px;
  z-index: 99;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}
.portfolio-screenshots-prev:before,
.portfolio-screenshots-next:before {
  display: inline-block;
  font-size: 48px;
  font-weight: bold;
  -ms-transform: scale(1, 2);
  -webkit-transform: scale(1, 2);
  transform: scale(1, 2);
}
.portfolio-screenshots-prev {
  left: 0;
}
.portfolio-screenshots-prev:before {
  content: '<';
}
.portfolio-screenshots-next {
  right: 0;
}
.portfolio-screenshots-next:before {
  content: '>';
}

.grades-video {
  margin-bottom: 40px;
}
.grades-video video {
  width: 720px;
  margin: 0 auto;
  display: block;
}
.grades-img img {
  border: 1px solid #aaa;
}

.experiment-blurb {
  margin-bottom: 30px;
}
.experiment-blurb p {
  margin-bottom: 10px;
}
.experiment-item {
  margin-bottom: 20px;
}
.experiment-item h2 {
  margin-bottom: 20px;
  font-size: 24px;
  padding: 20px;
  background: #f6f6f6;
}
.experiment-item h2 span {
  vertical-align: middle;
}
.experiment-item h2 a {
  font-size: 14px;
  color: #00e;
  vertical-align: middle;
  margin-left: 10px;
}
#experiment-cube {
  padding-top: 80px;
}