@import url("https://fonts.googleapis.com/css2?family=TikTok+Sans:opsz,wght@12..36,300..900&display=swap");

* {
  font-family: "TikTok Sans";
  box-sizing: border-box;
}

td,
tr,
table {
  border-collapse: collapse;
}

a {
  color: currentColor;
}

body {
  margin: 0;
  padding: 0;

  background-color: black;
  color: white;

  overflow: hidden;
}

.sidebar .branding {
  background: #111;
  width: 100%;

  padding: 1em 0;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-direction: column;

  border-bottom: 1px solid #444;
}

.sidebar .branding .line2 {
  font-size: 10pt;
  font-weight: 300;
  color: gray;
}

.sidebox {
  width: 100vw;
  height: 100vh;

  display: flex;
}

.sidebox .content {
  flex: 1;
  display: flex;
  justify-content: center;

  overflow-y: scroll;

  height: 100%;

  position: relative;

  overflow-x: hidden;
}

.sidebox .sidebar {
  background: #111;

  width: 100%;
  max-width: 300px;

  border-right: 1px solid #444;

  font-size: 16pt;

  display: flex;
  flex-direction: column;
}

.sidebar .items {
  width: 100%;
  display: flex;
  flex-direction: column;

  flex: 1;
  overflow-y: auto;
}

.sidebar .items .record {
  padding: 10px;

  display: flex;
  align-items: center;

  gap: 1em;

  cursor: pointer;

  font-size: 12pt;
}

.sidebar .items .record:hover,
.sidebar .items .record.selected {
  background: #222;
}

.sidebar .items .record .item-img {
  width: 2em;
  height: 2em;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.data-view {
  padding: 2em;

  max-width: 1000px;
  width: 100%;
  height: 100%;
}

.data-view.hidden {
  display: none;
}

.data-view .heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;

  /* border-top: 1px solid #444;
    border-bottom: 1px solid #444; */
}

.data-view .heading .h-left {
  display: flex;
  align-items: center;
  gap: 1em;

  flex: 1;
}

.data-view .heading .h-right {
  width: 40%;
  display: flex;
  gap: 1em;
}

.data-view .heading .s-icon {
  width: 4em;
  height: 4em;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.data-view .heading .symbol {
  font-size: 4em;
  font-weight: bold;
}

.data-view .context {
  font-weight: 100;
  font-size: 16pt;
  color: gray;

  margin-bottom: 0.2em;

  display: flex;
  justify-content: space-between;
}

.data-view .heading .change {
  font-size: 1.5em;
}

.data-view .heading .change.up {
  color: rgb(27, 194, 27);
}

.data-view .heading .change.down {
  color: rgb(234, 57, 57);
}

.tooltip {
  display: inline;
  position: relative;
  cursor: help;
}

.tooltip::after {
  position: absolute;

  content: attr(data-tooltip);
  color: white;
  background-color: #222;

  font-size: 12pt;

  top: 100%;
  left: 50%;
  transform: translateX(0%);

  width: max-content;
  max-width: 500px;

  padding: 0.5em;
  border-radius: 5px;

  opacity: 0;
  visibility: hidden;

  transition: 200ms ease-in-out;

  z-index: 100;
  border: 1px solid #444;
}

.tooltip:hover::after {
  transform: translateX(-25%);
  opacity: 1;
  visibility: visible;
}

.data-view .graph {
  width: 100%;
  margin-top: 1em;
}

.time-selector {
  display: flex;

  font-size: 14pt;
  flex: 1;
}

.time-selector .time:first-child {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;

  border-left: 1px solid #444;
}

.time-selector .time:last-child {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;

  border-right: 1px solid #444;
}

.time-selector .time {
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;

  flex: 1;

  padding: 0.5em;
  background-color: #111;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.time-selector .time:hover {
  background: #222;
}

.time-selector .time.selected {
  background: #333;
}

.data-view .sect {
  font-size: 2em;
  font-weight: bold;
}

.sellers-wrapper {
  width: 100%;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
  max-width: 100%;
}

.sellers {
  width: 100%;
}

.sellers .seller:nth-child(2n) {
  background-color: #111;
}

.sellers .seller > td {
  padding: 0.2em;
}

.loader {
  width: 100%;
  height: 5px;

  position: absolute;

  background-color: #444;
  overflow: hidden;

  display: none;
}

.loader.show {
  display: block;
}

.loader::before {
  content: "";
  width: 25%;
  height: 5px;

  position: absolute;
  transform: translateX(-100%);
  background-color: rgb(68, 109, 197);

  animation: loading 1000ms ease-in-out infinite forwards;
}

@keyframes loading {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(400%);
  }
}

.home {
  padding: 2em;

  max-width: 1000px;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
}

.home.hidden {
  display: none;
}

.donation {
  background-color: rgb(7, 62, 124);
  padding: 1em;
  font-size: 16pt;

  font-weight: 100;
  border-radius: 5px;
}

.graph-button {
  border: 1px solid #444;
  border-radius: 5px;

  width: 3em;

  text-align: center;

  padding: 0.5em;
  background-color: #111;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.graph-button.active {
  background-color: #444;
}

.graph-button:hover {
  background: #222;
}

.home-header {
  font-size: 4em;
  font-weight: bold;
  text-align: center;
}

.home-text {
  font-size: 2em;
  font-weight: 100;
}

.menu {
  display: none;
}

.sidebar-mobile-cover {
  display: none;

  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background-color: rgba(0, 0, 0, 0.9);
  z-index: 999;
}

.sidebar-mobile-cover.visible {
  display: block;
}

.data-view .stats {
  text-align: end;
  width: 100%;
  color: gray;
}

.sellers .bedrock {
  padding: 0.2em;

  font-size: 0.8em;
  background-color: rgb(31, 82, 171);

  border-radius: 5px;
}

#sellers-headers {
  background-color: #222;
  padding: 0.4em 0;

  border-bottom: 1px solid #444;

  position: sticky;
  top: 0;
  left: 0;

  z-index: 120;
}

#sellers-headers td {
  padding: 0.4em 0.2em;
}

.graph-options-menu {
  pointer-events: none;
  transform: translateX(100%);
  transition: 200ms ease transform;

  position: absolute;
  top: 0;
  right: 0;

  width: 100%;
  max-width: 400px;
  height: 100vh;

  background-color: #111;
  border-left: 1px solid #444;

  display: flex;
  flex-direction: column;

  z-index: 1000;
}

.graph-options-menu.visible {
  pointer-events: auto;
  transform: translateX(0);
}

.graph-options-menu-cover {
  pointer-events: none;
  opacity: 0;
  transition: 200ms ease opacity;

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;

  background-color: rgba(0, 0, 0, 0.9);
  z-index: 999;
}

.graph-options-menu-cover.visible {
  pointer-events: auto;
  opacity: 1;
}

.data-view:has(.graph-options-menu.visible) {
  overflow: hidden;
}

.graph-options-menu .graph-options-menu-header {
  display: flex;
  justify-content: end;

  border-bottom: 1px solid #444;
  padding: 1em;
}

.graph-options-menu .options-table {
  width: 100%;
  display: flex;
  flex-direction: column;

  gap: 0.5em;
  padding: 1em;
}

.graph-options-menu .options-table .option {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.graph-options-menu .options-table .option .name {
  flex: 1;

  display: flex;
  flex-direction: column;
}

.graph-options-menu .options-table .option .name .name-title {
  font-size: 1.5em;
}

.graph-options-menu .options-table .option .name .name-desc {
  font-size: 1em;
  color: gray;
}
