:root.theme {
  --bg: #090c15;
  --footer-bg: #0f1122;
  --content-bg: #222133;
  --fg: #f9f5f5;

  --blue-light: #6eacdf;
  --blue-dark: #626bfe;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
  text-decoration: none;
  padding: 0;
  margin: 0;
}

body {
  display: grid;
  height: 100%;
  background-color: var(--bg);
  color: var(--fg);
  justify-content: center;
}

#bg-lhs {
  position: absolute;
  background-image: url('/static/image/bg_lhs.svg');
  background-position: top right;
  background-repeat: repeat-y;
  top: 0;
  bottom: 0;
  left: 0;
  right: calc(50% + 500px);
  z-index: -1;
  overflow: hidden;
}

#bg-rhs {
  position: absolute;
  background-image: url('/static/image/bg_rhs.svg');
  background-position: top left;
  background-repeat: repeat-y;
  top: 0;
  bottom: 0;
  left: calc(50% + 500px);
  right: 0;
  z-index: -1;
  overflow: hidden;
}

header {
  background-color: var(--content-bg);
  width: 100vw;
  height: 58px;
  display: flex;
  position: sticky;
  top: 0;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--fg);
}


#navbar {
  width: 100vw;
  display: flex;
  align-items: end;
  justify-content: center;
}

a {
  color: var(--blue-light);
  text-decoration: underline;
}

a:visited {
  color: var(--blue-light);
}

.nav-spacer {
  display: inline-block;
  flex-shrink: 0;
  width: 1em;
}

#navbar ul {
  width: 100vw;
  max-width: 1000px;
  display: flex;
  list-style: none;
  justify-content: space-between;
}

#navbar li {
  display: inline-block;
}

#navbar  a {
  text-decoration: None;
  padding: 2em;
  color: var(--fg);
}

#navbar a.active {
  font-weight: bold;
}

#main-content {
  min-height: calc(100vh - 58px);
  min-height: -o-calc(100vh - 58px); /* opera */
  min-height: -webkit-calc(100vh - 58px); /* google, safari */
  min-height: -moz-calc(100vh - 58px); /* firefox */
  max-width: 1000px;
  width: 100vw;
  background-color: var(--content-bg);
  justify-self: center;
  justify-content: left;
  padding: 1em;
}

.footer {
  display: flex;
  width: 100vw;
  max-width: 1000px;
  padding: 1em;
  justify-self: center;
  justify-content: space-between;
  color: var(--content-bg);
  background-color: var(--footer-bg);
}