.pub-row {
  display: flex;
  align-items: center;
}

.social-icons a {
  display: inline-block;
  width: 2.4rem;
  height: 2.4rem;
  margin-right: 1rem;

  background-color: transparent;
  color: #043361 !important;

  border-radius: 100%;

  font-size: 1.15rem;
  line-height: 2.5rem;
  text-align: center;
}

.social-icons a:last-child {
  margin-right: 0;
}

.social-icons a:hover {
  background-color: white;
  color: black;
  transform: scale(1.2);
}

@media (prefers-color-scheme: dark) {
  .social-icons a {
    color: #3eb7f0 !important;
  }

  .social-icons a:last-child {
    margin-right: 0;
  }

  .social-icons a:hover {
    background-color: #20212b;
    color: black;
    transform: scale(1.2);
  }
}

/* Icon buttons */

.icon-button {
  display: inline-block;
  position: relative;

  width: 3.6rem;
  height: 3.6rem;
  margin: 0 5px;

  background-color: white;
  border-radius: 3.6rem;

  cursor: pointer;

  font-size: 2rem;
  line-height: 3.6rem;
  text-align: center;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.icon-button span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;

  width: 0;
  height: 0;
  margin: 0;

  border-radius: 0;

  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.icon-button:hover span {
  width: 3.6rem;
  height: 3.6rem;
  margin: -1.8rem;

  border-radius: 3.6rem;
}

.twitter span {
  background-color: #4099ff;
}

.facebook span {
  background-color: #4286f4;
}

.linkedin span {
  background-color: #0077b5;
}

.github span {
  background-color: #000;
}

email {
  font-family: "Ubuntu Mono";
  font-size: 14px;
}

.icon-button i {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;

  width: 3.6rem;
  height: 3.6rem;

  background: none;
  color: white;

  line-height: 3.6rem;

  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.icon-button .icon-twitter {
  color: #4099ff;
}

.icon-button .icon-facebook {
  color: #4286f4;
}

.icon-button .icon-github {
  color: #000;
}

.icon-button .icon-linkedin {
  color: #0077b5;
}

.icon-button:hover .icon-twitter,
.icon-button:hover .icon-facebook,
.icon-button:hover .icon-github,
.icon-button:hover .icon-linkedin {
  color: white;
}

/* Custom elements */

autocolor {
  color: #595959;
}

lightonly {
  visibility: visible;
}

darkonly {
  visibility: hidden;
}

education {
  font-size: 115%;
  font-weight: 500;
}

papertitle {
  font-size: 100%;
  font-weight: 600;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #20212b;
    color: #dadbdf;
  }

  autocolor {
    color: #dadbdf;
  }

  lightonly {
    visibility: hidden;
  }

  darkonly {
    visibility: visible;
  }

  papertitle {
    color: #eeeff0;
  }
}

/* Images */

.image {
  display: inline-block;
  position: relative;

  border: 0;
  border-radius: 0.35em;
}

.image::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  content: "";
  opacity: 0.5;
  border-radius: 0.35em;

  -moz-transition: opacity 0.2s ease-in-out;
  -webkit-transition: opacity 0.2s ease-in-out;
  -ms-transition: opacity 0.2s ease-in-out;
  transition: opacity 0.2s ease-in-out;
}

.image.avatar {
  border-radius: 100%;
}

.image.avatar::before {
  display: none;
}

.image.avatar img {
  width: 45%;
  padding: 20px;

  border-radius: 100%;
}

#header .image.avatar {
  width: 8em;
  margin: 0 0 1em;
}

img {
  max-width: 100%;
}

/* Typography */

h1,
h3,
h4,
h5,
h6 {
  margin: 0 0 20px;

  color: #043361;
  font-weight: 600;
}

h1 {
  font-size: 28px;
  font-weight: 500;
}

h2 {
  margin: 2px 0 15px;

  color: #043361;

  font-size: 157%;
  font-weight: 500;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

@media (prefers-color-scheme: dark) {
  h1,
  h3,
  h4,
  h5,
  h6 {
    color: #3eb7f0;
  }

  h2 {
    color: #3eb7f0;
  }
}

p,
ul,
ol,
table,
pre,
dl {
  margin: 0 0 20px;
}

small {
  font-size: 11px;
}

strong {
  color: #222;
  font-weight: 500;
}

@media (prefers-color-scheme: dark) {
  strong {
    color: #eeeff0;
  }
}

/* Links */

a {
  color: #39c;
  text-decoration: none;
}

a:hover {
  color: #069;
}

@media (prefers-color-scheme: dark) {
  a {
    color: #3eb7f0;
  }
}

a small {
  display: block;

  margin-top: -0.3em;

  color: #777;
  font-size: 11px;
}

a:hover small {
  color: #777;
}

/* Layout */

.wrapper {
  width: 960px;
  margin: 0 auto;
}

header {
  position: fixed;
  float: left;

  width: 232px;
  padding-top: 2em;

  text-align: center;

  -webkit-font-smoothing: subpixel-antialiased;
}

section {
  float: right;

  width: 650px;
  padding-top: 2em;
  padding-bottom: 0;
}

footer {
  position: fixed;
  bottom: 30px;
  float: left;

  width: 232px;

  text-align: center;

  -webkit-font-smoothing: subpixel-antialiased;
}

/* Header navigation */

header ul {
  width: 270px;
  height: 40px;
  padding: 0;

  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 5px;

  list-style: none;
}

header li {
  float: left;

  width: 89px;
  height: 40px;

  border-right: 1px solid #e0e0e0;
}

header li:first-child a {
  border-radius: 5px 0 0 5px;
}

header li:last-child a {
  border-radius: 0 5px 5px 0;
}

header ul li + li + li {
  width: 89px;
  border-right: none;
}

header ul a {
  display: block;

  height: 34px;
  padding-top: 6px;

  color: #999;

  font-size: 11px;
  line-height: 1;
  text-align: center;
}

header ul a:hover {
  color: #999;
}

header ul a:active {
  background-color: #f0f0f0;
}

header ul a strong {
  display: block;

  color: #222;

  font-size: 14px;
}

/* Blockquotes */

blockquote {
  margin: 0;
  padding: 0 0 0 20px;

  border-left: 1px solid #e5e5e5;

  font-style: italic;
}

/* Code */

code,
pre {
  color: #333;
  font-family:
    Monaco,
    Bitstream Vera Sans Mono,
    Lucida Console,
    Terminal,
    Consolas,
    Liberation Mono,
    DejaVu Sans Mono,
    Courier New,
    monospace;
}

pre {
  max-width: 500px;
  padding: 8px 15px;

  overflow-x: auto;

  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
}

/* Tables */

table {
  width: 100%;

  border-collapse: collapse;
}

th,
td {
  padding: 5px 10px;

  border-bottom: 1px solid #e5e5e5;

  text-align: left;
}

th {
  color: #444;
}

dt {
  color: #444;
  font-weight: 500;
}

@media (prefers-color-scheme: dark) {
  th,
  dt {
    color: #3eb7f0;
  }
}

/* Misc */

hr {
  height: 1px;
  margin: 0 0 20px;

  background: #e5e5e5;
  border: 0;
}

.biblink {
  display: inline;

  margin-right: 0;

  text-decoration: none;
}

.fakelink {
  cursor: pointer;
  text-decoration: none;
}

.bibref {
  display: none;

  margin-top: 10px;
  margin-left: 0;

  font-family: monospace;
  font-size: 70%;
}

/* Responsive: <= 960px */

@media print, screen and (max-width: 960px) {
  body {
    padding: 15px;
    word-wrap: break-word;
  }

  .pub-row {
    display: flex;
    align-items: center;
  }

  div.wrapper {
    width: auto;
    margin: 0;
  }

  header,
  section,
  footer {
    position: static;
    float: none;

    width: auto;
  }

  header {
    padding: 0;
  }

  section {
    margin: 0 0 20px;
    padding: 20px 0;

    border: 1px solid #e5e5e5;
    border-width: 1px 0;
  }

  header a small {
    display: inline;
  }

  header ul {
    position: absolute;
    top: 52px;
    right: 50px;
  }

  .image.avatar img {
    width: 117px;
    padding: 20px;

    border-radius: 100%;
  }

  pre,
  code {
    word-wrap: normal;
  }

  #head1o2,
  #head2o2 {
    visibility: hidden;
  }
}

/* Responsive: <= 480px */

@media print, screen and (max-width: 480px) {
  body {
    padding: 15px;
  }

  .pub-row {
    display: block;
    align-items: center;
  }

  header ul {
    width: 99%;
  }

  header li,
  header ul li + li + li {
    width: 33%;
  }

  .image.avatar img {
    width: 95px;
    padding: 20px;

    border-radius: 100%;
  }

  #head1o2,
  #head2o2 {
    visibility: hidden;
  }
}

/* Print */

@media print {
  body {
    padding: 0.4in;

    color: #444;

    font-size: 12pt;
  }
}
