body {
  background-color: #fff;
  padding:50px;
  font: 14px/1.5 'Fira Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color:#595959;
  font-weight:300;
}

span.footnote {
  margin-left: -.3em;
}

span.footnote > a:first-child {
  vertical-align: super;
  font-size: .7em;
  line-height: 100%;
  margin-left: 2px;
}

.footnote_content {
  padding: .2em;
  opacity: 0.95;
  background: none repeat scroll 0 0 #fffee0;
  border: 2px solid #c0c0c0;
  display: block;
  position: absolute;
  margin-top: 5px;
  margin-left: 1.5em;
  margin-right: 1.5em;
  border-radius: 2px;
  visibility: hidden;
  transition: 0.2s 1s;
  z-index: 1;
}

@media all and (max-width: 40em) {
  .footnote_content {
    transition: 0s;
  }
}

.footnote:hover .footnote_content  {
  visibility: visible;
  transition-delay: 0s;
}

h1, h2, h3, h4, h5, h6 {
  color:#222;
  margin:0 0 20px;
  font-weight: 400;
}

p, ul, ol, table, pre, dl {
  position: relative;
  left: 0;
  margin: 0 0 15px;
  font-size: 17px;
}

smaller {
  font-size: 16px;
}

smaller2 {
  margin-top: 5px;
  display: block;
  font-size: 15px;
}

ul {
    /* list-style: url(/images/bullet_blue.png);; */
    /* list-style-type: circle; */
    /* margin-top: 1.6em; */
    margin-left: 1em;
    padding-left: 0;
}
/* ul > li:before {
    display: inline-block;
    content: "-";
    width: 0.85em;
    margin-left: -0.85em;
} */
/* ul > li {
    margin-bottom: 0.95em;
} */

h1, h2, h3 {
  line-height:1.1;
}

h1 {
  font-size:28px;
}

h2 {
  color:#393939;
  font-weight: 500;
  font-size:24px;
}

#peer-reviewed-publications {
  margin-bottom:1.2em;
}

h3, h4, h5, h6 {
  color:#494949;
  margin-top:.5em;
  margin-bottom:.5em;
}

p, ul {
  line-height: 1.25;
}

a {  /* hyperlinks */
  color:#265C83;
  font-weight: 300;
  text-decoration:none;
}

a:hover {
  text-decoration: underline;
  /* color:#7FDBFF; */
}

a strong {
  color:#265C83;
  font-weight:400;
  text-decoration:none;
}

a:hover strong {
  /* color:#7FDBFF; */
  text-decoration: underline;
}

a small {
  font-size:13px;
  color:#777;
  margin-top:-0.3em;
  display:block;
}

a:hover small {
  color:#777;
}

.wrapper {
  width:860px;
  margin:0 auto;
}

blockquote {
  border-left:1px solid #e5e5e5;
  margin:0;
  padding:0 0 0 20px;
  font-style:italic;
}

code, pre {
  font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal, Consolas, Liberation Mono, DejaVu Sans Mono, Courier New, monospace;
  color:#333;
}

pre {
  padding:8px 15px;
  background: #f8f8f8;
  border-radius:5px;
  border:1px solid #e5e5e5;
  overflow-x: auto;
}

table {
  width:100%;
  border-collapse:collapse;
}

th, td {
  text-align:left;
  padding:5px 10px;
  border-bottom:1px solid #e5e5e5;
}

intro th, td {
  border:0;
}

dt {
  color:#444;
  font-weight:700;
}

th {
  color:#444;
}

img {
  max-width:100%;
}

header {
  -webkit-font-smoothing:subpixel-antialiased;
}

header h1 {
  font-size: 50px;
  color: #222;
  padding-bottom: 25px;
  border-bottom: 1px solid #e2e2e2;
  margin-bottom: 25px;
  font-weight: 500;
}

/* Navigation menu */
.scroll {
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

nav {
  list-style:none;
  width: 100%;
  box-sizing:border-box;
  border-bottom: 1px solid #e5e5e5;
  border-top: 1px solid #e5e5e5;
  padding: 6px 10px;
  margin-top: 15px;
  margin-bottom: 35px;
  display: inline-block !important;
  vertical-align: middle;
}

nav a {
  text-transform: uppercase;
  padding-right: 42px;
  line-height:32px;
  height:32px;
  color: #6b6b6b;
  font-size: 14px;
}

nav a:hover,
nav a:active,
nav a.active {
  text-decoration: none;
  font-weight: 400;
  color: #393939;
}

strong {
  color:#222;
  font-weight:400;
}

header ul a strong {
  font-size:14px;
  display:block;
  color:#222;
}

section {
  width:500px;
  float:right;
}

small {
  font-size:13px;
}

hr {
  border:0;
  background:#e2e2e2;
  height:1px;
  margin:22px 0 22px;
}

/* Image photo profile */
#mypic {
  min-width:       172px;
  min-height:      172px;
  width:           172px;
  height:          172px;
  background-size: 172px;

  background-image: url(../images/riccardo.jpg);
  background-repeat: no-repeat;
  background-position: 0;

  display: block;
}

img.profile {
  min-width:  180px;
  min-height: 180px;
  width:      180px;
  height:     180px;
  display: block;
}

.pull-right,
.pull-right-responsive {
	max-width: 40%;
	float: right;
	margin: 0 0 1em 1em;
}

.pull-left,
.pull-left-responsive {
	/* max-width: 40%; */
	float: left;
	margin: 2.5pt 3.5% 4pt 0;
  /* margin: 6pt 4% 2% 0; */
  /* FIXME: top, right, bottom, and left */
}

footer {
  width:270px;
  float:left;
  position:fixed;
  bottom:50px;
  -webkit-font-smoothing:subpixel-antialiased;
}

.small-margin-bottom {
  margin-bottom: 5px;
}

.medium-margin-bottom {
  margin-bottom: 15px;
}

.post-title {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 28px;
  /* text-align: center; */
}

.post-date {
  /* text-align: center; */
  font-style: italic;
  font-size:14px;
  margin-bottom: 30px;
}

/* article p + p {
  text-indent:10px;
} */

div.wrapper {
  width:auto;
  margin:0;
}

header, section, footer {
  float:none;
  position:static;
  width:auto;
}

header a small {
  display:inline;
}

header ul {
  position:absolute;
  right:50px;
  top:52px;
}

body {
  word-wrap:break-word;
}

/* header {
  padding:0;
} */

header ul, header p.view {
  position:static;
}

pre, code {
  word-wrap:normal;
}

body {
  max-width:864px; /* FIXME: Tune page width */
  margin-left: auto;
  margin-right: auto;
}

@media print, screen and (max-width: 480px) {
  body {
    padding:15px;
  }

  header h1 {
    font-size: 34px;
    padding-bottom: 15px;
    margin-bottom: 20px;
  }

  p, ul, ol, table, pre, dl, h3 {
    font-size: 14px;
  }

  h2 {
    font-size:20px;
    margin:0 0 15px;
  }

  #peer-reviewed-publications {
    margin-bottom:.8em;
  }

  smaller {
    font-size: 13px;
  }

  smaller2 {
    font-size: 12px;
  }

  #mypic {
    min-width:       131px;
    min-height:      131px;
    width:           131px;
    height:          131px;
    background-size: 131px;
  
    background-image: url(../images/riccardo.jpg);
    background-repeat: no-repeat;
    background-position: 0;
  
    display: block;
  }

  nav {
    margin-top: -5px;
    margin-bottom: 20px;
  }

  hr {
    border:0;
    background:#e5e5e5;
    height:1px;
    margin:16px 0 16px;
  }

  .pull-left,
  .pull-left-responsive {
	margin: 1pt 4% 2% 0;
  }

  /* header h1 {
    text-align: center;
  } */
}

@media print {
  body {
    padding:0.4in;
    font-size:12pt;
    color:#444;
  }
}
