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

.loader {
    transform: translate(-50%, -50%);
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: 2s linear infinite spin;
    margin-right: auto;
    margin-left: auto;
}

@keyframes spin {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

.red_color {
    color: red !important;
    margin-right: 20px;
}
.subheading_paragraph{
    font-size: 18px !important;
}
.shift {
    top: 0 !important;
    border: 2px dashed #c4c4c4;
    border-radius: 10px;
    width: 100% !important;
    transition: none !important;
    padding-top: 8px;
    position: relative !important;
}
.shift:hover{
    background-color: #edfcfe !important;    
}
.files {
    width: 100% !important;
}

.counter-files {
    display: flex;
    padding: 10px 5px;
    gap: 5px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-heading);
}

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

.uploadFileImg {
    cursor: pointer;
    max-width: 96px !important;
}
.before-upload>p{
    font-weight: 600 !important;
    font-size: 18px !important;
    line-height: 28px !important;
    letter-spacing: 0px !important;
    text-align: center !important;
    color: #023C89 !important;
    margin: 0px !important;
}
/* .divUploadFile {
    margin-top: 16px;
} */

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

.tox-tbtn {
    padding: unset !important;
}

.folderbox,
.title-hover {
    display: flex;
    position: relative;
}

.folderbox,
.heading-1,
.heading-1 span,
.title-hover,
.tool-div,
.urlbox {
    position: relative;
}

.word-count {
    position: absolute;
    right: 16px;
    bottom: 10px;
    cursor: pointer;
    font-weight: var(--font-weight-semi-bold);
    font-size: var(--font-size-x-smaller);
    color: var(--color-heading);
}

.folderbox {
    justify-content: center;
    align-items: center;
    z-index: 3;
}

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

.folderbox label.active {
    background: #eaeaea;
}

.section2 .col2 .box2 {
    width: 100% !important;
    max-width: 1000px;
    height: 450px;
    max-height: 450px;
    padding: 24px 24px 40px 24px !important;
}
.tool-footer{
    padding: 16px 0px !important;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;

}
.box2.height-auto{
    height: auto !important;
    max-height: fit-content !important;
}
#upload_area{
    height: 100%;
}
.heading-1:before {
    width: 250px;
    left: -105px;
}

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

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

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

.before-upload {
    z-index: 999;
    position: absolute;
    top: 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    width: auto;
    gap: 18px;
    padding: 10px;
    transition: all 0.5s ease-in-out;
}

.divUploadFile:hover {
    background-color: unset;
}

.upload-area {
    width: 100%;
}

.form-control {
    width: 100%;
    height: 100%;
    resize: none;
    border: unset;
    border-radius: 5px;
    padding: 0.5rem 1rem;
}

.section2 .col2 .box2 .divUploadFile {
    border: unset;
    padding: unset;
}

.tox-tinymce {
    border: 1.25px dashed #D5D5D5 !important;
}

.tox .tox-statusbar {
    display: none !important;
}

.exportBtns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.3rem;
}

.downloadAll {
    background: #1c385c;
    border: none;
}

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

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

.resultHead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.resultCount {
    color: #3f3f40;
    font-size: 24px;
    font-weight: 600;
}

.urlbox {
    background: #f7f7f7;
    height: 46px;
    border-radius: 10px;
    padding: 9px 14px;
}

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

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

.results {
    text-align: left;
    overflow-y: auto;
    max-height: 357px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}
.download_file_div .file_info{
    min-width: 190px;
}
.download_file_div .button_div{
    min-width: 150px;
    text-align: right;
}
.results p {
    font-weight: 600 !important;
    font-size: 18px !important;
    color: #3f3f40 !important;
}

/* text to image css */
.tool-section.text-to-img {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 10px;
    border-radius: 15px;
    background: #ffffff;
    padding: 20px;
    box-shadow: 0px 20px 30px 0px #00000026;
    flex-wrap: wrap;
}

.tool-section.text-to-img .left,
.tool-section.text-to-img .right {
    flex: 1;
    gap: 0.7rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tool-section .right {
    width: 350px;
    align-self: flex-start;
}

.download-all-btn-word-js {
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-transform: capitalize;
    text-align: center;
    cursor: pointer;
    background: #1C385C;
    border: none;
    padding: 10px;
}

.tool-section.text-to-img .left .title,
.tool-section.text-to-img .right .title {
    color: #3f3f40;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    display: flex;
    justify-content: space-between;
}

.tool-section.text-to-img .left textarea {
    width: 450px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #fff;
    resize: none;
    padding: 10px;
    border: 2px dashed #dde1e7;
    font-size: 16px;
    font-weight: 500;
    font-family: "Quicksand";
    margin-top: 2px;
}

.tool-section.text-to-img .left .font-size {
    display: flex;
    gap: 0.5rem;
}

.left,
.background,
.color,
.size,
.font,
.format-div {
    flex: 1 !important;
}

.right {
    flex: 2 !important;
}

.tool-section.text-to-img .left,
.font,
.size,
.background,
.color,
.format-div {
    display: flex;
    gap: 1.2rem;
    flex-direction: column;
}

.tool-section.text-to-img .left .background-color {
    display: flex;
    gap: 1rem;
}

.right .undo-download {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 5px 20px;
}

.privacy-text {
    bottom: -10px;
    right: 20px;
    width: auto;
    text-align: right;
}

#fontSelect {
    padding: 7px 8px;
    width: 249px;
    background: #fafbfd;
    border-radius: 5px;
    padding: 8px;
    border: none !important;
    font-size: 16px !important;
    font-weight: 500;
    color: #49607d;
    line-height: 19px;
}

#fontSizeInput {
    width: 100%;
    height: 35px;
    background: #fafbfd;
    border: none !important;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    color: #49607d;
    padding: 8px;
}

.tool-section.text-to-img .left .format-div .formats {
    display: flex;
    gap: 0.5rem;
    text-align: center;
    align-items: center;
    background: #fafbfd;
    border-radius: 5px;
    padding: 5px;
    justify-content: space-evenly;
}

.tool-section.text-to-img .left .background-color .background .background-text,
.font-text {
    background: #fafbfd;
    border-radius: 8px;
    line-height: normal;
    padding: 8px;
}

.tool-section.text-to-img .left .format-div .formats>div {
    color: #8e9bae;
    font-size: 22px;
    align-items: center;
    position: relative;
    display: flex;
    cursor: pointer;
    font-weight: 700;
    padding: 0 12px;
    font-family: "Poppins", sans-serif;
}

.formats>div:nth-child(2) {
    font-family: "Times New Roman", Times, serif !important;
}

#backgroundText,
#color {
    border: none !important;
    width: 24px;
    height: 27px;
    border-radius: 4.8px;
    overflow: hidden;
}

#backgroundText::-webkit-color-swatch,
#color::-webkit-color-swatch {
    border-radius: 5px;
    /* Apply border-radius to the swatch */
    padding: 0;
    border: none !important;
    /* border: 2px solid #ccc;  */
}

#backgroundText::-moz-color-swatch,
#color::-moz-color-swatch {
    border-radius: 5px;
    /* Apply border-radius for Firefox */
    padding: 0;
    border: none !important;
    /* border: 2px solid #ccc;  */
}

.italic {
    font-style: italic !important;
}

.underline {
    text-decoration: underline !important;
}

/* Hide the default arrow */
.custom-select select {
    appearance: none;
    /* For most modern browsers */
    -webkit-appearance: none;
    /* For Safari */
    -moz-appearance: none;
    /* For Firefox */
    background: transparent;
    /* Remove default background */
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 8px;
}

/* Position the custom arrow */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select::after {
    content: "\25BC";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #8e9bae;
    border-radius: 50%;
}

/* Additional styling for the select box */
.custom-select select {
    padding-right: 30px;
    cursor: pointer;
}

.active {
    background: #f1f3f7;
    color: #1c385c !important;
    border-radius: 5px;
    padding: 0 12px;
}

.canvas {
    position: absolute;
    width: 600px;
    height: 400px;
    left: 0px;
    top: 0px;
    touch-action: none;
    user-select: none;
}

.download_file_div {
    box-shadow: 0px 2px 10px 0px #0000001a;
    border-radius: 10px;
    padding: 10px 6px;
    background-color: #ffffff;
    justify-content: space-between;
    align-items: center;
    margin: 5px 1px;
}

.file_info {
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.file__name,
.file__size span {
    font-size: 16px;
    font-weight: 500;
    line-height: 23px;
    color: #3f3f40;
}

.tox-edit-area__iframe {
    padding-bottom: 25px !important;
}
.svg {
    height: 26px;
}
.file-action-buttons{
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}
.tox-toolbar__primary>.tox-toolbar__group>.tox-tbtn--select{
    background-color: #EDEFF2 !important; 
    padding: 6px !important;
    border-radius: 8px !important;
}
.tox-toolbar__primary>.tox-toolbar__group>.tox-tbtn--select>span{
    font-family: Quicksand !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: 0px !important;
    text-align: left !important;
    color: #1C385C !important;
}
.mainUploaded{
    max-height: 176px !important;
}
.divUploadFile{
    height: 100% !important;
}
@media (max-width: 980px){
    .tool-section.text-to-img .left textarea {
        width: 100% !important;
    }
}
@media (max-width: 786px){

    .section2 .col2 .box2,
    .section2 .col2 .tool-section {
        width: 100%;
    }
}
@media(max-width: 767px){
    .custom-heading-font-mobile {
        font-size: 34px !important;
    }
    .section2 .col2 .box2{
        height: 458px;
        max-height: 458px;
    }
}
@media(max-width: 600px){
    .section2{
        padding: 0 2rem;
    }   
}
@media (max-width: 525px){
    .section2 {
        padding: 0 1rem;
    }
    .download_file_div .file_info{
        min-width: unset;
    }
    .download_file_div .button_div{
        min-width: unset;
    }
}
@media (max-width: 425px){
    #fontSelect {
        width: -webkit-fill-available;
    }

    #submitBtn {
        width: 50%;
    }

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

    .canvas-container,
    .lower-canvas,
    .upper-canvas {
        height: 280px !important;
        width: 100% !important;
    }

    .tool-section.text-to-img .left .background-color,
    .tool-section.text-to-img .left .font-size,
    .exportBtns {
        flex-direction: column;
    }
    .results{
        max-height: 320px;
    }

    .tool-section .right {
        width: 100%;
        align-self: flex-start;
    }

    #fontSizeInput {
        width: 100% !important;
    }

}
@media(max-width: 401px){
    .section2{
        padding: 0 1rem;
    }   
    .tool-footer{
        bottom: -9px;
        text-align: left;
    }
}
@media (max-width: 320px){
    .before-upload {
        left: calc(50% - 130px);
    }

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

    .download_file_div {
        flex-wrap: wrap;
    }
}
