/****************************************** 
    Tool Styling (Start)
******************************************/
.upload-section {
    transition: all ease-in .2s;
    cursor: pointer;
}

.upload-section:hover {
    background-color: #F8F9FC;
}

.before-upload .leading-0 {
    line-height: 0;
    cursor: pointer;
}

.error-message-text {
    color: red;
    font-size: 14px;
    line-height: 20px;
}

/* parent response div */
.parent-response-div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* parent response div end */

/* response button start over and download-all start */
.result-text-download-all {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.result-text-download-all div {
    display: flex;
    gap: 8px;
}

.result-text-download-all div button {
    padding: 8px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    border: none;
}

.result-text-download-all div button span {
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: #000000;
    font-weight: 400;
}

.result-text-download-all div button:not(:first-child) span {
    color: #fff;
}

.result-text-download-all div button:first-child {
    background: #F1F3F7;
    transition: all ease-in .2s;
}

.result-text-download-all div button:first-child:hover {
    background: #E3E7ED;
}

.result-text-download-all div button:not(:first-child) {
    background: #414A55;
    transition: all ease-in .2s;
}

.result-text-download-all div button:not(:first-child):hover {
    background: #5E656F;
}

/* response button start over and download-all end */

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::before {
    content: attr(data-tooltip);
    visibility: hidden;
    background-color: #000;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    font-size: small;
    line-height: normal;
    transform: translateY(-50%);
    white-space: nowrap;
    right: -30%;
    top: -20px;
}

.tooltip:hover::before {
    visibility: visible;
}

.error-alert {
    text-align: left;
    color: red;
}

.error-alert ul li {
    margin-bottom: 10px;
}

.tool-section {
    background-color: var(--color-skyblue);
}

.flex-basis-50-per {
    flex-basis: 50% !important;
}

.js-toggle-choice img {
    filter: invert(1);
}

#img-prev {
    max-width: 350px;
    max-height: 185px;
    width: 100%;
}

.url-section {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f8f8f8;
    border-radius: var(--border-radius-default);
    background: var(--color-white);
    width: 350px;
}

.url-section * {
    background: rgb(255 255 255/0.4);
}

.url_prepend {
    width: 50px;
    height: 50px;
    border-radius: 7px 0 0 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 3px solid #f8f8f8;
}

.convert-btn-row {
    justify-content: space-between;
}

.response-result {
    border: 1px solid #ddd;
    cursor: default;
    padding: 20px;
    width: 100%;
    height: 340px;
    border-radius: 5px;
    background: #f8f8f8;
    overflow: auto;
}

.start-Over {
    text-align: right;
}

.js-toggle-url:hover {
    background-color: #eceff3;
}

.start-Over .js-start-over {
    display: inline-block;
    cursor: pointer;
}

.img-name {
    color: #000;
    font-size: 22px;
    font-weight: 700;
}

.submit-btn {
    background: var(--color-blackish);
    font-weight: 500;
    padding: 5px 80px;
    border-radius: var(--border-radius-default);
    color: #fff;
    margin: 0 auto;
    min-width: 100px;
}

.copy-download-btn {
    background: var(--color-blue);
    border-radius: var(--border-radius-default);
    color: #fff;
    opacity: 1;
    border: 1px solid #f6f6f6;
    padding: 5px 10px;
    cursor: pointer;
}

.loader img {
    max-height: 185px;
    width: 100px;
    height: 100px;
}

.after-upload {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    z-index: 999;
}

.after-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.file-name {
    font-size: var(--font-size-large);
}

.file-size {
    color: var(--color-D2D1D6);
}

.multiple-select-result {
    margin-top: 3rem;
}

.result-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    color: var(--color-907ad6);
    font-weight: 700;
}

.result-heading #result_label_with_count {
    font-size: var(--font-size-h2);
}

#no_of_img_result {
    font-size: var(--font-size-small) !important;
}

.result-div {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.result-div:not(:first-child) {
    margin-top: 1rem;
}

.result-div:not(:last-child) {
    padding-bottom: 1rem;
}

#result_label_with_count span {
    font-size: var(--font-size-small);
    color: #000000c2;
}

.single-result {
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 1rem;
    background-color: #f8f8f8;
    max-height: 250px;
    overflow: auto;
}

.reset-btn {
    margin-top: 1rem;
    border-radius: var(--border-radius-default);
    display: none;
    cursor: pointer;
}

.reset-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reset-btn span img {
    width: 20px;
    height: 20px;
}

.single-img-action-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.single-img-action-btns>span {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius-default);
}

.single-img-action-btns span img {
    height: 25px;
    width: 25px;
    display: flex;
}

.single-img-action-btns .tooltiptext {
    min-width: 100px;
    left: 80%;
}

.js-download-all.tooltip {
    border-bottom: unset;
    padding: 0 10px;
    background-color: var(--color-light-purple);
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--border-radius-default);
    align-items: center;
    color: #fff;
    align-self: flex-end;
}

.js-download-all * {
    font-size: var(--font-size-default);
}

.js-download-all {
    cursor: pointer;
}

.js-download-all img {
    width: 25px;
    height: 25px;
}

.js-download-all.tooltip .tooltiptext {
    min-width: 100px;
    font-size: 14px;
    bottom: 85%;
    left: 80%;
}

.close-preview {
    position: absolute;
    border: 1px solid red;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: red;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    cursor: pointer;
}

.tool-result-grid {
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 1.5rem;
}

.tool-result-grid.full-w {
    grid-template-columns: 1fr;
}

.tool-n-coffee-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.other-tool-heading {
    font-weight: 700;
    font-size: var(--font-size-medium);
    margin-bottom: 1rem;
}

.other-tool {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

a.tool-btn {
    background: #f3f7fa 0% 0% no-repeat padding-box;
    border-radius: var(--border-radius-large);
    padding: 10px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    color: #000;
    margin-bottom: 1rem;
}

a.tool-btn:hover {
    background: #fff0 linear-gradient(90deg, #a28cff 0%, #7a60ff 100%) 0% 0% no-repeat padding-box;
    color: #fff;
}

a.tool-btn:hover img {
    filter: invert(1);
}

a.tool-btn span {
    display: flex;
    align-items: center;
}

a.tool-btn span img {
    width: 25px;
    height: 25px;
}

.buy-me-coffee {
    background-color: var(--color-purple);
    padding: 1rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--border-radius-default);
}

.multiple-img-preview {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    gap: 1rem;
}

.selected-img-preview {
    padding: 0 10px 0px 0px;
    overflow: auto;
    height: auto;
    max-height: 300px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cloudflare_container {
    position: absolute;
    right: 0;
    bottom: 35px;
}

.after-img-upload .images-clear span:last-child {
    font-weight: 500;
}

.cf-turnstile {
    text-align: center;
}

.after-img-upload {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.js-single-img-preview {
    border: 1px solid #eaeaea;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.js-single-img-preview:hover {
    background: #f5f7fb;
}

.js-single-img-preview * {
    font-size: 14px;
}

.result-div .js-single-img-prev img {
    border: 1px solid #ccc;
}

.js-single-img-preview .left-preview {
    display: flex;
    gap: 10px;
    align-items: center;
}

.js-single-img-preview .img-preview-name {
    font-size: var(--font-size-small);
    font-weight: 400;
    line-height: 24px;
    color: #000000;
    max-width: 20ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.js-single-img-preview .img-preview-size {
    font-size: var(--font-size-x-small);
    color: #9DA9B5;
    line-height: 20px;
    position: relative;
    font-weight: 400;
}

.left-preview-inner {
    border: 1px solid #eaeaea;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #F5F7FB;
}

.drag-icon {
    aspect-ratio: 16/9 !important;
    height: 20px !important;
}

.js-single-img-prev .img_name {
    text-align: center;
}

.right-preview .delete-action {
    font-size: 30px;
    font-weight: 500;
    color: #909399;
    cursor: pointer;
    max-height: max-content;
}

.result-waiting .no_of_images {
    font-weight: 600;
}


.imagetotext-progress::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            #fff0 2.85%,
            rgb(169 149 253/0.909375) 53.25%,
            #a28cff 100%);
    border-radius: 3px;
    animation: progress 2s linear infinite;
}

@keyframes progress {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@media (width <=1200px) {
    .after-img-upload .images-clear {
        gap: 10px;
    }
}

@media (width <=768px) {
    .tool {
        max-width: 100%;
    }

    .tool-area {
        flex-direction: column;
    }

    .file-details {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: end !important;
        gap: 2rem;
    }

    .finshed__span {
        display: none !important;
    }

    .file-m-details {
        display: none;
    }

    .result-waiting figure figcaption span:last-child {
        font-size: 12px;
        line-height: 18px;
        display: block !important;
        color: #606060 !important;
    }
}

@media (width <=600px) {
    .result-text-download-all div button {
        padding: 6px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
        border-radius: 8px;
        border: none;
    }

    .result-text-download-all div button span {
        display: none;
    }

    .selected-img-preview {
        min-height: auto;
    }

    .footer-cards-div .footer-card-row {
        flex-direction: column;
    }

    .upload-action-btns {
        justify-content: space-between;
    }

    .multiple-img-preview {
        flex-direction: column;
    }

    .result-div {
        grid-template-columns: 1fr;
    }

    .js-single-img-prev img {
        height: 200px;
        width: 100%;
    }

}

@media (width <=425px) {
    .upload-action-btns {
        flex-direction: column;
        gap: 0.725rem;
    }

    .upload-action-btns :is(.btn-UpCd, label) {
        width: 100%;
    }

}

@media (width <=375px) {
    .tool {
        max-width: 100%;
        padding: 10px;
    }

}

/****************************************** 
        Tool Styling (End)
******************************************/

h2,
h2 * {
    font-size: 1.4em;
    font-weight: bold;
}

h3,
h3 * {
    font-weight: bold;
    font-size: 1.2rem;
}

.content-push a {
    color: var(--color-purple);
}

.tool-area {
    display: flex;
    width: 100%;
    gap: 18px;
}

.js-single-img-preview .left-preview img:not(.drag-icon) {
    width: 32px;
    height: 38px;
    object-fit: contain;
}

.result-waiting .result-waiting-card,
.result-waiting .img-title-text {
    max-width: 100%;
}

.img-text {
    max-width: 100%;
}

.text_not_found {
    position: absolute;
    display: flex;
    gap: 0;
    left: min(180px, 400px);
    top: 1rem;
    justify-content: space-between;
    align-items: center;
}

.result-waiting .img-title-text .img-text {
    font-size: var(--font-size-x-small);
    flex: auto;
    padding-right: 45px;
    padding-top: 10px;
    text-align: justify;
    border-left: 2px solid var(--color-EAEAEA);
    padding-left: 10px;
    line-height: 20px;
    height: 100px;
    max-height: 200px;
    border: none;
    resize: none;
}

.result-waiting .img-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    position: sticky;
    gap: 10px;
    top: 0;
}

.result-waiting .img-title span {
    font-size: 14px;
    max-width: 12ch;
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.result-waiting figure figcaption span:last-child {
    font-size: 12px;
    line-height: 18px;
    display: none;
}

.result-waiting .img-text-copy-download {
    position: relative;
    margin-top: 0;
    right: 0;
    gap: 5px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.finshed__span {
    font-size: 12px;
    color: #017BFF;
    background: #F1F6FF;
    padding: 2px 8px;
    text-align: center;
    align-items: center;
    font-weight: 400;
    line-height: 18px;
    display: flex;
    gap: 10px;
    border-radius: 5px;
    max-width: max-content;
}

.file__size {
    font-size: 12px;
    color: #606060;
    display: none;
}

.file-details {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.converted-file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.result-waiting .result-waiting-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--color-EAEAEA);
    border-radius: 12px;
    padding: 12px;
    position: relative;
    transition: all 0.5s;
    overflow: hidden;
    width: 100%;
}

.single_text_download_btn {
    background: #f1f3f7;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    text-align: center;
    transition: all ease-in .2s;
}

.single_text_download_btn:hover {
    background: #E3E7ED;
}

.img-title-text {
    flex: 1;
}

.row-container {
    display: flex;
    width: 100%;
    transition: all 3s;
}

.imagetotext-progress {
    width: 100%;
    height: 5px;
    position: absolute;
    overflow: hidden;
    border-radius: 0 0 5px 5px;
    background: var(--color-EAEAEA);
    bottom: 0;
    left: 0;
}

.result-waiting {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-basis: 100%;
    min-height: 370px;
}

.file-m-details {
    color: #606060;
    font-size: 12px;
}

.images-clear .start-over-btn {
    cursor: pointer;
    background: #f1f3f7;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    font-size: var(--font-size-small);
    line-height: 24px;
    font-weight: 400;
    min-width: 106px;
    margin: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all ease-in .2s;
}

.images-clear .start-over-btn:hover {
    background: #E3E7ED;
}

.right-preview .delete-action:hover {
    color: red;
}

.after-img-upload .images-clear {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 0px 0px;
    position: relative;
}

.convert-btn {
    color: #fff;
    border-radius: 8px;
    padding: 8px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #000000;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    transition: all ease-in .2s;
}

.convert-btn:hover {
    background: #262626;
}

.finished-err{
    display: flex !important;
}

@media only screen and (max-width: 550px) {
    .file__size {
        display: flex;
    }

    .single_text_del_btn {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .file__detail {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .file__detail p {
        font-size: 12px;
        line-height: 20px;
    }

    .result-waiting .img-text-copy-download {
        gap: 0;
    }
}