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

.section2 {
    display: grid;
    border-radius: 10px;
    background-position: center;
    transition: opacity 4s;
    background-image: url(/assets/images/Group40.svg);
    padding: 0 4rem;
    grid-template-columns: none;
}

.section2 .col2 .box2 .p-primary {
    font-size: 22px;
    line-height: 27px;
    text-align: center;
    width: 40%;
}

.contact_russian_support {
    background: #ffc9bc;
    box-shadow: 0px 4px 4px rgba(196, 196, 196, 0.25);
    border-radius: 5px;
    border: none;
    padding: 7px 15px;
    font-weight: bold;
    font-size: 18px;
    color: #023c89;
    cursor: pointer;
}

.tool {
    padding: 1rem;
    background-color: #fff;
    max-width: 90%;
    margin: 1rem auto 0;
    border-radius: 15px;
    position: relative;
    box-shadow: 0px 20px 30px 0px #00000026;
}

.tool-footer {
    max-width: 97%;
}

.p-relative {
    position: relative;
}

.language-selection,
.tool-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    position: relative;
}

.language-selection {
    margin: auto;
}

.language-selection * {
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}

#s-lang,
#d-lang {
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
}

.utilities-btn {
    display: flex;
    gap: 10px;
    position: absolute;
    right: 10px;
}

.js-toggle-dest-lang:hover,
.js-toggle-dest-lang.active,
.js-toggle-source-lang:hover,
.js-toggle-source-lang.active {
    background-color: #f1f3f7 !important;
    border-radius: 8px;
}

.js-toggle-dest-lang,
.js-toggle-source-lang {
    background-color: #fafbfd;
    border-radius: 8px;
    cursor: pointer;
}

.modal-source-language {
    left: 0;
    width: 65%;
}

.lang-modal {
    padding: 0.5rem;
    border-radius: 10px;
    display: none;
}

.p-absolute {
    position: absolute;
}

.modal-destination-language {
    right: 0;
    width: 65%;
}

.tool-area {
    display: flex;
    justify-content: center;
    border: 1px dashed #c4c4c4;
    border-radius: 10px;
    /* height: 330px; */
    max-height: 100%;
}

.upload-area {
    min-height: 300px;
    border: unset;
    width: 100%;
    border-radius: 10px;
}

.before-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.before-upload:hover {
    background-color: #edfcfe;
}

.drag-n-drop-text {
    width: 100%;
    font-weight: 400;
    color: var(--color-blackish);
    line-height: 1.5;
    font-size: var(--font-size-medium);
}

.after-upload-selection {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    position: relative;
}

.loader-container {
    display: flex;
    flex-direction: column;
    color: white;
    gap: 16px;
    position: absolute;
    z-index: 99;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
}

.loader-image {
    margin-left: auto;
    margin-right: auto;
    width: 100px;
    height: 100px;
    border: 3px solid #fff;
    border-radius: 50%;
    animation: spin 7s ease-in-out;
    animation-iteration-count: infinite;
    transition-duration: 0.1s;
}

.after-selection {
    position: relative;
}

.img-preview-box {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
    max-height: 350px;
    height: auto;
    overflow: auto;
}

.img-preview-box__img {
    max-width: 100%;
    max-height: 315px;
}

.translate-img-div {
    background-size: 150px 150px;
    background-position: center center;
    background-repeat: no-repeat;
}

.original-img-div {
    padding: 15px;
    border: 1px dashed #dde1e7;
    border-radius: 10px;
    position: relative;
}

.remove-img {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
}

.translate-img-div {
    background-color: #fafbfd;
    border-radius: 10px;
    padding: 15px;
}

.grid-div {
    background-color: #fff;
    box-shadow: 0px 0px 25px 0px #00000026;
    border-radius: 10px;
    padding: 10px;
    position: relative;
    z-index: 99;
    border: 1px solid #ffffff;
}

.search-lang {
    border: unset;
    border-radius: 5px;
    background-color: #f9fafe;
    width: 100%;
    padding: 10px 20px;
    font-size: 14px;
    margin-bottom: 10px;
    color: #8e9bae;
    font-family: "Quicksand";
}

.lang-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 300px;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.source-lang-item,
.destination-lang-item {
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    min-width: 100px;
    font-weight: 500;
    color: #1c385c;
}

.source-lang-item:hover,
.destination-lang-item:hover {
    background-color: #f1f3f7;
}

.source-lang-item.active,
.destination-lang-item.active {
    background-color: #f1f3f7;
    font-weight: 700;
}

.drag-n-drop-text {
    font-weight: 700;
    font-size: 20px;
    line-height: 27px;
    color: #023c89;
}

.folderbox {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 10px 0;
    z-index: 3;
}

.pointer,
.cursor-pointer {
    cursor: pointer;
}

.pointer:hover {
    background-color: #eaeaea;
}

.folderbox label {
    padding: 11px;
    border-radius: 8px;
}

.heading-1:before {
    width: 250px;
    left: -105px;
}

.heading-1 {
    text-align: center;
    margin-top: 6px;
    position: relative;
}

.heading-1:before {
    content: "";
    display: block;
    border-top: 2px solid #f0f0f0;
    width: 440px;
    height: 2px;
    position: absolute;
    top: 50%;
    z-index: 0;
    left: -200px;
}

.heading-1 span {
    background: #fff;
    padding: 0 10px;
    z-index: 1;
    color: #d3d3d3;
    position: relative;
}

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

.text-content {
    color: var(--color-heading);
    font-weight: 600;
    font-size: 16px;
}

.downloadAll {
    background: #023c89;
    border: none;
}

.startOver {
    background: #e55555;
    border: none;
}

.downloadAll,
.startOver {
    border-radius: 5px;
    padding: 7px 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    text-transform: capitalize;
    text-align: center;
    cursor: pointer;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
        border-bottom: solid 3px transparent;
        border-top: solid 3px transparent;
    }

    50% {
        transform: rotate(1800deg);
        border: 3px solid #fff;
        border-left: solid 3px transparent;
        border-right: solid 3px transparent;
    }

    100% {
        transform: rotate(0deg);
        border-bottom: solid 3px transparent;
        border-top: solid 3px transparent;
    }
}

.urlbox {
    position: relative;
    background: #f7f7f7;
    height: 46px;
    margin-top: -58px !important;
    border-radius: 10px;
    padding: 9px 14px;
}

.urlbox span {
    position: absolute;
    z-index: 3;
    top: 11px;
    left: 15px;
}

.tool-footer {
    position: unset !important;
    padding: 16px 0 0 0 !important;
    max-width: 100% !important;
}

.toolTip-supported-files {
    bottom: 25px !important;
}

.urlbox input {
    width: 92%;
    height: 31px;
    position: absolute;
    top: 7px;
    z-index: 2;
    left: 49px;
    background: #f7f7f7;
    border: none;
    font-size: 15px;
    color: #000;
}

#cloudflare_container {
    position: absolute;
    bottom: 80%;
    right: 0%;
    transform: translate(-50%, -50%);
}

#swapIcon:hover {
    cursor: pointer;
    filter: contrast(0.1);
}

.utilities-btn {
    display: flex;
}

.utilities-mbl-btn {
    display: none;
}

#previewedImage {
    border: none !important;
}

#imagePreviewModal>div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.button_top_div {
    margin: 10px 0px !important;
}

@media (max-width: 1024px) {
    .utilities-btn {
        display: none;
    }

    .utilities-mbl-btn {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    .language-selection,
    .tool-actions {
        gap: 0.5rem;
    }

    .tool-actions {
        flex-direction: column !important;
    }

    .utilities-btn {
        position: unset;
    }
}
@media (min-width: 992px) {
    .source-lang-item, .destination-lang-item{
        min-width: 23%;
        word-break: break-all;
        max-width: 23%;
    }
}
@media (width <=768px) {
    .tool {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .result-div-hide {
        display: none;
    }

    .after-upload-selection {
        flex-direction: column;
        padding-top: 1rem;
    }
}

@media (width <=600px) {
    .tool-area {
        flex-direction: column;
        gap: 1.5rem;
    }

    .heading-1:before {
        width: 250px;
        left: -100px;
    }

    .section2 {
        padding: 0 1rem;
    }

    #cloudflare_container {
        transform: translate(-10%, -50%);
    }

    .lang-grid {
        max-height: 250px;
    }

    .modal-source-language,
    .modal-destination-language {
        top: 25px;
        width: 70%;
    }
}

@media (max-width: 425px) {
    .img-preview-box {
        max-height: 300px !important;
    }
}

@media (max-width: 375px) {

    .text-content {
        font-size: 12px;
    }

    #cloudflare_container {
        transform: translate(-4%, -50%);
    }
}

@media(min-width: 1024px) {
    .tool-actions {
        min-height: 36px;
    }
}