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

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

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

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

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

.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;
}


.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;
}

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

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

.selected-img-preview::-webkit-scrollbar {
    background: transparent;
}

.selected-img-preview::-webkit-scrollbar-thumb {
    background: #eaeaea;
}

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

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

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

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

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

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

.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;
}

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

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

.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,
.result-waiting .img-title-text {
    max-width: 100%;
}

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

.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;
}

.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;
}

.result-waiting .result-waiting-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: inset 0px 0px 0px 1px 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;
}

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

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

.images-clear .start-over-btn,
.images-clear .clear-all-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,
.images-clear .clear-all-btn:hover {
    background: #E3E7ED;
}

.after-img-upload .images-clear {
    display: flex;
    align-items: center;
    justify-content: space-between;
    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 (width <=1200px) {
    .after-img-upload .images-clear {
        gap: 10px;
    }
}

@media (width <=768px) {

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

    .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;
    }
}