/* Reset Hextra chrome on homepage */
html { font-size: 62.5% !important; }

.hextra-nav-container,
.hextra-toc,
.hextra-sidebar-container,
.hextra-breadcrumb,
.hextra-footer,
aside { display: none !important; }


/* Base */
*, *::after, *::before { box-sizing: border-box; }

body {
  color: #212121;
  background-color: #fafafa !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.8em;
  font-weight: 400;
  line-height: 1.8em;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.container {
  margin: 1rem auto;
  max-width: 90rem;
  width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Navigation */
.navigation { height: 6rem; width: 100%; }

.navigation a,
.navigation span {
  display: inline;
  font-size: 1.7rem;
  font-family: inherit;
  font-weight: 600;
  color: #212121;
  text-decoration: none;
}

.navigation a:hover,
.navigation a:focus { color: #1565c0; }

.navigation .navigation-title {
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.navigation .navigation-list {
  float: right;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation .container::after { content: ""; display: table; clear: both; }

.navigation .navigation-item { float: left; margin: 0; position: relative; }
.navigation .navigation-item a,
.navigation .navigation-item span { margin-left: 1rem; margin-right: 1rem; }

.navigation #menu-toggle { display: none; }
.navigation .menu-button { display: none; }
.navigation i { color: #212121; cursor: pointer; }
.navigation i:hover,
.navigation i:focus { color: #1565c0; }

@media only screen and (max-width: 768px) {
  .navigation .navigation-list {
    position: relative;
    top: 2rem;
    right: 0;
    z-index: 5;
    float: none;
    visibility: hidden;
    opacity: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    width: 100%;
    background-color: #fafafa;
    border-top: solid 2px #e0e0e0;
    border-bottom: solid 2px #e0e0e0;
    transition: opacity 0.25s, max-height 0.15s linear;
  }

  .navigation .navigation-item { float: none !important; text-align: center; }
  .navigation .navigation-item a,
  .navigation .navigation-item span { line-height: 5rem; }

  .navigation .menu-separator { border-top: 2px solid #212121; margin: 0 8rem; }
  .navigation .menu-separator span { display: none; }

  .navigation .menu-button {
    position: relative;
    display: block;
    float: right;
    font-size: 2.4rem;
    font-weight: 400;
    cursor: pointer;
    line-height: 6rem;
    color: #212121;
  }

  .navigation .menu-button i:hover,
  .navigation .menu-button i:focus { color: #000; }

  .navigation #menu-toggle {
    display: none;
    position: relative;
    visibility: hidden;
  }

  .navigation #menu-toggle:checked + label > i { color: #e0e0e0; }
  .navigation #menu-toggle:checked + label + ul {
    visibility: visible;
    opacity: 1;
    max-height: 100rem;
  }

  .navigation #menu-toggle:focus-visible + label { outline-style: auto; }
}

/* Content */
.hc-content {
  flex: 1;
  display: flex;
  margin-top: 1.6rem;
  margin-bottom: 3.2rem;
}

@media only screen and (max-width: 768px) {
  .hc-content { margin-top: 1rem; margin-bottom: 1.6rem; }
}

.centered { display: flex; align-items: center; justify-content: center; }
.centered .about { display: flex; flex-direction: column; align-items: center; text-align: center; }

.avatar img { width: 20rem; height: auto; border-radius: 50%; }

@media only screen and (max-width: 768px) {
  .avatar img { width: 17rem; }
}

.centered .about h1 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 3.2rem;
  font-weight: 600;
  color: #212121;
  border: none;
  padding: 0;
  line-height: 1.2;
}

.centered .about h2 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 2.4rem;
  font-weight: 400;
  color: #212121;
  border: none;
  padding: 0;
  line-height: 1.4;
}

@media only screen and (max-width: 768px) {
  .centered .about h2 { font-size: 2rem; }
}

.centered .about ul {
  list-style: none;
  margin: 3rem 0 1rem;
  padding: 0;
  cursor: pointer;
}

.centered .about ul li { display: inline-block; position: relative; }

.centered .about ul li a {
  color: #212121;
  text-transform: uppercase;
  margin-left: 1rem;
  margin-right: 1rem;
  font-size: 1.6rem;
  text-decoration: none;
  transition: all 0.25s ease-in;
}

.centered .about ul li a:hover,
.centered .about ul li a:focus { color: #1565c0; }

@media only screen and (max-width: 768px) {
  .centered .about ul li a { font-size: 1.5rem; }
}

/* Footer */
.hc-footer {
  width: 100%;
  text-align: center;
  font-size: 1.6rem;
  line-height: 2rem;
  margin-bottom: 1rem;
  color: #212121;
}

.hc-footer a { color: #1565c0; text-decoration: none; }

@media only screen and (max-width: 768px) {
  .hc-footer { font-size: 1.5rem; }
}

/* Dark mode toggle */
.float-container {
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  position: fixed;
  font-size: 1.6em;
}

.float-container a {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  color: #000;
  background-color: #e0e0e0;
  border-radius: 0.2rem;
  opacity: 0.5;
  transition: all 0.25s ease-in;
  cursor: pointer;
  text-decoration: none;
}

.float-container a:hover,
.float-container a:focus { color: #1565c0; opacity: 1; }

.float-container a i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Dark mode */
body.colorscheme-dark { background-color: #212121 !important; color: #dadada; }
body.colorscheme-dark .navigation a,
body.colorscheme-dark .navigation span { color: #dadada; }
body.colorscheme-dark .navigation a:hover,
body.colorscheme-dark .navigation a:focus { color: #42a5f5; }
body.colorscheme-dark .navigation .navigation-list { background-color: #212121; border-color: #424242; }
body.colorscheme-dark .navigation i { color: #dadada; }
body.colorscheme-dark .navigation i:hover,
body.colorscheme-dark .navigation i:focus { color: #42a5f5; }
body.colorscheme-dark .centered .about h1,
body.colorscheme-dark .centered .about h2 { color: #dadada; }
body.colorscheme-dark .centered .about ul li a { color: #dadada; }
body.colorscheme-dark .centered .about ul li a:hover,
body.colorscheme-dark .centered .about ul li a:focus { color: #42a5f5; }
body.colorscheme-dark .hc-footer { color: #dadada; }
body.colorscheme-dark .hc-footer a { color: #42a5f5; }
body.colorscheme-dark .float-container a { color: #dadada; background-color: #424242; }
body.colorscheme-dark .float-container a:hover,
body.colorscheme-dark .float-container a:focus { color: #42a5f5; }

@media (prefers-color-scheme: dark) {
  body.colorscheme-auto { background-color: #212121 !important; color: #dadada; }
  body.colorscheme-auto .navigation a,
  body.colorscheme-auto .navigation span { color: #dadada; }
  body.colorscheme-auto .navigation a:hover { color: #42a5f5; }
  body.colorscheme-auto .navigation .navigation-list { background-color: #212121; border-color: #424242; }
  body.colorscheme-auto .centered .about h1,
  body.colorscheme-auto .centered .about h2 { color: #dadada; }
  body.colorscheme-auto .centered .about ul li a { color: #dadada; }
  body.colorscheme-auto .centered .about ul li a:hover { color: #42a5f5; }
  body.colorscheme-auto .hc-footer a { color: #42a5f5; }
  body.colorscheme-auto .float-container a { color: #dadada; background-color: #424242; }
  body.colorscheme-auto .float-container a:hover { color: #42a5f5; }
}

.preload-transitions * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  transition: none !important;
}
