:root {
  --bkg: #223;
  --cnt: #334;
  --txt: #fff;
}

body, html {
  margin: 0px;
  padding: 0x;
  color: var(--txt);
  background: var(--bkg);
  font-size: 3vh;
  font-family: "main";
}

@font-face {
  font-family: "main";
  src: url("mainfont.ttf");
}

a {
  color: #5555ff;
  text-decoration: none;
}

a:hover {
  color: #ff55ff;
}

img {
  max-width: 100%;
}

#topbar {
  background: var(--bkg);
  position: fixed;
  display: flex;
  height: 2.25rem;
  left: 0px;
  right: 0px;
  top: 0px;
  align-items: center;
}

#sidebar {
  overflow: hidden;
  position: fixed;
  display: flex;
  padding-top: 3rem;
  width: 2rem;
  top: 0px;
  bottom: 0px;
  left: 0px;
  justify-content: left;
  flex-direction: column;
  background: var(--bkg);
  box-shadow: 0px 0px 0px #0000;
  transition-property: width, box-shadow;
  transition-duration: 100ms;
}

#sidebar.show {
  width: 8.5rem;
  box-shadow: 0px 1px 2px #aaaaaa;
}

#sidebar.show>button {
  text-align: left;
}

#sidebar.show>button>div.info {
  display: inherit;
}

#topbar>button {
  height: 100%;
}

#topbar>p, #topbar>h {
  margin-left: 0.3em;
  line-height: 2.25em;
}

h>img {
  line-height: 2.25em;
  vertical-align: middle;
  height: 2.25em;
  width: auto;
}

button {
  display: flex;
  justify-content: center;
  --hvr: #aaa5;
  font-family: inherit;
  color: inherit;
  align-items: center;
  outline: none;
  border: none;
  background: var(--bkg);
  font-weight: bold;
  font-size: inherit;
  min-width: 2em;
  padding: 0.25em;
}

button:hover {
  background-color: var(--hvr);
}

button>div.icon {
  display: flex;
  justify-content: center;
  flex-basis: 30%;
}

button>div.info {
  justify-content: left;
  flex-basis: 70%;
  display: none;
  margin-left: 0.25em;
  font-weight: normal;
}

#content {
  position: absolute;
  left: 2.5rem;
  top: 2.5rem;
  right: 1rem;
  height: calc(100vh - 4.5rem);
  background-color: var(--cnt);
  border-radius: 0.5rem;
  padding: 0.5rem;
  overflow-x: auto;
  overflow-y: auto;
}

.hflexrow {
  border-radius: 0.25em;
  display: flex;
  justify-content: left;
  background-color: #112a;
  width: calc(100vh - 5.5);
  padding: 0.5em;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.hflexrow>* {
  flex-shrink: 0;
}

.hflexrow>div.project:not(:first-child) {
  margin-left: 0.5em;
}

div.project {
  padding: 0.25em;
  border-radius: 0.25em;
  background-color: var(--cnt);
  height: 9.5em;
  width: 12em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: auto;
  overflow-y: auto;
}

div.project>*:not(:first-child) {
  margin-top: 0.1em;
}

div.linediv {
  display: block;
  background-color: #fff;
  min-height: 1px;
  height: 1px;
  flex-basis: 1px;
  margin: 0.1em;
}

p.sub {
  font-size: 0.75em;
  color: #aab;
}

p.subsum {
  font-size: 0.6em;
}

p, h1 {
  margin: 0px;
  padding: 0px;
}

h1 {
  font-size: 1.25em;
  margin: 0.25em;
  /*
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 0.1em;
  text-decoration-skip-ink: none;
  text-underline-offset: 0.1em;
  */
}