* {
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: #000;
  font-family: 'Fira Sans', sans-serif;
  font-size: 18px;
  line-height: 1.4;
  width: 100%;
  height: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#header {
  background-color: #000;
  color: #fff;
  width: 100%;
  height: 100%;
}

#header a {
  color: #fff;
  text-decoration: none;
}

#logo {
  display: inline-block;
  position: fixed;
  width: 60px;
  height: 60px;
  left: 0;
  top: 0;
}

#photo {
  top: 0;
  left: 0;
  height: 40px;
  width: 40px;
  padding: 10px;
  border-radius: 50%;
  position: fixed;
}

#name {
  font-family: 'Waterfall';
  font-weight: normal;
  position: fixed;
  left: 66px;
  top: 0;
  font-size: 41px;
  width: auto;
  white-space: nowrap;
}

#topbar {
  background-color: #000;
  position: fixed;
  width: 100%;
  height: 61px;
  top: -1px;
  left: 0;
  text-align: right;
  z-index: 1;
}

#overlay {
  display: none;
}

#sidebar {
  display: none;
}

#menu {
  display: none;
}

ul.navigation {
  list-style-type: none;
  overflow: hidden;
}

ul.navigation li {
  display: inline-block;
  line-height: 60px;
  height: 60px;
}

ul.navigation li a {
  display: block;
  color: #fff;
  text-decoration: none;
  height: 100%;
  padding: 0 6px;
}

ul.navigation li:first-child a {
  padding-left: 12px;
}

ul.navigation li:last-child a {
  padding-right: 14px;
}

#container {
  background-color: rgb(248, 248, 248);
  width: 100%;
}

#content {
  background-color: #fff;
  width: 100%;
  max-width: 1000px;
  min-height: calc(100% - 60px - 32px);
  margin: 0 auto;
  padding-bottom: 32px;
}

#content a {
  color: black;
  text-decoration: underline;
}

#content a:hover {
  color: rgb(0, 0, 0, 0.8);
}

div.section {
  scroll-margin-top: 60px;
  padding: 0 40px;
  text-align: left;
}

div.section > p {
  padding-top: 1em;
}

div.section h2 {
  font-size: 24px;
  font-weight: 500;
  padding-top: 1.5em;
}

div.section h3 {
  font-size: 18px;
  font-weight: 500;
  padding-top: 1em;
  padding-bottom: 0;
}

.hover-effect {
  background-color: rgba(255, 255, 255, 0.2);
}

a[target='_blank'] {
  align-items: center;
  display: inline-block;
}

a[target='_blank']:after {
  font-size: 0.8em;
  content: ' \f08e';
  font-family: 'FontAwesome';
}

.button {
  display: inline-block;
  background-color: rgb(120, 120, 120);
  font-size: 12px;
  color: #fff !important;
  cursor: pointer;
  padding: 4px 6px;
  text-decoration: none !important;
}

.button.hover-effect {
  background-color: rgba(120, 120, 120, 0.8) !important;
  color: #fff !important;
}

.collapsible-content {
  display: none;
  overflow: hidden;
}

.abstract {
  background-color: rgb(239, 239, 239);
  padding: 10px 20px;
}

.bibtex {
  background-color: rgb(239, 239, 239);
  position: relative;
}

.bibtex pre {
  padding: 10px 20px;
  overflow: auto;
}

.bibtex .button.copy {
  background-color: rgb(200, 200, 200);
  position: absolute;
  right: 0;
  top: 0;
}

.bibtex .button.copy.hover-effect {
  background-color: rgb(200, 200, 200, 0.8);
}

.award {
  color: #c5b358;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  background-color: #000;
  color: #fff;
  font-family: 'Fira Sans', sans-serif;
  font-size: 12px;
  font-weight: normal;
  text-align: center;
  padding: 5px 0;
  position: absolute;
  z-index: 0;
  width: 120px;
  margin-left: -60px;
  bottom: 135%;
  left: 50%;
  visibility: hidden;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.tooltip .tooltiptext::after {
  content: " ";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

@media screen and (max-width: 660px), screen and (max-height: 330px) {
  #overlay {
    display: block;
    transition: 0.3s;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1;
  }

  #topbar ul.navigation {
    display: none;
  }

  #sidebar {
    color: #fff;
    width: auto;
    position: fixed;
    top: 0;
    right: 0;
    display: block;
    transition: 0.3s linear;
    visibility: hidden;
    background-color: rgb(120, 120, 120);
    height: 100%;
    padding: 60px 0 0 0;
    z-index: 2;
  }

  #sidebar ul.navigation {
    display: block;
  }

  #sidebar ul.navigation li {
    display: block;
  }

  #sidebar ul.navigation li a {
    display: block;
    padding: 0 20px;
    width: 100%;
  }

  #menu {
    display: block;
    cursor: pointer;
    position: fixed;
    height: 44px;
    top: 0;
    padding: 16px 14px 0 14px;
    right: 0;
    z-index: 3;
  }

  #menu .bar1, #menu .bar2, #menu .bar3 {
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #fff;
    transition: 0.3s;
  }

  #menu.change .bar1 {
    transform: translate(0, 8px) rotate(-45deg);
  }

  #menu.change .bar2 {
    opacity: 0;
  }

  #menu.change .bar3 {
    transform: translate(0, -8px) rotate(45deg);
  }
}

@media print {
  body {
    background-color: #fff;
  }

  #header {
    height: 60px;
    position: static !important;
  }

  #topbar {
    position: static !important;
  }

  #logo {
    position: static !important;
    visibility: visible !important;
    top: 0 !important;
    left: 0 !important;
    height: 60px !important;
    width: 100% !important;
    text-align: left;
  }

  #photo {
    position: static !important;
    visibility: visible !important;
    top: 0 !important;
    left: 0 !important;
    height: 40px !important;
    width: 40px !important;
  }

  #name {
    visibility: visible !important;
    position: absolute !important;
    left: 66px !important;
    top: 0 !important;
    font-size: 41px !important;
  }

  ul.navigation {
    display: none;
  }

  #menu {
    display: none;
  }

  #sidebar {
    display: none;
  }

  #overlay {
    display: none;
  }

  #container {
    background-color: #fff;
  }

  #content {
    width: 100%;
    max-width: 100%;
  }
}
