/* import m6x11plus.ttf */

@font-face {
  font-family: 'm6x11plus';
  src: url('m6x11plus.ttf') format('truetype');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  font-family: 'm6x11plus';
  text-shadow: #000 2px 2px 2px;
}

.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

main {
  text-align: center;
  color: white;
  padding: 1rem;
  margin: 1rem auto;
  font-size: 1.25rem;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cards {
  display: flex;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  justify-content: center;
  flex: 1;
  gap: 1rem;
  flex-wrap: wrap;
}
.joker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid white;
  border-radius: 1rem;
  width: 20rem;

  background-color: #374244;
}
.joker img {
  height: 190px;
  image-rendering: pixelated;
}
img.hasback {
  background-image: url("img/sticker_bg.png");
  background-size: 142px 190px;
}
@keyframes blind-animate {
  from {object-position: 0px 0px}
  to {object-position: -2720px 0px}
}
.blinds .joker img {
  width: 136px;
  height: 136px;
  object-fit: cover;
  animation: blind-animate 2.1s linear infinite;
  animation-timing-function: steps(20, start);
}

#download {
  background-color: #374244;
  color: white;
  padding: 1rem;
  border: 2px solid white;
  border-radius: 1rem;
  cursor: pointer;
  text-decoration: none;
}

.rarity {
  min-width: 142px;
  border-radius: 10px;
  padding-top: 2px;
  padding-bottom: 4px;
  padding-left: 10px;
  padding-right: 10px;
}
.soulholder {
  width: 142px;
  height: 190px;
  position: relative;
}
.soulholder img {
  position: absolute;
}
@keyframes soul-rotate {
  from {transform: rotateZ(-3deg)}
  to {transform: rotateZ(3deg)}
}
.soul-top {
  width: 142px;
  object-fit: cover;
  object-position: bottom;
  top: 0;
  left: 0;
  filter: drop-shadow(0px 0px 5px #4f6367);
  animation: soul-rotate 15s ease-in-out infinite alternate;
  animation-delay: -7.5s
}
.soul-bg {
  width: 142px;
  object-fit: cover;
  object-position: top;
  top: 0;
  left: 0;
}

.container {
  overflow: hidden;
}

.filterDiv {
 /* float: left;
  background-color: #2196F3;
  color: #ffffff;
  width: 100px;
  line-height: 100px;
  text-align: center;
  margin: 2px; */
  display: none; /* Hidden by default */
}

/* The "show" class is added to the filtered elements */
.show {
  display: block;
}

/* Style the buttons */
.btn {
  border: none;
  outline: none;
  padding: 12px 16px;
  background-color: #f1f1f1;
  cursor: pointer;
}

/* Add a light grey background on mouse-over */
.btn:hover {
  background-color: #ddd;
}

/* Add a dark background to the active button */
.btn.active {
  background-color: #666;
  color: white;
}