
.carded {
  width: 190px;
  height: 260px;
  background-color: none;
  background-image: url();
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.75), 0 35px 25px -15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  display: inline-block;
  margin: 20px 10px;
}

  


.carded.mewtwo {
  background-image: url(https://images.pokemontcg.io/xy12/52_hires.png);
  &:before,
  &:after {
    animation-delay: 0.33s;
  }
}
.carded.dragonite {
  background-image: url(https://images.pokemontcg.io/xy12/72_hires.png);
  &:before,
  &:after {
    animation-delay: 0.66s;
  }
}

.carded:before,
  .carded:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;border-radius: 12px;
    background-image: linear-gradient(
      115deg,
      transparent 0%,
      rgb(0, 0, 0) 30%,
      rgb(0, 0, 0) 70%,
      transparent 100%
    );
    background-position: 0% 0%;
    background-repeat: no-repeat;
    background-size: 300% 300%;
    mix-blend-mode: color-dodge;
    opacity: 0;
    z-index: 1;
    transform: translate3d(0,0,0);
    animation: holoGradient 15s ease infinite;
  }
  .carded:after {
    background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/13471/sparkles.gi");
    background-position: center;
    background-size: 180%;
    mix-blend-mode: color-dodge;
    opacity: 0;border-radius: 12px;
    z-index: 2;
    animation: holoSparkle 20s ease infinite;
  }

  .carded.active:before {
    opacity: 0.5;
    animation: none;border-radius: 12px;
    transition: none;
    background-image: linear-gradient(
      115deg,
      transparent 0%,
      transparent 25%,
      rgb(0, 0, 0) 45%,
      rgb(0, 0, 0) 55%,
      transparent  70%,
      transparent 100%
    );
  }

  @keyframes holoSparkle {
    0% {
      opacity: 0;
    }
    12% {
      opacity: 1;
    }
    70% {
      opacity: 0.5;
    }
    95% {
      opacity: 0.2;
    }
  }

  @keyframes holoGradient {
    3% {
      opacity: 0;
    }
    5% {
      background-position: 0% 0%;
    }
    7% {
      opacity: 0.5;
    }
    9% {
      background-position: 100% 100%;
    }
    11% {
      opacity: 0;
    }
    50% {
      opacity: 0;
      background-position: 100% 100%;
    }
    55% {
      opacity: 0.3;
    }
    70% {
      opacity: 0;
      background-position: 0% 0%;
    }
  }














.recarded {
  width: 190px;
  height: 265px;
  background-color: #211799;
  background-image: url();
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.75), 0 35px 25px -15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  display: inline-block;
  margin: 20px 10px;
}

  
.recarded.charizard {
  background-image: url( https://images.pokemontcg.io/xy12/12_hires.png );
}
.recarded.mewtwo {
  background-image: url(https://images.pokemontcg.io/xy12/52_hires.png);
  &:before,
  &:after {
    animation-delay: 0.33s;
  }
}
.recarded.dragonite {
  background-image: url(https://images.pokemontcg.io/xy12/72_hires.png);
  &:before,
  &:after {
    animation-delay: 0.66s;
  }
}

.recarded:before,
  .recarded:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;

  }
  .recarded:after {
    background-image: url("");
    background-position: center;
    background-size: 180%;

    opacity: 0;
    z-index: 2;

  }

  .recarded.active:before {
    opacity: 0.5;
    animation: none;
    transition: none;
  }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
.sparklecard {
  background-image: url();
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center; background:none;
  border-radius: 12px;
  box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.75), 0 35px 25px -15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  display: inline-block; border:0px solid white;
}

  
.sparklecard.charizard {
  background-image: url( https://images.pokemontcg.io/xy12/12_hires.png );
}
.sparklecard.mewtwo {
  background-image: url(https://images.pokemontcg.io/xy12/52_hires.png);
  &:before,
  &:after {
    animation-delay: 0.33s;
  }
}
.sparklecard.dragonite {
  background-image: url(https://images.pokemontcg.io/xy12/72_hires.png);
  &:before,
  &:after {
    animation-delay: 0.66s;
  }
}

.sparklecard:before,
  .sparklecard:after {
    content: "";
    position: absolute;border-radius:12px;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-image: linear-gradient(
      115deg,
      transparent 0%,
      rgb(0, 231, 255) 30%,
      rgb(255, 0, 231) 70%,
      transparent 100%
    );
    background-position: 0% 0%;
    background-repeat: no-repeat;
    background-size: 300% 300%;
    mix-blend-mode: color-dodge;
    opacity: 0;
    z-index: 1;
    transform: translate3d(0,0,0);
    animation: holoGradient 15s ease infinite;
  }
  .sparklecard:after {
    background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/13471/sparkles.gif");
    background-position: center;
    background-size: 180%;
    mix-blend-mode: color-dodge; border-radius:12px;
    opacity: 0;
    z-index: 2;
    animation: holoSparkle 20s ease infinite;
  }

  .sparklecard.active:before {
    opacity: 0.5;
    animation: none;
    transition: none;border-radius:12px;
    background-image: linear-gradient(
      115deg,
      transparent 0%,
      transparent 25%,
      rgb(0, 231, 255) 45%,
      rgb(255, 0, 231) 55%,
      transparent  70%,
      transparent 100%
    );
  }
