h1{
    text-align: unset;
}
.tool_lable {
    font-size: 14px;
    font-weight: 500;
    text-align: start;
}

.class {
    flex: 1;
}

.essay-input-textarea {
    height: 100% !important;
    min-height: 122px;
}

.essay-tool-input-section:has(.essay-input-textarea:focus) {
    border: 1px solid black;
}

.essay-tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap;
}

#length:focus,
#text_tone:focus {
    border: 1px solid black !important;
}

.ai-text-generator .essay-tool-footer {
    justify-content: start;
}

.other-tool-footer {
    display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 30px;
    flex-wrap: wrap;
}

/* other tools */
.other-tools {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.tool-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px 50px;
    justify-content: center;
    align-items: center;
}

.tools-list {
    display: flex;
    justify-content: start;
    align-items: center;
    /* width: 264px; */
    /* min-width: 201px; */
    padding: 1px 10px;
    gap: 11px;
    /* flex-basis: 22%; */
    /* flex: 1; */
    text-align: start;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(0, 0, 0, 1);
}

.tools-list:hover {
    cursor: pointer;
    background: #f2f5f8;
    color: #000000;
}

.other-tools-title {
    font-weight: 500;
    font-size: 30px;
    text-align: center;
}

.tool-name {
    font-size: 18px;
    font-weight: 400;
}

/* end other tools */
.lable {
    font-size: 16px;
}

.essay_length_lable {
    margin-bottom: 7px;
    display: inline-block;
}

.essay_length_lable,
.essay_creative_lable {
    font-weight: 500;
}

.essay-input-option-cotainer label,
.essay-input-option-cotainer input {
    cursor: pointer;
    font-size: 14px;
}

.selected_value,
.creative_selected_value,
.length_selected_value,
.type_selected_value,
.poem_type_selected_value {
    border: 1px solid rgba(227, 227, 227, 1);
    border-radius: 4px;
    padding: 0 21px;
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 1);
}

.selected_value:hover,
.creative_selected_value:hover,
.type_selected_value:hover,
.other-tool-option-container:hover,
.length_selected_value:hover {
    cursor: pointer;
}

.options,
.creative_options,
.type_options,
.poem_type_options,
.length_options {
    border: 1px solid rgba(227, 227, 227, 1);
    margin-top: -5px;
    padding: 14px 16px 14px 16px;
    border-radius: 0px 0px 8px 8px;
    position: absolute;
    width: 100%;
    bottom: 44px;
    background: white;
    z-index: 1;
    max-height: 150px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#generate_btn {
    margin-top: 20px;
}

.options {
    max-height: 140px;
}

.option,
.creative_option,
.type_option,
.length_option {
    padding: 5px;
    border-radius: 5px;
}

.option:hover,
.creative_option:hover,
.type_option:hover,
.length_option:hover {
    background: rgba(249, 248, 253, 1);
    cursor: pointer;
    font-weight: 400px;
}

.hidden,
.creative_hidden,
.type_hidden {
    display: none;
}

.essay_length_section.class {
    flex: 0;
}

.essay_length_section,
.essay_creative_section,
.essay_type_section,
.essay_ref_section,
.poem_type_section,
.poem_length_section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.essay_type_section,
.poem_length_section,
.poem_type_section {
    max-width: 220px;
}

.essay-input .essay_type_section {
    max-width: unset;
}

#generate_btn {
    background: var(--color-primary-purple);
    border-radius: 4px;
}

.essay_ref_section {
    transform: translateY(-50%);
    justify-content: start;
}

.essay_ref_options {
    display: flex;
    gap: 20px;
}

.essay_ref_single_option {
    display: flex;
    gap: 5px;
}

.essay_ref_single_option input[type="checkbox"],
.action-btns-container input[type="checkbox"] {
    margin-right: 8px;
}

.p-strong {
    margin: 0px;
    margin-bottom: 10px;
}

.result_footer {
    border-top: 1px solid rgb(221, 220, 220);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    padding: 3px;
}

.result_footer_left {
    color: gray;
    padding: 5px;
    font-size: 14px;
}

.result-wrapper {
    flex: 2;
    border: 1px solid rgba(227, 227, 227, 1);
    padding: 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-basis: 60%;
}

#result {
    height: 510px;
    overflow: auto;
}

.result_footer_right {
    display: flex;
    gap: 10px;

    align-items: center;
    justify-content: space-between;
}

.result_footer_right div {
    padding: 0px 2px;
}

.icon_text {
    font-size: 14px;
    color: rgba(0, 0, 0, 1);
}

.icon {
    width: 16px;
    height: 15px;
}

.icon_sec_container {
    display: flex;
    align-items: center;
    /* gap: 5px; */
    border-left: 1px solid gray;
}

#tool-section-container {
    /* display: flex; */
    gap: 5px;
    flex-wrap: wrap;
}

.tool-wrapper {
    flex: 1;
    flex-basis: 30%;
    margin-top: 1px;
    padding: 15px;
}

.input_loader {
    top: -100px;
    height: 266px;
}

.custom-checkbox {
    /* Increase the size of the checkbox */
    transform: scale(1.5);
    /* margin-right: 10px; */
    accent-color: rgba(129, 114, 213, 1);

    /* Adjust spacing between checkbox and label */
}

/* Custom styles for label */
.custom-label {
    /* Change background color */
    background-color: #f0f0f0;
    /* Example color */
    padding: 5px 10px;
    /* Add padding for better appearance */
}

.essay-tool-input-section {
    width: 100%;
    min-height: 122px;
    height: 100%;
    position: relative;
    margin-top: 5px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 1);
    border: 1px solid rgba(227, 227, 227, 1);
}

.captcha-position {
    position: absolute;
    right: 0;
}

.wordCountContainer {
    margin-left: auto;
    text-align: end;
    padding-top: 4px;
}

.cross {
    position: absolute;
    right: 1%;
    top: 1%;
    cursor: pointer;
}

.wordCount {
    color: var(--color-gray);
    font-size: 14px !important;
}

/* Inline "topic is over the word limit" notice under the counter. */
.wordLimitWarning {
    font-size: 13px;
    line-height: 18px;
    padding-top: 2px;
    text-align: end;
}

/* Same notice under the text generator's "content length" field, which is
   left-aligned with the input rather than with a trailing counter. */
.lengthLimitWarning {
    font-size: 13px;
    line-height: 18px;
    padding-top: 2px;
    max-width: 260px;
}

.display_none {
    display: none !important;
}

.input_loader_for_essay_generator {
    width: -webkit-fill-available;
    height: -webkit-fill-available;
    position: absolute;
    z-index: 1;
    background: rgba(255, 255, 255, 0.863);
    text-align: center;
    left: 0;
}

.input_loader_for_essay_generator img {
    width: 100px;
    position: relative;
    top: 30%;
}

.output_loader_for_essay_generator {
    width: -webkit-fill-available;
    height: -webkit-fill-available;
    position: absolute;
    z-index: 1;
    background: rgba(255, 255, 255, 0.863);
    text-align: center;
    left: 0;
}

.output_loader_for_essay_generator img {
    width: 100px;
    position: relative;
    top: 30%;
}

.tool-container {
    border: 1px solid #c7cbd7;
    padding: 24px;
    border-radius: 6px;
    max-width: 920px;
    margin: auto;
}

.essay-input-option-cotainer,
.other-tool-option-container {
    min-height: 44px;
    height: 100%;
    align-items: center;
    min-width: 220px;
}

.ai-input-option-cotainer {
    min-height: unset;
    padding: 0;
    position: relative;
}

.ai-input-option-cotainer .cross-icon {
    background: #F2F5F8;
    border-radius: 6px;
    padding: 6px;
    width: 24px;
    height: 24px;
    position: absolute;
    right: 10px;
    top: 10px;
    display: none;
    cursor: pointer;
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#length,
#text_tone {
    width: 100%;
    height: 100%;
    min-height: 44px;
    padding: 0 40px 0 10px;
    border-radius: 6px;
    outline: none;
    border: 1px solid rgb(227, 227, 227);
    min-width: 237px;
    font-family: "Inter" !important;
    font-size: 14px !important;
}

.essay_ref_options {
    min-height: auto;
}

.ai-input-option-cotainer .modes-section,
.essay-input-option-cotainer .modes-section {
    min-height: 44px;
    border-color: rgba(227, 227, 227, 1);
    margin-bottom: 0px !important;
}

.type_selected_value {
    border-radius: 6px;
}

.essay-write-btn-container {
    text-align: center;
    width: 100%;
}

.result-outer-main {
    display: flex;
    border: 1px solid #c7cbd7;
    border-radius: 6px;
}

.result-outer-main .essay-input {
    max-width: 332px;
    flex: 1;
    padding: 15px;
    position: relative;
}

.result-outer-main .essay-input.show-before::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.result-outer-main .easy-output {
    flex: 2;
    border-left: 1px solid #c7cbd7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.result-outer-main .easy-input {
    border-radius: 4px;
    border: 1px solid #c7cbd7;
    resize: none;
    padding: 10px;
    width: 100%;
    min-height: 150px;
    height: 100%;
    color: #000000;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    font-family: "inter";
}

.result-outer-main .easy-input:active,
.result-outer-main .easy-input:focus,
.result-outer-main .easy-input:focus-visible {
    border: 1px solid #c7cbd7;
    outline: none;
}

.action-btns-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0px 5px;
}

.result-outer-main .btn-purple {
    width: 100%;
}

.easy-tool-input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.easy-tool-input-section label {
    margin-bottom: 15px;
}

.essay-output-text-area {
    height: 100%;
    outline: none;
    /* margin-top: 20px; */
    max-height: 520px;
    overflow: auto;
    word-break: break-word;
    padding-bottom: 18px;
    padding: 0px 16px 16px 16px;
}

#essay-result-container {
    padding-top: 16px;
}

.essay-output-footer {
    border-top: 1px solid #e2e4e6;
}

.essay-output-footer-container {
    display: flex;
    height: max-content;
    justify-content: space-between;
    padding: 18px 0 0 0;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px;
}

/* .easy-output {
    padding: 18px 0 16px 16px;
} */
.essay-output-count-container .words_text:last-child {
    border-right: none;
}

.essay-output-count-container .words_text {
    border-right: 1px solid #000000;
    padding-right: 5px;
}

.generateBtnContainer .btn {
    padding: 10px 12px;
    line-height: 20px;
    font-size: 16px;
    font-weight: 400;
}

.essay-output-action-container {
    margin-left: auto;
}

.essay-output-text-area .sw {
    cursor: default;
}

.essay-output-text-area b {
    font-weight: 400;
}

.essay-output-count-container {
    color: var(--color-gray);
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.ai-text-generator-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

@media screen and (max-width: 760px) {
    .result-outer-main {
        flex-direction: column;
    }

    .generateBtnContainer {
        margin-top: 20px;
    }

    .result-outer-main .essay-input {
        max-width: unset;
    }

    #esay_div {
        border-left: unset;
        flex-direction: column-reverse;
        border-top: 1px solid #c7cbd7;
        border-bottom: unset;
        display: none;
    }

    .essay-input .action-btns-container {
        justify-content: flex-start;
    }

    .essay-input .generateBtnContainer {
        display: flex;
        margin-top: 20px;
    }
}

@media screen and (max-width: 600px) {
    .essay-input-option-cotainer {
        min-width: unset;
    }

    .essay_length_section,
    .essay_creative_section,
    .essay_type_section,
    .essay_ref_section {
        margin-right: auto;
    }

    .essay-input-option-cotainer .modes-section .modes {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .essay-input-option-cotainer .modes-section {
        width: 100%;
    }

    .essay_type_section {
        max-width: 100%;
    }

    #generate_btn {
        margin: 0;
    }

    .essay-tool-footer {
        flex-direction: column;
        text-align: left;
    }

    .ai-text-generator .essay-tool-footer {
        width: 100%;
    }

    .ai-input-option-cotainer {
        width: 100%;
    }

    .tool-wrapper {
        padding: 0px;
    }

    .tool-container {
        padding: 15px;
    }

    .essay-output-footer .icons-container {
        margin-left: auto;
    }
}

@media screen and (min-width: 550px) and (max-width: 768px) {
    .essay-input .generateBtnContainer {
        max-width: 300px;
        margin: 20px auto auto auto;
    }
}

@media screen and (max-width: 768px) {
    .result-outer-main .easy-output.output-div-hider {
        display: none;
    }

    .result-outer-main .essay-input {
        max-width: 100%;
    }

    .result-outer-main {
        flex-direction: column;
    }

    .result-outer-main .easy-output {
        padding: 0 !important;
    }

    .essay_ref_options.essay-input-option-cotainer {
        min-height: auto;
    }

    .essay-output-text-area {
        padding: 16px;
        margin-top: 0;
        border-top: 1px solid #e2e4e6;
        max-height: 484px;
        overflow: auto;
        line-height: 1.2;
    }

    .essay-output-footer-container {
        padding: 16px;
        align-items: center;
    }

    .essay-output-footer {
        order: -1 !important;
    }
}

@media screen and (max-width: 649px) {
    .essay-output-action-container {
        margin-left: 0;
    }
}

/* Media Query for extra small devices */
@media (max-width:370px) {
    .essay-output-footer-container {
        padding: 16px 6px;
        gap: 10px;
    }

    .essay-output-count-container {
        width: 100%;
        justify-content: space-between;
    }

    .essay-output-count-container span {
        font-size: 12px;
    }
}