body .popup-overlay {
  /* all: initial; */
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  /* background-color: rgba(0, 0, 0, 0.7); */
  z-index: 9999;
  backdrop-filter: blur(2px);
  animation: fadeIn 0.4s ease;
}

.popup-overlay .popup-content {
  position: relative;
  width: 80vw;
  height: 80vh;
  max-width: 100%;
  max-height: 100vh;
  border-radius: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 2px solid #ff971d;
  box-shadow: 0 0 25px rgba(255, 151, 29, 0.4);
}

.popup-overlay .popup-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 25px;
}
.popup-overlay .popup-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 25px;
  background-color: #000;
}
.popup-overlay .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  font-size: 24px;
  background-color: rgba(255, 0, 0, 0.8);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
}
@media (max-width: 1200px) {
  .popup-overlay .popup-content {
    width: 85vw;
    max-height: 80%;
  }
}

.popup-overlay .close-btn:hover {
  background-color: rgba(255, 0, 0, 1);
}
.popup-title {
  color: #ff971d;
  text-align: center;
}
.popup-text {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 15px;
  text-align: justify;
}
.popup-text strong {
  color: #ff971d;
}

@supports (-webkit-touch-callout: none) {
  .popup-content {
    transform: translateZ(0); /* Forces Safari to paint content */
    -webkit-transform: translateZ(0);
    will-change: transform;
  }

  .popup-overlay {
    -webkit-overflow-scrolling: touch;
  }
}

.popup-reward-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* background-color: rgba(0, 0, 0, 0.6); */
  backdrop-filter: blur(2px);
  animation: fadeIn 0.4s ease-in-out;
}

.popup-reward-content {
  background: #fff;
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);   */
  border: 2px solid #ff971d;
  box-shadow: 0 0 25px rgba(255, 151, 29, 0.4);
}

.popup-reward-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin: 10px 0 20px;
}

.reward-content {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.reward-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  justify-content: center;
}

.reward-item {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.reward-item img,
.reward-item video {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 20px;
  object-fit: contain;
  display: block;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease-in, box-shadow 0.3s ease;
}

.reward-item img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  /* background-color: rgba(178, 178, 236, 0.8); */
  background-color: lightgray;
  color: black;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn.left {
  left: 0;
}

.nav-btn.right {
  right: 0;
}

.close-reward-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  width: 40px;
  height: 40px;
  font-size: 25px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-reward-btn:hover {
  background-color: #ff6666;
}

.chose-btn {
  margin-top: 20px;
  text-align: center;
  width: 100%;
}

.choose-btn {
  cursor: pointer;
  background-color: transparent;
  color: #000;
  border: 2px solid #ff971d;
  font-size: 1.3rem;
  padding: 10px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.choose-btn:hover {
  background-color: #ff971d;
  color: #fff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media screen and (max-width: 768px) {
  .popup-reward-content {
    padding: 15px;
    max-width: 400px;
  }

  .popup-reward-content h2 {
    font-size: 1.5rem;
  }

  .reward-item img,
  .reward-item video {
    max-height: 50vh;
  }

  .choose-btn {
    font-size: 1rem;
    padding: 8px 20px;
  }

  .nav-btn {
    font-size: 18px;
    width: 35px;
    height: 35px;
  }

  .close-reward-btn {
    width: 30px;
    height: 30px;
    font-size: 20px;
    top: 6px;
    right: 7px;
  }

  .popup-overlay .popup-content {
    width: 95vw;
    max-height: 80%;
    height: auto;
  }

  .popup-overlay .popup-image,
  .popup-overlay .popup-video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 15px;
  }
  .popup-overlay .close-btn {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
}
