
@font-face {
  font-weight: normal;
  font-style: normal;
  font-family: 'code_boldregular';
  src: url('fonts/code_bold-webfont.eot');
  src: url('fonts/code_bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/code_bold-webfont.woff') format('woff'),
         url('fonts/code_bold-webfont.ttf') format('truetype'),
         url('fonts/code_bold-webfont.svg#code_boldregular') format('svg');
}

@font-face {
  font-weight: normal;
  font-style: normal;
  font-family: 'NobileRegular';
  src: url('fonts/nobile-webfont.eot');
  src: url('fonts/nobile-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/nobile-webfont.woff') format('woff'),
         url('fonts/nobile-webfont.ttf') format('truetype'),
         url('fonts/nobile-webfont.svg#NobileRegular') format('svg');
}

@font-face {
  font-weight: normal;
  font-style: normal;
  font-family: 'NobileItalic';
  src: url('fonts/nobile_italic-webfont.eot');
  src: url('fonts/nobile_italic-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/nobile_italic-webfont.woff') format('woff'),
         url('fonts/nobile_italic-webfont.ttf') format('truetype'),
         url('fonts/nobile_italic-webfont.svg#NobileItalic') format('svg');
}

html,
body {
  margin: 0 auto;
  padding: 0;
  height: 100%;
  color: #444;
}

body {
  height: 100%;
  background-color: #bbb;
  font: 16px/26px NobileRegular, helvetica, sans-serif;
  text-rendering: optimizelegibility;
}

h1,
h2,
h3 {
  font-family: code_boldregular, helvetica-neue, helvetica, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  font-weight: normal;
}

h1 {
  margin: -16px -17px 16px -16px;
  padding: 35px 10px;
  background: #757575;
  color: #fff;
  text-align: center;
  text-shadow: -1px 1px #ccc, -2px 2px #ccc, -3px 3px #ccc, -4px 4px #ccc, -5px 5px #ccc, -6px 6px #ccc, -7px 7px 3px #777;
  font-weight: normal;
  font-size: 75px;
  line-height: .8;
}

h3 {
  margin-bottom: 10px;
  text-shadow: -1px 1px #aaa, -2px 2px #aaa;
  font-weight: normal;
  font-size: 27px;
}

h4 {
  font-family: NobileItalic;
  font-size: 12px;
}

h5 {
  margin: -4px auto 0;
  font-size: 16px;
}


h6 {
  font-size: 11px;
  line-height: 1.3;
}

h6 + p {
  margin: 4px 0 15px 0;
}

p {
  margin: 6px auto 14px;
  font-size: 12px;
  line-height: 1.6;
}

section p + p {
  margin: 0 0 10px 0;
}

header {
  position: relative;
}

header h2 {
  position: absolute;
  top: 10px;
  right: 10px;
  clear: right;
  color: #fff;
  text-align: right;
  font-size: 11px;
  line-height: 1;
}

h3 + h5 {
  margin-top: 0px;
}

aside {
  margin-right: -2px;
  padding: 1em;
  background: #585858;
  color: #eee;
  text-shadow: -1px 1px 3px #777;
}

aside h3 {
  font-size: 22px;
}

hr {
  height: 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

a {
  color: #83CC25;
}

header a {
  color: #fff;
}

nav {
  margin: 0;
  padding: 0;
  border-bottom: 1px #ddd solid;
  background-color: #fff;
}

nav img {
  height: 40px;
}

nav ul {
  margin: 0 0 0 -40px;
  list-style: none;
  text-align: center;
}

nav li {
  display: inline-block;
  margin: 0;
  padding: 0;
  border-bottom: 3px #ddd solid;
  border-left: 1px #ddd solid;
  text-align: center;
}

.logo {
  margin: 0 0 -4px 0;
  width: 60px;
  height: 50px;
  border-bottom: none;
  background: #999;
  vertical-align: middle;
  text-align: center;
}

.logo img {
  margin-top: 4px;
  vertical-align: middle;
}

nav li:last-child {
  border-right: 1px #ddd solid;
}

nav a {
  display: block;
  padding: 0 1em;
  width: 90px;
  height: 44px;
  color: #6f7477;
  text-decoration: none;
  font-size: 12px;
  font-family: code_boldregular, helvetica-neue, helvetica, sans-serif;
  line-height: 46px;
  -webkit-transition: all 0.8s ease-out;
  -o-transition: all 0.8s ease-out;
  transition: all 0.8s ease-out;
}

nav a:hover {
  color: #555;
}

hr {
  margin: 20px 0 5px 0;
}

section {
  padding: 1em;
  background-color: #fff;
}

section p img {
  vertical-align: middle;
}

.seperator {
  display: none;
}

p span {
  text-indent: -1.4em;
  display: block;
  padding-left: 1.4em;
}

.cloud {
  text-align: center;
}

.cloud span {
  display: inline-block;
  margin: 10px 20px 0 20px;
}

.group {
  display: inline-block;
  margin: 5px 10px 0px 10px;
  width: 110px;
  text-align: center;
}

.group p {
  font-size: 10px;
}

.centered {
  text-align: center;
}

.icon {
  display: inline-block;
  margin: 5px 10px 20px 10px;
  width: 60px;
  height: 80px;
  vertical-align: top;
}

.icon p {
  font-size: 10px;
}

.item {
  z-index: 0;
  display: block;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  height: 220px;
  text-align: center;
  cursor: pointer;
  -webkit-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.portfolio a {
  color: #444;
  text-decoration: none;
}

.item div {
  margin: 0 auto;
  padding: 30px 0 0 0;
  height: 110px;
  text-align: center;
  -webkit-transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
}

.portfolio img {
  margin: 0 auto;
  text-align: center;
}

.portfolio h2 {
  margin: 0;
}

.portfolio .item:nth-child(1) {
  border-left: 20px solid #FFA840;
  background: #aaa;
}

.portfolio .item:nth-child(2) {
  border-left: 20px solid #70ED3B;
  background: #999;
}

.portfolio .item:nth-child(3) {
  border-left: 20px solid #3C9DD0;
  background: #888;
}

.portfolio .item:nth-child(4) {
  border-left: 20px solid #F73E5F;
  background: #aaa;
}

.item:hover {
  margin: -10px 0 0 0;
  height: 240px;
}

.item:first-child:hover {
  margin: 0;
  height: 230px;
}

body .case {
  background: #fff;
  width: 100%;
}

.case header {
  width: 80%;
  margin: 0 auto;
  padding: 60px 0 0 0;
}

.case .docHeader {
  float: right;
  text-align: right;
}

.case .docHeader p {
  line-height: 1;
}

.case header + section {
  clear: both;
  margin-top: 20px;
}

.case h1 {
  text-shadow: none;
  background-color: #B32D45;
}

.case ul {
  list-style: none;
  padding: 1em;
  text-align: left;
  margin: -20px 0;
}

.case ul li {
  margin: 1em 0;
}

video {
  height: 160px;
}

.proj-logo {
  width: 100%;
}

.site-btn {
  clear: both;
  text-align: center;
  margin: 0 auto;
}

.left,
.right {
  text-align: center;
  margin: 60px auto;
  padding: 60px 0;
}

.right {
  background: #f7f7f7;
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
  box-shadow: 0 3px 4px 0 #eee, inset 0 2px 2px 0 #eee;
}

.right ul {
  text-align: right;
}

.tech ul li {
  margin: 0;
}

.case .samples img {
  width: 100%;
}

.case h3 + img {
  margin: 0 0 2em 0;
}

.case img + img {
  margin: 2em 0;
}

.case footer {
  padding: 1em;
  background: #eee;
  border-bottom: 20px solid #034569;
  border-top: 1px solid #ddd;
}

footer h6 {
  max-width: 600px;
  margin: 0 auto;
}

@media only screen and (min-width: 480px) {

}

@media only screen and (min-width: 768px) {
  nav a {
    padding: 0 1.5em;
    width: 90px;
  }

  aside {
    margin: 10px 0 0 0;
    padding: 10px;
    width: 150px;
    background: #585858;
    color: #eee;
    text-align: right;
  }

  .seperator {
    position: absolute;
    top: 0;
    bottom: 0;
    display: block;
    margin-left: 170px;
    width: 20px;
    background: #404040;
    -webkit-transform: matrix(1, -1, 0, 1, 0, -10);
    -ms-transform: matrix(1, -1, 0, 1, 0, -10);
    -o-transform: matrix(1, -1, 0, 1, 0, -10);
    transform: matrix(1, -1, 0, 1, 0, -10);
  }

  .resume {
    position: relative;
    margin: 80px auto;
    width: 740px;
  }

  .resume section {
    float: right;
    margin: -20px 0 70px 0;
    width: 517px;
    border-right: 1px #eee solid;
  }

  video {
    height: 360px;
  }

  .case header + section {
    margin-top: 80px;
  }

  .case h1 {
    float: left;
    width: 300px;
  }

  .proj-logo {
    width: auto;
  }

  .docHeader {
    margin: 30px 0;
  }

  .left,
  .right {
    padding: 2em;
  }

  .left .large-icon {
    float: right;
    margin: 60px 60px 20px 60px;
  }

  .right .large-icon {
    float: left;
    margin: 60px 60px 20px 60px;
  }

  .tech .large-icon {
    margin: 20px 60px 0 60px;
  }

  .case .samples img {
    width: auto;
  }

  header + .left {
    margin: 0;
  }
}

@media only screen and (min-width: 1020px) {
  .portfolio {
    height: 94%;
  }

  .item {
    float: left;
    min-height: 100%;
    width: 25%;
    height: 100%;
    text-align: center;
  }

  .portfolio .item:nth-child(1) {
    border-top: 80px solid #FFA840;
    border-left: none;
  }

  .portfolio .item:nth-child(2) {
    border-top: 80px solid #70ED3B;
    border-left: none;
  }

  .portfolio .item:nth-child(3) {
    border-top: 80px solid #3C9DD0;
    border-left: none;
  }

  .portfolio .item:nth-child(4) {
    border-top: 80px solid #F73E5F;
    border-left: none;
  }

  .item div {
    margin: 220px 0 0 0;
  }

  .item:hover {
    margin: 0;
    border-top: 90px;
  }

  .item:hover div {
    margin: 180px 0 0 0;
  }

  .item:first-child:hover {
    margin: 0;
  }

  .left div,
  .right div {
    width: 850px;
    margin: 0 auto;
  }

  .case header {
    width: 800px;
  }

  .case h1 {
    width: 400px;
  }
}

@media only screen and (min-width: 1140px) {
  nav {
    margin: -2px 0 0 0;
  }

  nav div {
    margin: 0 auto;
    width: 1000px;
  }

  nav ul {
    margin: 0 0 0 -20px;
  }

  .logo {
    width: 100px;
    height: 84px;
  }

  nav img {
    margin-left: -10px;
    height: 74px;
  }

  nav a {
    width: 100px;
    height: 78px;
    line-height: 78px;
  }

  .portfolio {
    height: 90%;
  }

  .case {
    margin: 0 auto;
    width: 1000px;
  }
}

@media print {
  body {
    overflow: visible;
  }

  section {
    float: none;
  }

  .section {
    page-break-inside: avoid;
    page-break-after: avoid;
  }

  h2, h3 {
   page-break-after: avoid;
  }

  h3 + div {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  aside {
    text-shadow: none;
  }


}
