@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 100;
  src: local('Lato Hairline'), local('Lato-Hairline'),
       url('../fonts/lato-v16-latin-100.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/lato-v16-latin-100.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
}

body {
    display: flex;
    flex: 1;
    flex-basis: auto;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    
    font-family: sans-serif;
}

h1, h2, h3, #header {
    font-family: 'Lato', sans-serif;
}

a {
    text-decoration: none;
    color: #000;
}

a.reference {
    text-decoration: underline;
    color: #90e;
}

#header {
    display: flex;
    width: 100%;
    justify-content: center;
    background-color: #555;
    color: #eee;
}

#header-content {
    display: flex;
    flex: 1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    max-width: 30cm;
}

#header-content h1 {
    margin: 0;
}

#header-content a {
    color: #fff;
}

#header-content > a {
    font-size: 16pt;
    font-weight: bold;
}

#content {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    max-width: 30cm;
    padding: 1cm 2%;
}

#content .section {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

.section > p, .section h2 {
    width: 100%;
}

.section > img {
    margin: 1%;
    max-width: 46%;
    object-fit: contain;
}

.figure {
    display: inline-block;
    margin: 1%;
    max-width: 46%;
    
    font-size: 80%;
    color: #333;
}

.figure img {
    width: 100%;
}

#footer {
    color: #777;
    font-size: 10pt;
        
    display: flex;
    flex-direction: row;
    justify-content: center;
    
    padding-bottom: 1cm;
}

.rightbar {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-end;
    min-height: 7mm;
}

.articleLink {
    display: flex;
    flex: 1;
        
    background: #f00;
    position: relative;
    border: 1px solid #333;
    color: #333;
    border-radius: 3px;
    background: transparent;
    padding: 2px;
    font-size: 80%;
    
    max-width: 4cm;
    margin: 2px;
    
    align-items: center;
}

.articleLink > img {
    height: 5mm;
    width: 5mm;
    margin: 2px;
}

.articleLink a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#index-content {
    display: block;
    text-align: center;
}

#index-intro {
    display: flex;
    text-align: left;

    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    justify-items: stretch;
}

#index-intro img {
    display: block;
    max-width: 256px;
}

#index-text {
    flex: 1;
    min-width: 4cm;
    padding: 2%;
}

.project-list {
    display: flex;
    flex: 1;
    width: 100%;
    flex-flow: row wrap;
    justify-content: center;
    position: relative;
    align-items: stretch;
}

.project-button {
    position: relative;
    width: 30%;
    max-width: 4cm;
    margin: 1.5%;
    font-size: 80%;
    text-align: center;
}

.project-button a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.project-button img {
    width: 100%;
    border-radius: 50%;
    border: 1px solid #333;
}

.divider {
    width: 1px;
    background-color: #eee;
}

.article {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.article-content {
    flex: 1;
}

