.gift-open-canvas {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  display: none;
  background-color: #00000088;
}

.gift-open-canvas-reward {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  display: none;
  background-color: #00000088;
}

/* ปุ่มปิด X ของ gift Cham */
#giftOpenCanvasRewardCham #exit-gift {
  position: absolute;
  top: -3vw;
  right: -3vw;
  z-index: 9999;
  width: 4vw;
  /* ปรับขนาดตามใจได้ */
  height: auto;
  cursor: pointer;
}


.gift-open-canvas-reward-Exp {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  display: none;
  background-color: #00000088;
}

.gift-open-canvas-reward-cham {
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
  display: none;
  background-color: #00000088;
}

.textGift {
  text-align: center;
}

.textGift p {
  font-family: 'Super Playful', sans-serif;
  color: #fff;
  font-size: 15px;
  margin-top: -18px;
  padding-top: 0px;
}

#giftOpenCanvasRewardRocketRush {
  display: none;
}

#giftOpenCanvasReward7Day {
  display: none;
}

.gift-open-canvas-reward .gift-open-panel {
  position: absolute;
  width: 45vw;
  height: 36vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: overall-gift-slide-in 0.5s;
}

.gift-open-canvas-reward-Exp .gift-open-panel {
  position: absolute;
  width: 45vw;
  height: 36vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: overall-gift-slide-in 0.5s;
}

.gift-open-canvas-reward-cham .gift-open-panel {
  position: absolute;
  width: 45vw;
  height: 36vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: overall-gift-slide-in 0.5s;
}

.gift-open-panel {
  position: absolute;
  height: 60%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: overall-gift-slide-in 0.5s;
}

.gift-bg {
  height: 100%;
  opacity: 0;
}

.gift-full-component {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  bottom: 0;
  transform: translateX(-5%);
}

.gift-open-canvas-reward .gift-full-component {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  bottom: 0;
  transform: translateX(0%);
}

.gift-open-canvas-reward-Exp .gift-full-component {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  bottom: 0;
  transform: translateX(0%);
}

.gift-open-canvas-reward-cham .gift-full-component {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  bottom: 0;
  transform: translateX(-5%);
}

/* 
#gift-item {
  position: absolute;
  height: 50%;
  width: 40%;
  object-fit: contain;
  left: 50%;
  top: 50%;
  transform: translate(-62%, -50%);
  animation: item-gift-fade-in 1.5s;
} */

#gift-item {
  position: absolute;
  text-align: center;
  color: #fff;
  font-size: 60px;
  height: 50%;
  width: 40%;
  object-fit: contain;
  left: 50%;
  top: 50%;
  transform: translate(-62%, -50%);
  animation: item-gift-fade-in-reward 1.5s;
}

#gift-item-level {
  position: absolute;
  text-align: center;
  color: #fff;
  font-size: 50px;
  height: 60%;
  width: 50%;
  object-fit: contain;
  left: 50%;
  top: 45%;
  transform: translate(-60%, -50%);
  /* animation: item-gift-fade-in-reward 1.5s; */
}

#gift-item-level img {
  position: absolute;
  text-align: center;
  height: 100%;
  width: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: item-gift-fade-in-reward 1.5s;
}

#gift-aura {
  animation: aura-gift-fade-in-reward 1s;
}

#item-spin-aura-bg {
  position: absolute;
  left: 48%;
  top: 55%;
  width: auto;
  height: 90vh;
  transform: translate(-60%, -50%);
  animation: confetti-fade-in 2s, aura-rotate-constant 5s linear infinite;
}

.gift-open-canvas-reward #item-spin-aura-bg {
  position: absolute;
  left: 50%;
  top: 60%;
  width: auto;
  height: 70vh;
  transform: translate(-50%, -40%);
  animation: confetti-fade-in 2s, aura-rotate-constant 5s linear infinite;
}

#gift-confetti {
  animation: confetti-fade-in 2s;
  object-fit: cover;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -60%);
}

#gift-confetti-reward {
  animation: confetti-fade-in 2s;
  object-fit: fill;
  position: absolute;
  left: 50%;
  top: 15%;
  width: 100%;
  height: 50%;
  transform: translate(-50%, -60%);
}

#gift-plate {
  animation: confetti-fade-in 2s;
  background-image: url("../img/giftbox/plate.png");
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: 45%;
  top: 97%;
  bottom: 2%;
  width: 40%;
  height: 20%;
  transform: translateX(-50%);
  color: white;
  font-size: 1vh;
  text-align: center;
}

#gift-plate2 {
  animation: confetti-fade-in 2s;
  background-image: url("../img/giftbox/plate.png");
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: 50%;
  top: 77%;
  bottom: 2%;
  width: 40%;
  height: 20%;
  transform: translateX(-50%);
  color: white;
  font-size: 1vh;
  text-align: center;
}

#gift-plate-reward {
  animation: confetti-fade-in 2s;
  background-image: url("../img/reward/download1.png");
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  left: 50%;
  bottom: 0%;
  width: 20%;
  height: 16%;
  transform: translateX(-50%);
  color: white;
  font-size: 1vh;
  text-align: center;
}

.reward-text {
  animation: confetti-fade-in 2s;
  position: absolute;
  left: 38%;
  bottom: 14%;
  height: 5%;
  color: white;
  font-size: 1.5vw;
}

#gift-plate-content {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  font-size: 2vh;
}

#gift-plate-content span {
  font-size: 3.5vh;
}

#item-reward {
  position: absolute;
  top: 0%;
  height: 50%;
}

@keyframes confetti-fade-in {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes aura-rotate-constant {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  25% {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  50% {
    transform: translate(-50%, -50%) rotate(180deg);
  }

  75% {
    transform: translate(-50%, -50%) rotate(270deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes overall-gift-slide-in {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes aura-gift-fade-in {
  0% {
    opacity: 0;
    height: 0%;
    left: 46%;
    transform: translateX(-50%);
  }

  25% {
    opacity: 0;
    height: 0%;
    width: 10%;
    left: 46%;
    transform: translateX(-50%);
  }

  50% {
    opacity: 1;
    height: 50%;
    width: 10%;
    left: 46%;
    transform: translateX(-50%);
  }

  100% {
    opacity: 1;
    height: 100%;
    width: 100%;
    left: 50%;
    transform: translateX(-55%);
  }
}

@keyframes aura-gift-fade-in-reward {
  0% {
    opacity: 0;
    height: 0%;
    left: 50%;
    transform: translateX(-55%);
  }

  25% {
    opacity: 0;
    height: 0%;
    width: 10%;
    left: 50%;
    transform: translateX(-55%);
  }

  50% {
    opacity: 1;
    height: 50%;
    width: 10%;
    left: 50%;
    transform: translateX(-55%);
  }

  100% {
    opacity: 1;
    height: 100%;
    width: 100%;
    left: 55%;
    transform: translateX(-55%);
  }
}

@keyframes item-gift-fade-in {
  0% {
    opacity: 0;
    transform: translate(-62%, -25%);
  }

  50% {
    opacity: 0;
    transform: translate(-62%, -25%);
  }

  100% {
    opacity: 1;
    transform: translate(-62%, -50%);
  }
}

@keyframes item-gift-fade-in-reward {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%);
  }

  50% {
    opacity: 0;
    transform: translate(-50%, -50%);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}