.card {
    position: fixed;
    left: 50%;
    top: 50%;
    background: rgb(255, 254, 254);
    padding: 15px;
    /* border-radius: 15px; */
    width: auto;
    max-height: 90%;
    height: auto;
    overflow-y: scroll;
    height: auto;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: top 0s 0s ease-in-out, opacity 0.2s 0s ease-in-out,
        transform 0.2s 0s ease-in-out;
    z-index: 1000001;
    font-size: 12px;
}

.card .editor-area {
    overflow: hidden;
    position: relative;
}

.card .preview-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.card .scroll-container {
    overflow: auto;
    white-space: nowrap;
    padding: 8px;
}

.card .sidenav label {
    font-size: 10px;
}

.card .scroll-container canvas {
    padding-right: 10px;
    max-height: 100px;
}

.card #expandedImg {
    /* display: block; */
    max-height: 320px;
    margin: auto;
}

.card .sidenav {
    height: 100%;
    color: white;
    text-align: left;
    width: 25%;
    display: flex;
    flex-wrap: wrap;

    /* visibility: hidden; */
}

.card .image-target {
    text-align: center;
    width: 75%;
}

.card .confirm-filter {
    margin-top: 8px;
    width: 100%;
    display: none;
}

.card .confirm-crop {
    margin-top: 8px;
    width: 100%;
    /* display: none; */
}

.card .confirm-filter > span {
    background-color: black;
    width: 100%;
}

.card .confirm-crop > span {
    background-color: black;
    width: 100%;
}

.card .filter-button {
    background-color: black !important;
    padding: 1em;
    border: solid 2px white;
    /* width: 100%; */
    width: 50%;
    display: flex;
    color: white;
}

.card .crop-button {
    background-color: black !important;
    padding: 1em;
    border: solid 2px white;
    /* width: 100%; */
    width: 50%;
    display: flex;
    color: white;
}

.card .filter-button:has(.propval_radio_btn:checked) {
    background-color: white !important;
    color: black;
}

.card .crop-button:has(.crop_radio_btn:checked) {
    background-color: white !important;
    color: black;
}

.card .bottom-container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.card .bottom-container .scroll-container {
    width: 100%;
}

.card .bottom-container .submit-image {
    width: 100%;
}

.card .btn span {
    font-size: 10px;
}

.card .liza_button {
    padding: 8px;
}

.drop-shadow {
    filter: drop-shadow(8px 8px 10px gray);
}

/* Loader Area */
.card .preview-loader {
    display: flex;
    justify-content: center;
}

.preview-loader > .loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: absolute;
    animation: rotate 1s linear infinite;
    bottom: 60%;
}
.preview-loader > .loader::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: 0px;
    border-radius: 50%;
    border: 5px solid gray;
    animation: prixClipFix 2s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes prixClipFix {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
    }
    25% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
    }
    50% {
        clip-path: polygon(
            50% 50%,
            0 0,
            100% 0,
            100% 100%,
            100% 100%,
            100% 100%
        );
    }
    75% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
    }
    100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
    }
}
/* End Loader Area */

@media only screen and (max-width: 800px) {
    .card {
        width: 90%;
        font-size: 9px;
        max-height: 85%;
    }

    .card .preview-loader {
        margin-top: 4px;
        margin-bottom: 4px;
    }

    .preview-loader > .loader {
        width: 32px;
        height: 32px;
        position: relative;
        animation: rotate 1s linear infinite;
        margin: auto;
    }

    .card .preview-container {
        margin-bottom: 4px;
        flex-direction: column;
    }

    .card .scroll-container {
        padding: 2px;
        margin-bottom: 4px;
    }

    .card .scroll-container canvas {
        padding-right: 2px;
        max-height: 75px;
    }

    .card #expandedImg {
        max-height: 250px;
    }

    .card .sidenav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    .card .sidenav label {
        font-size: 8px;
        padding: 4px;
        width: 25%;
    }

    .card .image-target {
        width: 100%;
    }

    .card .confirm-filter {
        margin-top: 4px;
        width: 100% !important;
    }

    .card .confirm-crop {
        margin-top: 4px;
        width: 100% !important;
    }

    .card .btn span {
        font-size: 8px;
    }

    .card .liza_button {
        padding: 4px;
    }

    .card .bottom-container {
        flex-direction: column;
    }

    .card .bottom-container .scroll-container {
        width: 100%;
    }

    .card .bottom-container .submit-image {
        width: 100%;
    }
}

@media only screen and (max-width: 425px) {
    .card .sidenav label {
        width: 50%;
    }
}
