body {
  font-family: sans-serif;
  margin: 0;
  height: 100%;
  line-height: 1.5em;
}

* {
  box-sizing: border-box;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
}

.container a {
  font-weight: bold;
}

.header {
  width: 100%;
  height: 32px;
  position: sticky;
}
[id] {
  scroll-margin-top: calc(32px + 0.3em);
}

#headerLogo {
  position: absolute;
  max-height: 100%;
  max-width: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

#navbar {
  height: 40px;
  width: 100%;
}

#navbar ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style-type: none;
  justify-content: space-around;
  justify-content: space-evenly;
}

#navbar li {
  padding-top: 10px;
}

.flex {
  display: flex;
}

aside {
  font-size: smaller;
}

main {
  flex: 1;
  order: 2;
  max-width: 80ch;
}

aside,
main {
  padding: 1em;
}

*/ #leftSidebar {
  order: 1;
  margin-right: 0px;
}

#rightSidebar {
  order: 3;
  margin-left: 0px;
}

footer {
  background-color: #13092D;
  width: 100%;
  height: 40px;
  padding: 10px;
  text-align: center;
}

h1 {
  font-size: 25px;
}

.icon {
  display: inline;
  vertical-align: middle;
  width: 1.5em;
  height: 1.5em;
}

code,
x-codeblock {
  /* http://meyerweb.com/eric/thoughts/2010/02/12/fixed-monospace-sizing/ */
  font-family: monospace, monospace;
}

x-codeblock {
  padding: 0.5em;
  overflow-y: auto;
  display: inline-block;
  white-space: nowrap;
  line-height: normal;
  max-width: 120ch;
}

.footnote {
  vertical-align: super;
  font-size: 0.75em;
  line-height: 0;
}

.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

/* ICONS */
a x-icon {
  font-weight: bold;
  text-decoration: underline;
}

x-icon::before {
  display: inline-block;
  vertical-align: middle;
  width: 1.45em;
  height: 1.45em;
  content: "";
  background-size: cover;
}

x-icon[name="youtube"] {
  color: #ea3223;
}

x-icon[name="youtube"]::before {
  background: url("/icons/youtube.svg");
}

x-icon[name="github"] {
  color: #000000;
}

x-icon[name="github"]::before {
  background: url("/icons/github.svg");
}

x-icon[name="rss"] {
  color: #f26522;
}

x-icon[name="rss"]::before {
  background: url("/icons/rss.svg");
}

x-icon[name="arch"] {
  color: #1793d1;
}

x-icon[name="arch"]::before {
  background: url("/icons/arch.svg");
}

x-icon[name="godbolt"] {
  color: #67c52a;
}

x-icon[name="godbolt"]::before {
  background: url("/icons/godbolt.svg");
}

x-icon[name="twitter"] {
  color: #1d9bf0;
}

x-icon[name="twitter"]::before {
  background: url("/icons/twitter.svg");
}

/* MEDIA QUERY */
@media only screen and (max-width: 924px) {
  .mobileHorizontal {
    flex-wrap: wrap;
  }

  aside {
    width: 100%;
  }

  main {
    order: 1;
  }

  #leftSidebar {
    order: 2;
  }

  #rightSidebar {
    order: 3;
  }

  #navbar ul {
    flex-wrap: wrap;
  }

  x-codeblock {
    max-width: 100%;
  }
}
