@font-face {
  font-family: 'PP Right Grotesk Mono';
  src: url('./assets/RightGrotesk/PPRightGroteskMono-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --fg: #FFFFFF;
  --bg: #090909;
  --text-color: var(--fg);
  --bg-color: var(--bg);
  --text-75: color-mix(in srgb, var(--fg) 75%, transparent);
  --text-65: color-mix(in srgb, var(--fg) 65%, transparent);
  --text-50: color-mix(in srgb, var(--fg) 50%, transparent);
  --text-40: color-mix(in srgb, var(--fg) 40%, transparent);
  --text-20: color-mix(in srgb, var(--fg) 20%, transparent);
  --border-color: color-mix(in srgb, var(--fg) 6%, var(--bg));
  --hover-bg: color-mix(in srgb, var(--fg) 3%, var(--bg));
  --accent: #4da3ff;
  --grid-columns: 12;
  --grid-gutter: 10px;
  --grid-margin: 40px;
}

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

html,
body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  margin: 0;
  font-family: 'PP Right Grotesk Mono', monospace;
  font-weight: 300;
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-size: 20px;
  line-height: 1.1;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  column-gap: var(--grid-gutter);
  padding: 0 var(--grid-margin);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.container {
  grid-column: 1 / -1;
  padding-top: 60px;
  padding-bottom: 40px;
}

.footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 60px;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.footer.visible {
  opacity: 1;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.separator {
  font-family: 'PP Right Grotesk Mono', monospace;
  font-size: 20px;
  font-weight: 300;
  color: var(--text-20);
}

.footer-link {
  font-family: 'PP Right Grotesk Mono', monospace;
  font-size: 20px;
  font-weight: 300;
  color: var(--text-20);
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .footer-link:hover {
    color: var(--text-50);
  }
}

@media (max-width: 1440px) {
  :root {
    --grid-margin: 32px;
  }
}

@media (max-width: 1024px) {
  :root {
    --grid-margin: 24px;
    --grid-gutter: 8px;
  }
}


@media (max-width: 768px) {
  :root {
    --grid-margin: 16px;
  }

  body {
    font-size: 16px;
  }

  .btn {
    font-size: 16px;
  }

  .table td:first-child {
    width: 50px !important;
  }

  .table td:last-child {
    width: 70px !important;
  }

  .table td:nth-child(2) {
    padding-right: 12px !important;
  }
}


.btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-20);
  padding: 0;
  font-family: 'PP Right Grotesk Mono', monospace;
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .btn:hover {
    color: var(--text-color);
  }
}

.btn.is-active {
  color: var(--text-color);
}

.muted {
  color: var(--text-50);
}

.tableWrap {
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
  text-align: left;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 300;
}

.table thead th {
  font-size: 14px;
  color: var(--text-20);
  border-top: 0;
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

@media (hover: hover) {
  .table tbody tr:hover {
    background-color: var(--hover-bg);
  }
}

.table tbody tr:last-child td {
  border-bottom: 1px solid var(--border-color);
}

.table td:first-child {
  color: var(--text-color);
  width: 80px;
}

.table td:nth-child(2) {
  padding-right: 20px;
}

.table td:last-child {
  color: var(--text-color);
  width: 120px;
  white-space: nowrap;
}

.bar-cell {
  padding: 10px 20px 10px 0;
}

.bar-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 20px;
  position: relative;
}

.price-bar {
  height: 2px;
  background: var(--text-color);
  border-radius: 1px;
  min-width: 2px;
  transition: opacity 0.2s ease;
  opacity: 1;
  animation: growBar 0.25s ease-out forwards;
  transform-origin: left center;
}

@keyframes growBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.table tbody tr:hover .price-bar.muted {
  opacity: 0.7;
}

.loading-state {
  opacity: 0;
  animation: fadeIn 0.2s ease-in forwards;
  text-align: center;
}


.data-ready {
  opacity: 0;
  animation: fadeInUp 0.2s ease-out forwards;
}


@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.right {
  text-align: right !important;
}

@media (max-width: 768px) {
  .table th,
  .table td {
    font-size: 18px;
  }
}
