:root {
  --bg0: #181818;
  --bg1: #282828;
  --bg2: #303032;
  --hl0: #555;
  --text: #f1f1f1;
  --link: #78a9ff;
  --link-visited: #be95ff;
  --sans-font:
    -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Nimbus Sans L",
    Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica, "Helvetica Neue",
    sans-serif;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:visited {
  color: var(--link-visited);
}
@font-face {
  font-family: "JetbrainsMono";
  src: url("Fonts/JetBrainsMonoNerdFont-Regular.ttf");
}
code {
  font-size: 1rem;
}
p > code {
  color: #a0a0a0;
  font-family: "JetbrainsMono";
}
header {
  z-index: 1;
  position: sticky;
  top: 0;
  background-color: var(--bg2);
  border-bottom: 2px solid var(--hl0);
  padding: 8px;
  margin: -8px -8px 8px -8px;
}
nav {
  margin-top: 1em;
  margin-bottom: -1em;
}
nav > a {
  border: 1px solid var(--hl0);
  border-radius: 0.5em;
  padding: 0.25em;
  color: var(--text);
  font-size: 1.25rem;
  text-decoration: none;
}
nav > a:hover {
  background-color: #404043;
  border: 1px solid #fff;
  text-decoration: none;
}
nav > a:visited {
  color: var(--text);
}
body {
  font-family: var(--sans-font);
  background-color: var(--bg0);
  color: var(--text);
  text-align: center;
}
h1 {
  text-align: center;
  font-size: 3rem;
}
h2 {
  text-align: center;
  font-size: 2.25rem;
}
h3 {
  text-align: center;
  font-size: 1.5rem;
}
strong {
  color: #fff;
}
#desc,
#aboutme {
  width: 50%;
  min-width: 800px;
  display: inline-block;
  font-size: 1.25rem;
  text-align: left;
}
.grid {
  display: inline-grid;
  width: calc(round(60%, calc(var(--gridSize) + 1em)) - 1em);
  grid-template-columns: repeat(auto-fill, var(--gridSize)) !important;
  gap: 1em;
  text-align: center;
  --gridSize: calc(19em + 4px);
}
.grid > article {
  box-sizing: border-box;
  width: var(--gridSize);
  height: var(--gridSize);
  border: 2px solid var(--hl0);
  border-radius: 1em;
}
.grid > article:hover {
  background-color: var(--bg1);
  border: 2px solid #fff;
}
.grid > article > a {
  text-decoration: none;
  color: inherit;
  height: 100%;
  top: 0;
  display: flex;
  align-items: center;
}
.grid > article > a > figure {
}
.grid > article > a > figure > img {
  width: 100%;
  border-radius: 0.5em;
  margin-bottom: 1em;
}
span {
  background-color: transparent;
}
.tab {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  box-shadow: inset 0px -2px var(--hl0);
  text-align: center;
}
.stretch {
  margin-left: -8px;
  margin-right: -8px;
  margin-bottom: -8px;
}
.stretch > h2 {
  margin-left: 8px;
}
.tabcontent {
  display: none;
  border-top: none;
  width: 100%;
  overflow: auto;
  background-color: var(--bg1);
  padding-top: 1em;
  text-align: center;
}
pre {
  display: inline-block;
  border: 2px solid #253041;
  border-radius: 0.5vw;
  white-space: pre;
  min-width: 800px;
}
pre > code {
  max-width: 80vw;
  font-family: "JetbrainsMono";
  text-align: left;
  border-radius: inherit;
  min-width: 768px;
}
.cpp {
  width: 800px;
}
button.tablinks {
  background-color: #181818;
  color: inherit;
  position: relative;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  overflow: visible;
  width: 15vw;
  height: 3em;
  border: 2px solid var(--hl0);
  border-radius: 0.8em 0.8em 0% 0%;
  margin: 0 0.05em;
}
button.active {
  border-bottom: 2px solid transparent;
  background-color: var(--bg1);
}
button.tablinks.active:before {
  content: "";
  position: absolute;
  left: 100%;
  bottom: -2px;
  height: 0.8em;
  width: 0.8em;
  border: 2px solid var(--hl0);
  border-right: 2px solid transparent;
  border-top: 2px solid transparent;
  border-bottom-left-radius: 50%;
  box-shadow: 0 0.4em 0 0 var(--bg1);
}
button.tablinks.active:after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -2px;
  height: 0.8em;
  width: 0.8em;
  border: 2px solid var(--hl0);
  border-left: 2px solid transparent;
  border-top: 2px solid transparent;
  border-bottom-right-radius: 50%;
  box-shadow: 0 0.4em 0 0 var(--bg1);
}
.tabcontent > div > .tablinks {
  border-radius: 0.8em;
  border: 2px solid var(--hl0);
}
.tabcontent > div > .tablinks.active {
  background-color: var(--bg2);
}
.tabcontent > div > .tablinks.active:before,
.tabcontent > div > .tablinks.active:after {
  content: none;
}
