@charset "UTF-8";

#gift_78win {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 99999;
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
}

#gift_78win img {
  max-width: 150px;
  cursor: pointer;
}

#gift_78win_popup {
  display: none;
  background-color: rgba(0, 0, 0, 0.6);
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#gift_78win_popup .gift_78win_main {
  width: 400px;
  height: auto;
  max-width: calc(100vw - 20px);
  max-height: calc(100vw - 20px);
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background-color: #fff;
  /* border-radius: 5px; */
  display: block;
  padding: 20px;
  aspect-ratio: 1/1;

  background-image: url(../img/bg_vq.webp);
  background-position: center;
  background-size: auto;
  background-repeat: no-repeat;
}

/* .wheel {
  aspect-ratio: 1/1 !important;
  margin: 0;
  line-height: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: conic-gradient(
        #9CAF88 0deg 30deg,   
        #CBD5C0 30deg 60deg,  
        #9CAF88 60deg 90deg,  
        #CBD5C0 90deg 120deg, 
        #9CAF88 120deg 150deg,
        #CBD5C0 150deg 180deg,
        #9CAF88 180deg 210deg,
        #CBD5C0 210deg 240deg,
        #9CAF88 240deg 270deg,
        #CBD5C0 270deg 300deg,
        #9CAF88 300deg 330deg,
        #CBD5C0 330deg 360deg 
    );
    border: 5px solid #E5E4E2;
    box-shadow: 
        inset 0 0 15px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(229, 228, 226, 0.7),
        0 0 30px rgba(77, 255, 184, 0.3);
  -webkit-transition: -webkit-transform 4s ease-out;
  transition: -webkit-transform 4s ease-out;
  transition: transform 4s ease-out;
  transition: transform 4s ease-out, -webkit-transform 4s ease-out;
  display: none;
} */

.wheel {
  aspect-ratio: 1/1 !important;
  margin: 0;
  line-height: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background-image: url('../img/vong-quay.webp');
  background-size: cover;
  /* Đảm bảo hình ảnh lấp đầy vòng quay */
  background-position: center;
  border: 5px solid #E5E4E2;
  /* Border màu bạch kim */
  box-shadow:
    inset 0 0 15px rgba(0, 0, 0, 0.5),
    /* Bóng bên trong */
    0 0 20px rgba(229, 228, 226, 0.7),
    /* Ánh sáng bạch kim */
    0 0 30px rgba(77, 255, 184, 0.3);
  /* Ánh sáng xanh mint neon */
  transition: transform 4s ease-out, box-shadow 0.3s ease;
  /* Mượt mà khi xoay */
  display: none;
}

.segment {
  position: absolute;
  width: 50%;
  height: 50%;
  -webkit-transform-origin: 100% 100%;
  transform-origin: 100% 100%;
  text-align: center;
  font-size: 16px;
  color: #fff;
  font-weight: bold;
  line-height: 400px;
  text-shadow: 1px 1px 2px #000;
  text-indent: -9999999px;
}

.pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid #FF4D4D;
  z-index: 10;
}

.close-button {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;  
  width: 30px;
  height: 30px;
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.close-button:hover{
  background-color: rgba(0, 0, 0, 1);
}

.spin-button {
  position: absolute;
  bottom: 0;
  left: 50%;
  -webkit-transform: translate(-50%, 120%);
  transform: translate(-50%, 120%);
  padding: 10px 20px;
  font-size: 18px;
  background-color: #2196f3;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 10;
  margin: 0;
  line-height: 1;
  width: 50%;
  display: none;
  /* Ẩn ban đầu */
  animation: pulseall 0.8s infinite ease-in-out;
}

@keyframes pulseall {
  0% {
    transform: translate(-50%, 120%) scale(1);
  }
  50% {
    transform: translate(-50%, 120%) scale(1.1);
  }
  100% {
    transform: translate(-50%, 120%) scale(1);
  }
}

.spin-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.notification {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: bold;
  display: none;
  z-index: 20;
  text-align: center;
}

.guidline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  display: none;
  text-align: center;
}

.guidline a {
  color: #ffffff;
  font-weight: bold;
  text-align: center;
}

.fireworks {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999999;
  background: transparent;
}

.firework {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  -webkit-animation: firework 1s ease-out forwards;
  animation: firework 1s ease-out forwards;
}

@-webkit-keyframes firework {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }

  100% {
    -webkit-transform: scale(3);
    transform: scale(3);
    opacity: 0;
  }
}

@keyframes firework {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }

  100% {
    -webkit-transform: scale(3);
    transform: scale(3);
    opacity: 0;
  }
}

.get-code-button {
  border: none;
  cursor: pointer;
  position: absolute;
  bottom: 20px;
  left: 50%;
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  width: 62.75%;
  background-image: url(../img/btn.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-indent: -999999px;
  aspect-ratio: 290/62;
  margin: 0;
  padding: 0;
  animation: pulse 0.8s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, 0) scale(1);
  }
  50% {
    transform: translate(-50%, 0) scale(1.1);
  }
  100% {
    transform: translate(-50%, 0) scale(1);
  }
}

.countdown {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  display: none;
  color: #000;
  background-color: #ff5722;
  color: #fff;
  line-height: 1;
  width: 60px;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  border: solid 5px #fff;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.75);
  -webkit-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.75);
  -moz-box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.75);
  pointer-events: none;
}

.countdown.show {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}