.card__box-overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
}
.card__box-container {
  position: absolute;
  top: 50vh;
  left: 50vw;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 1000;
}
.card__box-wrapper {
  background: url(../../Content/friendfeature/images/box-gift.png) no-repeat;
  background-size: 95% 100%;
  width: 600px;
  height: 600px;
  position: relative;
  background-position: 100% 100%;
}
.card__box-message {
  padding: 10px 30px;
  color: #fff;
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#5e71e7),
    to(#2b2ba5)
  );
  background: linear-gradient(90deg, #5e71e7, #2b2ba5);
  -webkit-box-shadow: 0 0 10px #fff;
  box-shadow: 0 0 10px #fff;
  font-weight: 700;
  font-size: 23px;
  text-align: center;
  display: block;
  position: absolute;
  bottom: -35px;
  left: 50%;
  -webkit-transform: translate(-50%);
  -ms-transform: translate(-50%);
  transform: translate(-50%);
  border-radius: 20px;
}
.card__box-close {
  background: url(../../Content/friendfeature/images/icn-close.svg) no-repeat;
  background-size: 100% 100%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: absolute;
  top: 25%;
  right: 32%;
  cursor: pointer;
  z-index: 9;
}
.card__box-frame {
  width: 200px;
  height: 286px;
  position: absolute;
  top: 27%;
  left: 33%;
  border-radius: 5px;
  -webkit-box-shadow: 0 0 50px #fff;
  box-shadow: 0 0 50px #fff;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.card__box-frame-wrapper {
  position: relative;
  height: 100%;
}
.card__box-frame-wrapper:after {
  content: "";
  background-size: 100% 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}
.card__box-frame-wrapper--a1:after {
  background-image: url(../../Content/friendfeature/images/a1-frame2.png);
}
.card__box-frame-wrapper--a2:after {
  background-image: url(../../Content/friendfeature/images/a2-frame2.png);
}
.card__box-frame-wrapper--a3:after {
  background-image: url(../../Content/friendfeature/images/a3-frame2.png);
}
.card__box-frame-wrapper--a4:after {
  background-image: url(../../Content/friendfeature/images/a4-frame2.png);
}
.card__box-frame-wrapper--a5:after {
  background-image: url(../../Content/friendfeature/images/a5-frame2.png);
}
.card__box-frame-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.card__box-bubbles {
  background: url(../../Content/friendfeature/images/bubblesec41.png?v=1735306142966)
    no-repeat;
  background-size: 100% 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background-position: 50%;
  z-index: -1;
}
@media (max-width: 768px) {
  .card__box-container {
    top: 30vh;
  }
  .card__box-wrapper {
    width: 305px;
    height: 305px;
  }
  .card__box-bubbles {
    width: 400px;
    height: 400px;
  }
  .card__box-frame {
    width: 100px;
    height: 143px;
    -webkit-box-shadow: 0 0 30px #fff;
    box-shadow: 0 0 30px #fff;
  }
  .card__box-message {
    font-size: 14px;
    bottom: -40px;
    padding: 10px;
    min-width: 170px;
  }
  .card__box-close {
    width: 20px;
    height: 20px;
  }
}
.card__box-quantity {
  position: absolute;
  top: 13px;
  left: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  z-index: 9;
  text-align: center;
  line-height: 30px;
}
.card__box-quantity--a1 {
  background: #000;
}
.card__box-quantity--a2 {
  background: #9f161b;
}
.card__box-quantity--a3 {
  background: #fca712;
}
.card__box-quantity--a4 {
  background: #056635;
}
.card__box-quantity--a5 {
  background: #2c58ab;
}
.falling__confetti {
  left: 0;
  position: fixed;
  right: 0;
  top: -160px;
  z-index: 999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
  justify-content: space-around;
}
.falling__confetti .ball {
  -webkit-animation-iteration-count: infinite !important;
  animation-iteration-count: infinite !important;
  border-radius: 50%;
  cursor: default;
  display: inline-block;
  height: 10px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width: 10px;
}
@-webkit-keyframes falling-left {
  0% {
    -webkit-transform: translateZ(0);
    opacity: 1;
  }
  10% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  70% {
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  90% {
    opacity: 0;
  }
  to {
    -webkit-transform: translate3d(0, 120vh, 0);
    opacity: 1;
  }
}
@keyframes falling-left {
  0% {
    -webkit-transform: translateZ(0);
    opacity: 1;
  }
  10% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  70% {
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  90% {
    opacity: 0;
  }
  to {
    -webkit-transform: translate3d(0, 120vh, 0);
    opacity: 1;
  }
}
.falling__confetti .ball:nth-child(2n) {
  -webkit-animation: falling-left linear;
  animation: falling-left linear;
}
@-webkit-keyframes falling-right {
  0% {
    -webkit-transform: translateZ(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  20% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  40% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  80% {
    opacity: 0;
  }
  90% {
    opacity: 1;
  }
  to {
    -webkit-transform: translate3d(0, 120vh, 0);
    opacity: 0;
  }
}
@keyframes falling-right {
  0% {
    -webkit-transform: translateZ(0);
    opacity: 1;
  }
  10% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  70% {
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  90% {
    opacity: 0;
  }
  to {
    -webkit-transform: translate3d(0, 120vh, 0);
    opacity: 0;
  }
}
.falling__confetti .ball:nth-of-type(odd) {
  -webkit-animation: falling-right linear;
  animation: falling-right linear;
}
