/* Base styles */
* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  background-color: white;
  color: black;
  font-family: Lato, sans-serif;
  font-size: 10px;
  font-weight: 300;
}

div#content{
  width: 90%;
  margin: 0 auto;
}

a, li, ul, h1, h2, h3, p, button {
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  border: none;
  display: inline-block;
}

a, button {
  text-decoration: none;
  color: black;
  display: inline-block;
  padding: 0.2rem;
}

button {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: white;
}

li, ul {
  list-style: none;
}

img {
  width: auto;
  height: 100%;
}

/* Header styles */

header{
  text-align: center;
  margin: 3rem 0 1rem;
}

h1.logo > a {
  font-size: 1.8rem;
  font-weight: 400;
}

p.langSelector {
  display: block;
}

p.langSelector > a {
  font-size: 1.4rem;
  margin-top: 0.5rem;
}

/* Navigation styles */

nav {
  margin: 1rem 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

h2.page_title > a {
  font-size: 1.6rem;
}

.navigation {
  display: flex;
  justify-content: flex-end;
}

h3.link  > a {
  margin-left: 1rem;
  font-size: 1.2rem;
}

.hidden {
  display: none;
}

/* Main styles */

main {
  margin: 0 0 6rem;
  padding-bottom: 6rem;
}

div#index, div#project, div#contacts {
  display: flex;
  flex-direction: column;
}

div.project-link, div.project-image, div.contact-links {
  margin-top: 1rem;
}

main img {
  position: relative;
  width: 100%;
  height: auto;
  max-height: auto;
  z-index: -1;
}

/* Index styles */

div#index a {
  padding: 0;
  display: block;
}

div.imgOverlayer {
  width: 100%;
  height: 2rem;
  background-image: -webkit-gradient(linear, left bottom, left top, from(#FFFFFF), to(rgba(255,255,255,0.00)));
  background-image: linear-gradient(0deg, #FFFFFF 0%, rgba(255,255,255,0.00) 100%);
  margin-top: -2rem;
}

div.project-link> a > p.legend {
  text-align: right;
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

/* Project styles */

div.project-image > p.description {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

p.mobile, .desktop {
  display: none;
}

li:first-child p.mobile {
  display: block;
}

/* Contacts styles */

div.contact {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
}

div.contact > a {
  display: inline-block;
  margin-left: 1rem;
  font-size: 1.2rem;
}

i.fa {
  width: 2rem;
  font-size: 2.4rem;
}

i.fa-envelope {
  font-size: 2rem;
}

div.map {
  margin-top: 1rem;
}

iframe {
  width: 100%;
  height: 36rem;
  border-width: 0;
  border-style: none;
}

/* Footer styles */

footer {
  width: 100%;
  height: 4rem;
  background-image: -webkit-gradient(linear, left bottom, left top, from(#FFFFFF), to(rgba(255,255,255,0.00)));
  background-image: linear-gradient(0deg, #FFFFFF 0%, rgba(255,255,255,0.00) 100%);
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: stretch;
}

footer > div {
  width: 90%;
  margin: 0 auto 1rem;
  font-size: 1rem;
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
}
