.d-none {
    display: none !important;
}

/* CSS styles for the tool */
.container {
    max-width: 1180px !important;
}

.modal-lg {
    max-width: 550px !important;
}

.plan {
    padding: 16px;
    align-items: start;
}

.price-section {
    margin: unset !important;
}

.plan-name {
    margin-bottom: 16px;
}

.offPriceIcon,
.plan-duration {
    display: none;
}

.shadowBox {
    overflow: visible !important;
}

.tool__wrapper {
    border: 1px solid #e2e2e2;
    background: #f4f8f9;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.tool__area {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.modes__wrapper {
    position: relative;
    border-bottom: 1px solid #e2e2e2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 8px;
}

.mode {
    min-width: 120px;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 5px;
    padding: 6px 10px;
    cursor: pointer;
    border: 1px solid #e2e2e2;
    background-color: #fff;
}

.mode.active {
    border: 1px solid #000000;
}

.mode__text {
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.mode.active .mode__text {
    color: #000;
}

.swap-lang {
    min-width: 20px;
    cursor: pointer;
}

.mt-3 {
    margin-top: 1rem !important;
}

.col-md-12 {
    width: 100%;
}

.d-flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.bg-white {
    background-color: #ffffff;
}

.browse__section_wrapper {
    padding: 1rem;
}

.browse__section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    min-height: 320px;
    max-height: 320px;
    background-color: #fff;
    border: 2px dashed #34a370;
    border-radius: 4px;
}

.browse__section:hover {
    background-color: #F9F9F9;
}

.upload_file_text {
    text-align: center;
    font-size: 16px;
    line-height: 24px;
    color: #9da0a1;
}

.upload__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
}

.input_url_div {
    height: 34px;
}

.input_url_div .input-group-addon {
    background-color: #f4f8f9;
}

.browse-btn {
    padding: 8px 10px;
    background-color: #000000;
    color: #fff;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    border-radius: 6px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 8px;
    margin-bottom: 0px;
}

.browse-btn:hover {
    background-color: #333333;
}

.url-link-btn,
.camera-btn {
    color: #000;
    background-color: #EFF3F4 !important;
}

.input_area {
    border-right: 1px solid #e2e2e2;
    position: relative;
}

.reset__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 32px;
    width: 32px;
    background: #fff;
    border-radius: 99px;
    padding: 4px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9;
    cursor: pointer;
    box-shadow: 0px 1px 3px 0px #00000040;
}

#inputBox,
#outputBox {
    width: 100%;
    height: 320px;
    max-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#inputBox img,
#outputBox img {
    max-width: 100%;
    max-height: 100%;
}

.bottom_action {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-top: 1px solid #e2e2e2;
    background: #fff;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    position: relative;
}

.bottom_action_before,
.bottom_action_after {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bottom_action_after {
    justify-content: center;
    gap: 12px;
}

#cloudflare_container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}

/* Custom scrollbar styling */
.actions-btn {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    transition: all 4s ease;
}

.actions-btn span {
    display: flex;
    position: relative;
    align-items: center;
    gap: 4px;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    border: 1px solid #e2e2e2;
    background-color: #fff;
}

.actions-btn span>img {
    min-width: 20px;
}

.action_btn {
    display: flex;
    align-items: center;
    gap: 2px;
    display: inline-block;
    border-radius: 6px;
    padding: 6px 12px;
    background-color: #3acd99;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.dummy_div {
    width: 100px;
}

.action_btn.start_over {
    background-color: #000000 !important;
}

.action_btn.download_image {
    background-color: #3ACD99 !important;
}

.dummy_text {
    font-size: 16px;
    font-weight: 400;
    color: #c1c1c1;
    line-height: 20px;
}

.cursor-pointer {
    cursor: pointer;
}

.loading-overlay {
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.loading-overlay .lds-dual-ring {
    top: unset !important;
}

.p-relative {
    position: relative;
}

/*  */
.lang-modal {
    display: none;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: min(392px, 90vw);
    background: #fff;
    box-shadow: 0px 8px 25px 0px #00000026;
    border-radius: 10px;
    z-index: 100;
}

.lang_search_div {
    width: 100%;
    padding: 12px 12px 0 12px;
}

.lang_search {
    width: 100%;
    padding: 10px 12px;
    color: #7f8384;
    font-size: 12px;
    line-height: 16px;
    background: #f4f8f9;
    border-radius: 5px !important;
    outline: none;
    border: none;
    box-sizing: border-box !important;
}

.lang-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    min-height: auto;
    max-height: 176px;
    margin-top: 6px;
    padding: 6px 12px 12px 12px;
    overflow-y: auto;
}

.lang-item {
    padding: 8px;
    font-size: 12px;
    line-height: 16px;
    color: #000;
    cursor: pointer;
    border-radius: 6px;
    position: relative;
}

.lang-item:hover,
.lang-item.active {
    background: #f4f8f9;
}

.lang-item.active::after {
    content: "✔";
    font-size: 12px;
    color: #000;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.image-to-show {
    cursor: pointer;
}

/* LIGHTBOX */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#lightbox img {
    max-width: 80%;
    max-height: 80%;
}

.bottom_action_after>.image_translate_btn {
    display: none;
}

.bottom_action_after.again>.download_image {
    display: none;
}

.bottom_action_after.again>.image_translate_btn {
    display: block;
}

@media (width<=768px) {
    .tool__area {
        flex-direction: column;
    }

    .output_area {
        display: none;
    }

    .dummy_div {
        display: none;
    }
}

@media (width<=500px) {
    .lang-box {
        grid-template-columns: repeat(2, 1fr);
    }

    .browse__section {
        min-height: 300px;
        max-height: 300px;
    }

    #inputBox,
    #outputBox {
        height: 300px;
        max-height: 300px;
    }

    .bottom_action_before {
        height: unset !important;
        /* flex-direction: column; */
        gap: 10px;
        padding: 8px 6px;
    }

    .humanize_btn {
        padding: 6px 8px;
    }
}