.scratch-popup{
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),url(/assets/images/background-water-flow.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 45px;
    width: min(98%,364px);
    aspect-ratio: 364 / 425;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    max-height: 60vh;

    @media only screen and (max-height: 1000px) and (min-width:500px){
        height: 425px;
        width: auto;
        max-width: 90%;
        aspect-ratio: 364 / 425;
    }

    .scratch-card-content{
        padding-block: 20px;
        position: relative;
        display: flex;
        width: 100%;
        height: 100%;
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: center;
        gap: 2px;
        flex: 1;

        .card-container{
            width: 90%;
            font-weight: 700;
            font-size: 14px;

            .scratch-text{
                font-size: 20px !important;
                line-height: 21px !important;
            }

            .description{
                font-size: clamp(30px,3vw,35px);
            }

            .image-container{
                margin-top: 10px;
                position: relative;
                width: 100%;
                height: 100%;

                .card-image{
                    max-width: 90%;
                    max-height: 300px;
                    height: auto;
                    width: auto;

                    @media only screen and (max-width: 500px){
                        max-height: clamp(150px,60vw,300px) !important;
                    }

                    @media only screen and (max-height: 561px){
                        max-height: clamp(150px,35vh,300px) !important;
                    }
                }

                .remarks{
                    margin-top: -20px;
                }

                .remarks span{
                    display: block;
                    font-weight: 600 !important;
                    font-size: 12px;
                    line-height: 14px;
                }
            }
        }

        .scratch-card-cover-background {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 0;
        }

        #scratchCanvas{
            position: absolute;
            flex: 1;
            top: 50%;
            width: 100%;
            height: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(-50%);
            border-radius: 8px;
            cursor: grabbing;
            transition: opacity 1s ease-out;
            z-index: 2;
            object-fit: cover;
        }
    }

}

.scratch-popup p, .scratch-popup span{
    margin: 0;
    padding: 0;
    font-family: URW Geometric;
    color: #003DA6;
    font-weight: 900;
    line-height: 100%;
}


/* .temp-scratch-popup {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    object-fit: contain;

    .card-image {
        display: block;
        width: auto;
        max-height: 414px;
        max-width: 100%;
        object-fit: contain;
        border-radius: 45px;
    }
    
    #scratchCanvas {
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 45px;
        cursor: grabbing;
        transition: opacity 1s ease-out;
        z-index: 2;
    }
} */
