/*=========================================
Reset
=========================================== */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  margin: 0;
  padding: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
*,
*:before,
*:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.group:before,
.group:after {
  content: '';
  display: table;
}
.group:after {
  clear: both;
}
.group {
  zoom: 1;
}

/*=========================================
Base
=========================================== */

html {
  overflow-y: scroll;
}

body {
  /* font:16px/1 "Helvetica Neue",Helvetica,Arial,sans-serif; */
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  color: #777;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Link to Documentation */
a#documentation {
  position: fixed;
  z-index: 100;
  top: 11px;
  right: 10px;
  padding: 8px 12px;
  background: #5badf0;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.4;
  border-radius: 3px;
}

#wrapper {
  padding: 20px 40px;
  max-width: 600px;
  margin: 0 auto;
}

#header {
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
  text-align: center;
  position: relative;
}

#avatar {
  display: inline-block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 10px;
}

#badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  height: 48px;
  width: 48px;
}

p.small {
  font-size: 16px;
}

/*=========================================
Menu
=========================================== */

#menu {
  margin: 0 auto;
  margin-bottom: 20px;
}

#menu ul {
  list-style-type: none;
  text-align: center;
}

#menu ul li {
  display: inline;
  padding: 0.2em 1em;
}

#menu ul li.active a {
  border-bottom: 1px solid #5694f1;
}

#menu ul li a:hover {
  border-bottom: 1px solid #5694f1;
}

/*=========================================
Bio
=========================================== */

#bio {
  text-align: justify;
}

/*=========================================
Portfolio
=========================================== */

#portfolio p {
  line-height: 1.5em;
  margin-bottom: 0;
}

#portfolio .title {
  font-weight: bold;
}

#portfolio .subtitle {
  color: #aaa;
}

#portfolio .date {
  color: #aaa;
  font-weight: normal;
  float: right;
}

#portfolio .description {
  line-height: 1.3em;
}

#portfolio .info {
  font-style: italic;
  /* margin-bottom: 5px; */
}

#portfolio .logo {
  float: left;
  padding-right: 10px;
}

#portfolio .logo:hover {
  border-bottom: none;
  text-decoration: none;
}

#portfolio ul {
  list-style-type: none;
  line-height: 1.5em;
}

#portfolio > ul li {
  margin-bottom: 20px;
}

#portfolio .links li {
  display: inline;
  padding: 0 0.5em;
}

#portfolio .links li:first-child {
  padding-left: 0;
}

/*=========================================
Publications
=========================================== */

#publications p {
  line-height: 1.5em;
  margin-bottom: 0;
}

#publications .date {
  color: #aaa;
}

#publications .title {
  font-weight: bold;
}

#publications .info {
  font-style: italic;
  margin-bottom: 5px;
}

#publications ul {
  list-style-type: none;
}

#publications > ul li {
  margin-bottom: 20px;
}

#publications .links li {
  display: inline;
  padding: 0 0.5em;
}

#publications .links li:first-child {
  padding-left: 0;
}

/*=========================================
Typography
=========================================== */
/*Accent color*/
a {
  text-decoration: none;
  color: #5694f1;
  font-weight: 400;
}

section a:hover,
section a:focus {
  border-bottom: 1px solid #5694f1;
  color: #5694f1;
  text-decoration: none;
}

a.light-link {
  color: #aaa;
  font-weight: 300;
  border-bottom: 1px dotted #aaa;
}

a.light-link:hover {
  border-bottom: 1px solid #5694f1;
  color: #5694f1;
  text-decoration: none;
}

abbr {
  cursor: help;
}

abbr:hover {
  border-bottom: 1px dotted #777;
}

h1 {
  font-weight: 400;
  font-size: 24px;
  color: #222;
  margin-bottom: 10px;
}

h2 {
  font-size: 16px;
  font-weight: 300;
  color: #aaa;
  margin-bottom: 15px;
}

p {
  line-height: 1.7;
  margin-bottom: 10px;
}

/* p:last-child{ */
/*     margin-bottom: 30px; */
/* } */

.social {
  text-align: center;
  margin-top: 40px;
}

.social a:not(:last-child) {
  padding-right: 10px;
}

.social a {
  color: #777;
}

.social a:hover {
  color: #5694f1;
  border-bottom: none;
}

.img-link:hover {
  border-bottom: none;
}

/*=========================================
News
=========================================== */

#news li {
  list-style: none;
  margin: 5px 0;
  line-height: 1.4;
}

#news .date {
  font-weight: bold;
}

#news h3 {
  font-weight: 400;
  font-size: 24px;
  padding: 10px 0 10px;
}

#news h3 a {
  color: #777;
}

#news h3 a:hover {
  color: #5694f1;
}

#news li.year {
  font-weight: 400;
  font-size: 24px;
  padding-top: 10px;
}

#news li.year:first-child {
  margin-top: 0;
  padding-top: 0;
}

/*=========================================
Responsive
=========================================== */

@media screen and (max-width: 540px) {
  #wrapper {
    padding: 40px;
  }
  #header {
    margin-bottom: 40px;
  }
  a#docs {
    display: none;
  }
  #menu ul li {
    padding: 0.2em 0.5em;
  }
}

@media screen and (max-width: 440px) {
  #wrapper {
    padding: 40px 20px;
  }
  #header {
    margin-bottom: 20px;
  }
  #menu ul li {
    padding: 0.2em 0.25em;
  }
}
