/* Base styles */

div#content{
    max-width: 60%;
    height: 100vh;
  }

/* Header styles */

h1.logo > a {
  font-size: 2.4rem;
}

p.langSelector > a {
  font-size: 1.6rem;
  margin-top: 0.8rem;
}

/* Navigation styles */

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

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

.hidden {
  display: inline-block;
}

/* Main styles */

main img {
  -o-object-fit: contain;
     object-fit: contain;
  width: 100%;
  height: auto;
  max-height: 72vh;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Index styles */

div#index {
  flex-direction: row;
  justify-content: start;
  flex-flow: wrap;
}

div#index > div.project-link {
  margin-top: 1rem;
  margin-right: 1.5%;
  width: 49%;
}

div#index > div.project-link:nth-child(5n-2), div#index > div.project-link:nth-child(5n-1), div#index > div.project-link:nth-child(5n) {
  width: 32.33%;
}

div#index > div.project-link:nth-child(5n-3), div#index > div.project-link:nth-child(5n) {
  margin-right: 0;
}

div.project-link> a > p.legend {
  font-size: 1.6rem;
}

/* Project styles */

div#legend {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 1.5rem;
  margin-top: 1rem;
}

div#buttons {
  min-width: 140px;
}

div#legend > p.description {
  text-align: right;
}

div.project-image > p.desktop {
    display: inline-block;
    font-size: inherit;
    margin: 0.5rem 0 0;

}

div.project-image > p.mobile, div.project-image:first-child > p.mobile {
  display: none;
}

.desktop {
  display: inline-block;
}

/* Contacts styles */

div#contacts {
  display: inline-flex;
  flex-direction: row;
  align-content: space-between;
  width: 100%;
}

div.contact-links {
  width: 40%;
}

div.contact > a {
  font-size: 1.6rem;
}

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

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

div.map {
  width: 60%;
}

/* Footer styles */

footer > div {
  max-width: 60%;
  font-size: 1.4rem;
}
