* {
  box-sizing: border-box;
}

html {
  background-repeat: no-repeat;
  background-size: 100%;
}

body {
  box-sizing: border-box;
  width: 96%;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  color: #555;
}

h1, h2, h3 {
  color: #333;
}

#content  {
  width: 100%;
  box-sizing: border-box;
  background-color: white;
  padding: 0.1em 0.1em;
  margin-top: 3em;
  border-radius: 4px;
  box-shadow: 0px 0px 20px rgba(255,255,255,0.3);
}

table, p, body {
  font-family: "Open Sans", Arial;
  font-weight: 400;
}

a {
  text-decoration: none;
  font-weight: bold;
  color: #40604C;
}

a:hover {
  color: #282;
}

i {
  margin-right: 0.5em;
  min-width: 16px;
  text-align: center;
}

hr {
  border-top: 0px;
  border-right: 0px;
  border-left: 0px;
  border-bottom: 1px solid #ddd;
  margin: 0px;
}

#flourish {
  background-color: #ccc;
  border: 5px solid white;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 16px;
  margin-left: auto;
  margin-right: auto;
  margin-top: -12px;
}

#header {
  text-align: center;
  padding-bottom: 1.5em;
}

#header h1 {
  font-family: Alegreya;
  font-size: 4.25em;
  padding-top: 0.25em;
}

#header h2 {
  font-family: "Open Sans", Arial;
  font-size: 1.5em;
  font-weight: 400;
}

h2 {
  font-family: Alegreya;
  font-size: 2em;
  text-align: center;
  padding-top: 1em;
}

#nav {
  text-align: center;
  margin-top: 4em;
  border-bottom: 1px solid silver;
  padding-bottom: 0.5em;
}

#nav a {
  white-space: nowrap;
  margin: 0.75em;
  display: inline-block;
}

#header h1, #header h2 {
  margin: 0px;
}

.subtitle {
  display: block;
}

.subtitle-small {
  display: none;
}

#contact-details {
  margin-top: 0.5em;
}

.contact {
  margin: 0.25em;
}

.contact span {
  text-decoration: none;
  font-weight: bold;
}

#summary {
}

#summary h2 {
  padding-top: 0px;
}

#summary strong {
  font-weight: 600;
}

#technologies {
  font-weight: bold;
  display: none;
}

#stats {
  width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2em;
}

#stats div {
  display: inline-block;
  width: 125px;
  height: 125px;
  background-color: #73897C;
  border-radius: 75px;
  color: white;
  text-align: center;
  margin: 0.5em;
  padding: 1em;
  padding-top: 1.25em;
  padding-bottom: 1.5em;
  font-weight: bold;
  font-size: 0.85em;
}

#stats div span {
  font-family: "Varela Round";
  display: block;
  font-weight: bold;
  font-size: 3em;
  margin-bottom: 0px;
}

#stats #breaker {
  display: none;
}

#stats div.word {
  position: relative;
  top: -0.2em;
}

#stats div.word span {
  margin-top: 0.4em;
}

#languages {
  text-align: center;
  margin: 0px;
  padding: 0px;
  margin-top: 3em;
}

#languages li {
  display: inline-block;
  width: 11em;
  margin-top: 0.25em;
  margin-bottom: 1em;
  border: 2px solid white;
  font-weight: bold;
  color: #73897C;
}

#languages li span {
  display: block;
  background-color: #73897C;
  height: 1em;
  border-radius: 2px;
  margin-bottom: 0.25em;
  display: none;
}

#experience li {
  margin-bottom: 0.25em;
}

.column-left {
  width: 10em;
  display: inline-block;
}

#education h3 {
  margin-bottom: 0;
  padding-bottom: 0;
}

.education-item {
  margin-bottom: 1em;
}

.education-item span {
  margin-left: 1em;
}

.education-row {
  margin-left: 1em;
}

.education-note {
}

.education-location {
  margin-top: 0.5em;
  font-weight: bold;
}

#lecturing {
}

#lecturing p {
  margin-left: 0.25em;
}

#conferences h3 {
  margin-bottom: 0px;
}

#conferences p {
  margin-top: 0.25em;
}

#footer {
  font-family: Alegreya;
  font-size: 0.75em;
  margin: 1em auto;
  text-align: center;
  background-color: white;
}

@media screen and (min-width: 500px) {
  #contact-details {
    width: 100%;
    text-align: center;
  }
  
  .contact {
    display: inline-block;
  }
}

@media screen and (max-width: 1200px) {
  body {
    max-width: 100%;
    background-color: white;
  }

  #content {
    margin-left: auto;
    margin-right: auto;
    border-radius: none;
    max-width: 1000px;
  }
}

@media screen and (max-width: 870px) {
  #contact-details {
    width: 400px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  #stats #breaker {
    display: inline;
  }
}

@media screen and (max-width: 700px) {
  .subtitle {
    display: none;
  }

  .subtitle-small {
    display: block;
  }

  #content {
    padding: 0.25em 1em;
  }

  #header h1 {
    font-size: 2.8em;
  }

  #header h2 {
    padding-top: 0em;
    font-size: 1.5em;
  }
}

@media screen and (max-width: 500px) {
  #header h1 {
    font-size: 2em;
  }

  #header h2 {
    font-size: 1.1em;
  }
}

@media print {
  html {
    background-image: none !important;
  }

  .break {
    page-break-after: always;
  }

  hr, #flourish {
    display: none;
  }
  
  #nav {
    display: none;
  }

  #content {
    margin-top: 0px;
  }
  
  #languages {
    margin-top: 0.25em;
  }

  #languages li {
    width: 7em;
  }

  #stats {
    margin-top: 2em;
    margin-bottom: 0.5em;
  }

  .subtitle {
    display: none;
  }

  .subtitle-small {
    display: block;
    margin: 0px;
    padding: 0px;
  }

  #contact-details {
    width: 80%;
    text-align: center;
    margin: 0px auto;
  }
  
  .contact {
    display: inline-block;
  }
  
  #footer {
    display: none;
  }
}
