/****************************************** 
    Tool Styling (Start)
******************************************/

.clear-history-btn {
    display: flex;
    padding: 0 6px;
    cursor: pointer;
}
#placeHolder {
    font-size: 16px;
    color: #9da9b5;
    padding: 10px;
}


.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);
}

.tool-area {
    display: flex;
}

.flex-basis-50-per {
    flex-basis: 50% !important;
}

.tool {
    padding: 1rem;
    background-color: #fff;
    max-width: 85%;
    margin: 1rem auto 0;
    border-radius: 15px;
    position: relative;
}

.upload-section {
    padding: 0;
    border-radius: var(--border-radius-large);
    min-height: 350px;
    border: 3px dashed #ddddf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 100%;
    transition: 0.3s all;
}

.before-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.upload-area {
    min-height: 300px;
    border: unset;
}

.drag-n-drop-text {
    width: 100%;
    font-weight: 400;
    color: var(--color-blackish);
    line-height: 1.5;
    font-size: var(--font-size-medium);
}

.drag-n-drop-text small {
    font-size: var(--font-size-small);
    font-weight: 300;
    color: #9da9b5;
    display: inline-block;
    width: min(400px, calc(100% - 1rem));
}

.browse-btn {
    min-width: 150px;
    text-align: center;
    background-color: #f1f3f7;
    border-radius: var(--border-radius-default);
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.browse-btn img {
    width: 15px;
    aspect-ratio: 1/1;
}

.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%;
}



.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;
}

.js-single-img-preview .left-preview img:not(.drag-icon) {
    width: 70px;
    height: 60px;
    border-radius: 5px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border: 1px solid #ccc;
}

.left-preview-inner {
    display: flex;
    align-items: center;
}

.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%;
}

.right-preview .delete-action:hover {
    color: #e85353;
}

.tool-grid {
    display: grid;
    gap: 1rem;
    box-shadow: 0 5px 75px rgb(0 78 149/9%);
}

.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-text {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    gap: 1rem;
}

.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-title-text .img-text {
    font-size: var(--font-size-x-small);
    flex: auto;
    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;
}

.result-waiting .img-text div {
    font-size: var(--font-size-x-small);
    line-height: 20px;
}

.result-waiting .img-title img {
    min-height: 80px;
    min-width: 80px;
    border-radius: 5px;
    width: 150px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.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 {
    width: 25px;
    height: 25px;
    cursor: pointer;
    background: #f1f3f7;
    padding: 5px;
    border-radius: 5px;
}

.upload-section-img {
    aspect-ratio: 4/3;
    width: 130px;
    margin-bottom: -10px;
    cursor: pointer;
}

.selection-div {
    display: flex;
    gap: 10px;
}

.browse-btn .browse-dropbtn {
    color: #fff;
    font-weight: 400;
    border: none;
    cursor: pointer;
    min-width: 150px;
    width: 100%;
    background-color: #fff0;
    display: flex;
    align-items: stretch;
}

.browse-dropbtn :is(span, label) {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-right-radius: var(--border-radius-default);
    border-bottom-right-radius: var(--border-radius-default);
    padding: 3px 0;
    color: #000;
}

.browse-dropbtn label:first-child {
    flex: 3;
    border-radius: var(--border-radius-default);
    cursor: pointer;
    gap: 5px;
    min-width: fit-content;
    padding: 5px 10px;
}

.browse-dropbtn span:last-child {
    flex: 1;
    background-color: #e8ebf0;
    min-width: fit-content;
    padding: 5px 10px;
}

.browse-btn:hover .browse-dropbtn label:first-child {
    background-color: #eceff3;
}

.browse-btn:hover .browse-dropbtn span:last-child {
    background-color: #e3e6ec;
}

.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;
}

.url-switch,
.browse-camera-option {
    border: 1px solid #eaeaea;
    padding: 0 10px;
    border-radius: var(--border-radius-default);
    display: flex;
    align-items: center;
}

.url-input-div {
    display: flex;
    background-color: #f6f8fc;
    padding: 5px 20px;
    gap: 10px;
    border-radius: var(--border-radius-default);
    align-items: center;
}

.url-icon.active {
    filter: brightness(0) saturate(100%) invert(56%) sepia(62%) saturate(3247%)
        hue-rotate(219deg) brightness(102%) contrast(104%);
}

.url-input-div .file-url {
    background-color: #fff0;
    border: none;
    font-size: 14px;
}

.file-url::placeholder {
    color: #aab3bf;
    opacity: 1;
    font-size: var(--font-size-small);
}

.tool.jpg-to-word {
    display: flex;
    column-gap: 1rem;
    padding: 1rem;
}

.tool.jpg-to-word .left {
    flex: 1;
    background: #f5f5f5;
    border-radius: var(--border-radius-default);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 10px;
    border-radius: var(--border-radius-default);
}

.tool.jpg-to-word .right {
    flex: 4;
    padding: 1.5rem 0;
}

.tool.text-to-img {
    display: flex;
    gap: 3rem;
}

.tool.text-to-img :is(.left, .right) {
    flex: 1;
}

#reset_btn {
    color: #000;
    background: var(--color-f6f6f6);
}

#save_crop {
    background: var(--color-blackish);
}

.btn_crop_reset {
    outline: none;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-default);
    font-weight: 500;
    padding: 5px 40px;
    border-radius: 8px;
    color: #fff;
}

.text-to-img .left {
    border-radius: 10px 0 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-to-img .center {
    border: 1px solid #d2d1d6;
}

.text-to-img .left > div {
    width: 100%;
}

.text-to-img .left .tool-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.text-to-img .left .main-textarea textarea {
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius-large);
    padding: 10px;
    resize: none;
    background: #f5f5f5;
    border: 2px dashed #d2d1d6;
    border-radius: var(--border-radius-large);
}

.text-to-img .left .btn-import {
    background: var(--color-light-purple);
    box-shadow: 0 6px 12px #00000014;
    border-radius: var(--border-radius-default);
    color: #fff;
    border: unset;
    padding: 10px;
    width: 100%;
    display: block;
    text-align: center;
}

.tool-option {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.color-options {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 1rem;
}

.colorgroup {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    background: #f6f6f6;
    border: 1px solid #f6f6f6;
    border-radius: 5px;
    padding: 0 5px;
}

.colorgroup .input {
    background: unset;
    border-radius: var(--border-radius-default);
    padding: 5px;
    border: unset;
    outline: none;
}

.colors-sec {
    display: flex;
    gap: 10px;
}

.colors-sec .input {
    background: unset;
    border-radius: var(--border-radius-default);
    padding: 5px;
    border: unset;
    outline: none;
    max-width: 100px;
}

.colorgroup label {
    background: var(--color-light-purple);
    border-radius: var(--border-radius-default);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.font-size-val {
    color: #fff;
}

.transform-sec {
    display: flex;
    flex-direction: column;
}

.transform-dimensions {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f6f6f6;
}

.transform-dimensions > div {
    display: flex;
    padding: 5px 10px;
    gap: 10px;
    width: 100%;
    justify-content: space-around;
}

.tool-typography {
    display: flex;
    gap: 1rem;
}

.font-typography {
    flex-direction: column;
    flex: 3;
}

.bold-italic {
    width: 100%;
    flex: 1;
    gap: 2rem;
}

.bold-italic > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bold-italic :is(.bold, .italic) {
    border: 2px solid #d2d1d6;
    text-align: center;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
}

.bold-italic :is(.bold.active, .italic.active) {
    background-color: #000027;
    border-color: #fff0;
}

.bold-italic :is(b, i) {
    font-size: 1.2rem;
    color: #8a898e;
}

.bold-italic .active :is(i, b) {
    color: #fff;
}

.drop_btn {
    background: #f6f6f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    position: relative;
}

.drop_btn span:first-child {
    padding-left: 15px;
}

.download-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

@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;
    }

    .tool.text-to-img {
        gap: 0.5rem;
        flex-direction: column;
        padding: 0 1rem;
    }
}

@media (width <=768px) {
    .tool {
        margin-top: 2rem;
        max-width: 100%;
    }

    .tool.home {
        padding: 1rem;
    }

    .tool.jpg-to-word {
        flex-direction: column-reverse;
    }

    .tool.jpg-to-word .right {
        padding: unset;
    }

    .tool.jpg-to-word .left {
        display: block;
    }

    .tool.jpg-to-word .left .inner-upload-left {
        display: flex;
        justify-content: space-between;
    }

    .tool-result-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .color-options {
        grid-template-columns: 1fr;
    }

    .tool-typography {
        flex-direction: column;
    }
}

@media (width <=600px) {
    .after-img-upload .images-clear {
        padding: 8px;
        padding-bottom: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .tool-area {
        flex-direction: column;
        gap: 1.5rem;
    }

    .selected-img-preview {
        padding: 0;
        margin-bottom: 1rem;
        min-height: auto;
    }

    .tool.jpg-to-word .left {
        padding: 1rem 5px;
    }

    .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;
    }

    .tool.jpg-to-word .left .inner-upload-left {
        flex-direction: column;
    }

    .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)
******************************************/

.result-waiting .img-text-copy-download img {
    padding: 5px 0px;
    width: 30px;
    height: 30px;
}

.tooltip::before {
    right: 100%;
    top: 15px;
}

.download-span {
    position: relative;
    border: none;
    padding: 2px 12px;
    border-radius: 8px;
    font-size: var(--font-size-small);
    background: #414a55;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.actions__list {
    position: absolute;
    z-index: 999;
    overflow: visible;
    right: 0;
    /* left: 0; */
    right: 2px;
    background: white;
    color: black;
    padding: 2px 10px;
    display: flex;
    flex-direction: column;
    top: 50px;
    box-shadow: 0px 8px 32px 0px #0000001f;
    border-radius: 8px;
    padding: 8px;
    width: 140px;
}

.actions__list span:hover {
    background-color: #f1f3f7;
    cursor: pointer;
}

.actions__list span {
    color: #606060;
    font-size: 16px;
    line-height: 18px;
    padding: 6px 8px;
    border-radius: 4px;
}

.content-section :is(ul, ol) {
    margin-left: 1rem;
}

/* .... */
.qr-code-tool {
    display: flex;
    gap: 1rem;
}
.upload-section,
.result-section {
    flex: 1;
}
.upload-section {
    display: block;
    min-height: 300px;
}

.result-section {
    border: 3px solid #eaeaea;
    position: relative;
}
.action-btns {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.action-btns > .tooltip {
    background: #f1f3f7;
    padding: 5px;
    border-radius: 5px;
}
.permission-issue,
.camera-issue {
    position: absolute;
    top: 30%;
    background: no-repeat;
    color: black;
    text-decoration: underline;
    font-size: 16px;
    margin: 0 auto;
    right: 19%;
    text-align: center;
    max-width: 62%;
    cursor: pointer;
}

.file-thumbnail {
    align-items: center;
    justify-content: center;
}

#qr_scanner:has(video) ~ .scanning-line {
    position: absolute;
    top: 50%;
    width: 73%;
    left: 13%;
    height: 4px;
    background: radial-gradient(red 24%, transparent 50%);
    animation: scanning 2s ease-in-out infinite alternate;
}

.image-upload {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    height: 100%;
}

.image-upload input {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    opacity: 0;
}

.upload-field {
    display: block;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f1f3f7;
}

.input-textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #aaa;
    margin-top: 10px;
    resize: none;
    overflow: hidden;
    background: #f4f8f9;
    border-radius: 6px;
    border: none;
    outline: none;
}

#qr-canvas-visible,
video {
    width: 100% !important;
}

.text-black {
    color: black !important;
}

.bg-light {
    background-color: #f9f9f9;
}

.form label {
    color: white;
}

.permission-issue,
.camera-issue {
    position: absolute;
    top: 30%;
    background: no-repeat;
    color: black;
    text-decoration: underline;
    font-size: 16px;
    margin: 0 auto;
    right: 19%;
    text-align: center;
    max-width: 62%;
    cursor: pointer;
}

.file-thumbnail {
    border-radius: 10px;
    overflow: hidden;
}
.flex-col {
    flex-direction: column;
}
.border_bottom {
    border-bottom: 2px solid black !important;
}
.browse__options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}
.d-flex {
    display: flex;
}
.gap-1 {
    gap: 1rem;
}
.align-start {
    align-items: start;
}
.gap-8 {
    gap: 8px;
}
.copy-btn {
    flex-shrink: 0;
}
.max-height-250 {
    max-height: 250px;
}
.form-control {
    max-height: inherit;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    width: 100%;
    overflow-y: auto;
    max-height: 230px;
}
.typeShowSpan {
    word-break: break-all;
}
.choose-option {
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
}
.camera-top {
    display: flex;
    justify-content: space-between;
    padding: 0px 8px;
    color: rgb(0, 0, 0);
    position: absolute;
    top: 4px;
    z-index: 9;
    width: 100%;
}
.camera-top span:hover {
    background: #979797;
    color: white;
}
.camera-top span {
    font-size: 18px;
    background: white;
    border-radius: 50%;
    padding: 3px 9px;
    position: absolute;
    right: 1px;
    font-weight: bold;
    line-height: 24px;
    text-align: left;
    box-shadow: 0px 1px 3px 0px #00000040;
}
.file-input-card,
.camera {
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0px 1px 3px 0px #00000040;
    padding: 6px 12px;
    background: #ffffff;
    border-radius: 8px;
    min-width: 160px;
    justify-content: center;
}
.choice_options_wrapper {
    text-align: center;
}
.or_span {
    line-height: 32px;
    text-align: center;
    color: #9da9b5;
    font-size: 16px;
}
.input_qr_div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 10px;
}
.history_heading {
    width: 100%;
    background: #e7ecfa;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 400;
    line-height: 18.75px;
    text-align: left;
}
#history {
    max-height: 200px;
    overflow-y: auto;
    padding: 0px 5px;
    margin: 5px 0px;
}
#output-section {
    padding: 12px;
    max-height: 250px;
    overflow: auto;
}
.typeShowSpan,
.form-control,
#output-section,
span #history span {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
}

#qr_scanner:has(video) ~ .scanning-line {
    position: absolute;
    top: 50%;
    width: 73%;
    left: 13%;
    height: 4px;
    background: radial-gradient(red 24%, transparent 50%);
    animation: scanning 2s ease-in-out infinite alternate;
}
.form-control a {
    text-decoration: underline;
    color: rgb(45, 45, 242);
    word-break: break-all;
}
@keyframes scanning {
    0% {
        top: 25%;
    }

    100% {
        top: 75%;
    }
}

.error {
    color: red !important;
}

@keyframes moveUpDown {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }

    100% {
        transform: translateY(0);
    }
}

.upload-label {
    position: absolute;
    /* bottom: 20px; */
    font-size: 16px;
    margin: 0 auto;
    /* right: calc(50% - 5rem); */
    background-color: #f1f3f7;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    height: 100%;
    width: 100%;
    border-radius: 5px;
    flex-direction: column;
}
.result-section,
.upload-section {
    border: 1px solid #eaeaea;
    border-radius: 10px !important;
}

.card-text {
    position: absolute;
    bottom: 10px;
    left: 3rem;
}
#history > div {
    border-bottom: 2px solid #f5f5f5;
    padding: 9px 0px;
}
.browse__options {
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}
.cursor-pointer {
    cursor: pointer;
}

.application-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media screen and (max-width: 400px) {
    .options_tab {
        justify-content: center;
    }
    .file-input-card,
    .camera {
        min-width: 156px;
    }
    .input_qr_div {
        gap: 10px;
    }

    .camera,
    .file-input-card {
        font-size: 14px;
    }
    .tool.home {
        padding: 5px !important;
    }
    #output-section {
        padding: 10px 5px;
    }
    .camera_error_popup {
        gap: 2px !important;
    }
    .application-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
.browser-instruction img {
    align-items: center;
    display: flex;
    margin: 0 auto;
}
@media screen and (max-width: 375px) {
    .file-input-card,
    .camera {
        flex-direction: column;
        min-width: 120px;
        padding: 15px 12px;
    }
}
@media screen and (min-width: 768px) and (max-width: 992px) {
    .input_qr_div {
        gap: 5px;
        padding: 0px 5px;
    }
    .form-control {
        max-width: 180px;
    }
}
@media screen and (max-width: 768px) {
    .form-control {
        max-width: 150px;
    }
}
@media screen and (max-width: 768px) {
    .tool-option-wrapper {
        flex-direction: column;
    }
    .form-control {
        max-width: 300px;
    }
    .result-section {
        padding: 0px;
        display: none;
    }
}
.camera_error_popup {
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.popup_heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.popup_heading span:nth-child(1) {
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    text-align: left;
}

.popup_heading span:nth-child(2) {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
}
@media (width <= 768px) {
    .tool.home {
        padding: 10px !important;
    }
}
@media (width <= 450px) {
    .tool-grid {
        display: grid;
    }
    .form-control {
        max-width: 200px;
    }
}