html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}
body {
  background-color: rgb(30, 31, 34);
}
.copy-only-filter {
  color: white;
  font-size: 0.7rem;
}
header {
  background-color: gray;
}
.chart-container {
  width: 98%;
  height: 50%;
  float: left;
  margin-left: 5px;
}
.chart-container,
.changes {
  position: relative;
}

header {
  text-align: center;
}
input[type="button"] {
  width: 30%;
  height: 10%;
  margin: auto;
  background-color: gray;
  font-weight: 1000;
  font-size: 1.2rem;
  border-radius: 20%;
}
nav {
  text-align: center;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 1s linear infinite;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.spinner.hidden {
  display: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.overlay.fixed {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  z-index: 9999;
}
.overlay.local {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  z-index: 999;
}
.overlay.hidden {
  display: none;
}
.changes {
  display: grid;
  grid-template-columns: repeat(auto-fill, 120px);
  grid-auto-rows: 120px;
  grid-auto-flow: dense;
  justify-content: start;
  align-content: start;
  gap: 0;
  width: 100%;
  margin: 0 auto;
}

.change {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto auto;
  gap: 3px;
  padding: 10px;
  background: rgb(5, 122, 21);
  color: white;
  box-sizing: border-box;
  border: 1px solid black;
  min-width: 0;
}

.change img {
  position: absolute;
  top: 10px;
  right: 10px;
  width: clamp(72px, 26%, 180px);
  height: auto;
  max-height: 180px;
  object-fit: contain;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.change .misc1 {
  grid-row: 5;
}

.change .misc2 {
  grid-row: 6;
}

.change .misc3 {
  grid-row: 7;
}

.change .name {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  text-align: left;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
}

.misc1,
.misc2,
.misc3,
.change .valuechange,
.change .valuechange-secondary {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  text-align: left;
}

.change.small {
  grid-template-rows: 1fr auto;
  place-items: center;
  text-align: center;
}

.change.small img {
  position: static;
  width: clamp(72px, 42%, 160px);
  height: auto;
  margin: 0 auto;
  top: unset;
  right: unset;
  opacity: 0.9;
}

.change.small .name,
.change.small .misc1,
.change.small .misc2,
.change.small .misc3,
.change.small .valuechange-secondary {
  display: none;
}

.change.small .valuechange {
  font-size: 1.2rem;
}

.change.medium {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto auto;
}

.change.medium .name {
  display: none;
}

.change.medium .valuechange {
  font-size: 1.6rem;
}

.change.medium .valuechange-secondary {
  display: block;
}

.change.medium img {
  left: 50%;
  top: 50%;
  right: auto;
  transform: translate(-50%, -50%);
}

.change.large img {
  width: clamp(220px, 42%, 360px);
  max-height: 360px;
  top: 10%;
  right: 7%;
}

.change .valuechange {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.05;
}

.change.large .valuechange {
  font-size: 2.1rem;
}

.change .valuechange-secondary {
  display: block;
  font-size: 1rem;
  margin: 0;
  line-height: 1.1;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.change.medium .valuechange-secondary {
  font-size: 1.1rem;
}

.change.large .valuechange-secondary {
  font-size: 1.2rem;
}

.change.small .valuechange-secondary {
  display: none;
}

.change .valuechange + .valuechange-secondary {
  margin-top: 4px;
}

.tiny-info {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  z-index: 1;
  font-size: 0.8rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tiny-info.tiny-only-rap {
  justify-content: flex-end;
}

.tiny-info.tiny-only-value {
  justify-content: flex-start;
}

.misc1,
.misc2,
.misc3 {
  font-size: 0.95rem;
}

.misc2,
.misc3 {
  color: rgba(255, 255, 255, 0.9);
}

footer {
  background-color: rgb(167, 165, 165);
  color: black;
  text-align: center;
}
