/****************************************** 
    Tool Styling (Start)
******************************************/

.tooltip-jpt-to-word .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 #fff0 #fff0 #fff0;
}

.tooltip-jpt-to-word {
    cursor: pointer;
}

.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;
}

.tooltip-jpt-to-word::before {
    content: none !important;
}

.tooltip-jpt-to-word .tooltiptext {
    position: absolute;
    top: -50px !important;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    left: -100% !important;
    background: #555;
    text-align: center;
    color: #fff;
    display: none;
}

.tooltip-jpt-to-word:hover .tooltiptext {
    display: block !important;
}

.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;
    overflow: auto;
    height: auto;
    max-height: 320px;
    min-height: 320px;
}

.after-img-upload .images-clear {
    display: flex;
    justify-content: space-between;
    padding: 8px 13px 0;
    position: relative;
}

.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%;
}

.js-single-img-preview {
    border: 1px solid #eaeaea;
    padding: 10px;
    border-radius: var(--border-radius-large);
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.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;
}

.js-single-img-preview .img-preview-name {
    font-size: var(--font-size-small);
    font-weight: 400;
}

.js-single-img-preview .img-preview-size {
    font-size: var(--font-size-x-small);
    color: #606060;
    position: relative;
    top: -5px;
}

.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;
    height: 100%;
}

.result-waiting {
    flex-basis: 100%;
    min-height: 370px;
}

.result-waiting .header {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    margin-top: -13px;
}

.result-waiting .no_of_images {
    font-weight: 600;
}

.imagetotext-progress {
    width: 100%;
    height: 5px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 5px 5px;
    background: var(--color-EAEAEA);
}

.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%);
    }
}

.result-waiting .result-waiting-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--color-EAEAEA);
    box-shadow: 0 5px 20px rgb(0 0 0/0.05);
    border-radius: var(--border-radius-large);
    padding: 5px;
    position: relative;
    margin-top: 5px;
    transition: all 0.3s;
}

.result-waiting .img-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 0;
    border-right: 1px solid var(--color-EAEAEA);
    padding: 5px;
}

.result-waiting .img-title span {
    font-size: 12px;
}

.result-waiting .img-text div {
    font-size: var(--font-size-x-small);
    line-height: 20px;
}

.result-waiting .img-text-copy-download {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    position: absolute;
    right: 20px;
    gap: 5px;
}

.result-waiting .result-text-download-all {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.result-waiting .result-text-download-all button {
    border: none;
    padding: 2px 12px;
    border-radius: 8px;
    font-size: var(--font-size-small);
}

.result-waiting .result-text-download-all button img {
    vertical-align: text-bottom;
    width: 18px;
    height: 18px;
}

.result-waiting .start-over-btn {
    background: #f1f3f7;
    border: none;
    padding: 0 15px;
    border-radius: 5px;
    font-size: var(--font-size-small);
    width: 150px;
    margin: 0 auto;
}

.result-waiting .start-over-btn:hover {
    background: #d2d5db;
}

.images-clear .start-over-btn {
    cursor: pointer;
    background: #f1f3f7;
    border: none;
    padding: 1px 2rem;
    border-radius: 5px;
    font-size: var(--font-size-small);
    min-width: 150px;
    margin: unset;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-waiting .start-over-btn img {
    vertical-align: text-bottom;
    width: 18px;
    height: 18px;
}

.result-waiting .download-all-btn {
    background: #414a55;
    color: #fff;
}

.result-waiting .download-all-btn:hover {
    background: #1f2a36;
}

.result-waiting .img-text-copy-download img {
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
}

.upload-section {
    width: 100%;
}

.upload-section:hover {
    background-color: #f8f9fc;
    cursor: pointer;
}

.selection-div {
    display: flex;
    gap: 10px;
}

.browse-btn .browse-drop-content {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    background: #f9f9f9;
    min-width: 100%;
    box-shadow: 0 8px 16px 0 rgb(0 0 0/0.2);
    border-radius: var(--border-radius-default);
    border: 1px solid #ccc;
}

.browse-btn .browse-drop-content label {
    color: #000;
    padding: 3px 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.browse-btn .browse-drop-content * {
    font-size: var(--font-size-x-small);
}

.browse-btn .browse-drop-content a:hover {
    background: #f1f1f1;
}

#reset_btn {
    color: #000;
    background: var(--color-f6f6f6);
}

@media (width <=1200px) {
    .after-img-upload .images-clear {
        gap: 10px;
        padding-bottom: 1rem;
    }
}

@media (width <=1024px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .convert-btn-row {
        margin-bottom: 2rem;
    }
}

@media (width <=768px) {
    .tool {
        margin-top: 2rem;
        max-width: 100%;
    }

    .tool.home {
        padding: 1rem;
    }

    .tool-result-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (width <=600px) {
    .after-img-upload .images-clear {
        padding: 8px;
        padding-bottom: 1rem;
        flex-direction: column-reverse;
        align-items: center;
    }

    .tool-area {
        flex-direction: column;
        gap: 1.5rem;
    }

    .selected-img-preview {
        padding: 0;
        margin-bottom: 1rem;
        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%;
    }

    .result-waiting .result-text-download-all {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (width <=425px) {
    .result-waiting .result-text-download-all div {
        display: flex;
        gap: 10px;
    }

    .upload-action-btns {
        flex-direction: column;
        gap: 0.725rem;
    }

    .upload-action-btns :is(.btn-UpCd, label) {
        width: 100%;
    }

    .result-waiting .result-text-download-all > div {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

@media (width <=375px) {
    .tool-grid {
        display: block;
    }

    .result__action .result-text-download-all {
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }

    .tool {
        margin-top: 5px;
        max-width: 100%;
        padding: 5px;
    }

    .tool.home {
        padding: unset;
    }
}

/****************************************** 
        Tool Styling (End)
******************************************/

h2,
h2 * {
    font-size: 1.4em;
    font-weight: bold;
}

h3,
h3 * {
    font-weight: bold;
    font-size: 1.2rem;
}

.content-section :is(ol, ul) {
    margin-left: 40px;
}

.content-push a {
    color: var(--color-purple);
}

.tool-area {
    width: 100%;
    display: flex;
}

.js-single-img-preview .left-preview img:not(.drag-icon) {
    width: 32px;
    height: 38px;
    object-fit: contain;
}

.result-waiting .img-title img {
    min-height: 80px;
    border-radius: 5px;
    width: 150px;
    aspect-ratio: 16/9;
    object-fit: none;
}

.result-waiting .img-title-text {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    gap: 1rem;
}

.result-waiting .result-waiting-card,
.result-waiting .img-title-text {
    max-width: 100% !important;
}

.img-text {
    max-width: 100% !important;
}

.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-top: 10px;
    padding-right: 45px;
    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;
}

.error-message {
    color: red;
}

.nav-links ul {
    margin: 0;
}