/* CSS styles for the tool */
.essay-writer-tool {
    display: flex;
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 5px;
    gap: 1rem;
}
textarea {
    resize: none;
    border: 1px solid #3acd99 !important;
    box-shadow: 0 5px 15px 0 #3acd9933 !important;
}
.tox-tinymce {
    border: 1px solid #3acd99 !important;
    box-shadow: 0 5px -1px 0 #3acd9933 !important;
    border-bottom: none !important;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
input,
.output-div {
    border-radius: 10px;
    border: 1px solid #e2e2e2;
}
.essay-writer-tool > .left__essay-writer {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.left__essay-writer,
.right__essay-writer {
    flex: 1;
}
.left__essay-writer > div {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
}
.generate-btn {
    width: 70%;
    border-radius: 10px;
    color: #fff;
    background-color: #3acd99;
    border: unset;
    padding: 10px;
}
.right__essay-writer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    /* margin: auto; */
}
.output-div {
    background-color: #fff;
    flex: 1;
    padding: 10px;
    overflow: auto;
    height: 280px;
    border: 1px solid #3acd99;
    box-shadow: 0 5px 15px 0 #3acd9933;
    border-bottom: none;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.skeleton-box {
    display: inline-block;
    height: 1em;
    position: relative;
    overflow: hidden;
    background-color: #f8f8f8;
    border-radius: 4px/6.7px;
}
.skeleton-box::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
    background-image: -webkit-gradient(
        linear,
        left top,
        right top,
        color-stop(0, rgba(255, 255, 255, 0)),
        color-stop(20%, rgba(255, 255, 255, 0.2)),
        color-stop(60%, rgba(255, 255, 255, 0.5)),
        to(rgba(255, 255, 255, 0))
    );
    background-image: -o-linear-gradient(
        left,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    content: "";
}

.shadowBox {
    overflow: visible;
}
.loading-overlay {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    top: 0;
    height: 106%;
    margin-top: 22px;
    z-index: 1111;
}
.lds-dual-ring {
    top: 0;
}
@media (max-width: 768px) {
    .generate-btn {
        width: 100%;
        margin-bottom: 20px;
    }
}
#output::-webkit-scrollbar {
    width: 13px;
    cursor: pointer;
}
#output::-webkit-scrollbar-track {
    background-color: #0000;
    cursor: pointer;
}
#output::-webkit-scrollbar-thumb {
    background-color: #00b698;
    border-radius: 30px;
    border: 4px solid transparent;
    background-clip: content-box;
    cursor: pointer;
}
.main-outputdiv {
    max-height: 310px;
    flex: 1;
}
.output-footer {
    background-color: #fff;
    padding: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 1px solid #3acd99;
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
}
.box-icon {
    width: 30px;
    height: 30px;
    background-color: #efeeee;
    border-radius: 3px;
    color: #3c5057;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-margin-end: 10px;
    margin-inline-end: 10px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
}
.wordsCount {
    font-size: 16px;
    color: #3c5057;
    gap: 5px;
    display: none;
}
.tool-box-icon {
    display: flex;
    gap: 12px;
    display: none;
}

.ad-btn-row {
    margin: 0;
}
.option__row {
    flex-direction: row !important;
}
.option__row .option__row_2,
.option__row .option__row_1 {
    width: 100%;
}
.rollover__div {
    max-width: 35% !important;
}
.rollover__div .option__row {
    flex-direction: column !important;
}
[data-tooltip] {
    position: relative;
    z-index: 10;
}
[data-tooltip]:hover:after,
[data-tooltip]:hover:before {
    visibility: visible;
    opacity: 1;
}
[data-tooltip]:hover:before {
    -webkit-transition-delay: 0.3s;
    -o-transition-delay: 0.3s;
    transition-delay: 0.3s;
    -webkit-transform: translate(-50%, -5px) scale(1);
    -ms-transform: translate(-50%, -5px) scale(1);
    transform: translate(-50%, -5px) scale(1);
}
[data-tooltip]:hover:after {
    -webkit-transition-delay: 0.5s;
    -o-transition-delay: 0.5s;
    transition-delay: 0.5s;
    -webkit-transition-duration: 0.2s;
    -o-transition-duration: 0.2s;
    transition-duration: 0.2s;
    -webkit-transform: translateX(-50%) scaleY(1);
    -ms-transform: translateX(-50%) scaleY(1);
    transform: translateX(-50%) scaleY(1);
}
[data-tooltip]:after,
[data-tooltip]:before {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    left: 50%;
    bottom: calc(100% + 5px);
    pointer-events: none;
    -webkit-transition: 0.2s;
    -o-transition: 0.2s;
    transition: 0.2s;
    will-change: transform;
}
[data-tooltip]:before {
    content: attr(data-tooltip);
    padding: 8px 10px;
    min-width: 50px;
    max-width: 300px;
    width: -webkit-max-content;
    width: max-content;
    width: -moz-max-content;
    border-radius: 6px;
    font-size: 14px;
    background-color: #3b4850e6;
    background-image: -o-linear-gradient(
        60deg,
        #3b485070,
        #3b444b70,
        #3c525870
    );
    background-image: linear-gradient(30deg, #3b485070, #3b444b70, #3c525870);
    -webkit-box-shadow: 0 0 24px rgb(0 0 0/20%);
    box-shadow: 0 0 24px rgb(0 0 0/20%);
    color: #fff;
    text-align: center;
    white-space: pre-wrap;
    -webkit-transform: translate(-50%, -5px) scale(0.5);
    -ms-transform: translate(-50%, -5px) scale(0.5);
    transform: translate(-50%, -5px) scale(0.5);
}
[data-tooltip]:after {
    content: "";
    border-style: solid;
    border-width: 6px 5px 0;
    border-color: #374046e6 #0000 #0000 #0000;
    -webkit-transition-duration: 0s;
    -o-transition-duration: 0s;
    transition-duration: 0s;
    -webkit-transform-origin: top;
    -ms-transform-origin: top;
    transform-origin: top;
    -webkit-transform: translateX(-50%) scaleY(0);
    -ms-transform: translateX(-50%) scaleY(0);
    transform: translateX(-50%) scaleY(0);
}
.main-div-tool {
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    margin-bottom: 10px;
    /* padding: 2rem 1rem; */
    gap: 2rem;
    position: relative;
    flex-direction: column;
    background: linear-gradient(
        to right,
        transparent 0%,
        transparent calc(40% - -11.19px),
        #e2e2e2 calc(40% - -12.2px),
        #e2e2e2 calc(40% + 1.8px),
        transparent calc(40% + 8.81px),
        transparent 100%
    );
}
.no-essay-topic {
    margin: 0 auto;
    align-items: center;
    display: flex;
    /* flex-direction: column; */
    color: #707070;
}
.no-essay-topic span {
    width: 230px;
    text-align: center;
}
.text-sec {
    background: 0 0;
}
.example-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.example-label button {
    background: 0 0;
    border: 1px solid #e2e2e2;
    box-shadow: 0 4px 4px 0 #0000000d;
    border-radius: 6px;
    height: 30px;
    width: 30px;
}
.essay-topic-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.essay-length-options,
.essay-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.js-essay-length-item,
.js-easy-type-item {
    min-width: fit-content;
    border-radius: 5px;
    padding: 7px 20px;
    border: 1px solid #e2e2e2;
    font-weight: 400;
    color: #9e9da1;
    cursor: pointer;
    transition: all ease 0.2s;
}
.js-essay-length-item.active,
.js-easy-type-item.active {
    border: 1px solid #0796b6;
    background-color: #f0f9fb;
    color: #0796b6;
}
.cloudflare_container {
    position: absolute;
    bottom: 0;
    z-index: 99999;
    left: 0;
    right: 0;
    text-align: center;
}

.submit-btn {
    color: white;
    cursor: pointer;
    padding: 6px 10px;
    margin: 0px auto;
    background: rgb(58, 205, 153);
    box-shadow: rgba(0, 0, 0, 0.13) 0px 3px 5px;
    border-radius: 10px;
    display: flex;
    width: auto;
    max-width: 240px;
    font-size: 20px;
    text-align: center;
    justify-content: center;
    outline: unset;
    border: unset;
}
@media (width <= 768px) {
    .essay-writer-tool {
        flex-direction: column;
    }
    .essay-writer-tool > .left__essay-writer {
        max-width: unset !important;
        margin: unset !important;
    }
    .option__row {
        flex-direction: column !important;
        flex-wrap: wrap;
    }
    .main-div-tool {
        background: 0 0 !important;
    }
    .right__essay-writer {
        margin: unset;
    }
}
