@font-face {
  font-family: 'cmr';
  src: url('../fonts/cmunrm-webfont.eot');
  src: url('../fonts/cmunrm-webfont.eot?#iefix') format('embedded-opentype'),   url('../fonts/cmunrm-webfont.woff') format('woff'),   url('../fonts/cmunrm-webfont.ttf') format('truetype'),   url('../fonts/cmunrm-webfont.svg#webfont') format('svg');
}
@font-face {
  font-family: 'cmr';
  font-weight: bold;
  src: url('../fonts/cmunbx-webfont.eot');
  src: url('../fonts/cmunbx-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/cmunbx-webfont.woff') format('woff'), url('../fonts/cmunbx-webfont.ttf') format('truetype'), url('../fonts/cmunbx-webfont.svg#webfont') format('svg');
}
@font-face {
  font-family: 'cmr';
  font-style: italic;
  src: url('../fonts/cmunci-webfont.eot');
  src: url('../fonts/cmunci-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/cmunci-webfont.woff') format('woff'), url('../fonts/cmunci-webfont.ttf') format('truetype'), url('../fonts/cmunci-webfont.svg#webfont') format('svg');
}
@font-face {
  font-family: 'cmb';
  src: url('../fonts/cmunbmr-webfont.eot');
  src: url('../fonts/cmunbmr-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/cmunbmr-webfont.woff') format('woff'), url('../fonts/cmunbmr-webfont.ttf') format('truetype'), url('../fonts/cmunbmr-webfont.svg#webfont') format('svg');
}
@font-face {
  font-family: 'cmb';
  font-weight: bold;
  src: url('../fonts/cmunbbx-webfont.eot');
  src: url('../fonts/cmunbbx-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/cmunbbx-webfont.woff') format('woff'), url('../fonts/cmunbbx-webfont.ttf') format('truetype'), url('../fonts/cmunbbx-webfont.svg#webfont') format('svg');
}
@font-face {
  font-family: 'cmb';
  font-style: italic;
  src: url('../fonts/cmunbmo-webfont.eot');
  src: url('../fonts/cmunbmo-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/cmunbmo-webfont.woff') format('woff'), url('../fonts/cmunbmo-webfont.ttf') format('truetype'), url('../fonts/cmunbmo-webfont.svg#webfont') format('svg');
}

body {
  background-color: #f5f5f5;
  color: black;
  font-family: "cmb";
  line-height: 130%;
  box-sizing: border-box;
}

a:link {
  text-decoration: none;
  color: #454545;
  background-color: inherit;
  font-weight: 200;
}
a:visited {
  text-decoration: none;
  color: #787878;
  background-color: inherit;
  font-weight: 200;
}
a:hover {
  text-decoration: none;
  color: #f55555;
  background-color: inherit;
}


h1 {
  font-size: 170%;
  font-family: 'cmb';
}
h2 {
  font-family: 'cmb';
  font-size: 130%;
}
h3 {
  font-family: 'cmb';
  font-size: 1s30%;
  font-weight: normal;
  margin-bottom: .5ex;
}
p {
  font-family: 'cmb';
  font-size: 100%;
  width: 100%;
  margin-top: 0;
}

#name {
  padding: 0ex 1ex 0ex 1ex;
  text-align: right;
}
#name h1 {
  margin-bottom: 0;
  padding-bottom: 1ex;
  border-bottom: 3px solid #c5c5c5;
  font-size: 150%;
  font-weight: normal;
}
#name h1 a {
  font-weight: normal;
  color: black;
}
#name a {
  font-weight: bold;
  color: #656565;
}
#name a:hover {
  text-decoration: none;
  color: #f55555;
  background-color: inherit;
}

.container {
  margin: auto;
}
.row {
  max-width: 60rem;
  margin: auto;
}
/*
 * The content box
 */
#contentbox {
  color: inherit;
  background-color: #f9f9f9;
  margin-top: 0;
  padding: 1ex;
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  /*height: 50em;*/
}
/*
 * Projects & interests
 */
.interests {
  margin-bottom: 2ex;
  grid-area: int;
}
.project-title {
  font-family: 'cmb', sans-serif;
  font-size: 95%;
  font-weight: bold;
  text-align: center;
  text-transform: capitalize;
  /*min-height: 5ex;*/
  margin: 0 0 0 0;
  border-bottom: 1px solid #c5c5c5;
}
.projectbox {
  grid-area: content;
  padding: 1ex;
}
.project-content {
  background-repeat: no-repeat;
  width: 100%;
  padding: 1ex .0ex .5ex .5ex;
}
.projects-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(100px, auto);
  grid-template-areas:
    "int"
    "content"
    "content";
}
.projects-container a {
  border: 2px solid #f9f9f9;
  border-radius: 4px;
}
.projects-container a:hover {
  border: 2px solid #c5c5c5;
  border-radius: 4px;
  color: #454545;
}

@media (min-width: 45em) {
  .projects-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "int int"
      "content content";
  }
}
/*
 * Legal notice at bottom
 */
#legal {
  font-size: 70%;
  margin: 5% 0 0 0;
  border-top: 3px solid #c5c5c5;
  padding: 0 1ex 0 1ex;
  /*float: left;*/
}
.contact {
  width: 35ex;
}
.contact-type {
  /*float: left;*/
  font-style: italic;
  width: 7ex;
}
.contact-info {
  float: right;
  width: 28ex;
}
.email {
  color: #555555;
  background-color: inherit;
  font-weight: bold;
  text-decoration: none;
}
.email:hover {
  color: red;
  background-color: inherit;
}
