.modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(0 0 0 / 85%);
    transition: all 0.4s;
    z-index: 12;
}
.input-reset {
    margin-left: 15px;
}
#sample-text,
#paste-text {
    position: relative;
    z-index: 4;
}

.modal:target {
    visibility: visible;
    opacity: 1;
}

.modal__content {
    border-radius: 4px;
    position: relative;
    width: 500px;
    max-width: 90%;
    background: #ffffff;
    padding: 6em 1em;
}

.modal__footer {
    text-align: right;

    a {
        color: #585858;
    }
}

.modal__close {
    position: absolute;
    top: -8px;
    right: 10px;
    font-size: 38px;
    color: #f70a0a;
    text-decoration: none;
}

.content_options {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.option {
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.option:nth-child(1) {
    background: #feeaba;
}

.option:nth-child(2) {
    background: #d4eef7;
}

.option:nth-child(3) {
    background: #e1e8ed;
}

.option_box {
    border: 2px solid #ccc;
    padding: 10px;
    cursor: pointer;
}

.option_box:hover {
    background: #f8f8f8;
}

.upload__button {
    gap: 6px;
}

.main_span_tag span,
#input-content span.summarizingtool,
.gc-replace {
    font-weight: 400;
    cursor: pointer;
}

.grammar_suggestion,
.spelling_suggestion,
.punc_suggestion {
    padding: 0px 5px;
}

.grammar_suggestion,
.red-color,
.modified,
.CASING,
.GRAMMAR,
.MISC,
.CONFUSED_WORDS {
    color: #fa565d !important;
    font-weight: 400;
}

.TYPOS,
.spelling_suggestion,
.yellow-color,
.spelling {
    color: #ffad1f !important;
    font-weight: 400;
}

.punc_suggestion,
.green-color,
.addition,
.deletion,
.REDUNDANCY {
    color: #12bf43 !important;
    font-weight: 400;
}

.PUNCTUATION,
.SEMANTICS,
.REDUNDANCY {
    color: #12bf43 !important;
    font-weight: 400;
    cursor: pointer;
}

.done_word {
    cursor: default !important;
    color: #000 !important;
    font-weight: 400 !important;
}

span.gc-replacement {
    color: #12bf43;
    font-weight: 400;
    cursor: pointer;
}

.tooltip_main {
    position: absolute;
    min-height: 50px;
    max-height: 130px;
    width: min(240px, 90vw);
    overflow: auto;
    z-index: 6000;
    box-shadow: 0px 5px 30px -10px #999;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
}

#copiedTextTooltip {
    left: -6px;
}
#resetTextTooltip {
    left: -30px !important;
}
.contents ul li::before {
    position: absolute !important;
}

.summarize_now {
    padding: 9px;
    margin: 0;
    font-size: 16px;
    line-height: 18px;
    color: #fff;
    transition: 0.2s ease-in-out;
    background: #fa565d;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    min-width: 133px;
}
.summarize_now_beta {
    padding: 9px;
    margin: 0;
    font-size: 16px;
    line-height: 18px;
    color: #fff;
    transition: 0.2s ease-in-out;
    background: #05103c;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    min-width: 133px;
}
.summarize_now_beta:hover {
    background: #0c2e60;
}
.summarize_now:hover {
    background: #f8424a;
}
#tt_desc {
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    text-align: left;
    color: #a2a5ae;
}
#tt_word_revert,
#tt_word_replace,
#tt_word_remove {
    cursor: pointer;
    color: #05103c;
    padding: 6px 2px;
    line-height: 28px;
}
.auto_word_replace {
    cursor: pointer;
    color: #05103c;
    padding: 6px 2px;
}
.bg_nd_padd {
    background: #f7f8fc;
    padding: 6px;
    border-radius: 6px;
    line-height: 18px !important;
    font-size: 14px;
    font-weight: 400;
}
#tt_word_revert:hover,
.auto_word_replace:hover,
#tt_word_remove:hover {
    background: #eaf2ff;
    padding: 6px 2px;
    border-radius: 6px;
}

.hr {
    margin: 2px;
}

.result_icon_i {
    border-radius: 4px !important;
}

.result_icon_i {
    padding: 5px 10px !important;
    border-radius: 4px !important;
    transition: 0.2s ease-in-out !important;
    color: #000;
    margin: unset;
    background: transparent;
}

.result_icon:hover {
    color: #000 !important;
}

.result_icon:hover .result_icon_i {
    background: transparent !important;
}

.result_icon:hover .result_icon_i::before {
    filter: grayscale(1);
}

.processed_text {
    padding: 16px 24px;
    line-height: 2;
    display: none;
    height: 300px;
    overflow: auto;
}
#input-content {
    font-size: 16px !important;
    line-height: 2;
    overflow: auto;
    z-index: 3;
}

.org_word_content {
    text-decoration: line-through;
    padding: 6px 2px;
}

.seco_time {
    display: none;
}

.summ-panel-heading {
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.undo_button,
.undo_all_btn,
.beta_tag {
    display: none;
}
.undo_button img {
    margin-left: 6px;
}

.modes_list {
    display: none;
}

.undo_all_btn {
    padding: 0px 3px;
    margin: 0 6px;
    font-size: 14px;
    color: #fff;
    transition: 0.1s ease-in-out;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.font-head {
    font-size: 20px;
    font-weight: 500;
}

.summ-panel-input-box .summorg-input-holder {
    text-decoration: none;
    display: block;
    position: absolute;
    font-size: 16px;
    color: #6e6e6e;
    padding: 20px;
    top: 0;
}
#input-content:empty + .summorg-input-holder {
    display: block;
}

#input-content:not(:empty) + .summorg-input-holder {
    display: none;
}

label.summorg-input-holder span {
    line-height: 32px;
}

.summorg-input-holder span a {
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}

.summorg-input-holder span a:hover {
    color: #000;
}

.upgrade_span {
    font-size: 12px;
    font-weight: 500;
    line-height: 14px;
    text-align: center;
}
.upgrade_img {
    width: 14px;
}

.right-side {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 16px;
    /* min-width: 175px !important; */
}
.center_buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}
.beta_tag {
    position: relative;
}

.beta_text {
    transform: rotate(45deg);
    position: absolute;
    top: -4px;
    right: -1px;
    font-size: 9px;
    font-weight: 500;
    line-height: 10px;
    text-align: left;
    color: #000;
    cursor: pointer;
}
.button_upload {
    gap: 12px;
}
.beta_btn_div {
    position: relative;
}
.beta_img {
    position: absolute;
    right: 0px;
    top: -8px;
    min-width: 24px;
    cursor: pointer;
}
.tool__footer {
    position: relative;
    flex-wrap: wrap;
    min-height: 68px;
}
.tool__footer > div {
    min-width: unset;
}
.total_words_input{
    flex-direction: column !important;
    align-items: start;
}

@media (max-width: 768px) {
    .parent-div {
        flex-direction: column;
    }

    .result__expand {
        display: none;
    }

    .w-50 {
        width: 100% !important;
    }

    .summorg-input-holder {
        padding: 16px 24px !important;
    }

    .fix_all_div {
        display: none;
    }
    .tool__footer {
        flex-direction: column;
        align-items: start;
        gap: 8px;
        min-height: 138px;
    }
    .center_buttons,
    .right-side {
        justify-content: start;
    }
}

@media (max-width: 430px) {
    .modes_list {
        padding: 4px 1px;
        width: 100%;
    }
    .modes_list > span {
        width: 100%;
        text-align: center;
    }
    .summarizer_blue {
        padding: 6px 4px;
        margin: 0 2px;
        flex-basis: 48%;
    }
}
