/* Page size */

article {
  margin-top: 3em;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}

/* Header and intro */

header img {
  float: right;

  -webkit-box-shadow: 0px 0px 0px 4px #e6e5e3;
  -moz-box-shadow: 0px 0px 0px 4px #e6e5e3;
  box-shadow: 0px 0px 0px 4px #e6e5e3;
  
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;

  border: 1px solid #9f9f9f;

  margin-left: 3em;
}

header, #intro {
  width: 45em;
  margin: auto;
}

footer, hr {
  clear: both;
}

@media screen and (max-width: 50em) {
  header {
     text-align: center;
  }

  header img {
     float: none;

     margin-left: 0;
  }

  header, #intro {
     width: 90%;
     margin: auto;
  }

  .postnom {
     display: none;
  }
}

/* Layout */

div.third {
  width: 30%;
  float: left;
  margin-left: 1%;
  margin-right: 1%;

  padding-bottom: 2em;
}

div.project-logo {
  width: 25%;
  float: left;
  text-align: center;
  padding-top: 1em;
}

div.project-logo p {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}

div.project-details {
  width: 70%;
  float: left;
}

div.project-details h3 {
   margin-top: 0;
}

@media screen and (max-width: 55em) {

  div.third {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    float: none;
  }

  div.project-logo {
    width: 100%;
    float: none;
  }

  div.project-details {
    width: 100%;
    float: none;
  }

  span.hide-small {
     display: none;
  }

}

/* Special treatment for the trophy bullets - if it can't do a media query it probably can't do FontAwesome */

ul.awards li {
  margin-bottom: 1em;
}

ul.awards i.fa-trophy {
  display: none;
  margin-right: 0.25em;
}

@media screen and (min-width: 0) {

  ul.awards i.fa-trophy {
    display: inline;
    margin-left: -1em;
    font-size: 150%;
    vertical-align: middle;
  }

  ul.awards ul {
    list-style-type: none;
    padding-left: 2em;
  }

}
