/* Extra small devices (phones, 50px and up) */
@media (min-width: 50px) {
    /* CSS rules for extra small devices */
    #success-modal-container {
        display: none; /* Hidden by default */
        /* Stay in place */
        position: fixed; 
        left: 0;
        top: 0;
        z-index: 1; /* Sit on top */
        width: 100%; 
        height: 100%;
        padding: 0 0.4rem;
        /* Enable scroll if needed */
        overflow: auto;  
        background-color: var(--modal-background);
    }
    
    .spin-result-modal-bg {
        margin-top: 1rem;
        display: flex;
        width: 100%; 
        height: 6.5rem; 
        background-image: url('../image/ppx7_status_modal_mobile_bg.webp');
        justify-content: center;
        align-items: center;
    }
    
    #success-modal-close-button {
        height: 0.5rem;
        width: 0.5rem;
        float: right;
        position: absolute;
        top: 1.2rem;
        right: 2.6rem;
        z-index: 2;
        background-image: url("../image/ppx7_close_icon.webp");
    }
    
    #success-modal-close-button:hover {
        cursor: pointer;
    }
    
    .spin-result-modal-content {
        height: 100%;
        width: 55%;
        padding: 0.2rem;
    }
    
    .spin-result-modal-top-content-container {
        height: 60%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .success-modal-big-image {
        display: flex;
        align-self: center;
        /* flex: 1; */
        position: absolute;
        top: 1.2rem;
        right: 3.2rem;
        height: 4rem;
        width: 3.5rem;
        background-image: url("../image/ppx7_trophy.webp");
    }
    
    .spin-result-modal-bottom-content-container {
        height: 40%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.1rem;
        padding: 0 0.2rem;
    }
    
    .status-modal-title-text {
        text-align: center;
        font-size: var(--medium-font-size);
        font-weight: var(--bold-font-weight);
        color: var(--text-yellow);
    }

    .success-modal-sub-text-container {
        display: flex;
        flex-direction: row;
        gap: 0.1rem;
    }
    
    .status-modal-desc-text {
        text-align: center;
        font-size: var(--great-mini-font-size);
        font-weight: var(--light-font-weight);
        color: var(--text-white);
    }

    .status-modal-reward-text {
        text-align: center;
        font-size: var(--great-mini-font-size);
        font-weight: var(--bold-font-weight);
        color: var(--text-yellow);
    }
    
    #success-got-it-button {
        margin-top: 0.1rem;
        background-color: var(--green-color);
        height: 25%;
        width: 45%;
        border-radius: 0.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #success-got-it-button p {
        color: var(--text-black);
        font-size: var(--extra-small-font-size);
        font-weight: var(--bold-font-weight);
    }

    /*failed modal*/
    
    #failed-modal-container {
        display: none; /* Hidden by default */
        /* Stay in place */
        position: fixed; 
        left: 0;
        top: 0;
        z-index: 1; /* Sit on top */
        width: 100%; 
        height: 100%;
        padding: 0 0.4rem;
        /* Enable scroll if needed */
        overflow: auto;  
        background-color: var(--modal-background);
    }
    
    #failed-modal-close-button {
        height: 0.5rem;
        width: 0.5rem;
        float: right;
        position: absolute;
        top: 1.2rem;
        right: 2.6rem;
        z-index: 2;
        background-image: url("../image/ppx7_close_icon.webp");
    }
    
    #failed-modal-close-button:hover {
        cursor: pointer;
    }
    
    .failed-modal-big-image {
        display: flex;
        align-self: center;
        align-self: center;
        position: absolute;
        top: 2rem;
        right: 3.55rem;
        height: 2.8rem;
        width: 2.8rem;
        background-image: url("../image/ppx7_tryAgain_v2.webp");
    }
    
    #failed-got-it-button {
        margin-top: 0.1rem;
        background-color: var(--green-color);
        height: 25%;
        width: 45%;
        border-radius: 0.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #failed-got-it-button p {
        color: var(--text-black);
        font-size: var(--extra-small-font-size);
        font-weight: var(--bold-font-weight);
    }
    
}

/* Medium devices (small laptops, 768px and up) */
@media (min-width: 768px) {
    /* CSS rules for medium devices */

    .spin-result-modal-bg {
        display: flex;
        align-self: center;
        width: 100%; 
        height: 3.2rem; 
        background-image: url('../image/ppx7_status_modal_desktop_bg.webp');
        justify-content: center;
        align-items: center;
    }

    #success-modal-close-button {
        height: 0.2rem;
        width: 0.2rem;
        float: none;
        position: absolute;
        top: 1.1rem;
        right: 3.5rem;
        z-index: 2;
        background-image: url("../image/ppx7_close_icon.webp");
    }

    .spin-result-modal-content {
        height: 100%;
        width: 40%;
        padding: 0.2rem;
    }

    .success-modal-big-image {
        display: flex;
        align-self: center;
        position: absolute;
        top: 1.2rem;
        right: 4.2rem;
        height: 1.6rem;
        width: 1.6rem;
        background-image: url("../image/ppx7_trophy.webp");
        background-size: contain;
    }

    .status-modal-title-text {
        text-align: center;
        font-size: var(--great-mini-font-size);
        font-weight: var(--bold-font-weight);
        color: var(--text-yellow);
    }

    .success-modal-sub-text-container {
        display: flex;
        flex-direction: row;
        gap: 0.05rem;
    }
    
    .status-modal-desc-text {
        text-align: center;
        font-size: var(--mini-font-size);
        font-weight: var(--light-font-weight);
        color: var(--text-white);
    }

    .status-modal-reward-text {
        text-align: center;
        font-size: var(--mini-font-size);
        font-weight: var(--bold-font-weight);
        color: var(--text-yellow);
    }
    
    #success-got-it-button {
        margin-top: 0.1rem;
        background-color: var(--green-color);
        height: 25%;
        width: 30%;
        border-radius: 0.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #success-got-it-button p {
        color: var(--text-black);
        font-size: var(--mini-font-size);
        font-weight: var(--bold-font-weight);
    }

    /*failed modal*/

    #failed-modal-close-button {
        height: 0.2rem;
        width: 0.2rem;
        float: none;
        position: absolute;
        top: 1.1rem;
        right: 3.5rem;
        z-index: 2;
        background-image: url("../image/ppx7_close_icon.webp");
    }

    .failed-modal-big-image {
        display: flex;
        align-self: center;
        position: absolute;
        top: 1.3rem;
        right: 4.35rem;
        height: 1.3rem;
        width: 1.3rem;
        background-image: url("../image/ppx7_tryAgain_v2.webp");
        background-size: contain;
    }

    #failed-got-it-button {
        margin-top: 0.1rem;
        background-color: var(--green-color);
        height: 25%;
        width: 30%;
        border-radius: 0.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #failed-got-it-button p {
        color: var(--text-black);
        font-size: var(--mini-font-size);
        font-weight: var(--bold-font-weight);
    }
}