/* General popup styling */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Popup background for normal popups */
.popup-bg {
    background-image: url('../images/popup/popup-normal-bg.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border-radius: 5px;
    width: calc(100% - 20px);
    max-width: 450px;
    height: fit-content;
    min-height: 80vh;
    justify-items: center;
    justify-content: center;
}

/* Popup background for normal popups */
.popup-grand-bg {
    background-image: url('../images/popup/popup-grand-bg.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border-radius: 5px;
    width: calc(100% - 20px);
    max-width: 450px;
    height: fit-content;
    justify-items: center;
    justify-content: center;
}

/* Popup content */
.popup-content {
    padding: 50px 40px;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    gap: 20px;
}


.top-section {
    display: grid;
    justify-items: center;
    align-items: center;
    gap: 10px;
}

.middle-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.popup-content h2 {
    margin: 0;
}

@media(max-width: 800px){
    .modal-content{
        min-width: unset;
    }
}

/* Submit button */
.popup-content button {
    background: transparent;
    border: none;
    padding: 15px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.popup-content button.submit {
    padding: 0;
}

.popup-content button.submit:hover {
    background: unset;
    height: 100%;
    width: fit-content;
    padding: 0;
    border-radius: 20px;
}

/* Close button */
.popup-content .close-popup {
    background: #DDDDDD;
    color: #B23939;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-size: 25px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}

@media (max-width: 700px) {
    .popup-content {
        padding: 50px 15px;
        gap: 20px;
    }

    .popup-bg {
        width: calc(100% - 40px);
        max-width: 90%;
        border-radius: 5px;

        background-image: url('../images/popup/popup-normal-bg.webp');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }

    .popup-grand-bg {
        width: calc(100% - 40px);
        max-width: 90%;
        border-radius: 5px;

        background-image: url('../images/popup/popup-grand-bg.webp');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;

        display: flex;
        flex-direction: column;
        height: fit-content;
        justify-items: center;
        justify-content: flex-start;
    }

    .popup-content button {
        padding: 0;
    }
}

@media(max-width: 500px) {
    .text-22-normal {
        font-size: 18px;
        font-weight: 400;
        line-height: normal;
    }

    .text-26-normal {
        font-size: 20px;
        font-weight: 700;
        line-height: normal;
    }
}

/* ==================================================================== */
/* Question Popup */
/* Question List in question popup */
.middle-section {
    width: 100%;
}

.question-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scrollable {
    max-height: 150px;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollable::-webkit-scrollbar {
    display: none;
}


/* Question Button  */
.question-popup ul li button {
    background: #FFFFFF;
    color: #333;
    border: none;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.question-popup ul li button.selected-option,
.selected-option {
    background: linear-gradient(to bottom, #F6E44B, #F69723);
    border: none;
    transition: background 0.3s ease;
}

.question-popup ul li button:hover {
    background: linear-gradient(to bottom, #F6E44B, #F69723);
}

/* ==================================================================== */
/* Lucky Draw Popup */
.lucky-draw-popup .middle-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.wheel {
    height: auto;
    width: calc(100% - 20%);
}

@media(max-width: 700px) and (min-width: 400px) {
    .wheel {
        height: auto;
        width: calc(100% - 40%);
    }
}

/* ==================================================================== */
/* Correct Popup  + Normal Prize*/
.reward-title-section {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.reward-img {
    height: 100px;
    width: 100px;
    border-radius: 10px;
}

.reward-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    opacity: 0.9;
    padding: 10px;
    border-radius: 10px;
}

.reward-content {
    text-align: left;
}

@media(max-width: 400px) {
    .reward-card {
        display: flex;
        flex-direction: column;
    }
}

/* ==================================================================== */
/* Grand Prize */
.grand-title {
    height: calc(100% - 30%);
}

@media(max-width: 500px) {
    .grand-title {
        height: calc(100% - 40%);
    }
}

/* ==================================================================== */
/* Claimed Voucher */
.modal-content .already-claimed-container button {
    padding: 0;
}