/* Fullscreen overlay */
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;
}

/* Container that holds the image */
.popup-overlay .popup-content {
  all: unset;
  position: relative;
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: 90%;
  overflow: hidden;
  border-radius: 25px 25px 25px 25px;
}

/* The actual image */
.popup-overlay .popup-image {
  all: unset;
  display: block;
  width: -webkit-fill-available;
  height: -webkit-fill-available;
  object-fit: cover;
}

/* Close button styling */
.popup-overlay .close-btn {
  all: unset;
  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: 10;
}
.popup-overlay .close-btn:hover {
  background-color: rgba(255, 0, 0, 1);
}
/* reward pop-up css below */

.popup-reward-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-reward-content {
    background: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 1200px;
    max-height: 850px;
    height: 90%;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}
.popup-reward-content h2{
    font-size: 50px;
}
.reward-item {
    height: 92%;
    width: 100%;
    flex: 0 0 100%;
    text-align: center;
    box-sizing: border-box;
}
.chose-btn{
    z-index: 10000;
    margin-top: -3%;
    height: auto;
    width: 100%;
}
.choose-btn{
    cursor: pointer;
    height: auto;
    width: 15%;
    font-size: 35px;
    border-radius: 250px 250px 250px 250px;
    padding: 10px;
}

.choose-btn:hover{
    background-color: rgb(42, 163, 219);
    color: white;
}

.reward-item img {
    max-width: 100%;
    height: 90%;
    margin: 15px 0;
    border-radius: 8px;
}

.close-reward-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 60px;
    height: 60px;
    font-size: 50px;
    cursor: pointer;
    background-color: red;
    color: white;
    border: 2px solid red;
    border-radius: 250px 250px 250px 250px;
}

.close-reward-btn:hover {
    color: #333;
}

.reward-content{
    display: flex;
    overflow: hidden;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(178, 178, 236, 0.8);
    color: rgb(0, 0, 0);
    border: none;
    height: 11%;
    width: 5.5%;
    border-radius: 250px 250px 250px 250px;
    cursor: pointer;
    font-size: 40px;
}
.nav-btn.left {
    left: 10px;
}

.nav-btn.right {
    right: 10px;
}

.reward-track {
    display: flex;
    transition: transform 0.5s ease; 
    width: max-content;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@media screen and (max-width: 768px) {
    .popup-reward-content {
        max-width: 400px !important;
        max-height: 320px !important;
        height: 90% !important;
        width: 90% !important;
    }
    .reward-item img {
        height: 73% !important;
    }
    .close-reward-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 25px !important;
        top: 6px;
        right: 7px;
    }
    .popup-reward-content h2{
        font-size: 30px;
    }

    .choose-btn{
        width: 30%;
        font-size: 18px;
    }
    .nav-btn {
        font-size: 18px;
    }
}








/* reward pop-up css below */
#photoRewardPopup.popup-reward-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#photoRewardPopup .popup-reward-content {
    background: #fff;
    border-radius: 10px;
    max-width: 90%;
    max-height: 95%;
    /* width: -webkit-fill-available;
    height: -webkit-fill-available; */
    width: auto;
    height: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#photoRewardPopup .popup-reward-content h2 {
    font-size: 300%;
    margin: 10px 0;
}
#photoRewardPopup .reward-content {
    display: flex;
    overflow: hidden;
    justify-content: center;
}
#photoRewardPopup .reward-track {
    display: flex;
    transition: transform 0.5s ease; 
    width: max-content;
}
#photoRewardPopup .reward-item {
    height: 100%;
    width: 100%;
    flex: 0 0 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}
#photoRewardPopup .reward-item img {
    width: -webkit-fill-available;
    /* height: -webkit-fill-available; */
    height: 90%;
    max-width: 100%;
    max-height: 95%;
    object-fit: scale-down;
    display: block;
    border: none;
    border-radius: 25px; /* Remove all border radius */
}
#photoRewardPopup .chose-btn {
    z-index: 10000;
    margin-top: -3%;
    height: auto;
    width: 100%;
    text-align: center;
}
#photoRewardPopup .choose-btn {
    cursor: pointer;
    height: auto;
    width: 15%;
    font-size: 35px;
    border-radius: 250px 250px 250px 250px;
    padding: 10px;
    transition: 0.3s ease;
}
#photoRewardPopup .choose-btn:hover {
    background-color: rgb(42, 163, 219);
    color: white;
}
#photoRewardPopup .close-reward-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 60px;
    height: 60px;
    font-size: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    background-color: red;
    color: white;
    border: 2px solid red;
    border-radius: 250px 250px 250px 250px;
}
#photoRewardPopup .close-reward-btn:hover {
    color: #333;
}
#photoRewardPopup .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(178, 178, 236, 0.8);
    color: rgb(0, 0, 0);
    border: none;
    height: 11%;
    width: 5.5%;
    border-radius: 250px 250px 250px 250px;
    cursor: pointer;
    font-size: 40px;
    
}
#photoRewardPopup .nav-btn.left {
    left: 10px;
}

#photoRewardPopup .nav-btn.right {
    right: 10px;
}


@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@media screen and (max-width: 768px) {
    #photoRewardPopup .popup-reward-content {
        max-width: 90% !important;
        max-height: 95% !important;
        height: auto !important;
        width: auto !important;
    }
    #photoRewardPopup .reward-item img {
    width: auto !important;
    /* width: -webkit-fill-available; */
    height: -webkit-fill-available;
    /* height: auto;
    width: auto; */
    object-fit: cover;
    }
    #photoRewardPopup .close-reward-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 25px !important;
        top: 6px;
        right: 7px;
    }
    #photoRewardPopup .reward-track {
        width: auto !important;
        height: auto !important;
    }
    #photoRewardPopup .popup-reward-content h2 {
        font-size: 30px;
    }

    #photoRewardPopup .choose-btn {
        margin-top: -20px;
        width: auto;
        font-size: 18px;
    }
    #photoRewardPopup .nav-btn {
        font-size: 18px;
    }
}


