/* app/assets/stylesheets/tracker.css */

body {
  margin: 0;
}

.tracker {
  min-height: 100vh;
  padding: 32px;
  box-sizing: border-box;
  background: #222;
}

.tracker--viewer {
  background: #757d00;
}

.tracker--progression {
  background: #757d00;
}

.tracker-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  justify-content: flex-start;
}

.tracker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tracker-item__visual {
  position: relative;
  width: 32px;
  height: 32px;
}

.tracker-item__image {
  width: 32px;
  height: 32px;
  max-width: none;
  display: block;
  image-rendering: pixelated;
}

.tracker-item__value {
  position: absolute;
  bottom: 0px;
  right: -4px;
  font-size: 20px;
  line-height: 1;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px black;
}

.tracker-item__controls {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.tracker-item__progression-form {
  margin-top: 8px;
}

.tracker-item__checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
}

.tracker-item__image--incomplete {
  filter: grayscale(1) brightness(0.65);
}

.tracker-item__image--complete {
  filter: none;
}

.tracker-button {
  width: 48px;
  height: 32px;
  font-size: 24px;
}

.reset-button {
  width: 100px;
  height: 32px;
  font-size: 16px;
}

.tracker-actions {
  width: fit-content;
  max-width: 100%;
  margin: 16px auto 0;
}

.tracker-grid--progression {
  margin-top: 20px;
  gap: 1px;
}

.tracker--viewer .tracker-item__controls,
.tracker--viewer .tracker-item__progression-form,
.tracker--progression .tracker-item__controls,
.tracker--progression .tracker-item__progression-form {
  display: none;
}
