
.atom-text {
    color: black;
    font-weight: normal;
    background-color: white;
    width:100%;
    text-align: justify;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.atom-text.selected > pre > div {
    cursor: text;
}

.atom-text.auto-width {
    width: max-content !important;
}
.atom-text.auto-height {
    height: min-content !important;
}

.pm-editor {
    display: inline-block;
}

.atom-text > .pm-editor {
    flex: 1;
    margin: 0;
    width: 100%;
    word-break: break-word;
    font-family: Poppins, SansSerif, sans-serif;
    line-height: 24px;
    font-size: 14px;
    font-weight: 400;
}

.atom-text > .pm-editor h1 {
    font-size: 32px;
    line-height: 42px;
}

.atom-text > .pm-editor h2 {
    font-size: 22px;
    line-height: 32px;
}

.atom-text > .pm-editor strong {
    font-weight: 600;
}

.atom-text > .pm-editor * {
    margin: 0;
}

.atom-text > .pm-editor > div {
    flex: 1;
}

.atom-text > .pm-editor .placeholder {
    opacity: 0.35;
}

.atom-text-dropdown-div{
    background-color: white;
    max-height: 30em;
    overflow-y: scroll;
    overflow-y: overlay;
    width: 237px;
    position: absolute;
    top: 0;
    left: 0;
    min-width: fit-content;
    border: 1px solid #DEDEDE;
    box-shadow: 0px 10px 20px 0px #0000001A;
    padding-top: 6px;
    padding-bottom: 6px;
    z-index: 99;
}

.atom-text-dropdown-div .dropdown-group-header {
    padding-top: 10px;
}

.atom-text-dropdown-option {
    padding: 7px 18px;
    cursor: default;
    border-radius: 2px;
}

.atom-text-dropdown-name {
    align-self: center;
    font-size: 14px;
    margin-left: 12px;
    margin-right: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.atom-text-dropdown-text-icon {
    font-family: Poppins, Helvetica, sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 11px;
    line-height: 16px;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}
.atom-text-dropdown-text-icon,
.atom-text-dropdown-image {
    width: 16px;
    height: 16px;
}

.atom-text-dropdown-image.img-sm {
    width: 16px;
    margin-left: 2px;
}

.atom-text-dropdown-no-results-div {
    width: 100%;
    height: 100%;
}

.atom-text-dropdown-no-results-div:hover .atom-link-dropdown-no-results{
    background-color: #5DAD78;
    color: white;
}

.atom-text-dropdown-no-results-div:hover .atom-link-new-doc-icon {
    filter: brightness(0) invert(1);
}

.atom-text-dropdown-no-results {
    cursor: pointer;
    margin-left: 10px;
    margin-right: 8px;
    border-radius: 2px;
    padding: 8px 0px 8px 33px;
    display: flex;
    justify-content: left;
    align-items: center;
    text-align: center;
    font-size: 13px;
}

.ql-editor * {
    background-color: transparent;
}

.ql-toolbar {
    border: none !important;
    border-radius: 5px;
    z-index: 100;
    opacity: 1;
    display: inline-block;
    -webkit-animation: fadeInFromNone 0.5s ease-out;
    -moz-animation: fadeInFromNone 0.5s ease-out;
    -o-animation: fadeInFromNone 0.5s ease-out;
    animation: fadeInFromNone 0.5s ease-out;
    transform: none !important;
    pointer-events: all;
    background-color: white;
    box-shadow: 0px 11px 20px rgba(0, 0, 0, 0.1)
}

.atom-text[contentEditable=true]:empty:not(:focus):before{
    content:attr(data-placeholder);
}

@media screen and (max-width: 810px){
    .ql-toolbar {
        display: none;
    }
}

.ql-toolbar.toolbar-hidden {
    -webkit-animation: fadeOutFromBlock 0.5s ease-out;
    -moz-animation: fadeOutFromBlock 0.5s ease-out;
    -o-animation: fadeOutFromBlock 0.5s ease-out;
    animation: fadeOutFromBlock 0.5s ease-out;
}

.ql-container {
    border: none !important;
    flex-grow: 1;
    overflow: hidden;
    height: unset !important;
    align-self: flex-start;
    width: 100%;
}

.atom-text:active {
    width: 0;
    height: 0;
}

.atom-text::-webkit-scrollbar-thumb {
    visibility:hidden;
    transition: 1s;
}

.atom-text:hover::-webkit-scrollbar-thumb {
    visibility:visible;
    transition: 1s;
}

.ql-toolbar.ql-snow .ql-picker-label {
    border: 1px solid transparent !important;
}

.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
    border: none !important;
}

.ql-picker-options {
    border-radius: 3px;
}

/* From: https://stackoverflow.com/questions/43728080/how-to-add-font-types-on-quill-js-with-toolbar-options */
/* Set droplist names - -item is the currently selected font, -label is the font's appearance in the droplist*/

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value='rubik']::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value='rubik']::before {
    content: 'Poppins';
    font-family: 'Poppins';
}

.ql-snow .ql-picker.ql-font .ql-picker-label[data-value='ebgaramond']::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value='ebgaramond']::before {
    content: 'EB Garamond';
    font-family: 'EB Garamond', serif;
}

/****************************************************
Set the font-family content used for the HTML content.
*****************************************************/
.ql-font-rubik {
    font-family: 'Poppins';
}

.ql-font-ebgaramond {
    font-family: 'EB Garamond', serif;
}



@-webkit-keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
    }
}

@-moz-keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
    }
}

@-o-keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
    }
}

@keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
    }

    1% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
    }
}

@-webkit-keyframes fadeOutFromBlock {
    0% {
        display: block;
        opacity: 1;
    }

    99% {
        display: block;
        opacity: 0;
    }

    100% {
        display: none;
        opacity: 0;
    }
}

@-moz-keyframes fadeOutFromBlock {
    0% {
        display: block;
        opacity: 1;
    }

    99% {
        display: block;
        opacity: 0;
    }

    100% {
        display: none;
        opacity: 0;
    }
}

@-o-keyframes fadeOutFromBlock {
    0% {
        display: block;
        opacity: 1;
    }

    99% {
        display: block;
        opacity: 0;
    }

    100% {
        display: none;
        opacity: 0;
    }
}

@keyframes fadeOutFromBlock {
    0% {
        display: block;
        opacity: 1;
    }

    99% {
        display: block;
        opacity: 0;
    }

    100% {
        display: none;
        opacity: 0;
    }
}

