.popup-container-feedback {
    top: 33px !important;
    bottom: unset !important;
}

.conformation_container {
    bottom: unset !important;
    top: 35px !important;
}

.form-group {
    border: 1px solid #1e1f23;
    padding: 10px 20px 20px 20px;
}

.top_heading {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: left;
    margin: 0px !important;
}

@media screen and (min-width: 560px) and (max-width: 1023px) {
    .col_dropdown {
        justify-content: space-between;
    }
}

.heading,
h4 {
    margin: 12px 0;
}

.mb_div {
    padding-right: 5px;
}

#generate_essay {
    color: white;
    background: #000;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    line-height: 28px;
    box-sizing: border-box;
    transition: 0.3s ease;
    gap: 16px;
}

#generate_essay:hover img,
#generate_essay_ajax:hover img {
    transform: translateX(3px) scale(0.9);
}

#generate_essay_ajax {
    color: white;
    background: #000;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    line-height: 28px;
    box-sizing: border-box;
    transition: 0.3s ease;
    gap: 16px;
}

.poem-and-essay-tool {
    width: 900px;
    max-width: 100%;
    margin: 0 auto;
}

.flex-direction-column {
    flex-direction: column;
}

.border {
    background: #fcf8e3;
    border: 1px solid #faebcc;
    padding: 1rem;
    margin-top: 12px !important;
}

.border p {
    font-style: italic;
    margin-top: 8px;
}

.border h3 {
    color: #f32f2f;
    font-weight: 500;
}

.form-input {
    border: 1px solid #e1e4ea;
    background: #fff;
    width: 100%;
    padding: 12px;
    margin-top: 9px;
    font-size: 16px;
    height: 120px;
    resize: none;
}

.topic_field {
    height: 100px;
    resize: none;
}

.de-main-container-aiessay {
    width: 1360px;
    max-width: 100%;
    margin: 0 auto;
}

.de-main-container-aiessayresult {
    width: 1100px;
    max-width: 100%;
    margin: 0 auto;
    margin-top: 20px;
}

.textarea_div {
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    position: relative;
}



.flex-d-c {
    flex-direction: column;
}

.form-div>div {
    padding: 0 10px;
    margin-top: 10px;
}

.w-33 {
    width: 33%;
}

.width {
    width: 100%;
    align-items: center;
    gap: 10px;
}

.button_div {
    padding: 0px 10px;
    position: relative;
    margin-top: 19px;
}

.left {
    min-width: 300px;
    margin-top: 8px;
}

.right {
    width: 100%;
}

.result_div {
    padding: 12px;
    height: 100%;
    min-height: 370px;
    max-height: 370px;
    overflow: auto;
}

.versions_main {
    border: 1px solid #e1e4ea;
}

.versions {
    min-height: 37px;
    position: relative;
}

.top_modes {
    border-bottom: 1px solid #e1e4ea;
}

.mode_padding {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #8F8F91;
    text-align: left;
    cursor: pointer;
}

.heading_version {
    padding: 6px 18px 6px 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.mode_padding.active_mode {
    box-shadow: inset 0 -2px 0 0 #000000;
    color: #1E1F23;
    font-weight: 500 !important;
}

.actions_copy_download {
    display: flex;
    align-items: center;
}

.actions_div {
    min-height: 40px;
    flex-wrap: wrap;
}

.actions_copy_download>img,
.actions_copy_download>span {
    padding: 8px;
    font-family: Open Sans;
    font-size: 14px;
    font-weight: 400;
    line-height: 19.07px;
    text-align: right;
}

.actions_copy_download>img:hover {
    cursor: pointer;
    background: #f3f5f9;
}

.result_count {
    font-size: 14px;
    font-weight: 600;
    line-height: 19.07px;
    text-align: right;
}

.flex-wrap-column {
    display: flex;
    flex-wrap: wrap;
}

.form-input:hover {
    cursor: pointer;
    border: 1px solid #989ba2;
}

#result {
    text-align: left !important;
}

.essay__type__active {
    border: 1px solid #e1e4ea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 4px 6px;
    margin-top: 10px;
    font-size: 16px;
}

.essay__type__active.active_poem_selection img {
    transform: rotate(180deg);
}

.essay__type__active img {
    transform: rotate(360deg);
}

.essay__types button {
    border: none;
    outline: none;
    text-align: left;
    padding: 5px 8px;
    background-color: transparent;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 1px solid #e4e6e8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.captcha_essay_modes {
    position: absolute;
    top: 45px;
    left: 0px;
}

.essay__types {
    position: absolute;
    right: 38%;
    transform: translateX(50%);
    width: 300px;
    flex-wrap: wrap;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: -71px;
    max-height: 120px;
    overflow-y: auto;
    border: 1px solid #000;
    background-color: #fff;
    z-index: 10000;
}

.essay__types_width {
    right: 50%;
    width: 234px;
    top: -101px;
    max-height: unset;
}

.essay__types button:hover {
    background: #f6f6f6 !important;
}

.length_aiessay,
.type_aiessay,
.feature_aiessay {
    position: relative;
}

.feature_aiessay .essay__types {
    right: 63%;
    top: -72px;
}

.second-screen {
    right: 45% !important;
    width: 250px;
}

.word_div {
    min-width: unset;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: var(--colors-placeholder-disable, #8F8F91);
    position: absolute;
    right: 22px;
    bottom: 8px;
    text-align: right;
    background-color: #fff;
    display: none;
}

.word_counter_div.text-red {
    color: red !important;
}

.word_counter_div {
    line-height: unset !important;
}

@media (max-width: 768px) {
    .feature_aiessay .essay__types {
        right: 50%;
        top: -46px;
        width: 210px;
    }

    .form-group {
        flex-direction: column;
        gap: 12px;
        padding: 10px 10px 20px 10px;
    }

    .mode_padding {
        padding: 6px 6px;
    }

    .actions_copy_download>img {
        padding: 8px 6px;
    }

    .left {
        width: 100%;
    }

    .right {
        display: none;
    }
}

@media (max-width: 700px) {
    .length_aiessay .essay__types {
        width: 180px;
        top: -78px;
        right: 50%;
    }

    .left {
        min-width: 235px;
    }

    .second-screen {
        right: 15% !important;
    }

    .length_second {
        top: -45px !important;
        right: 50% !important;
    }

}

@media (width < 560px) {
    .second-screen {
        right: 50% !important;
    }

    .minimum_heigt {
        min-height: 370px !important;
        max-height: 370px !important;
    }

    #generate_essay_ajax {
        gap: 16px;
        padding: 8px 16px;
        font-size: 16px;
    }

    .de-main-container-aiessayresult {
        flex-direction: column;
    }

    .feature_aiessay .essay__types {
        top: -72px;
        width: 100%;
        right: 50%;
    }

    .length_aiessay .essay__types {
        width: 100%;
        top: -100px;
    }

    .type_aiessay .essay__types {
        right: 50%;
    }

    .heading_version {
        padding: 6px 10px 6px 12px;
    }

    .mode_padding {
        padding: 6px 10px;
    }

    .w-33 {
        width: 100%;
    }

    .flex-wrap-510 {
        flex-wrap: wrap;
    }

    .left {
        width: 100%;
        min-width: unset;
    }

    .length_aiessay .essay__types.second-screen {
        top: -70px !important;
    }

    .second-screen {
        width: 300px;
        right: 50%;
    }

    .textarea_div {
        padding: 0 !important;
    }
}

@media (max-width: 400px) {
    .mb_div {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-left: 5px;
    }

    .heading_version {
        width: 100%;
    }

    .actions_copy_download>img {
        padding: 3px;
    }

    .essay__types {
        width: 250px;
    }

    .actions_copy_download {
        gap: 5px;
        width: 100%;
        justify-content: end;
    }

    .actions_div {
        padding: 8px 0px;
        flex-wrap: wrap;
    }

    .form-group {
        padding: 5px 10px 10px 10px;
    }

    .captcha_main_aiessay {
        left: -19px;
    }

    .captcha_essay_modes {
        left: -36px;
    }

    .conformation_container,
    .popup-container-feedback {
        right: -100px !important;
    }
}