body {
  background-color: hsl(232, 52%, 24%);
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 10px;
}

.site-nav a {
  color: hsl(232, 30%, 80%);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
}

.site-nav a:hover {
  color: white;
}

.site-nav a.active {
  color: white;
  border-bottom: 2px solid white;
}

h1 {
  color: white;
  text-align: center;
  font-size: 2em;
}

h2 {
  color: white;
  font-size: 1.5em;
}

section:has(.sprite-grid:empty) {
  display: none;
}

.sprite-grid {
  display: flex;
  flex-wrap: wrap;
}

.sprite-card {
  position: relative;
  width: 200px;
  text-align: center;
  margin: 10px;
}

.sprite-card img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  background-color: hsl(232, 52%, 76%);
  border-radius: 16px;
  cursor: pointer;
}

.sprite-card img:hover {
  background-color: white;
}

.sprite-card .name {
  color: white;
  font-weight: bold;
  margin-top: 6px;
}

.sprite-card .command {
  color: hsl(232, 30%, 80%);
  font-family: monospace;
}

.sprite-card .copied {
  position: absolute;
  top: 10%;
  left: 0;
  right: 0;
  font-size: 1.5em;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px hsl(232, 52%, 24%);
  visibility: hidden;
  opacity: 0;
}

.sprite-card .copied.visible {
  visibility: visible;
  transition: opacity 0.5s 1s linear, top 2s linear;
  opacity: 0;
  top: -20%;
}
