/*	---------------------------------------------------------------------------------------
 *	Web fonts
 *	---------------------------------------------------------------------------------------
 */
@font-face {
  font-family: "Montserrat Regular";
  src: url("../webfonts/montserrat-regular.eot");
  src: url("../webfonts/montserrat-regular.eot?#iefix") format("embedded-opentype"),
    url("../webfonts/montserrat-regular.svg#montserrat-regular") format("svg"),
    url("../webfonts/montserrat-regular.woff") format("woff"),
    url("../webfonts/montserrat-regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Montserrat Bold";
  src: url("../webfonts/montserrat-bold.eot");
  src: url("../webfonts/montserrat-bold.eot?#iefix") format("embedded-opentype"),
    url("../webfonts/montserrat-bold.svg#montserrat-bold") format("svg"),
    url("../webfonts/montserrat-bold.woff") format("woff"),
    url("../webfonts/montserrat-bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Museo 700";
  src: url("../webfonts/museo-700.eot");
  src: url("../webfonts/museo-700.eot?#iefix") format("embedded-opentype"),
    url("../webfonts/museo-700.svg#museo-700") format("svg"),
    url("../webfonts/museo-700.woff") format("woff"),
    url("../webfonts/museo-700.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Bvds Icons";
  src: url("../webfonts/bvds-icons.eot");
  src: url("../webfonts/bvds-icons.eot?#iefix") format("embedded-opentype"),
    url("../webfonts/bvds-icons.svg#bvds-icons") format("svg"),
    url("../webfonts/bvds-icons.woff") format("woff"),
    url("../webfonts/bvds-icons.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/*	---------------------------------------------------------------------------------------
 *	Reset, based on http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126
 *	---------------------------------------------------------------------------------------
 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  font-size: 100% !important;
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
*, *:before, *:after {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
a img {
  border: none;
}

/*	---------------------------------------------------------------------------------------
 *	Layout
 *	---------------------------------------------------------------------------------------
 */
body {
  background: #3f67a8 url(../img/bg.png) left top repeat;
  min-width: 1024px;
}
.main-container>header {
  height: 14.25em;
  background: transparent url(../img/teeth_top.png) left bottom repeat-x;
}
article {
  background: white url(../img/bg_white.png) left top repeat;
}
.main-container>footer {
  background: transparent url(../img/teeth_bottom.png) left top repeat-x;
}
.header-container,
.content-container,
.footer-container {
  margin: 0 auto;
  width: 1024px;
  padding: 40px;
}
.portfolio-container {
  margin: 0 auto;
  padding-bottom: 40px;
  width: 1024px;
}
.portfolio-container header {
  padding: 40px 40px 20px;
}
@media only screen and (max-width: 1023px) {
  body {
    /* iPhone resolution: 640x960/1136px or min resolution of 480x640px (landscape), otherwise use browser zoom */
    min-width: 640px;
  }
  .header-container,
  .content-container,
  .footer-container,
  .portfolio-container,
  .portfolio-container header {
    width: 100%;
    margin: 0;
    padding: 20px;
  }
  .footer-container {
    padding: 40px;
  }
  .portfolio-container header {
    padding: 0;
  }
}

/*  ---------------------------------------------------------------------------------------
 *  Generic styles
 *  ---------------------------------------------------------------------------------------
 */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  color: white;
  font-family: "Montserrat Regular", sans-serif;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}
a {
  color: #bb2500;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
a:hover {
  text-decoration: underline;
}
pre, code {
  font-family: Courier, monospace;
  font-size: 1.05em;
  color: #666;
}
.clear {
  clear: both;
}

/*  ---------------------------------------------------------------------------------------
 *  Header
 *  ---------------------------------------------------------------------------------------
 */
.main-container>header h1 {
  width: 22.75em; 
  height: 8.6875em;
  background: transparent url(../img/logo.svg) 0 0 no-repeat;
  background-size: 22.75em 8.6875em;  /* 364 x 139px is the size of the logo / 16 */
}
@media only screen and (max-width: 1023px) {
  .main-container>header {
    font-size: 85%; /* The beauty of scalable type :-) */
  }
}
.main-container>header h1 a,
.main-container>header h1 a:hover {
  display: inline-block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.main-container>header h1 span {
  display: none;
}
#nav-main {
  position: relative;
  float: right;
  margin-top: -8.7em;
}
#nav-main>li {
  display: inline-block;
  padding: 0 0 0 1.5em;
}
#nav-main>li>a {
  display: block;
  padding: 0.3125em 0.75em 0.25em;
  overflow: visible;
  font-family: "Museo 700", serif;
  -webkit-font-smoothing: antialiased;
  font-size: 2em;
  line-height: 1;
  text-decoration: none;
  -webkit-transition: background-color .1s ease-out;
  -moz-transition: background-color .1s ease-out;
  -o-transition: background-color .1s ease-out;
  transition: background-color .1s ease-out;
}
#nav-main a.three-d {
  position: relative;
  -webkit-perspective: 400px;
  -moz-perspective: 400px;
  -ms-perspective: 400px;
  perspective: 400px;
}
#nav-main a.three-d,
#nav-main a.three-d:hover {
  color: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}
#nav-main a.three-d.active .three-d-box,
#nav-main a.three-d:hover .three-d-box,
#nav-main a.three-d:focus .three-d-box {
  -webkit-transform: translatez(-0.78125em) rotatex(90deg); /* -25px */
  -moz-transform: translatez(-0.78125em) rotatex(90deg);
  -ms-transform: translatez(-0.78125em) rotatex(90deg);
  -o-transform: translatez(-0.78125em) rotatex(90deg);
  transform: translatez(-0.78125em) rotatex(90deg);
}
#nav-main .three-d-box {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  -webkit-transition: -webkit-transform 0.3s ease-out;
  -moz-transition: -moz-transform 0.3s ease-out;
  -o-transition: -o-transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  -webkit-transform: translatez(-0.78125em);
  -moz-transform: translatez(-0.78125em);
  -ms-transform: translatez(-0.78125em);
  -o-transform: translatez(-0.78125em);
  transform: translatez(-0.78125em);
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
  pointer-events: none;
}
#nav-main .front,
#nav-main .back {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  padding: 0.3125em 0.75em 0.25em;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
  pointer-events: none;
}
#nav-main .front {
  -webkit-transform: rotatex(0deg) translatez(0.78125em); /* 25px */
  -moz-transform: rotatex(0deg) translatez(0.78125em);
  -ms-transform: rotatex(0deg) translatez(0.78125em);
  -o-transform: rotatex(0deg) translatez(0.78125em);
  transform: rotatex(0deg) translatez(0.78125em);
}
#nav-main .back {
  -webkit-transform: rotatex(-90deg) translatez(0.78125em);
  -moz-transform: rotatex(-90deg) translatez(0.78125em);
  -ms-transform: rotatex(-90deg) translatez(0.78125em);
  -o-transform: rotatex(-90deg) translatez(0.78125em);
  transform: rotatex(-90deg) translatez(0.78125em);
}
#nav-main>li>a,
#nav-main .front {
  border-radius: 1em;
  color: #3f67a8;
  color: hsla(217, 55%, 38%, 0.8);
  text-shadow: 1px 1px 1px #fff, 0 0 0 #000, 1px 1px 1px #fff;
  background-color: white;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
}
#nav-main>li>a:hover,
#nav-main>li>a.active,
#nav-main .back {
  color: white;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
  background: #3f67a8 url(../img/bg.png) left top repeat;
  box-shadow: none;
}
#nav-main>li>a.active {
  cursor: default;
}
#nav-main ul.sub-menu {
  position: absolute;
  top: 3.9em;
  left: 3em;
}
#nav-main ul.sub-menu a {
  font-family: "Museo 700", serif;
  -webkit-font-smoothing: antialiased;
  font-size: 1.125em;
  line-height: 1.25;
  text-decoration: none;
  color: white;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
}
#nav-main ul.sub-menu a:hover {
  text-decoration: underline;
}
@media only screen and (max-width: 1023px) {
  #nav-main ul.sub-menu a {
    font-size: 1.3em;
    line-height: 1.3;
  }
}

/*  ---------------------------------------------------------------------------------------
 *  Article
 *  ---------------------------------------------------------------------------------------
 */
article {
  font-size: .875em;
  line-height: 1.5;
  color: black;
  text-shadow: none;
}
article section,
#content {
  width: 70%;
}
@media only screen and (max-width: 720px) { /* Nice reading width (- 40px padding) */
  article {
    font-size: 1em;
  }
  article section,
  #content {
    width: 100%;
  }
}
body.home article ul li {
  background: transparent url(../img/hr.gif) left bottom repeat-x;
}
body.home article ul li:last-child {
  background: none;
}
ul.unordered-list,
body.article article ul {
  margin-left: 1.5em;
  list-style-type: square;
  padding-bottom: 1.5em;
}
body.article article ul ul {
  list-style-type:lower-latin;
  padding-bottom: 0;
}
article h1 {
  font-family: "Museo 700", serif;
  -webkit-font-smoothing: antialiased;
  font-size: 2.4em;
  line-height: 1;
  margin-bottom: .5em;
  color: #666;
  color: rgba(102, 102, 102, 0.8);
  text-shadow: 1px 1px 1px #fff, 0 0 0 rgba(0, 0, 0, .8), 1px 1px 1px #fff;
}
article h2 {
  display: inline-block;
  font-family: "Montserrat Bold", sans-serif;
  margin: 2em 0 1em;
  border-radius: .8em;
  padding: 0 1em;
  background-color: #aaa;
  font-size: 1em;
  line-height: 1.6;
  color: white;
  box-shadow: inset 1px 1px 2px 0px rgba(0,0,0,0.3);
}
article h2#articles {
  margin-top: 0;
}
article h3 {
  margin-top: 1.2em;
  font-family: "Museo 700", serif;
  -webkit-font-smoothing: antialiased;
  font-size: 1.4em;
  line-height: 1.2;
}
article h3 a {
  text-decoration: none;
}
article h3 a:hover {
  text-decoration: underline;
}
article p {
  padding-bottom: 1.5em;
}
article p.meta-data {
  font-size: .9em;
  padding-bottom: 0;
}
article p.ul-header {
  font-family: "Montserrat Bold", sans-serif;
  padding-bottom: 0;
}
article p.padding {
  height: 150px;
}
article pre {
  margin-bottom: 2em !important;
}
body.article article p.meta-data {
  padding-bottom: 1.5em;
}
article time,
article .publication {
  font-family: "Montserrat Bold", sans-serif;
  color: #09c;
}
section.about {
  margin-top: 2em;
}
section.about .photo {
  float: left;
  margin: 0 1.25em 1.25em 0;
}
div.warning {
  margin-bottom: 1.5em;
  border: .6em dashed #bb2500;
  padding: 1.5em 1.5em 0;
}

/*  ---------------------------------------------------------------------------------------
 *  Footer
 *  ---------------------------------------------------------------------------------------
 */
footer {
  font-size: .825em;
  line-height: 1.25;
}
#nav-external {
  text-align: center;
}
#nav-external ul {
  display: inline-block;
}
#nav-external li {
  float: left;
  padding: 0 .6em 1.5em;
}
.icon {
  display: inline-block;
  position: relative;
  font-family: "Bvds Icons";
  font-size: 2em;
  line-height: 2;
  background-color: white;
  border-radius: 1em;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
  width: 2em;
  height: 2em;
  text-align: center;
  text-decoration: none;
  color: #3f67a8;
  color: hsla(217, 55%, 38%, 0.8);
  text-shadow: 1px 1px 1px #fff, 0 0 0 #000, 1px 1px 1px #fff;
  -webkit-transition: background-color .1s ease-out;
  -moz-transition: background-color .1s ease-out;
  -o-transition: background-color .1s ease-out;
  transition: background-color .1s ease-out;
   -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  backface-visibility: hidden;
}
.icon:hover {
  color: white;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
  text-decoration: none;
  background-color: transparent;
  box-shadow: none;
}
.icon span {
  display: none;
}
.icon-linkedin:before {
  content: "\e800";
  position: absolute;
  left: 0.6em;
  top: 0;
}
.icon-slideshare:before {
  content: "\e801";
  position: absolute;
  left: 0.5em;
  top: 0.08em;
}
.icon-twitter:before {
  content: "\e802";
  position: absolute;
  font-size: 0.87em;
  left: 0.55em;
  top: 0.24em;
}
.copyright {
  width: 100%;
  text-align: center;
  clear: left;
}

/*  ---------------------------------------------------------------------------------------
 *  Slideshow
 *  ---------------------------------------------------------------------------------------
 */
#slides {
  display: none;
  position: relative;
  width: 1024px;
  height: 910px;
}
#slides a {
  display: inline-block;
  font-family: "Bvds Icons";
  font-size: 1em;
  line-height: 1em;
  height: 1.2em;
  text-decoration: none;
}
#slides .slidesjs-previous,
#slides .slidesjs-next {
  position: absolute;
  z-index: 10000;
  top: 810px;
  font-size: 4em;
  color: #777;
}
#slides .slidesjs-back {
  position: absolute;
  z-index: 10001;
  left: 40px;
  top: 886px;
  padding-left: 16px;
  font-family: "Montserrat Regular", sans-serif;
}
#slides .slidesjs-back:hover {
  text-decoration: underline;
}
#slides .slidesjs-back:before {
  font-family: "Bvds Icons";
  content: "\e813";
  position: absolute;
  left: 0;
  top: 0;
  font-size: .9em;
}
#slides .slidesjs-previous {
  left: 40px;
}
#slides .slidesjs-next {
  left: auto;
  right: 40px;
}
#slides .slidesjs-previous:hover,
#slides .slidesjs-next:hover {
  color: #bb2500;
}
#slides .slidesjs-previous:before {
  content: "\e805";
}
#slides .slidesjs-next:before {
  content: "\e806";
}
.slidesjs-container {
 border: 1px solid #fff;
}
.slidesjs-pagination {
  text-align: center;
}
.slidesjs-pagination-item {
  display: inline-block;
  font-size: 1.2em;
  padding: .3em .1em .2em;
}
body.refunk .slidesjs-pagination-item {
  font-size: 1.1em;
  padding-top: .5em;
}
.slidesjs-pagination-item a {
  color: #777;
}
.slidesjs-pagination-item a:before {
  content: "\e80e";
}
.slidesjs-pagination-item a:hover {
  color: #bb2500;
}
.slidesjs-pagination-item a.active:before {
  content: "\e80d";
}
@media only screen and (max-width: 1023px) {
  #slides {
    width: 100%;
    height: auto;
  }
  #slides .slidesjs-previous,
  #slides .slidesjs-next {
    display: none;
  }
  #slides .slidesjs-back {
    position: relative;
    left: 0;
    top: 60px;
  }
  .slidesjs-pagination-item {
    padding-top: 0;
    padding-bottom: 2.5em;
  }
  .portfolio.extended #slides .slidesjs-back {
    display: none;
  }
  .portfolio.extended .slidesjs-pagination-item {
    padding-top: .3em;
    padding-bottom: 0;
  }
}

/*  ---------------------------------------------------------------------------------------
 *  Special lists, e.g. timeline
 *  ---------------------------------------------------------------------------------------
 */
.timeline .time {
  float: left;
  clear: left;
  width: 30%;
  line-height: 1.9;
}
.timeline .blurb {
  float: left;
  width: 70%;
}
.timeline h3 {
  margin-top: 0;
  color: #444;
}
.timeline h3 span.category {
  font-family: "Montserrat Regular", sans-serif;
  color: #999;
  font-size: .65em;
}
.timeline .job-title,
.timeline .studies {
  padding-bottom: 0;
  font-family: "Montserrat Bold", sans-serif;
  color: #09c;
}
article dl ul.unordered-list {
  padding-bottom: 0;
}
dt {
  float: left;
  clear: left;
  width: 30%;
}
dd {
  float: left;
  width: 70%;
  padding-bottom: 1.5em;
}
.awards-list .project-name {
  float: left;
  clear: left;
  padding-right: 20px;
  width: 30%;
}
.awards-list .awards {
  float: left;
  width: 70%;
  padding-bottom: 1.5em;
}
li span.type {
  font-family: "Montserrat Regular", sans-serif;
  color: #999;
  font-size: .9em;
}
