:root {
  --bg-color: #f5f7fa;
  --text-color: #333;
  --primary-color: #6b5b95;
  --secondary-color: #fff;
  --border-color: #ddd;
  --hover-bg: #eef1f5;

  user-select: none;

  font-family: "JetBrains Mono", "Noto Emoji", monospace;
  font-optical-sizing: auto;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--bg-color);
}

.outer-container {
  color: var(--text-color);
  line-height: 1.6;
  padding: 20px;
  height: 100%;

  overflow: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

.container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

h1 {
  font-size: 2rem;
}

h1 div {
  display: inline-block;
  position: relative;
}

h1 .heading-textbg {
  position: absolute;
  z-index: 0;

  width: 100%;
  height: 100%;
  padding: 0px 4px;

  color: transparent;
  text-decoration: underline var(--primary-color) 12px solid;
  text-decoration-skip-ink: none;
  opacity: 0.25;
  transform: translateY(-8px);
}

h1 .heading-text {
  position: relative;
  padding: 0px 4px;
  z-index: 10;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

nav li {
  display: flex;
  align-items: center;
}

nav li.div {
  color: #888;
  padding: 0 8px;
  user-select: none;
}

nav a {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  padding: 8px 16px;
  text-decoration: none;
  transition: background .3s, color .3s, box-shadow .3s;
}

nav a:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  text-decoration: none;
}

.table-container {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  max-width: 1200px;
  border-collapse: collapse;
  background: var(--secondary-color);
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
}

thead {
  background: var(--primary-color);
  color: var(--secondary-color);
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

td.nav-col {
  padding: 0px;
}

tbody tr:nth-child(even) {
  background: var(--hover-bg);
}

td:first-child {
  width: 40px;
  text-align: center;
  font-size: 1.2em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

table a {
  display: block;
}

table a > * {
  padding: 12px 0px;
}

a:hover {
  text-decoration: underline;
}

table a:hover > * {
  text-decoration: underline;
}

table tr td div {
  overflow: hidden;
}

table tr td div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  height: 100%;
}

table tr td a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 12px 0px;
}

table tr td:nth-child(1) {
  text-align: center;
  color: var(--primary-color);
}

table tr td:nth-child(3), table tr td:nth-child(3) div {
  width: 180px;
}

table tr td:nth-child(4), table tr td:nth-child(4) div {
  width: 80px;
  text-align: right;
}

table tr td:nth-child(5), table tr td:nth-child(5) div {
  width: 240px;
}

#media {
  width: 100%;
  max-width: 1200px;
  display: block;
}

@media (max-width: 980px) {
  .hide-when-mobile {
    display: none;
  }
  table {
    min-width: 0;
  }
  h1 {
    font-size: 24px;
  }
}

@media (max-width: 500px) {
  .hide-when-mobile-xs {
    display: none;
  }
}

#niko {
  position: fixed;
  z-index: 0;
  bottom: 0px;
  right: 0px;
  opacity: 0.7;
  width: 100px;
  pointer-events: none;
}

.tippy-box {
  background-color: var(--text-color);
  color: var(--secondary-color);
  border: solid 1px var(--primary-color);
  border-radius: 0px;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
  padding: 0px;
}

.tippy-box .tippy-content {
  margin: 0px;
  font-size: 0px;
  padding: 0px;
}

.tippy-box .tippy-arrow {
  color: var(--text-color);
}

.tippy-box .tippy-content .tooltip-text {
  padding: 8px 16px;
  font-size: 12px;
}
