* :not(.file-controls i) {
    box-sizing: border-box;
    color: #000;
}

body {
    background-color: #f8fafc;
    /*background-color: white;*/
}


/*body, html {
    overflow: hidden
}*/

body {
    display: inline-block !important;
}

.btn-group button:not(:last-child) {
    border-bottom: none;
    /* Prevent double borders */
}

.upload-text {
    padding-top: 220px;
    margin-left: 200px;
}

#canvasInfo {
    position: fixed;
    padding-top: 0px;
    padding-left: 73px;
    /* position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0; */
    left: 16%;
    top: 9%;
}

.zoom-controls {
    position: fixed;
    right: 300px;
    bottom: 0.5%;
    padding-top: 0px;
    /* padding-left: 70px; */
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    /* border: #c4c1c5; */
    border: 2px solid #cdc2d1;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    gap: 8px;
    z-index: 1000;
}

.zoom-button {
    font-size: 20px;
    border: none;
    background: none;
    padding: 6px 10px;
    cursor: pointer;
}

.zoom-button:hover {
    background-color: #f0f0f0;
    border-radius: 6px;
}

#zoom-input {
    width: 80px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px;
}

#zoom-input:focus {
    outline: none;
    border-color: #999;
}

/* Restore native spin buttons */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: auto;
    margin: 0;
}

/* input[type=number] { */
/* -moz-appearance: textfield; */
/* show arrows in Firefox */
/* } */


#stopwatch-content {
    z-index: 9999;
    position: fixed;
    top: 95%;
    /* margin-top: 80px; */
    left: 52%;
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
}

.image-size-controls {
    padding-top: 100px;
    margin-left: 100px;
}

.image-preview {
    position: relative;
    /*    margin-top: 300px;
    margin-left: -30%;
*/
    /*left: 40%;
    top:40%;*/
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);

    /* max-width: 700px;
    max-height:700px; */
}

#canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
}

/* .canvas { */
/* width: 100%; */
/* max-width: 700px; */
/* max-height:700px; */
/* height: auto;   */
/* } */
.trySampleImage {
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.trySampleImage:hover {
    cursor: pointer;
    border: 2px solid #6C63FF;
    /* soft violet-blue */
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}


#croppedCanvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
}

.cropSizeButton {
    padding: 4px 8px;
    margin: 1px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #D0D5DD;
    /* soft gray */
    background-color: #ffffff;
    color: #344054;
    /* dark gray text */
    border-radius: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.cropSizeButton:hover {
    cursor: pointer;
    border-color: #6366F1;
    /* hover border */
    background-color: #F5F3FF;
    /* subtle hover bg */
    color: #4F46E5;
    /* hover text color */
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
}

/* Active (selected) state */
.cropSizeButton.active {
    background-color: #EEF2FF;
    /* soft fill */
    color: #4F46E5;
    border-color: #6366F1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}



.cropSelectedSizeButton {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #344054;
    /* deep gray text */
    background-color: #f4f4f7;
    /* soft light gray background */
    border: 1px solid #d0d5dd;
    /* soft border */
    border-radius: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.cropSelectedSizeButton:hover {
    background-color: #e0e7ff;
    /* soft indigo tint */
    color: #4f46e5;
    /* modern indigo text */
    border-color: #c7d2fe;
    /* subtle purple border */
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
    cursor: pointer;
}

#drawBrushTempCanvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
}

/* Create two columns that float next to eachother */
.column {
    float: left;
    width: 33%;
    margin-top: 6px;
    padding: 20px;
}

/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}

/*---------------------------------------------------------*/
.text-box {
    background-color: transparent;
    position: relative;
    user-select: none;
    transform: translate(-50%, -50%);
}

.text-box-wrapper {
    position: absolute;
    transform-origin: top left;
    user-select: none;
}

.dot {
    height: 15px;
    width: 15px;
    background-color: #1E88E5;
    position: absolute;
    border-radius: 100px;
    border: 1px solid white;
    user-select: none;
}

.dot:hover {
    background-color: #0D47A1;
}

.dot.left-top {
    top: -5px;
    left: -5px;
    /* cursor: nw-resize; */
}

.dot.left-bottom {
    bottom: -5px;
    left: -5px;
    /* cursor: sw-resize; */
}

.dot.right-top {
    top: -5px;
    right: -5px;
    /* cursor: ne-resize; */
}

.dot.right-bottom {
    bottom: -5px;
    right: -5px;
    /* cursor: se-resize; */
}

.dot.top-mid {
    top: -5px;
    left: calc(50% - 5px);
    /* cursor: n-resize; */
}

.dot.left-mid {
    left: -5px;
    top: calc(50% - 5px);
    /* cursor: w-resize; */
}

.dot.right-mid {
    right: -5px;
    top: calc(50% - 5px);
    /* cursor: e-resize; */
}

.dot.bottom-mid {
    bottom: -5px;
    left: calc(50% - 5px);
    /* cursor: s-resize; */
}

.dot.rotate {
    top: -30px;
    left: calc(50% - 5px);
    cursor: url('https://findicons.com/files/icons/1620/crystal_project/16/rotate_ccw.png'), auto;
}

.rotate-link {
    position: absolute;
    width: 1px;
    height: 15px;
    background-color: #1E88E5;
    top: -20px;
    left: calc(50% + 0.5px);
    z-index: -1;
}

/*---------------------------------------------------------------------*/

/*---------------------------------------------------------*/
#targetFrame-box:hover {
    cursor: grab;
}

.targetFrame-box {
    background-color: transparent;
    position: relative;
    user-select: none;
    transform: translate(-50%, -50%);
}

.targetFrame-box-wrapper {
    position: absolute;
    transform-origin: top left;
    user-select: none;
}

.targetFrameDot {
    height: 25px;
    width: 25px;
    background-color: #f7f7f7;
    position: absolute;
    border-radius: 100px;
    border: 1px solid lightskyblue;
    user-select: none;
}

.targetFrameDot:hover {
    background-color: #87cfeb;
    cursor: move;
}

.targetFrameDot.targetFrame-left-top {
    top: -5px;
    left: -5px;
    /* cursor: nw-resize; */
}

.targetFrameDot.targetFrame-left-bottom {
    bottom: -5px;
    left: -5px;
    /* cursor: sw-resize; */
}

.targetFrameDot.targetFrame-right-top {
    top: -5px;
    right: -5px;
    /* cursor: ne-resize; */
}

.targetFrame-button #targetFrame-closeButton {
    position: absolute;
    top: -45px;
    right: -45px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 35px;
    font-family: Arial, sans-serif;
    background: #c3c2c2;
    /* line-height: 0px; */
    /* padding: 23px 9px 23px 9px; */
    border-radius: 50%;
    color: white;
    text-align: center;
    cursor: pointer;
    border: none;
    outline: none;
}

.targetFrameDot.targetFrame-right-bottom {
    bottom: -5px;
    right: -5px;
    /* cursor: se-resize; */
}

.targetFrameDot.targetFrame-top-mid {
    top: -5px;
    left: calc(50% - 5px);
    /* cursor: n-resize; */
}

.targetFrameDot.targetFrame-left-mid {
    left: -5px;
    top: calc(50% - 5px);
    /* cursor: w-resize; */
}

.targetFrameDot.targetFrame-right-mid {
    right: -5px;
    top: calc(50% - 5px);
    /* cursor: e-resize; */
}

.targetFrameDot.targetFrame-bottom-mid {
    bottom: -5px;
    left: calc(50% - 5px);
    /* cursor: s-resize; */
}

.targetFrameDot.targetFrameRotate {
    top: -60px;
    left: calc(50% - 5px);
    cursor: url('https://findicons.com/files/icons/1620/crystal_project/16/rotate_ccw.png'), auto;
}

.targetFrame-rotate-link {
    position: absolute;
    width: 10px;
    height: 55px;
    background-color: lightblue;
    top: -40px;
    left: calc(50% + 2px);
    z-index: -1;
}

/*---------------------------------------------------------------------*/

#unblurredMask {
    position: absolute;
    top: 0px;
    left: 0px;
    /*border-radius: 50%;*/
    z-index: 9999;
    /*background-attachment: local !Important;*/
    overflow: hidden;
    /*background-attachment: fixed !Important;*/
    background-size: 100%;
    /*background-image: url(https://i.ytimg.com/vi/LRVsxe5OJVY/maxresdefault.jpg);*/
    /*    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    overflow: hidden;
    filter: blur(0px);
    -webkit-filter: blur(0px);
    background-attachment: fixed !Important;
    background-repeat: no-repeat;
    background-size: 100%;
    width: 50px;
    height: 50px;*/
    /*position: relative;
    cursor: move;*/
    border: solid 0.1px transparent;
}

/*.ui-widget-content {
    background: #cedc98;
    border: 1px solid #dddddd;
    color: #333333;
}
*/
.unblurredMask {
    /*    width: 200px;
    height: 200px;
*/
    position: absolute;
    /*top: 0;
    left: 0;*/
    /*    top: 125px;
    left: 1040px;
*/
    overflow: hidden;
    /*    top: calc(50% - 100px);
    left: calc(50% - 100px);
*/
}

.imageMask {
    /*background: url(https://i.ytimg.com/vi/LRVsxe5OJVY/maxresdefault.jpg);*/
    /*background-color: #65625e;*/
    /*    filter: blur(5px);
    -webkit-filter: blur(5px);
*/
    opacity: 1;
    position: absolute;
    /*    left: 85px;
    top: 66px;
*/
    width: 50px;
    height: 50px;
}

.imageMask:hover {
    cursor: move;
}

/*tempImageSave*/
.tempImageSave {
    position: absolute;
    /*    float: left;
*/
    left: 90%;
    top: 30%;
    border-radius: 4px;

    /* padding: 8px 12px; */
    border-radius: 8px;
    border: 1.5px dashed rgba(172, 168, 168, 0.6);
    background-color: rgba(255, 255, 255, 0.1);
    /* subtle transparency */
    backdrop-filter: blur(6px);
    /* modern glass effect */
    color: #1f2937;
    /* dark slate */
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tempImageSave img:hover {
    cursor: pointer;
    background-color: #9258d4;
    transform: scale(1.1, 1.1);
    transition: 1s all;
}

/*fileControl*/
#fileControl {
    position: absolute;
    /*    float: left;
*/
    /* height: 282px; */
    left: 88%;
    top: 9%;
    border-radius: 4px;
    /* border: solid 1px #423d3d; */
}

#fileControl ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

/*#fileControl li {
    display: inline;
    padding: 0;
    margin: 0;
}*/

#fileControl li {
    display: block;
    width: 170px;
    height: 40px;
    /*    padding: 3px;
    margin: 10px 0px 10px 0px;
*/
    text-decoration: none;
    /*border: outset 3px #000000;*/
    /* background-color: #5e80a0; */
    text-align: center;
    color: #000000;
    font-size: 14px;
}

#fileControl li button:hover {
    cursor: pointer;
    /* background-color: #808080; */
    border-radius: 8%;
    /*        border: inset 3px #95A38D;
        background-color: #95A38D;
*/
}

#fileControl li #imageFormatSelect {
    transition: all 0.25s ease;
    border-radius: 8px;
    padding: 6px 10px;
    background-color: #ffffff;
    color: #1f1f1f;
    border: none;
}

#fileControl li #imageFormatSelect:hover {
    cursor: pointer;
    color: #c9469d;
    /* soft, modern magenta */
    background-color: #fef2f8;
}


/* #imageFormat label:hover {
    cursor: pointer;
    color: #d477bf;
} */

.fileControlButton {
    color: #1f1f1f;
    font-size: 90%;
    text-align: center;
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fileControlButton:hover {
    color: #c9469d;
    /* modern rose tone */
    background-color: #fef2f8;
    /* very light rose for feedback */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

/*reuploadImageButton*/
#reuploadImageButton input[type="file"] {
    display: none;
}

#reuploadImageButton label {
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 6px 12px;

    border: none;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#reuploadImageButton label:hover {
    cursor: pointer;
    color: #c9469d;
    /* softer, modern rose pink */
    background-color: rgba(212, 119, 191, 0.1);
    /* light hover background */
}

#addSavedTempImageButton {
    /* background-color: #96ddeb; */
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 12px 12px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 50%;
    /* margin-bottom: 5px; */
    cursor: pointer;
    margin-bottom: 10px;
}

#addSavedTempImageButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}


/*side bar menu*/
.openbtn {
    color: rgb(15, 15, 15);
}

/*welcomeInfo*/
#welcomeInfo {
    font-family: 'Allura';
    padding: 15px;
    position: absolute;
    color: rgb(195, 39, 39);
    height: 60px;
    font-size: 35px;
    /* background-color: #c0bca0; */
    text-align: center;
    border: 1px solid white;
    border-radius: 90% 90% 10% 90%/ 90% 90% 90% 10%;
    top: 20%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
}

/*menu*/
#menu ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    height: 512px;
    width: 100%;
    /* overflow-y: scroll; */
}


#menu li {
    display: block;
    width: 125px;
    /* padding-bottom: 10px; */
    /* margin: 10px 0px 10px 0px; */

    text-decoration: none;
    /* border-bottom: outset 1px #000000; */
    /* background-color: #4f5e9d; */
    /* background-image: linear-gradient(rgb(61, 142, 183), rgb(61, 142, 183)); */
    text-align: left;
    color: #ffffff;
    margin-left: 0px;
    font-size: 24px;
    padding-left: 5px;
}

#menu li button:hover {
    cursor: pointer;
    /* background-color: #7689a9; */
    color: rgb(217, 116, 220);
    /* border-radius: 8%; */
    /*        border: inset 3px #95A38D;
        background-color: #95A38D;
*/
}

#menu li:hover {
    border-left: solid 4px rgb(217, 116, 220);
}

.menuButton {
    color: #000000;
    font-size: 60%;
    text-align: center;
    border: 0px solid #181b1d;
    background: transparent;
    border-radius: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
    /* font-weight: bold; */
}

.menu {
    position: absolute;
    float: left;
    /* left: -10%; */
    height: 93%;
    top: 7%;
    left: 0%;
    border-radius: 4px;
    /* border: solid 1px #3f423d; */
    opacity: 1.0;
    /* background-color: #5484be; */
}

.shadowSettingContext {
    position: absolute;
    z-index: 999;
    width: 260px;
    height: 460px;
    right: 2px;
    top: 7%;
    font-size: 13px;
    color: #ffffff;
    /* background-color: #848a9f; */
    border-radius: 10px;
    background-color: #f3f5f6;
    border: solid 1px #ccc341;
    /* background-image: linear-gradient(315deg, #678a92 0%, #73959f 74%); */
    opacity: 1.0;

    animation-name: fadeIn;
    animation-fill-mode: forwards;
    animation-duration: 1.0s;
}

.shadowSettingContext #shadowSettingCloseButton {
    position: absolute;
    right: 0;
    top: 0;
}

/*shadowSettingClose button*/
#shadowSettingCloseButton {
    width: 25px;
    height: 25px;
    /*line-height: 25px;*/
    border-radius: 50%;
    color: white;
    text-align: center;
    cursor: pointer;

    border: none;
    outline: none;
    background: none;
}

#shadowSettingCloseButton:hover {
    cursor: pointer;
    background-color: #f5d4f7;
}

.menuContext {
    position: absolute;
    top: 0%;
    left: 100%;
    font-size: 13px;
    color: #ffffff;
    /* background-color: #848a9f; */
    border-radius: 10px;
    background-color: #f3f5f6;
    border: solid 1px #e06dd1;
    /* background-image: linear-gradient(315deg, #678a92 0%, #73959f 74%); */
    opacity: 1.0;

    animation-name: fadeIn;
    animation-fill-mode: forwards;
    animation-duration: 1.0s;
    z-index: 9999;
}

.menuContext #menuContextCloseButton {
    position: absolute;
    right: 0;
    top: 0;
}

/*menuContextclose button*/
#menuContextCloseButton {
    width: 25px;
    height: 25px;
    /*line-height: 25px;*/
    border-radius: 50%;
    color: white;
    text-align: center;
    cursor: pointer;

    border: none;
    outline: none;
    background: none;
}

#menuContextCloseButton:hover {
    cursor: pointer;
    background-color: #f5d4f7;
}

/* .editMenuContext #menuContextCloseButton {
    position: absolute;
    right: 0;
    top: 0;
} */

/* edit menu */
.editMenu {
    position: absolute;
    /* float: left; */
    left: 15%;
    top: 0%;
    /* border-radius: 4px;
    border: solid 3px #423d3d; */
}

.outputSizeSelect {
    position: relative;
    font-size: 85%;
    color: #344054;
    /* modern neutral text */
    background-color: #f9fafb;
    /* soft light background */
    border: none;
    /* no visible border */
    border-radius: 8px;
    /* padding: 8px 12px; */
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    /* subtle depth */
    transition: all 0.2s ease;
}

.outputSizeSelect:hover {
    background-color: #e4e8f2;
    /* gentle indigo tint */
    color: #4f46e5;
    /* soft modern accent */
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.1);
    /* hover elevation */
}

.editMenuButton {
    position: relative;
    color: #344054;
    /* soft gray text */
    font-size: 80%;
    background-color: #ffffff;
    /* soft off-white */
    border: none;
    border-radius: 8px;
    /* padding: 8px 12px; */
    transition: all 0.25s ease;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    /* subtle depth */
}

#editMenuButton button:hover {
    cursor: pointer;
    background-color: #e4e8f2;
    /* light indigo tint */
    color: #4f46e5;
    /* modern soft indigo text */
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.08);
    /* hover elevation */
}

#editMenuContext {
    position: absolute;
    /* top: -70px; */
    left: 10%;
    font-size: 13px;
    width: auto;
    color: #ffffff;
    /* background-image: linear-gradient(315deg, #678a92 0%, #73959f 74%); */
    /* background-image: linear-gradient(315deg, #9fa4c4 0%, #9e768f 74%); */
    background: #ffffff;
    border-radius: 4px;
    border: solid 1px #80dada;
    opacity: 1;
    animation-name: fadeIn;
    animation-fill-mode: forwards;
    animation-duration: 1.0s;
    z-index: 9999;
}

/*menuContextclose button*/
#editMenuContextCloseButton {
    position: relative;
    float: right;
    width: 25px;
    height: 25px;
    /*line-height: 25px;*/
    border-radius: 50%;
    color: white;
    text-align: center;
    cursor: pointer;

    border: none;
    outline: none;
    background: none;
}

#editMenuContextCloseButton:hover {
    cursor: pointer;
    background-color: #c8efdf;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #c6f0d4, #e7cf43, #e46533, #cf23cf);
    height: 2px;
    width: 80%;
    border-radius: 6px;

    &:focus,
    &:active {
        outline: none;
    }

    &::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        cursor: pointer;
        position: relative;
        width: 15px;
        height: 15px;
        display: block;
        border: 2px solid #fb5986;
        background-color: #fff;
        border-radius: 50%;
        -webkit-border-radius: 50%;
    }

}

.crop-controller-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    /* background-color: #ffdae7; */
    height: 2px;
    width: 99%;
    border-radius: 6px;

    &:focus,
    &:active {
        outline: none;
    }

    &::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        cursor: pointer;
        position: relative;
        width: 15px;
        height: 15px;
        display: block;
        border: 2px solid #fb5986;
        background-color: #fff;
        border-radius: 50%;
        -webkit-border-radius: 50%;
    }

}



#effectContext input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    /* background-color: #ffdae7; */
    height: 2px;
    width: 90%;
    border-radius: 6px;

    &:focus,
    &:active {
        outline: none;
    }

    &::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        cursor: pointer;
        position: relative;
        width: 15px;
        height: 15px;
        display: block;
        border: 2px solid #fb5986;
        background-color: #fff;
        border-radius: 50%;
        -webkit-border-radius: 50%;
    }

}

#brushSetting input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    /* background-color: #ffdae7; */
    height: 2px;
    width: 90%;
    border-radius: 6px;

    &:focus,
    &:active {
        outline: none;
    }

    &::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        cursor: pointer;
        position: relative;
        width: 15px;
        height: 15px;
        display: block;
        border: 2px solid #fb5986;
        background-color: #fff;
        border-radius: 50%;
        -webkit-border-radius: 50%;
    }

}

#textSetting input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    /* background-color: #ffdae7; */
    height: 2px;
    width: 95%;
    border-radius: 6px;

    &:focus,
    &:active {
        outline: none;
    }

    &::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        cursor: pointer;
        position: relative;
        width: 15px;
        height: 15px;
        display: block;
        border: 2px solid #fb5986;
        background-color: #fff;
        border-radius: 50%;
        -webkit-border-radius: 50%;
    }

}

#textColor input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    /* background-color: #ffdae7; */
    height: 2px;
    width: 90%;
    border-radius: 6px;

    &:focus,
    &:active {
        outline: none;
    }

    &::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        cursor: pointer;
        position: relative;
        width: 15px;
        height: 15px;
        display: block;
        border: 2px solid #fb5986;
        background-color: #fff;
        border-radius: 50%;
        -webkit-border-radius: 50%;
    }

}

#watermarkAddContext input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #ffdae7;
    height: 2px;
    width: 90%;
    border-radius: 6px;

    &:focus,
    &:active {
        outline: none;
    }

    &::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        cursor: pointer;
        position: relative;
        width: 15px;
        height: 15px;
        display: block;
        border: 2px solid #fb5986;
        background-color: #fff;
        border-radius: 50%;
        -webkit-border-radius: 50%;
    }

}

#sizeBorderFrame input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    /* background-color: #ffdae7; */
    height: 2px;
    width: 85%;
    border-radius: 6px;

    &:focus,
    &:active {
        outline: none;
    }

    &::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        cursor: pointer;
        position: relative;
        width: 15px;
        height: 15px;
        display: block;
        border: 2px solid #fb5986;
        background-color: #fff;
        border-radius: 50%;
        -webkit-border-radius: 50%;
    }

}


#maskAddContext input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    /* background-color: #ffdae7; */
    height: 2px;
    width: 80%;
    border-radius: 6px;

    &:focus,
    &:active {
        outline: none;
    }

    &::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        cursor: pointer;
        position: relative;
        width: 15px;
        height: 15px;
        display: block;
        border: 2px solid #fb5986;
        background-color: #fff;
        border-radius: 50%;
        -webkit-border-radius: 50%;
    }

}

#textShape input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    /* background-color: #ffdae7; */
    height: 2px;
    width: 88%;
    border-radius: 6px;

    &:focus,
    &:active {
        outline: none;
    }

    &::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        cursor: pointer;
        position: relative;
        width: 15px;
        height: 15px;
        display: block;
        border: 2px solid #fb5986;
        background-color: #fff;
        border-radius: 50%;
        -webkit-border-radius: 50%;
    }

}


#effectContext {
    position: absolute;
    top: 30px;
}

#brushContext {
    position: absolute;
    top: 30px;
}

/* #brushContext #showDrawModeSettingButton {
    border-radius: 6px;
    color: white;
    background-color: #423d3d;
    text-align: center;
}

#brushContext #showEraseModeSettingButton {
    border-radius: 6px;
    color: white;
    background-color: #423d3d;
    text-align: center;
} */

#brushContext #brushSetting {
    position: relative;
    /* border: 3px solid #878483;
    border-radius: 15px; */
}

#textAddContext {
    position: absolute;
    top: 30px;
}

#textAddContext #showTextSettingButton {
    border-radius: 6px;
    color: white;
    background-color: #423d3d;
    text-align: center;
}

#textAddContext #textSetting {
    position: relative;
    /* border: 3px solid #878483;
    border-radius: 15px; */
}


input.textRadio {
    position: absolute;
    left: -99999em;
    top: -99999em;

    &+label {
        left: 5px;
        cursor: pointer;
        float: left;
        border-bottom: 2px solid #b54ea7;
        width: 61px;
        border-bottom: 0;
        margin-right: -1px;
        padding: .5em 1em;
        position: relative;

        &:hover {
            border-bottom: 2px solid #e3c2df;
        }
    }

    &:checked+label {
        border-bottom: 2px solid #b54ea7;
        z-index: 1;
    }
}



#textPathAllignButtons button {
    margin: 3px;
    border: 1px solid transparent;
    background-color: #f0f0f0;
    /* padding: 10px; */
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease;
    background: linear-gradient(#ffffff, #ffffff) padding-box;
}

#textPathAllignButtons button:hover {
    border: 1px solid #b54ea7;
    background-color: #f0f0f0;
}

#textPathAllignButtons button img {
    height: 40px;
    width: auto;
    display: block;
}

#textPathAllignButtons button.active {
    border: 1px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */
}


#brushLineCapButtons button {
    margin: 3px;
    border: 1px solid transparent;
    background-color: #f0f0f0;
    /* padding: 10px; */
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease;
    background: linear-gradient(#ffffff, #ffffff) padding-box;
}

#brushLineCapButtons button:hover {
    border: 1px solid #b54ea7;
    background-color: #f0f0f0;
}

#brushLineCapButtons button img {
    height: 20px;
    width: auto;
    display: block;
}

#brushLineCapButtons button.active {
    border: 1px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */
}



#gradienColorBrushButtons button {
    margin: 3px;
    border: 1px solid transparent;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease;
    background: linear-gradient(#ffffff, #ffffff) padding-box;
}

#gradienColorBrushButtons button:hover {
    border: 1px solid #b54ea7;
    background-color: #f0f0f0;
}

#gradienColorBrushButtons button img {
    height: 20px;
    width: auto;
    display: block;
}

#gradienColorBrushButtons button.active {
    border: 1px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */
}

/* ---- */
#brushLineJoinButtons button {
    margin: 3px;
    border: 1px solid transparent;
    background-color: #f0f0f0;
    /* padding: 10px; */
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease;
    background: linear-gradient(#ffffff, #ffffff) padding-box;
}

#brushLineJoinButtons button:hover {
    border: 1px solid #b54ea7;
    background-color: #f0f0f0;
}

#brushLineJoinButtons button img {
    height: 60px;
    width: auto;
    display: block;
}

#brushLineJoinButtons button.active {
    border: 1px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */
}




#watermarkAddContext {
    position: absolute;
    top: 30px;
}

input.textWatermarkRadio {
    position: absolute;
    left: -99999em;
    top: -99999em;

    &+label {
        left: 3px;
        cursor: pointer;
        float: left;
        border-bottom: 2px solid #b54ea7;
        width: 76px;
        border-bottom: 0;
        margin-right: -1px;
        padding: .5em 1em;
        position: relative;

        &:hover {
            border-bottom: 2px solid #d8d4d8;
        }
    }

    &:checked+label {
        border-bottom: 2px solid #b54ea7;
        z-index: 1;
    }
}



#showTextWatermarkSettingButton {
    text-align: left;
    margin-left: 5px;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #9d9ee0;
    /* subtle gray border */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 250px;
    /* adjust as needed */
    font-family: 'Inter', sans-serif;
}

#showTextWatermarkSettingButton:hover {
    background-color: #f3f4f6;
    border-color: #6366f1;
    /* accent color on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}




#showImageWatermarkSettingButton {
    text-align: left;
    margin-top: 5px;
    margin-left: 5px;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #9d9ee0;
    /* subtle gray border */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 250px;
    /* adjust as needed */
    font-family: 'Inter', sans-serif;
}

#showImageWatermarkSettingButton:hover {
    background-color: #f3f4f6;
    border-color: #6366f1;
    /* accent color on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}






/* #watermarkAddContext #showImageWatermarkSettingButton {
    border: none;
    background: none;
    width: 260px;
    height: 30px;
    color: rgb(0, 0, 0);
    background: linear-gradient(to right, #e9dfa6, #e5baa8, #f1edf1);
}

#watermarkAddContext #showImageWatermarkSettingButton:hover {
    background: linear-gradient(to right, #e4d687, #d48867, #cc6acc);
    cursor: pointer;
} */

#watermarkAddContext #textWatermarkSetting {
    position: relative;
    /* border: 3px solid #878483;
    border-radius: 15px; */
    animation-name: fadeIn;
    animation-fill-mode: forwards;
    animation-duration: 1.0s;
}

#watermarkAddContext #imageWatermarkSetting {
    position: relative;
    /* border: 3px solid #878483;
    border-radius: 15px; */
    animation-name: fadeIn;
    animation-fill-mode: forwards;
    animation-duration: 1.0s;
}



#matermarkAllignButtons {
    height: 130px;
    overflow-y: scroll;
}

#matermarkAllignButtons button {
    margin: 3px;
    border: 1px solid transparent;
    background-color: #f0f0f0;
    /* padding: 10px; */
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease;
    background: linear-gradient(#ffffff, #ffffff) padding-box;
}

#matermarkAllignButtons button:hover {
    border: 1px solid #b54ea7;
    background-color: #f0f0f0;
}

#matermarkAllignButtons button img {
    height: 42px;
    width: auto;
    display: block;
}

#matermarkAllignButtons button.active {
    border: 1px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */
}




#frameAddContext {
    position: absolute;
    top: 30px;
}

input.borderFrameRadio {
    position: absolute;
    left: -99999em;
    top: -99999em;

    &+label {
        left: 3px;
        cursor: pointer;
        float: left;
        border-bottom: 2px solid #b54ea7;
        width: 79px;
        border-bottom: 0;
        margin-right: -1px;
        padding: .5em 1em;
        position: relative;

        &:hover {
            border-bottom: 2px solid #e3c2df;
        }
    }

    &:checked+label {
        border-bottom: 2px solid #b54ea7;
        z-index: 1;
    }
}

.borderFrameImage {
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 6px;
    width: 70px;
    height: 70px;
    object-fit: cover;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease-in-out;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}



#borderFrameButtons {
    height: 50px;
    /* overflow-y: scroll; */
}

#frameBorderButtons button {
    margin: 3px;
    border: 1px solid transparent;
    background-color: #f0f0f0;
    /* padding: 10px; */
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease;
    background: linear-gradient(#ffffff, #ffffff) padding-box;
}

#frameBorderButtons button:hover {
    border: 1px solid #b54ea7;
    background-color: #f0f0f0;
}

#frameBorderButtons button img {
    height: 30px;
    width: auto;
    display: block;
}

#frameBorderButtons button.active {
    border: 1px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */
}

#frameAddContext .borderFrameImage:hover {
    cursor: pointer;
    background-color: #f5f3ff;
    /* Soft blue background */
    transform: scale(1.08);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    border-color: #38bdf8;
    /* Sky blue highlight */
    transition: all 0.2s ease-in-out;
}

.borderFrameImage.selected {
    border-color: #06b6d4;
    /* Tailwind cyan-500 */
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.35);
    /* Subtle glow */
    background-color: #ecfeff;
    /* Soft cyan background */
}


#showUploadFrameSettingButton {
    text-align: left;
    margin-top: 5px;
    margin-left: 5px;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #9d9ee0;
    /* subtle gray border */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 230px;
    /* adjust as needed */
    font-family: 'Inter', sans-serif;
}

#showUploadFrameSettingButton:hover {
    background-color: #f3f4f6;
    border-color: #6366f1;
    /* accent color on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}


#showBorderFrameSettingButton {
    text-align: left;
    margin-top: 5px;
    margin-left: 5px;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #9d9ee0;
    /* subtle gray border */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 230px;
    /* adjust as needed */
    font-family: 'Inter', sans-serif;
}

#showBorderFrameSettingButton:hover {
    background-color: #f3f4f6;
    border-color: #6366f1;
    /* accent color on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}


#showPresetFrameSettingButton {
    text-align: left;
    margin-top: 5px;
    margin-left: 5px;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #9d9ee0;
    /* subtle gray border */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 230px;
    /* adjust as needed */
    font-family: 'Inter', sans-serif;
}

#showPresetFrameSettingButton:hover {
    background-color: #f3f4f6;
    border-color: #6366f1;
    /* accent color on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}


#showSearchBgSettingButton {
    text-align: left;
    margin-top: 5px;
    margin-left: 5px;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #9d9ee0;
    /* subtle gray border */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 230px;
    /* adjust as needed */
    font-family: 'Inter', sans-serif;
}

#showSearchBgSettingButton:hover {
    background-color: #f3f4f6;
    border-color: #6366f1;
    /* accent color on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}


#borderFrameContext {
    animation-name: fadeIn;
    animation-fill-mode: forwards;
    animation-duration: 1.0s;
}

#uploadFrameContext {
    animation-name: fadeIn;
    animation-fill-mode: forwards;
    animation-duration: 1.0s;
}

#presetFrameContext {
    animation-name: fadeIn;
    animation-fill-mode: forwards;
    animation-duration: 1.0s;
}

.maskModel:hover {
    cursor: pointer;
    color: rgb(13, 0, 255);
}


input.maskModel {
    position: absolute;
    left: -99999em;
    top: -99999em;

    &+label {
        left: 4px;
        cursor: pointer;
        float: left;
        width: 75px;
        border-bottom: 0;
        margin-right: -1px;
        padding: .5em 1em;
        position: relative;

        &:hover {
            border-bottom: 2px solid #e3c2df;
        }
    }

    &:checked+label {
        border-bottom: 2px solid #b54ea7;
        z-index: 1;
    }
}


/* switch */
.toggle-mask-button {
    display: flex;
    align-items: center;
    position: relative;
    width: 40px;
    height: 25px;
    border-radius: 50px;
    box-sizing: content-box;
    background-color: #ff8d8d33;
    cursor: pointer;
    transition: background-color .4s;
}

.toggle-mask-button:has(:checked) {
    background-color: #75bbff33;
}

.toggle-mask-button::before {
    position: absolute;
    left: 0px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #ff8d8d;
    content: '';
    transition: left .4s;
}

.toggle-mask-button:has(:checked)::before {
    left: 15px;
    background-color: #75bbff;
}

.toggle-mask-button::after {
    position: absolute;
    left: 13px;
    transform: translateX(-50%);
    color: #080808;
    font-weight: 600;
    font-size: .7em;
    content: 'No';
    transition: left .4s;
}

.toggle-mask-button:has(:checked)::after {
    left: 27px;
    content: 'Draw';
}

.toggle-mask-button input {
    display: none;
}

/*---*/


.presetMaskTexture {
    width: 50px;
    height: 50px;
    border: 2px solid transparent;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.presetMaskTexture:hover {
    border-color: #c18fe2;
    box-shadow: 0 4px 12px rgba(193, 143, 226, 0.4);
    transform: scale(1.05);
    cursor: pointer;
}

#maskAddContext {
    position: absolute;
    top: 30px;
}

#maskAddContext #showUnblurredMaskSettingButton {
    /* border-radius: 0px; */
    border: none;
    background: none;
    width: 239px;
    color: white;
    background-color: #8692b0;
    text-align: left;
}

#maskAddContext #showUnblurredMaskSettingButton:hover {
    background: #688deb;
    /* color:white;  */
}

#maskAddContext #showMaskSettingButton {
    /* border-radius: 0px; */
    border: none;
    background: none;
    width: 239px;
    color: white;
    background-color: #8692b0;
    text-align: left;
}

#maskAddContext #showMaskSettingButton:hover {
    background: #688deb;
    /* color:white;  */
}

#maskAddContext #showPresetMaskSettingButton {
    /* border-radius: 0px; */
    border: none;
    background: none;
    width: 238px;
    color: rgb(0, 0, 0);
    background-color: #f0c3f0;
    text-align: left;
}

#maskAddContext #showPresetMaskSettingButton:hover {
    color: rgb(43, 15, 230);
}

#maskAddContext #showMosaicSettingButton {
    /* border-radius: 0px; */
    border: none;
    background: none;
    width: 238px;
    color: rgb(0, 0, 0);
    background-color: #f0c3f0;
    text-align: left;
}

#maskAddContext #showMosaicSettingButton:hover {
    color: rgb(43, 15, 230);
}

#blurMaskStartButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#blurMaskStartButton:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
    cursor: pointer;
}

#blurMaskRefreshMaskButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#blurMaskRefreshMaskButton:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#presetEffectButton {
    /* background-color: #96ddeb; */
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;

    padding: 6px 6px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#presetEffectButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#presetEffectTextDownloadButton {
    /* background-color: #96ddeb; */
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 6px 6px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#presetEffectTextDownloadButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#presetEffectTextUploadButton label {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 11px 11px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#presetEffectTextUploadButton label:hover {
    padding: 11px 11px;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
    cursor: pointer;
}

#presetEffectTextUploadButton input[type="file"] {
    display: none;
}


input.presetEffectRadio {
    /* position: absolute; */
    left: -99999em;
    top: -99999em;

    &+label {
        left: 2px;
        cursor: pointer;
        float: left;
        margin-right: 0px;
        /* border: 1px solid #aaa; */
        /* border-radius: 8px;
        border-radius: 8px; */
        width: 160px;
        border-bottom: 0;
        /* background: linear-gradient(to right, #d4e9db, #e0dcc6, #dfcdc6); */
        /* margin-right: -1px; */
        /* padding: .5em 1em; */
        position: relative;

        /* &:hover {
            background:
                linear-gradient(to right, #ace6bf, #e0d79a, #e7b5a1);
            cursor: pointer;
        } */
    }

    &:checked+label img {
        /* background:
            linear-gradient(to right, #ace6bf, #e0d79a, #e7b5a1);
        cursor: pointer;
        z-index: 1; */

        border: 1px solid #aaa;
    }
}


#effectPresetContext {
    position: absolute;
    top: 30px;
    width: 340px;
    /* height: 350px; */
    overflow-y: scroll;
}

#effectPresetContext canvas {
    background-color: #8acdff;
    border: solid 2px #fcfcfc;
    /* font-size: 12px;
    display: flex;
    flex-direction: column;
    border: solid 2px #423d3d; */
    /*    text-align: center;
*/
    flex-direction: row;
}

#effectPresetContext canvas:hover {
    cursor: pointer;
    background-color: #808080;
    transform: scale(1.2, 1.2);
    transition: 1s all;
}


input.image2AnimeRadio {
    position: absolute;
    left: -99999em;
    top: -99999em;

    &+label {
        left: 3px;
        cursor: pointer;
        float: left;
        border-bottom: 2px solid #b54ea7;
        width: 108px;
        border-bottom: 0;
        margin-right: -1px;
        padding: .5em 1em;
        position: relative;

        &:hover {
            border-bottom: 2px solid #e3c2df;
        }
    }

    &:checked+label {
        border-bottom: 2px solid #b54ea7;
        z-index: 1;
    }
}


input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    height: 17px;
    width: 20%;
    background: none;
    vertical-align: -3px;
    border: none;
}

.logoImage {
    left: 10px;
}

#logoImageButton label {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 12px 12px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#logoImageButton label:hover {
    padding: 12px 12px;
    color: #ffffff;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
    cursor: pointer;
}

#logoImageButton input[type="file"] {
    display: none;
}

#addQrLogoButton label {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#addQrLogoButton label:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e0e0e0, #e95318, #ebc0c0) border-box;
}

#addQrLogoButton input[type="file"] {
    display: none;
}

#frameImageButton label {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    cursor: pointer;
    padding: 12px 12px;
    color: #000000;
    /* background-color: #ffffff; */
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#frameImageButton label:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
    cursor: pointer;
}

#frameImageButton input[type="file"] {
    display: none;
}

#maskImageButton label {
    padding: 5px 10px;
    color: #ffffff;
    background-color: #4cabe2;
    cursor: pointer;
}

#maskImageButton input[type="file"] {
    display: none;
}


#uploadFirstImageButton {
    padding: 16px;
    position: absolute;
    background-color: #ffffff;
    width: 280px;
    height: 245px;
    text-align: center;
    border: 2px solid rgba(83, 84, 94, 0.2);
    /* soft indigo border */
    border-radius: 20px;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 20px rgba(99, 102, 241, 0.08);
    /* soft layered shadow */
    transition: all 0.3s ease, box-shadow 0.4s ease;
    backdrop-filter: blur(4px);
    /* elegant glass effect */
    animation: floatIn 0.6s ease forwards;
}


#uploadFirstImageButton img:hover {
    cursor: pointer;
}

#uploadFirstImageButton label {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 16px;
    color: #1e293b;
    background-color: #f9fafb;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* smooth animation */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transform: scale(1);
}

#uploadFirstImageButton label:hover {
    background-color: #e0f2fe;
    border-color: #38bdf8;
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
    transform: scale(1.03);
    /* slightly enlarges */
}



#uploadFirstImageButton input[type="file"] {
    display: none;
}

#uploadFirstImageButton:hover {
    border: 2px solid #9c9696;
    box-shadow: inset 0 0 0 3px #eee;
}

#collageChooseButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 5px 10px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 5px;
    cursor: pointer;
}

#collageChooseButton:hover {
    border: 1px solid #0a0a0a;
    color: #ab43b6;
    box-shadow: inset 0 0 0 0px #eee;
}

#createQRCodeButton {
    padding: 10px 20px;
    border: 1px solid #c1cbda;
    /* soft neutral gray */
    background-color: #f9fafb;
    /* light background */
    color: #374151;
    /* dark gray text */
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

#createQRCodeButton:hover {
    background-color: #a6b5d4;
    /* slightly darker light gray */
    border-color: #9ca3af;
    /* medium gray */
    color: #111827;
    /* darker text */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}


#qrCodeImage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
}

/* .logoYqImage {
    position: absolute;
    top: 50%;
    left: 10%;
} */
.qrIconImage img {
    display: inline-block;
    left: 10%;
    margin-right: 5px;
}

.logoYqImage:hover {
    cursor: pointer;
}

#imageBackground {
    position: absolute;
    /* background-color: #547b8a; */
    border: 1px solid #969494;
    background-color: rgb(255, 254, 254);
    /* background-color: #eec0c6;
    background-image: linear-gradient(315deg, #eec0c6 0%, #7ee8fa 74%); */
    width: 78%;
    height: 85%;
    z-index: -1;
    border-radius: 2%;
    /* box-shadow: -15px 0 5px -5px rgb(240, 162, 144); */
    top: 52%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
    overflow: scroll;
}

/* remove background loading  */
#loading-wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

#loading-text {
    display: block;
    position: absolute;
    top: 48%;
    left: 50%;
    color: rgb(249, 73, 73);
    width: 100px;
    height: 30px;
    margin: -7px 0 0 -60px;
    text-align: center;
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 22px;
}

#loading-content {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 170px;
    height: 170px;
    margin: -85px 0 0 -85px;
    border: 3px solid #F00;
}

#loading-content:after {
    content: "";
    position: absolute;
    border: 3px solid #0F0;
    left: 15px;
    right: 15px;
    top: 15px;
    bottom: 15px;
}

#loading-content:before {
    content: "";
    position: absolute;
    border: 3px solid #00F;
    left: 5px;
    right: 5px;
    top: 5px;
    bottom: 5px;
}

#loading-content {
    border: 3px solid transparent;
    border-top-color: #4D658D;
    border-bottom-color: #4D658D;
    border-radius: 50%;
    -webkit-animation: loader 2s linear infinite;
    -moz-animation: loader 2s linear infinite;
    -o-animation: loader 2s linear infinite;
    animation: loader 2s linear infinite;
}

#loading-content:before {
    border: 3px solid transparent;
    border-top-color: #D4CC6A;
    border-bottom-color: #D4CC6A;
    border-radius: 50%;
    -webkit-animation: loader 3s linear infinite;
    -moz-animation: loader 2s linear infinite;
    -o-animation: loader 2s linear infinite;
    animation: loader 3s linear infinite;
}

#loading-content:after {
    border: 3px solid transparent;
    border-top-color: #644761;
    border-bottom-color: #84417C;
    border-radius: 50%;
    -webkit-animation: loader 1.5s linear infinite;
    animation: loader 1.5s linear infinite;
    -moz-animation: loader 2s linear infinite;
    -o-animation: loader 2s linear infinite;
}

@keyframes loaders {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes loader {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

#content-wrapper {
    color: #FFF;
    position: fixed;
    left: 0;
    top: 20px;
    width: 100%;
    height: 100%;
}

/*  */
.undoRedoBrushButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#ffffff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

.undoRedoBrushButton:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
    cursor: pointer;
}

.undoRedoBrushButton:disabled {
    cursor: not-allowed;
}

.undoRedoBlurBrushButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

.undoRedoBlurBrushButton:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
    cursor: pointer;
}

.undoRedoBlurBrushButton:disabled {
    cursor: not-allowed;
}

.undoRedoInpaintBrushButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

.undoRedoInpaintBrushButton:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
    cursor: pointer;
}

.undoRedoInpaintBrushButton:disabled {
    cursor: not-allowed;
}

.inpaintPositivePromptTextArea textarea {
    width: 210px;
    padding: 10px 13px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background-color: #f7f7f7;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Soft shadow around all sides */
}

/* Hover effect */
.inpaintPositivePromptTextArea textarea:hover {
    background-color: #fff;
    /* Subtle white background */
    border-color: #f06292;
    /* Soft pink border */
    box-shadow: 0 8px 16px rgba(240, 98, 146, 0.3);
    /* Pink shadow on all sides */
    transform: scale(1.03);
    /* Slight zoom effect */
}

/* Focus effect */
.inpaintPositivePromptTextArea textarea:focus {
    border-color: #f06292;
    box-shadow: 0 8px 16px rgba(240, 98, 146, 0.3);
    outline: none;
}

/*---------------------------------------------*/
#drawShapeButtons button {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 11px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 3px;
}

#drawShapeButtons button:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */

}

#drawShapeButtons button.active {
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */
}

/*---------------------------------------------*/
#brushCursor {
    transform: translate(0, 0);
    pointer-events: none;
    position: fixed;
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    z-index: 999;
    transition: width .3s, height .3s, top .3s, left .3s;
}

#inpaintBrushCursor {
    transform: translate(0, 0);
    pointer-events: none;
    position: fixed;
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    z-index: 999;
    transition: width .3s, height .3s, top .3s, left .3s;
}

#blurMaskBrushCursor {
    transform: translate(0, 0);
    pointer-events: none;
    position: fixed;
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    z-index: 999;
    transition: width .3s, height .3s, top .3s, left .3s;
}

#removebgBrushCursor {
    transform: translate(0, 0);
    pointer-events: none;
    position: fixed;
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    z-index: 999;
    transition: width .3s, height .3s, top .3s, left .3s;
}

.brushColors .option:hover {
    cursor: pointer;
}

.row .options {
    margin: 10px 30px 0px 5px;
    padding-left: 20px;
    list-style: none;
}

.brushColors .options {
    display: flex;
    justify-content: space-between;
}

.brushColors .option {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    margin-top: 3px;
    position: relative;
}

.brushColors .option:nth-child(1) {
    background-color: #fff;
    border: 1px solid #bfbfbf;
}

.brushColors .option:nth-child(2) {
    background-color: #000;
}

.brushColors .option:nth-child(3) {
    background-color: #E02020;
}

.brushColors .option:nth-child(4) {
    background-color: #6DD400;
}

.brushColors .option:nth-child(5) {
    background-color: #4A98F7;
}

.brushColors .option.selected::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    height: 6px;
    width: 6px;
    background: inherit;
    border-radius: inherit;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
}

.brushColors .option:first-child.selected::before {
    border-color: #ccc;
}


/* ---------------------------------- */

.presetFrame-buttons {
    display: flex;
    width: 240px;
    overflow-x: auto;
    gap: 10px;
    margin-top: 0px;
    padding: 10px;
    white-space: nowrap;
}

.presetFrame-button {
    flex: 0 0 auto;
    /* Prevent shrinking */
    padding: 5px 10px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 12px;
    white-space: nowrap;
}

.presetFrame-button.active {
    /* border-color: #007bff;
    background-color: #e0f0ff;
    font-weight: bold; */

    border: 1px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
}

.presetFrame-button:hover {
    border: 1px solid #b54ea7;
    background-color: #f0f0f0;
}

/* Optional: hide scrollbar */
/* .button-row::-webkit-scrollbar {
    height: 6px;
  } */


#presetBorderFrame {
    position: absolute;
    /* top: 30px; */
    width: 240px;
    /* height: 300px; */
    overflow-y: scroll;
}

#superResolutionContext {
    position: absolute;
    /* left: 20%; */
    top: 20%;
}

#oldPhotoRestorationContext {
    position: absolute;
    /* left: 20%; */
    top: 20%;
}

#faceEnhancerContext {
    position: absolute;
    /* left: 20%; */
    top: 20%;
}

#colorizeContext {
    position: absolute;
    top: 20%;
}

/* #inpaintContext {
    position: relative;
    top: 20%;
} */

#inpaintRefreshMaskButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#inpaintRefreshMaskButton:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}


#inpaintStartButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#inpaintStartButton:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#inpaintPromptStartButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#inpaintPromptStartButton:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#colorizeStartButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#colorizeStartButton:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}


/* switch */
.toggle-colorize-button {
    display: flex;
    align-items: center;
    position: relative;
    width: 65px;
    height: 35px;
    border-radius: 50px;
    box-sizing: content-box;
    background-color: #ff8d8d33;
    cursor: pointer;
    transition: background-color .4s;
}

.toggle-colorize-button:has(:checked) {
    background-color: #75bbff33;
}

.toggle-colorize-button::before {
    position: absolute;
    left: 0px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #ff8d8d;
    content: '';
    transition: left .4s;
}

.toggle-colorize-button:has(:checked)::before {
    left: 28px;
    background-color: #75bbff;
}

.toggle-colorize-button::after {
    position: absolute;
    left: 18px;
    transform: translateX(-50%);
    color: #080808;
    font-weight: 600;
    font-size: .7em;
    content: 'Artistic';
    transition: left .4s;
}

.toggle-colorize-button:has(:checked)::after {
    left: 46px;
    content: 'Stable';
}

.toggle-colorize-button input {
    display: none;
}

/*---*/


#superResolutionButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#superResolutionButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#oldPhotoRestorationButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#oldPhotoRestorationButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#faceEnhancerButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#faceEnhancerButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

.inputTextWatermark input {
    width: 210px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background-color: #f7f7f7;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Soft shadow around all sides */
}

/* Hover effect */
.inputTextWatermark input:hover {
    background-color: #fff;
    /* Subtle white background */
    border-color: #f06292;
    /* Soft pink border */
    box-shadow: 0 8px 16px rgba(240, 98, 146, 0.3);
    /* Pink shadow on all sides */
    transform: scale(1.03);
    /* Slight zoom effect */
}

/* Focus effect */
.inputTextWatermark input:focus {
    border-color: #f06292;
    box-shadow: 0 8px 16px rgba(240, 98, 146, 0.3);
    outline: none;
}

#fontWatermarkWeightButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 11px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 3px;
}

#fontWatermarkWeightButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */

}

#fontWatermarkWeightButton.active {
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */
}

#fontWatermarkStyleButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 11px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 3px;
}

#fontWatermarkStyleButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */

}

#fontWatermarkStyleButton.active {
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */
}



#textWatermarkConfirmButton {
    /* background-color: #96ddeb; */
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 12px 12px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#textWatermarkConfirmButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#textWatermarkClearButton {
    /* background-color: #96ddeb; */
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 12px 12px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#textWatermarkClearButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#drawTextButton:hover {
    cursor: pointer;
    background-color: #808080;
}

#eraseTextButton:hover {
    cursor: pointer;
    background-color: #808080;
}

#drawImageWatermarkConfirmButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 12px 12px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#drawImageWatermarkConfirmButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#clearImageWatermarkConfirmButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 12px 12px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#clearImageWatermarkConfirmButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#confirmBorderButton {
    /* background-color: #96ddeb; */
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 12px 12px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#confirmBorderButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#clearBorderButton {
    /* background-color: #96ddeb; */
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 12px 12px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#clearBorderButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#uploadFrameClearButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 4px 4px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#uploadFrameClearButton:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#addTextButton {
    /* background-color: #96ddeb; */
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 12px 12px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#addTextButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#mask {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 6px 18px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#mask:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#undoMask {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 6px 18px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#undoMask:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#unMask {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 6px 6px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#unMask:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

.blurRadiusMask img:hover {
    cursor: pointer;
    border: solid 2px rgb(188, 144, 230);
}

.drawBrushModel:hover {
    cursor: pointer;
    color: rgb(13, 0, 255);
}


input.drawBrushModel {
    position: absolute;
    left: -99999em;
    top: -99999em;

    &+label {
        left: 4px;
        cursor: pointer;
        float: left;
        width: 120px;
        border-bottom: 0;
        margin-right: -1px;
        padding: .5em 1em;
        position: relative;

        &:hover {
            border-bottom: 2px solid #e3c2df;
        }
    }

    &:checked+label {
        border-bottom: 2px solid #b54ea7;
        z-index: 1;
    }
}

#fill-brush-color {
    cursor: pointer;
}

.textShapeRadio:hover {
    cursor: pointer;
    color: rgb(13, 0, 255);
}

#transparentImageSettingButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#transparentImageSettingButton:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#removeBackgroundButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#removeBackgroundButton:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#rembgRefreshMaskButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#rembgRefreshMaskButton:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#rembgConfirmButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 5px 12px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#rembgConfirmButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

input.qrCodeModeRadio {
    position: absolute;
    left: -99999em;
    top: -99999em;

    &+label {
        left: 3px;
        cursor: pointer;
        float: left;
        width: 119px;
        border-bottom: 0;
        margin-right: -1px;
        padding: .5em 1em;
        position: relative;

        &:hover {
            border-bottom: 2px solid #e3c2df;
        }
    }

    &:checked+label {
        border-bottom: 2px solid #b54ea7;
        z-index: 1;
    }
}

#clearVcardQrCode-button {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#clearVcardQrCode-button:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#confirmQrCode-button {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#confirmQrCode-button:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#uploadQrLogo-button {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#uploadQrLogo-button:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#clearUrlQrCode-button {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#clearUrlQrCode-button:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#cropConfirm-button {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#cropConfirm-button:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#clearCropConfirm-button {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#clearCropConfirm-button:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#quarterSizeButton:hover {
    cursor: pointer;
    color: rgb(95, 180, 172);
}

#halfSizeButton:hover {
    cursor: pointer;
    color: rgb(95, 180, 172);
}

#_075SizeButton:hover {
    cursor: pointer;
    color: rgb(95, 180, 172);
}

#originalSizeButton:hover {
    cursor: pointer;
    color: rgb(95, 180, 172);
}

#confirmFlipButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#confirmFlipButton:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}

#clearFlipButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#clearFlipButton:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
}


#horizontalCheckbox {
    cursor: pointer;
}

#verticalCheckbox {
    cursor: pointer;
}

#outputSizeSelect {
    cursor: pointer;
}

#textFontSelect {
    cursor: pointer;
}

/* #textWatermarkAlignSelect {
    cursor: pointer;
} */

#textWatermarkFontSelect {
    cursor: pointer;
}


#fontTextWeightButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 11px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 3px;
}

#fontTextWeightButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */

}

#fontTextWeightButton.active {
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */
}

#fontTextStyleButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 11px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 3px;
}

#fontTextStyleButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */

}

#fontTextStyleButton.active {
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */
}


#textFontDecorationButtons button {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 7.3px 10px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 3px;
    cursor: pointer;
}

#textFontDecorationButtons button:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */

}

#textFontDecorationButtons button.active {
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */
}



#textFontAllignButtons button {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 7.3px 10px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 3px;
    cursor: pointer;
}

#textFontAllignButtons button:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */

}

#textFontAllignButtons button.active {
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */
}



#textEmojiButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 7.3px 10px;
    color: white;
    /* background-color: #ffffff; */
    border-radius: 3px;
    cursor: pointer;
}

#textEmojiButton:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */

}


#textShapeButtons button {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 7.3px 10px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 3px;
    cursor: pointer;
}

#textShapeButtons button:hover {
    cursor: pointer;
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */

}

#textShapeButtons button.active {
    border: 1px solid transparent;
    background:
        linear-gradient(#ece3eb, #ece3eb) padding-box,
        /* new background */
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    /* same border */
}


/* popup */
.popup {
    position: absolute;
    background-color: #fafafa;
    width: 600px;
    height: 250px;
    border-radius: 26px;
    text-align: center;
    display: none;
    transition: all 0.5s ease;
    transition-duration: 1s;

    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    -webkit-transform: translateY(-50%) translateX(-50%);
}

.popup button {
    background-color: rgb(226, 170, 170);
    color: rgb(34, 31, 31);
    border-radius: 5px;
    height: 72px;
    width: 140px;
    border: none;
    transition-duration: 0.5s;
    font-size: 23px;
}

.popup button:hover {
    cursor: pointer;
}

/* toolTip */
.menuButtonTip {
    position: absolute;
    /* top: 250px; */
    /* left: 500px; */
    display: none;
    vertical-align: top;
    position: absolute;
    /* transform: translateX(-50%); */
    z-index: 99999;
    background: #f2f5f5;
    padding: 4px 12px;
    font-size: 1.9rem;
    font-weight: 450;
    line-height: 1.8;
    animation: fadeIn 0.6s;
    color: #040404;
    border-radius: 20px;
    filter: drop-shadow(0px 1px 4px #aaa);
}

/* qr code */
p#qrCodeButoonToolTip {
    /* height:100px; */
    display: none;
    vertical-align: top;
    position: absolute;
    transform: translateX(-50%);
    z-index: 1;
    background: #f2f5f5;
    padding: 4px 12px;
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.8;
    animation: fadeIn 0.6s;
    color: #040404;
    border-radius: 20px;
    filter: drop-shadow(0px 1px 4px #aaa);
}

/* switch */
.toggle-anime-landscape-button {
    display: flex;
    align-items: center;
    position: relative;
    width: 40px;
    height: 25px;
    border-radius: 50px;
    box-sizing: content-box;
    background-color: #ff8d8d33;
    cursor: pointer;
    transition: background-color .4s;
}

.toggle-anime-landscape-button:has(:checked) {
    background-color: #75bbff33;
}

.toggle-anime-landscape-button::before {
    position: absolute;
    left: 0px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #ff8d8d;
    content: '';
    transition: left .4s;
}

.toggle-anime-landscape-button:has(:checked)::before {
    left: 15px;
    background-color: #75bbff;
}

.toggle-anime-landscape-button::after {
    position: absolute;
    left: 13px;
    transform: translateX(-50%);
    color: #080808;
    font-weight: 600;
    font-size: .7em;
    content: '1';
    transition: left .4s;
}

.toggle-anime-landscape-button:has(:checked)::after {
    left: 27px;
    content: '2';
}

.toggle-anime-landscape-button input {
    display: none;
}

/*  */
.startCartonnization i[data-tooltip]::after {
    z-index: 99999;
    visibility: visible;

    top: 48%;

    position: fixed;
    content: attr(data-tooltip);
    /* width: max-content; */
    width: 175px;
    height: 45px;
    /* left: 50%; */
    bottom: 62%;

    font-size: 90%;
    background: #f2f5f5;
    padding: 8px 12px;
    border-radius: 10px;
    color: #040404;
    transform: scale(0);
    transition: 0.2s ease-in-out;
    border: 1px solid #e0dcc6;
    font-family: Arial, sans-serif;
    /* Add your desired font family here */

    font-weight: 300;
    line-height: 1.8;
    filter: drop-shadow(0px 1px 4px #aaa);
    text-align: left;
    /* Justify the text */
}

.startCartonnization i[data-tooltip]:hover::after {
    transform: scale(1);
    /* bottom: 8%; */
    /* left: 50%; */
    bottom: 62%;
}



.mosaicMode i[data-tooltip]::after {
    z-index: 99999;
    visibility: visible;

    top: 17%;

    position: fixed;
    content: attr(data-tooltip);
    /* width: max-content; */
    width: 175px;
    height: 25px;
    /* left: 50%; */
    bottom: 62%;

    font-size: 90%;
    background: #f2f5f5;
    padding: 8px 12px;
    border-radius: 10px;
    color: #040404;
    transform: scale(0);
    transition: 0.2s ease-in-out;
    border: 1px solid #e0dcc6;
    font-family: Arial, sans-serif;
    /* Add your desired font family here */

    font-weight: 300;
    line-height: 1.8;
    filter: drop-shadow(0px 1px 4px #aaa);
    text-align: left;
    /* Justify the text */
}

.mosaicMode i[data-tooltip]:hover::after {
    transform: scale(1);
    /* bottom: 8%; */
    /* left: 50%; */
    bottom: 62%;
}

.blurMaskMode i[data-tooltip]::after {
    z-index: 99999;
    visibility: visible;

    top: 17%;

    position: fixed;
    content: attr(data-tooltip);
    /* width: max-content; */
    width: 175px;
    height: 45px;
    /* left: 50%; */
    bottom: 62%;

    font-size: 90%;
    background: #f2f5f5;
    padding: 8px 12px;
    border-radius: 10px;
    color: #040404;
    transform: scale(0);
    transition: 0.2s ease-in-out;
    border: 1px solid #e0dcc6;
    font-family: Arial, sans-serif;
    /* Add your desired font family here */

    font-weight: 300;
    line-height: 1.8;
    filter: drop-shadow(0px 1px 4px #aaa);
    text-align: left;
    /* Justify the text */
}

.blurMaskMode i[data-tooltip]:hover::after {
    transform: scale(1);
    /* bottom: 8%; */
    /* left: 50%; */
    bottom: 62%;
}




.start-erasing i[data-tooltip]::after {
    z-index: 99999;
    visibility: visible;

    position: fixed;
    content: attr(data-tooltip);
    /* width: max-content; */
    width: 175px;
    height: 45px;
    /* left: 50%; */
    bottom: 62%;

    font-size: 90%;
    background: #f2f5f5;
    padding: 8px 12px;
    border-radius: 10px;
    color: #040404;
    transform: scale(0);
    transition: 0.2s ease-in-out;
    border: 1px solid #e0dcc6;
    font-family: Arial, sans-serif;
    /* Add your desired font family here */

    font-weight: 300;
    line-height: 1.8;
    filter: drop-shadow(0px 1px 4px #aaa);
    text-align: left;
    /* Justify the text */
}

.start-erasing i[data-tooltip]:hover::after {
    transform: scale(1);
    /* bottom: 8%; */
    /* left: 50%; */
    bottom: 62%;
}

.start-enhancing i[data-tooltip]::after {
    z-index: 99999;
    visibility: visible;

    position: fixed;
    content: attr(data-tooltip);
    /* width: max-content; */
    width: 175px;
    height: 45px;
    /* left: 50%; */
    bottom: 42%;

    font-size: 90%;
    background: #f2f5f5;
    padding: 8px 12px;
    border-radius: 10px;
    color: #040404;
    transform: scale(0);
    transition: 0.2s ease-in-out;
    border: 1px solid #e0dcc6;
    font-family: Arial, sans-serif;
    /* Add your desired font family here */

    font-weight: 300;
    line-height: 1.8;
    filter: drop-shadow(0px 1px 4px #aaa);
    text-align: left;
    /* Justify the text */
}

.start-enhancing i[data-tooltip]:hover::after {
    transform: scale(1);
    /* bottom: 8%; */
    /* left: 50%; */
    bottom: 42%;
}

i[data-tooltip]::after {
    z-index: 99999;
    visibility: visible;

    position: absolute;
    content: attr(data-tooltip);
    /* width: max-content; */
    min-width: 175px;
    /* left: 50%; */
    /* bottom: 8%; */

    /* left: 0%;
    bottom: -35%; */

    font-size: 90%;
    background: #f2f5f5;
    padding: 8px 12px;
    border-radius: 10px;
    color: #040404;
    transform: scale(0);
    transition: 0.2s ease-in-out;
    border: 1px solid #e0dcc6;
    font-family: Arial, sans-serif;
    /* Add your desired font family here */

    font-weight: 300;
    line-height: 1.8;
    filter: drop-shadow(0px 1px 4px #aaa);
    text-align: left;
    /* Justify the text */
}

i[data-tooltip]:hover::after {
    transform: scale(1);
    /* bottom: 8%; */
    /* left: 50%; */
}

/* switch */
.toggle-anime-face-button {
    display: flex;
    align-items: center;
    position: relative;
    width: 40px;
    height: 25px;
    border-radius: 50px;
    box-sizing: content-box;
    background-color: #ff8d8d33;
    cursor: pointer;
    transition: background-color .4s;
}

.toggle-anime-face-button:has(:checked) {
    background-color: #75bbff33;
}

.toggle-anime-face-button::before {
    position: absolute;
    left: 0px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #ff8d8d;
    content: '';
    transition: left .4s;
}

.toggle-anime-face-button:has(:checked)::before {
    left: 15px;
    background-color: #75bbff;
}

.toggle-anime-face-button::after {
    position: absolute;
    left: 13px;
    transform: translateX(-50%);
    color: #080808;
    font-weight: 600;
    font-size: .7em;
    content: '1';
    transition: left .4s;
}

.toggle-anime-face-button:has(:checked)::after {
    left: 27px;
    content: '2';
}

.toggle-anime-face-button input {
    display: none;
}

/*  */

#image2AnimeButton {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e7cf43, #e46533, #cf23cf) border-box;
    padding: 8px 8px;
    color: #000000;
    background-color: #ffffff;
    border-radius: 8px;
    /* margin-bottom: 5px; */
    cursor: pointer;
}

#image2AnimeButton:hover {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(60deg, #e912e9, #e95318, #ebc0c0) border-box;
    cursor: pointer;
}

#exposureSlider:hover {
    background-color: rgb(104, 233, 130);
}

#noiseSlider:hover {
    background-color: rgb(104, 233, 130);
}

#clipSlider:hover {
    background-color: rgb(104, 233, 130);
}

#sharpenSlider:hover {
    background-color: rgb(104, 233, 130);
}

#exposureSlider:hover {
    background-color: rgb(104, 233, 130);
}

#stackBlurSlider:hover {
    background-color: rgb(104, 233, 130);
}

#brightnessSlider:hover {
    background-color: rgb(104, 233, 130);
}

#contrastSlider:hover {
    background-color: rgb(104, 233, 130);
}

#grayscaleSlider:hover {
    background-color: rgb(104, 233, 130);
}

#saturationSlider:hover {
    background-color: rgb(104, 233, 130);
}

#sepiaSlider:hover {
    background-color: rgb(104, 233, 130);
}

#hueRotateSlider:hover {
    background-color: rgb(104, 233, 130);
}

#blurSlider:hover {
    background-color: rgb(104, 233, 130);
}

#invertSlider:hover {
    background-color: rgb(104, 233, 130);
}

#gammaSlider:hover {
    background-color: rgb(104, 233, 130);
}

#vibrancescaleSlider:hover {
    background-color: rgb(104, 233, 130);
}


#line-width-slider:hover {
    background-color: rgb(104, 233, 130);
}

#textSizeSlider:hover {
    background-color: rgb(104, 233, 130);
}

#textHeightLineSlider:hover {
    background-color: rgb(104, 233, 130);
}


#textBackgroundOpacitySlider:hover {
    background-color: rgb(104, 233, 130);
}

.text-watermark-transparency-slider #textWatermarkTransparencySlidder:hover {
    background-color: rgb(104, 233, 130);
}

.text-watermark-size-slider #textWatermarkSizeSlidder:hover {
    background-color: rgb(104, 233, 130);
}

.logo-watermark-size-slider #logoWatermarkSizeSlidder:hover {
    background-color: rgb(104, 233, 130);
}

#borderSizeSlider:hover {
    background-color: rgb(104, 233, 130);
}

#borderRadiusSlider:hover {
    background-color: rgb(104, 233, 130);
}

#mosaicSizeSlider:hover {
    background-color: rgb(104, 233, 130);
}

#zoomCropSlidder:hover {
    background-color: rgb(104, 233, 130);
}

#rotateCropSlidder:hover {
    background-color: rgb(104, 233, 130);
}

#rembg-line-width-slider:hover {
    background-color: rgb(104, 233, 130);
}

/* text background color */
.textBgColors .textBgOption:hover {
    cursor: pointer;
}

.textBgRow .textBgOptions {
    margin: 10px 30px 0px 5px;
    padding-left: 20px;
    list-style: none;
}

.textBgColors .textBgOptions {
    display: flex;
    justify-content: space-between;
}

.textBgColors .textBgOption {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    margin-top: 3px;
    position: relative;
}

.textBgColors .textBgOption:nth-child(1) {
    background-color: #fff;
    border: 1px solid #bfbfbf;
}

.textBgColors .textBgOption:nth-child(2) {
    background-color: #000;
}

.textBgColors .textBgOption:nth-child(3) {
    background-color: #E02020;
}

.textBgColors .textBgOption:nth-child(4) {
    background-color: #6DD400;
}

.textBgColors .textBgOption:nth-child(5) {
    background-color: #4A98F7;
}

.textBgColors .textBgOption.selected::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    height: 6px;
    width: 6px;
    background: inherit;
    border-radius: inherit;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
}

.textBgColors .textBgOption:first-child.selected::before {
    border-color: #ccc;
}

/* text color */
.textColors .textOption:hover {
    cursor: pointer;
}

.textRow .textOptions {
    margin: 10px 30px 0px 5px;
    padding-left: 20px;
    list-style: none;
}

.textColors .textOptions {
    display: flex;
    justify-content: space-between;
}

.textColors .textOption {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    margin-top: 3px;
    position: relative;
}

.textColors .textOption:nth-child(1) {
    background-color: #fff;
    border: 1px solid #bfbfbf;
}

.textColors .textOption:nth-child(2) {
    background-color: #000;
}

.textColors .textOption:nth-child(3) {
    background-color: #E02020;
}

.textColors .textOption:nth-child(4) {
    background-color: #6DD400;
}

.textColors .textOption:nth-child(5) {
    background-color: #4A98F7;
}

.textColors .textOption.selected::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    height: 6px;
    width: 6px;
    background: inherit;
    border-radius: inherit;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
}

.textColors .textOption:first-child.selected::before {
    border-color: #ccc;
}

/* text shadow color */
.textShadowColors .textShadowOption:hover {
    cursor: pointer;
}

.textShadowRow .textShadowOptions {
    margin: 10px 30px 0px 5px;
    padding-left: 20px;
    list-style: none;
}

.textShadowColors .textShadowOptions {
    display: flex;
    justify-content: space-between;
}

.textShadowColors .textShadowOption {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    margin-top: 3px;
    position: relative;
}

.textShadowColors .textShadowOption:nth-child(1) {
    background-color: #fff;
    border: 1px solid #bfbfbf;
}

.textShadowColors .textShadowOption:nth-child(2) {
    background-color: #000;
}

.textShadowColors .textShadowOption:nth-child(3) {
    background-color: #E02020;
}

.textShadowColors .textShadowOption:nth-child(4) {
    background-color: #6DD400;
}

.textShadowColors .textShadowOption:nth-child(5) {
    background-color: #4A98F7;
}

.textShadowColors .textShadowOption.selected::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    height: 6px;
    width: 6px;
    background: inherit;
    border-radius: inherit;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
}

.textShadowColors .textShadowOption:first-child.selected::before {
    border-color: #ccc;
}


/* text watermark color */
.textWatermarkColors .textWatermarkOption:hover {
    cursor: pointer;
}

.textWatermarkRow .textWatermarkOptions {
    margin: 10px 30px 0px 5px;
    padding-left: 20px;
    list-style: none;
}

.textWatermarkColors .textWatermarkOptions {
    display: flex;
    justify-content: space-between;
}

.textWatermarkColors .textWatermarkOption {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    margin-top: 3px;
    position: relative;
}

.textWatermarkColors .textWatermarkOption:nth-child(1) {
    background-color: #fff;
    border: 1px solid #bfbfbf;
}

.textWatermarkColors .textWatermarkOption:nth-child(2) {
    background-color: #000;
}

.textWatermarkColors .textWatermarkOption:nth-child(3) {
    background-color: #E02020;
}

.textWatermarkColors .textWatermarkOption:nth-child(4) {
    background-color: #6DD400;
}

.textWatermarkColors .textWatermarkOption:nth-child(5) {
    background-color: #4A98F7;
}

.textWatermarkColors .textWatermarkOption.selected::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    height: 6px;
    width: 6px;
    background: inherit;
    border-radius: inherit;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
}

.textWatermarkColors .textWatermarkOption:first-child.selected::before {
    border-color: #ccc;
}

/* text watermark background color */
.textWatermarkBgColors .textBgWatermarkOption:hover {
    cursor: pointer;
}

.textBgWatermarkRow .textBgWatermarkOptions {
    margin: 10px 30px 0px 5px;
    padding-left: 20px;
    list-style: none;
}

.textWatermarkBgColors .textBgWatermarkOptions {
    display: flex;
    justify-content: space-between;
}

.textWatermarkBgColors .textBgWatermarkOption {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    margin-top: 3px;
    position: relative;
}

.textWatermarkBgColors .textBgWatermarkOption:nth-child(1) {
    background-color: #fff;
    border: 1px solid #bfbfbf;
}

.textWatermarkBgColors .textBgWatermarkOption:nth-child(2) {
    background-color: #000;
}

.textWatermarkBgColors .textBgWatermarkOption:nth-child(3) {
    background-color: #E02020;
}

.textWatermarkBgColors .textBgWatermarkOption:nth-child(4) {
    background-color: #6DD400;
}

.textWatermarkBgColors .textBgWatermarkOption:nth-child(5) {
    background-color: #4A98F7;
}

.textWatermarkBgColors .textBgWatermarkOption.selected::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    height: 6px;
    width: 6px;
    background: inherit;
    border-radius: inherit;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
}

.textWatermarkBgColors .textBgWatermarkOption:first-child.selected::before {
    border-color: #ccc;
}


/* text color */
.textColors .textOption:hover {
    cursor: pointer;
}

.textRow .textOptions {
    margin: 10px 30px 0px 5px;
    padding-left: 20px;
    list-style: none;
}

.textColors .textOptions {
    display: flex;
    justify-content: space-between;
}

.textColors .textOption {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    margin-top: 3px;
    position: relative;
}

.textColors .textOption:nth-child(1) {
    background-color: #fff;
    border: 1px solid #bfbfbf;
}

.textColors .textOption:nth-child(2) {
    background-color: #000;
}

.textColors .textOption:nth-child(3) {
    background-color: #E02020;
}

.textColors .textOption:nth-child(4) {
    background-color: #6DD400;
}

.textColors .textOption:nth-child(5) {
    background-color: #4A98F7;
}

.textColors .textOption.selected::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    height: 6px;
    width: 6px;
    background: inherit;
    border-radius: inherit;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
}

.textColors .textOption:first-child.selected::before {
    border-color: #ccc;
}

/* border color */
.borderColors .borderOption:hover {
    cursor: pointer;
}

.borderRow .borderOptions {
    margin: 10px 30px 0px 5px;
    padding-left: 20px;
    list-style: none;
}

.borderColors .borderOptions {
    display: flex;
    justify-content: space-between;
}

.borderColors .borderOption {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    margin-top: 3px;
    position: relative;
}

.borderColors .borderOption:nth-child(1) {
    background-color: #fff;
    border: 1px solid #bfbfbf;
}

.borderColors .borderOption:nth-child(2) {
    background-color: #000;
}

.borderColors .borderOption:nth-child(3) {
    background-color: #E02020;
}

.borderColors .borderOption:nth-child(4) {
    background-color: #6DD400;
}

.borderColors .borderOption:nth-child(5) {
    background-color: #4A98F7;
}

.borderColors .borderOption.selected::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    height: 6px;
    width: 6px;
    background: inherit;
    border-radius: inherit;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
}

.borderColors .borderOption:first-child.selected::before {
    border-color: #ccc;
}

/* border background color */
.borderBgColors .borderBgOption:hover {
    cursor: pointer;
}

.borderBgRow .borderBgOptions {
    margin: 10px 30px 0px 5px;
    padding-left: 20px;
    list-style: none;
}

.borderBgColors .borderBgOptions {
    display: flex;
    justify-content: space-between;
}

.borderBgColors .borderBgOption {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    margin-top: 3px;
    position: relative;
}

.borderBgColors .borderBgOption:nth-child(1) {
    background-color: #fff;
    border: 1px solid #bfbfbf;
}

.borderBgColors .borderBgOption:nth-child(2) {
    background-color: #000;
}

.borderBgColors .borderBgOption:nth-child(3) {
    background-color: #E02020;
}

.borderBgColors .borderBgOption:nth-child(4) {
    background-color: #6DD400;
}

.borderBgColors .borderBgOption:nth-child(5) {
    background-color: #4A98F7;
}

.borderBgColors .borderBgOption.selected::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    height: 6px;
    width: 6px;
    background: inherit;
    border-radius: inherit;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
}

.borderBgColors .borderBgOption:first-child.selected::before {
    border-color: #ccc;
}


/* remove (transparent image) background shadow color */
.rembgShadowColors .rembgShadowColorOption:hover {
    cursor: pointer;
}

.rembgShadowColorRow .rembgShadowColorOptions {
    margin: 10px 30px 0px 5px;
    padding-left: 20px;
    list-style: none;
}

.rembgShadowColors .rembgShadowColorOptions {
    display: flex;
    justify-content: space-between;
}

.rembgShadowColors .rembgShadowColorOption {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    margin-top: 3px;
    position: relative;
}

.rembgShadowColors .rembgShadowColorOption:nth-child(1) {
    background-color: #d1d1d1;
    /* border: 1px solid #bfbfbf; */
}

.rembgShadowColors .rembgShadowColorOption:nth-child(2) {
    background-color: #a7a7a7;
}

.rembgShadowColors .rembgShadowColorOption:nth-child(3) {
    background-color: #7b7b7b;
}

.rembgShadowColors .rembgShadowColorOption:nth-child(4) {
    background-color: #525252;
}

.rembgShadowColors .rembgShadowColorOption:nth-child(5) {
    background-color: #232323;
}

.rembgShadowColors .rembgShadowColorOption.selected::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    height: 6px;
    width: 6px;
    background: inherit;
    border-radius: inherit;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
}

/* .rembgShadowColors .rembgShadowColorOption:first-child.selected::before { */
/* border-color: #ccc; */
/* } */

#rembgShadowColorPicker {
    color: #cddbe3;
}

#rembgShadowColorPicker:hover {
    color: #61d8f0;
}

/* remove (transparent image) background color */
.rembgColors .rembgColorOption:hover {
    cursor: pointer;
}

.rembgColorRow .rembgColorOptions {
    margin: 10px 30px 0px 5px;
    padding-left: 20px;
    list-style: none;
}

.rembgColors .rembgColorOptions {
    display: flex;
    justify-content: space-between;
}

.rembgColors .rembgColorOption {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    margin-top: 3px;
    position: relative;
}

.rembgColors .rembgColorOption:nth-child(1) {
    background-color: #fff;
    border: 1px solid #bfbfbf;
}

.rembgColors .rembgColorOption:nth-child(2) {
    background-color: #8f8f8f;
}

.rembgColors .rembgColorOption:nth-child(3) {
    background-color: #f7b5b5;
}

.rembgColors .rembgColorOption:nth-child(4) {
    background-color: #c4f3cd;
}

.rembgColors .rembgColorOption:nth-child(5) {
    background-color: #b1e5ec;
}

.rembgColors .rembgColorOption.selected::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    height: 6px;
    width: 6px;
    background: inherit;
    border-radius: inherit;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
}

.rembgColors .rembgColorOption:first-child.selected::before {
    border-color: #ccc;
}

/* collage background colors */

.collageBgColors .collageBgOption:hover {
    cursor: pointer;
}

.collageBgRow .collageBgOptions {
    margin: 10px 30px 0px 5px;
    padding-left: 20px;
    list-style: none;
}

.collageBgColors .collageBgOptions {
    display: flex;
    justify-content: space-between;
}

.collageBgColors .collageBgOption {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    margin-top: 3px;
    position: relative;
}

.collageBgColors .collageBgOption:nth-child(1) {
    background-color: #fff;
    border: 1px solid #bfbfbf;
}

.collageBgColors .collageBgOption:nth-child(2) {
    background-color: #000;
}

.collageBgColors .collageBgOption:nth-child(3) {
    background-color: #E02020;
}

.collageBgColors .collageBgOption:nth-child(4) {
    background-color: #6DD400;
}

.collageBgColors .collageBgOption:nth-child(5) {
    background-color: #4A98F7;
}

.collageBgColors .collageBgOption.selected::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 50%;
    height: 6px;
    width: 6px;
    background: inherit;
    border-radius: inherit;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
}

.collageBgColors .collageBgOption:first-child.selected::before {
    border-color: #ccc;
}

#collageBackgroundColorPicker {
    color: #cddbe3;
}

#collageBackgroundColorPicker:hover {
    color: #61d8f0;
}

/*  */
#brushColorPicker {
    color: #cddbe3;
}

#brushColorPicker:hover {
    color: #61d8f0;
}


#gradient1BrushColorPicker {
    color: #cddbe3;
}

#gradient1BrushColorPicker:hover {
    color: #61d8f0;
}

#gradient2BrushColorPicker {
    color: #cddbe3;
}

#gradient2BrushColorPicker:hover {
    color: #61d8f0;
}

#gradient3BrushColorPicker {
    color: #cddbe3;
}

#gradient3BrushColorPicker:hover {
    color: #61d8f0;
}


#textColorPicker {
    color: #cddbe3;
}

#textColorPicker:hover {
    color: #61d8f0;
}

#textBackgroundColorPicker {
    color: #cddbe3;
}

#textBackgroundColorPicker:hover {
    color: #61d8f0;
}

#rembgColorPicker {
    color: #cddbe3;
}

#rembgColorPicker:hover {
    color: #61d8f0;
}

#textWatermarkColorPicker {
    color: #cddbe3;
}

#textWatermarkColorPicker:hover {
    color: #61d8f0;
}

#textWatermarkBgColorPicker {
    color: #cddbe3;
}

#textWatermarkBgColorPicker:hover {
    color: #61d8f0;
}

#borderColorPicker {
    color: #cddbe3;
}

#borderColorPicker:hover {
    color: #61d8f0;
}

#borderColorbackgroundPicker {
    color: #cddbe3;
}

#borderColorbackgroundPicker:hover {
    color: #61d8f0;
}

/*  */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.wrapper {
    width: 240px;
    margin: 0 auto;

    .twentytwenty-container {
        margin: 0 auto;
    }
}

/* toggle switch 3 states for inpaint draw/erase setting */
/* * {
    margin: 0px;
    padding: 0px;
} */

.toggle_inpaint_radio {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    margin: 4px auto;
    overflow: hidden;
    padding: 0 !important;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    position: relative;
    height: 36px;
    width: 128px;
    transition: all .4s ease;
}

.toggle_inpaint_radio.no {
    background: #75bbff;
    transition: all .4s ease;
}

.toggle_inpaint_radio.yes {
    background: #ff8d8d;
    transition: all .4s ease;
}

.toggle_inpaint_radio>* {
    float: left;
}

.toggle_inpaint_radio input[type=radio] {
    display: none;
    /*position: fixed;*/
}

.toggle_inpaint_radio label {
    font: 90%/1.618 "Source Sans Pro";
    color: rgba(255, 255, 255, .9);
    z-index: 0;
    display: block;
    font-size: 10px;
    width: 40px;
    height: 20px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1;
    text-align: center;
    position: relative;
    top: 0px;
}

.toggle_inpaint_option_slider {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 2px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -o-transition: all .4s ease;
    -ms-transition: all .4s ease;
    transition: all .4s ease;
    box-shadow: 2px 2px 4px rgba(75, 75, 75, .5);
    border: 1px solid #FFF;
}

#first_toggle_inpaint:checked~.toggle_inpaint_option_slider {
    background: #e9e9e9;
    left: 4px;
}

#second_toggle_inpaint:checked~.toggle_inpaint_option_slider {
    background: #e9e9e9;
    left: 50px;
}

#third_toggle_inpaint:checked~.toggle_inpaint_option_slider {
    background: #e9e9e9;
    left: 94px;
}

/*  */

/* toggle switch 3 states for blurMask draw/erase setting */
/* * {
    margin: 0px;
    padding: 0px;
} */

.toggle_blurMask_radio {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    margin: 4px auto;
    overflow: hidden;
    padding: 0 !important;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    position: relative;
    height: 36px;
    width: 128px;
    transition: all .4s ease;
}

.toggle_blurMask_radio.no {
    background: #75bbff;
    transition: all .4s ease;
}

.toggle_blurMask_radio.yes {
    background: #ff8d8d;
    transition: all .4s ease;
}

.toggle_blurMask_radio>* {
    float: left;
}

.toggle_blurMask_radio input[type=radio] {
    display: none;
    /*position: fixed;*/
}

.toggle_blurMask_radio label {
    font: 90%/1.618 "Source Sans Pro";
    color: rgba(255, 255, 255, .9);
    z-index: 0;
    display: block;
    font-size: 10px;
    width: 40px;
    height: 20px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1;
    text-align: center;
    position: relative;
    top: 0px;
}

.toggle_blurMask_option_slider {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 2px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -o-transition: all .4s ease;
    -ms-transition: all .4s ease;
    transition: all .4s ease;
    box-shadow: 2px 2px 4px rgba(75, 75, 75, .5);
    border: 1px solid #FFF;
}

#first_toggle_blurMask:checked~.toggle_blurMask_option_slider {
    background: #e9e9e9;
    left: 4px;
}

#second_toggle_blurMask:checked~.toggle_blurMask_option_slider {
    background: #e9e9e9;
    left: 50px;
}

#third_toggle_blurMask:checked~.toggle_blurMask_option_slider {
    background: #e9e9e9;
    left: 94px;
}



/* toggle switch 3 states for removebg draw/erase setting */
/* * {
    margin: 0px;
    padding: 0px;
} */

.toggle_removebg_radio {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    margin: 4px auto;
    overflow: hidden;
    padding: 0 !important;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    position: relative;
    height: 36px;
    width: 128px;
    transition: all .4s ease;
}

.toggle_removebg_radio.no {
    background: #75bbff;
    transition: all .4s ease;
}

.toggle_removebg_radio.yes {
    background: #ff8d8d;
    transition: all .4s ease;
}

.toggle_removebg_radio>* {
    float: left;
}

.toggle_removebg_radio input[type=radio] {
    display: none;
    /*position: fixed;*/
}

.toggle_removebg_radio label {
    font: 90%/1.618 "Source Sans Pro";
    color: rgba(255, 255, 255, .9);
    z-index: 0;
    display: block;
    font-size: 10px;
    width: 40px;
    height: 20px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 1;
    text-align: center;
    position: relative;
    top: 0px;
}

.toggle_removebg_option_slider {
    width: 30px;
    height: 30px;
    position: absolute;
    top: 2px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -o-transition: all .4s ease;
    -ms-transition: all .4s ease;
    transition: all .4s ease;
    box-shadow: 2px 2px 4px rgba(75, 75, 75, .5);
    border: 1px solid #FFF;
}

#first_toggle_removebg:checked~.toggle_removebg_option_slider {
    background: #e9e9e9;
    left: 4px;
}

#second_toggle_removebg:checked~.toggle_removebg_option_slider {
    background: #e9e9e9;
    left: 50px;
}

#third_toggle_removebg:checked~.toggle_removebg_option_slider {
    background: #e9e9e9;
    left: 94px;
}

/*  */
@media screen and (max-height: 640px) {
    #menu ul {
        height: 480px;
        overflow-y: scroll;
    }

    /* .tempImageSave {
        height: 400px;
        overflow-y: scroll;
    } */
}

@media screen and (max-width: 1204px) {
    #imageBackground {
        width: 65%;
    }

    #fileControl {
        left: 82%;
    }

    .tempImageSave {
        left: 85%;
    }

    /* #menu ul {
        width: 80%;
    } */
}

@media screen and (max-width: 800px) {
    #imageBackground {
        width: 60%;
    }

    #fileControl {
        left: 80%;
    }

    .tempImageSave {
        left: 84%;
    }

}


#searchBgContext .input-icon {
    cursor: pointer;
}

/* Style for the loader spinner */
.searchBgLoader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top: 4px solid #4f46e5;
    /* Indigo-600 */
    border-right: 4px solid #6366f1;
    /* Indigo-500 */
    animation: spin 0.8s ease-in-out infinite;

    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);

    position: absolute;
    top: 50%;
    left: 36%;
    transform: translate(-50%, -50%);

    display: none;
    /* Initially hidden */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

.searchBgImageContainer {
    /* position: absolute; */
    /* top: 30px; */
    width: 240px;
    height: 200px;
    overflow-y: scroll;
}


.searchBgImageContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin-left: 0px;
    list-style: none;
}

.image-item {
    margin-left: 7px;
    width: 97px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
}

.image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.image-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.image-item img {
    transition: transform 0.3s ease;
}

.image-item img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* Container with glass effect and animation */
.searchBgContainer {
    position: relative;
    max-width: 235px;
    height: 40px;
    margin: 9px auto;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.searchBgContainer:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* Input field styling */
.searchBgContainer input[type="text"] {
    flex: 1;
    padding: 14px 20px;
    padding-right: 48px;
    /* for icon space */
    font-size: 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #1f2937;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.searchBgContainer input::placeholder {
    color: #9ca3af;
    transition: 0.3s;
}

.searchBgContainer input:focus::placeholder {
    opacity: 0.4;
    transform: translateX(2px);
}

/* Search icon styling with animation */
.input-icon {
    position: absolute;
    right: 24px;
    font-size: 20px;
    color: #4f46e5;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.input-icon:hover {
    transform: scale(1.2) rotate(15deg);
    color: #1d4ed8;
}

/* Input glow on focus */
.searchBgContainer:focus-within {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}


.searchBgButton {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Core button styles */
.searchBgButton button {
    position: relative;
    padding: 6px 14px;
    font-size: 12px;
    font-family: 'Segoe UI', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    z-index: 0;
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.25);
    transition: all 0.35s ease;
}

/* Glow effect on hover */
.searchBgButton button::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 50%;
}

.searchBgButton button:hover::before {
    opacity: 1;
}

.searchBgButton button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.35);
    background: linear-gradient(135deg, #6a7ddf, #8765b3);
}

.searchBgButton button:active {
    transform: scale(0.96);
}

/* Entry animation */
.searchBgButton button {
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}

.searchBgButton button:nth-child(1) {
    animation-delay: 0.1s;
}

.searchBgButton button:nth-child(2) {
    animation-delay: 0.2s;
}


#addOriginImageButton {
    padding: 8px 16px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    /* Indigo → Violet gradient */
    color: white;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(3px);
}

#addOriginImageButton:hover {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    /* Violet → Indigo on hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.4);
}

#addOriginImageButton:active {
    transform: scale(0.97);
    box-shadow: 0 5px 12px rgba(99, 102, 241, 0.2);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}