
html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-image: none;
  background-color: rgba(0, 0, 0, 0.4);
  background-attachment: fixed;
}
html::after, body::after{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background-image: url('/mysterybox/bg_2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed

}
.hexagon {
  z-index: -2;
  position: relative;
  width: 160px;
  height: 92.38px;
  background-color: var(--glow);
  margin: 46.19px 0;
  filter: blur(20px);
}
.hexagon:before,
.hexagon:after {
  content: "";
  position: absolute;
  width: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
}
.hexagon:before {
  bottom: 100%;
  border-bottom: 46.19px solid var(--glow);
}
.hexagon:after {
  top: 100%;
  width: 0;
  border-top: 46.19px solid var(--glow);
}
.back {
  /* background-image: url("https://res.cloudinary.com/dbrwtwlwl/image/upload/v1580369339/cube/mysteryBoxBackground_2x_b2espr.png"); */
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.top {
  background-image: url("https://res.cloudinary.com/dbrwtwlwl/image/upload/v1580369339/cube/mysteryBoxTopFlap_2x_f9cb8g.png");
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.left {
  background-image: url("https://res.cloudinary.com/dbrwtwlwl/image/upload/v1580369339/cube/mysteryBoxLeftFlap_2x_y8u4gz.png");
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.right {
  background-image: url("https://res.cloudinary.com/dbrwtwlwl/image/upload/v1580369339/cube/mysteryBoxRightFlap_2x_abexhh.png");
  background-size: cover;
  background-position: center;
  z-index: 1;
}
#cube {
  animation: hover 1.5s ease-in-out infinite alternate;
  transition: transform 300ms;
  animation-play-state: running;
}
@keyframes hover {
  from {
    transform: translateY(-0.5rem);
  }
  to {
    transform: translateY(0.5rem);
  }
}
.powerup {
  background-size: cover;
  overflow: hidden;
  background-size: 100% 100%;
  border-radius: 5%;
  z-index: 100;
  overflow: hidden;
  height: 48px;
  width: 48px;
  z-index: -5;
}

.blink{
  z-index: -2;
  position: relative;
  /* width: 160px;
  height: 92.38px; */
  background-color: rgb(255 195 26 / 78%);
  margin: 46.19px 0;
  filter: blur(20px);
  transition: all 750ms ease 0s;
  opacity: 0.5;
}

.hexagon::before{
  bottom: 100%;
  border-bottom: 46.19px solid rgb(255 195 26 / 78%);
}
.hexagon::after{
  top: 100%;
  width: 0;
  border-top: 46.19px solid rgb(255 195 26 / 78%);
} 