@import url(//fonts.googleapis.com/css?family=Roboto:100,300|Source+Sans+Pro&subset=latin,latin-ext);
@import url(//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css);

/* Layout */
html {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;/*For sliding animation to function properly*/
}
body {
  box-sizing: border-box;
  margin: 0 auto;
  min-height: 100%;
  padding: 15px 0 70px;
  position: relative;
  width: 800px;/*About the width of a portrait A4*/
}
body > footer {
  bottom: 0px;
  box-sizing: border-box;
  height: 60px;/*body bottom padding + 10px margin*/
  left: 0;
  position: absolute;
  right: 0;
}
#top-container {
  position: relative;/*For sliding animation to function properly*/
}

/* Appearance */
body {
  background: white;
  font-family: 'Source Sans Pro', sans-serif;
}
body > header,
body > footer {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  letter-spacing: 0.15em;
}
body > footer {
  background: white;/*To prevent sliding content from showing through.*/
  border-top: 1px solid gray;
  color: gray;
  padding-top: 2px;
  text-align: right;
}
h1 {
  border-bottom: 1px solid gray;
  color: gray;
  font-size: 2em;
  font-weight: 100;
  letter-spacing: 0.2em;
  margin: 0;
  margin-bottom: 2px;
}
#lang-menu {
  display: inline;
  text-transform: capitalize;
}
a:link {
  color: gray;
  text-decoration: underline;
  transition: color 0.2s;
}
a:visited {
  color: #505050;
}
a:hover {
  color: darkgray;
}
a[href*='//']:after {
  content: ' \F08E';
  font-family: FontAwesome;
  font-size: 0.8em;
  white-space: nowrap;
}
a[href$='.zip']:after {
  content: ' \F1C6';
  font-family: FontAwesome;
  font-size: 0.8em;
  white-space: nowrap;
}
a[href$='.pdf']:after {
  content: ' \F1C1';
  font-family: FontAwesome;
  font-size: 0.8em;
  white-space: nowrap;
}
a[href^='mailto']:after {
  content: ' \F003';
  font-family: FontAwesome;
  font-size: 0.8em;
  white-space: nowrap;
}
nav {
  margin-bottom: 1em;
}
nav a:link,
nav a:visited {
  color: inherit;
  text-decoration: none;
}
nav a:hover,
nav a.selected {
  color: inherit;
  text-decoration: underline;
}
::selection  {
  background-color: MediumVioletRed ;
  color: white;
}
::-moz-selection  {
  background-color: MediumVioletRed ;
  color: white;
}
code{
  background: #f8f8f8;
  border: 1px solid #aaa;
  display: block;
  padding: 1em;
}
blockquote {
  border-left: 0.5em solid lightgray;
  color: gray;
  margin: 1em 0;
  padding-right: 1em;
  padding-left: 1.5em;
  position: relative;
}
blockquote:after {
  color: lightgray;
  content: '\201D';
  font-size: 4em;
  position: absolute;
  top: -0.25em;
  right: 0;
}
form {
  display: inline;
}
.left-column,
.right-column {
  box-sizing: border-box;
  width: 50%;
}
.left-column {
  float: left;
  padding-right: 10px;
}
.right-column {
  float: right;
  padding-left: 10px;
}
.clear-float {
  clear: both;
}

.error-code {
  color: gray;
}
.error-code:after {
  content: " - ";
}

.image-container {
  background: center center;
  background-size: cover;
}

.symbol {
  /*Chromium lacks support for fallback fonts so the symbol font has to be manually assigned where ever needed.*/
  font-family: 'Segoe UI Symbol', 'Lucida Grande', freeserif, eversonmono, symbola;
}
/* Page specific */

/*Home*/
#cover {
  height: 190px;
  width: 800px;
}
#image-of-me {
  border: 9px solid white;
  height:134px;
  position: absolute;
  right: 19px;
  top: 19px;
  width:134px;
}

/*Portfolio*/
#project-list {
  margin-left: -20px;
  position: relative;
}
#portfolio-options,
a.entry {
  box-sizing: border-box;
  display: block;
  float: left;
  height: 185px;
  margin-bottom: 20px;
  margin-left: 20px;
  position: relative;
  width: 185px;
}
#portfolio-options {
  background: #f8f8f8;
  border: 1px solid #aaa;
  float: right;
  padding: 1em;
}
#portfolio-options label {
  display: block;
  margin-bottom: 0.5em;
  text-align: right;
}
#portfolio-options label:last-of-type {
  border-bottom: 1px solid #aaa;
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
}
#portfolio-options select {
  width: 60%;
}
#portfolio-options button {
  display: block;
  width: 80%;
  margin: 2px auto;
  
}
#portfolio-options form:last-of-type button:after {
  content: ' \F02F';
  font-family: FontAwesome;
  font-size: 0.8em;
}
#portfolio-options form:first-of-type button:after {
  content: ' \F019';
  font-family: FontAwesome;
  font-size: 0.8em;
}
a.entry {
  color: black;
  text-decoration: none;
  transition: all 0.3s;
}
a.entry  span{
  box-sizing: border-box;
  background: white;
  left: 0;
  height: 47px;
  padding-top: 3px;
  position: absolute;
  right: 0;
  top: 24px;
  
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  letter-spacing: 0.1em;
  
  opacity: 0.85;
  transition: all 0.3s;
  
}
a.entry:hover {
  box-shadow: 3px 3px 10px #888888;
}
a.entry:hover span{
  opacity: 0;
}
#project-list p {
  text-align: center;
}

#portfolio-entry {
  font-size: 12pt;
  text-align: left;
  transition: 0.5s;
  z-index: 2;
  
  /*HACK: make children inherit opacity in god damn fucking IE*/
  position: absolute;
}
#close {
  background: rgba(0, 0, 0, 0.8);
  bottom: 0;
  font-family: FontAwesome;
  font-size: 2em;
  left:0;
  padding: 1em;
  position: fixed;
  right: 0;
  text-align: right;
  top :0;
  z-index: 2;
}
.exterior-link:link,
.exterior-link:visited {
  color: gray;
  text-decoration: none;
  text-shadow: 0 0 2px white;
  transition: 0.2s;
}
.exterior-link:hover {
  color: lightgray;
  text-shadow: 0 0 10px white;
}
#entry-container {
  left: 50%;
  height: 29.7cm;
  margin-left: -21cm;
  margin-top: -14.85cm;
  position: fixed;/*REVIEW: somehow make zoom and scroll function.*/
  top: 50%;
  /*Set in javascript to be contained within window. Fallback set here.*/
  transform: scale(0.5);
  /*transform: scale(calc((100vh-2em)/29.7cm));*/
  width: 42cm;
  z-index: 2;
}
#entry-container > div {
  background: white;
  box-sizing: border-box;
  height: 100%;
  padding: 1cm;
}
#portfolio-entry header,
#portfolio-entry footer {
  position: absolute;
  left: 1cm;
  right: 1cm;
  font-family: 'Roboto', sans-serif;
  font-size: 16pt;
  font-weight: 300;
  letter-spacing: 0.05em;
}
#portfolio-entry footer {
  bottom: 1cm;
  border-top: 1px solid gray;/*Should be 0.9 pt but webkit can't render it*/
  color: gray;
  height: auto;
  left: 1cm;
  padding-top: 0.75pt;
  position: absolute;
  right: 1cm;
  text-align: right;
}
#portfolio-entry h1 {
  font-size: 32pt;
  font-weight: 100;
  border-width: 1px;/*Should be 0.9 pt but webkit can't render it*/
  margin-bottom: 1.5pt;
}
#portfolio-entry .previous,
#portfolio-entry .next {
  background: transparent;
  bottom: 4cm;
  font-size: 4cm;
  line-height: 21.7cm;
  position: absolute;
  text-align: center;
  top: 4cm;
  width: 5cm;
}
#portfolio-entry .previous {
  left: -5cm;
}
#portfolio-entry .next {
  right: -5cm;
}
#portfolio-entry .label {
  text-align: right;
  font-family: 'Roboto', sans-serif;
  font-size: 12pt;
  font-weight: 300;
}
/*Blog*/
#blog-menu {
  position: absolute;
  width: 185px;
  z-index: 1;
}
@media only screen
and (min-device-width : 1000px) {
  #blog-menu {
    position: fixed;
  }
}
/*HACK: target IE 8, 9, 10 */
@media screen\0 {
  #blog-menu {
    /*
      Animated transformation on element containing un-positioned fixed elements
      is currently bugged in IE 10 (as of 2015-07-17).
    */
    position: absolute;
  }
}
.calendar {
  background: white;
  border-collapse: collapse;
  color: lightgray;
  text-align: right;
  width: 100%;
}
.calendar tr a {
  color: black;
}
.calendar td {
  height: 20px;
  min-width: 15px;
  padding: 3px;
}
.calendar tr:first-child {
  color: gray;
  text-align: center;
  text-transform: capitalize;
  letter-spacing: 0.1em;
}
.calendar tr:first-child  td{
  border-bottom: 1px solid gray;
}
.calendar span:not(.disabled):hover{
  cursor: pointer;
  text-decoration: underline;
}
.calendar span.disabled{
  color: lightgray;
}
.calendar tr:nth-child(2) td {
  color: black;
  font-size: xx-small;
  height: auto;
  text-align: center;
}
.calendar td.today {
  background: url(categories/blog/circle.svg) no-repeat right center;
  background-size: contain;
}
.calendar tr:last-child {
  font-size: small;
  text-align: center;
  word-spacing: 1em;
}
.calendar tr:last-child  td {
  border-top: 1px solid gray;
  height: auto;
}
#blog-container {
  margin-left: 205px;
  position: relative;/*For sliding animation to function properly*/
}
#category-blog h1 {
  font-size: 1.5em;
  font-family: 'Roboto', sans-serif;
  font-weight: 100;
  letter-spacing: 0.15em;
}
#category-blog .pagination-links,
#category-blog .share-links {
  float: right;
}
#category-blog .pagination-links,
#category-blog .sub-header,
#category-blog .share-links {
  font-family: 'Roboto', sans-serif;
}
#category-blog .sub-header {
  display: block;
  margin-bottom: 1em;
}
#category-blog .pagination-links {
  margin-top: 0.5em;
}
#category-blog .pagination-links .previous:before {
  /*Use same font as in .symbol*/
  content: '\276C  ';
  font-family: 'Segoe UI Symbol', 'Lucida Grande', freeserif, eversonmono, symbola;
}
#category-blog .pagination-links .next:after {
  /*Use same font as in .symbol*/
  content: ' \276D';
  font-family: 'Segoe UI Symbol', 'Lucida Grande', freeserif, eversonmono, symbola;
}
.share-links a {
  font-family: FontAwesome;
  text-decoration: none;
}
.share-links a:after {
  content: '';
}
.share-links a.google:hover {
  color: #DF4B38;
}
.share-links a.twitter:hover {
  color: #5EA9DD;
}
.share-links a.linkedIn:hover {
  color: #1060A6;
}
.share-links a.facebook:hover {
  color: #3864A3;
}
.missing-translation{
  border: 1px solid gray;
  border-radius: 0.25em;
  margin: 1em 0;
  padding: 0.25em;
}
.missing-translation:before{
  content: '\F06A';
  color: gray;
  font-family: FontAwesome;
  margin: -0.5em 1em;
}
.year {
  column-count: 3;
  -moz-column-count: 3;
  -webkit-column-count: 3;
  column-gap: 20px;
  -moz-column-gap: 20px;
  -webkit-column-gap: 20px;
  margin-bottom: 1.2em;
  text-align: left;
}
#blog-container h2 {
  font-size: 1em;
  font-weight: normal;
  letter-spacing: 0.4em;
  margin:0;
}
.month {
  display: inline-block;
}
.month h3 {
  font-size: 1em;
  font-weight: normal;
  letter-spacing: 0.2em;
  margin: 1.2em 0;
  text-transform: capitalize;
}
.month ol{
  margin: 0;
  padding-left: 1.5em;
}

figure {
  margin: 0;
  margin-bottom: 20px;
}
figure.left {
  float: left;
  margin-right: 20px;
}
figure.right {
  float: right;
  margin-left: 20px;
}
figure.half {
  width: 287px;
}
figure.third {
  width: 185px;
}

figure + figure {
  margin-left: 0 !important;
}

figcaption {
  text-align: right;
}

/*Contact*/
#category-contact h2 {
  color: gray;
  font-size: 0.9em;
  font-weight: inherit;
  letter-spacing: 0.05em;
}
