/*
Rich text theme styles
https://codesign.qq.com/app/design/467051146601444/board
*/
:root {
    --h1-title-size: 44px;
    --h1-title-line-height: 58px;
    --h2-title-size: 24px;
    --h2-title-line-height: 32px;
    --h2-title-margin: 40px 0 24px 0;
    --h3-title-size: 18px;
    --text-normal-margin: 0 0 24px 0;
    --text-normal-size: 16px;
    --text-normal-line-height: 28px;
    --quote-margin: 0 0 24px 0;
    --editor-text-t1: #000;
    --editor-link-color: rgb(33, 111, 219);
    --editor-table-border: #DFE0EA;
    --editor-table-bg: #f2f3f5;
    --editor-quote-border: rgba(60, 63, 67, 0.6);
    --editor-quote-color: rgb(101, 103, 107);
}

@media screen and (max-width: 1199px) {
    :root {
        --h1-title-size: 28px;
        --h1-title-line-height: 34px;
        --h2-title-size: 20px;
        --h2-title-margin: 24px 0 16px 0;
        --h3-title-size: 16px;
        --text-normal-margin: 0 0 16px 0;
        --quote-margin: 0 0 16px 0;
    }
}

@media screen and (max-width: 733px) {
    :root {
        --h1-title-size: 24px;
        --h1-title-line-height: 34px;
        --h3-title-size: 16px;
    }
}

.PlaygroundEditorTheme__ltr {
    text-align: left;
}

.PlaygroundEditorTheme__rtl {
    text-align: right;
}

/*text Styles*/
.PlaygroundEditorTheme__paragraph,
#thirdPartyWrapContainer p {
    position: relative;
    font-size: var(--text-normal-size);
    line-height: var(--text-normal-line-height);
    margin: var(--text-normal-margin);
}

.PlaygroundEditorTheme__quote {
    font-size: 15px;
    color: var(--editor-quote-color);
    border-left: var(--editor-quote-border) 4px solid;
    ;
    padding-left: 20px;
    margin: var(--text-normal-margin);
    line-height: 24px;
}

.PlaygroundEditorTheme__h1,
#thirdPartyWrapContainer h1 {
    font-size: var(--h1-title-size);
    line-height: var(--h1-title-line-height);
    color: var(--editor-text-t1);
    font-weight: 700;
    margin: 0;
}

.PlaygroundEditorTheme__h2,
#thirdPartyWrapContainer h2 {
    font-size: var(--h2-title-size);
    line-height: var(--h2-title-line-height);
    color: var(--editor-text-t1);
    font-weight: 500;
    margin: var(--h2-title-margin);
    /* text-transform: uppercase; */
}

.PlaygroundEditorTheme__h3,
#thirdPartyWrapContainer h3 {
    font-size: var(--h3-title-size);
    line-height: var(--text-normal-line-height);
    margin: var(--text-normal-margin);
    /* text-transform: uppercase; */
    color: var(--editor-text-t1);
}

.PlaygroundEditorTheme__indent {
    --lexical-indent-base-value: 40px;
}

.PlaygroundEditorTheme__textBold {
    font-weight: bold;
}

.PlaygroundEditorTheme__textItalic {
    font-style: italic;
}

.PlaygroundEditorTheme__textUnderline {
    text-decoration: underline;
}

.PlaygroundEditorTheme__textStrikethrough {
    text-decoration: line-through;
}

.PlaygroundEditorTheme__textUnderlineStrikethrough {
    text-decoration: underline line-through;
}

.PlaygroundEditorTheme__textSubscript {
    font-size: 0.8em;
    vertical-align: sub !important;
}

.PlaygroundEditorTheme__textSuperscript {
    font-size: 0.8em;
    vertical-align: super;
}

.PlaygroundEditorTheme__textCode {
    background-color: rgb(240, 242, 245);
    padding: 1px 0.25rem;
    font-family: Menlo, Consolas, Monaco, monospace;
    font-size: 94%;
}

.PlaygroundEditorTheme__hashtag {
    background-color: rgba(88, 144, 255, 15%);
    border-bottom: 1px solid rgba(88, 144, 255, 30%);
}

.PlaygroundEditorTheme__link,
#thirdPartyWrapContainer a {
    color: var(--editor-link-color);
    text-decoration: none;
}

.PlaygroundEditorTheme__link:hover,
#thirdPartyWrapContainer a:hover {
    text-decoration: underline;
    cursor: pointer;
}

.PlaygroundEditorTheme__table,
#thirdPartyWrapContainer table {
    border-collapse: collapse;
    border-spacing: 0;
    overflow-y: scroll;
    overflow-x: scroll;
    table-layout: fixed;
    margin: 0 0 30px 0;
}

.PlaygroundEditorTheme__tableSelection *::selection {
    background-color: transparent;
}

.PlaygroundEditorTheme__tableSelected {
    outline: 2px solid rgb(60, 132, 244);
}

.PlaygroundEditorTheme__tableCell,
#thirdPartyWrapContainer th,
#thirdPartyWrapContainer td {
    border: 1px solid var(--editor-table-border) !important;
    width: 75px;
    min-width: 75px;
    vertical-align: top;
    text-align: start;
    padding: 6px 8px;
    position: relative;
    outline: none;
}

.PlaygroundEditorTheme__tableCellSortedIndicator {
    display: block;
    opacity: 0.5;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #999;
}

.PlaygroundEditorTheme__tableCellResizer {
    position: absolute;
    right: -4px;
    height: 100%;
    width: 8px;
    cursor: ew-resize;
    z-index: 10;
    top: 0;
}

.PlaygroundEditorTheme__tableCellHeader,
#thirdPartyWrapContainer th {
    background-color: var(--editor-table-bg) !important;
    text-align: start;
}

.PlaygroundEditorTheme__tableCellSelected {
    background-color: #c9dbf0;
}

.PlaygroundEditorTheme__tableCellPrimarySelected {
    border: 2px solid rgb(60, 132, 244);
    display: block;
    height: calc(100% - 2px);
    position: absolute;
    width: calc(100% - 2px);
    left: -1px;
    top: -1px;
    z-index: 2;
}

.PlaygroundEditorTheme__tableCellEditing {
    box-shadow: 0 0 5px rgba(0, 0, 0, 40%);
    border-radius: 3px;
}


@keyframes table-controls {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.PlaygroundEditorTheme__tableCellResizeRuler {
    display: block;
    position: absolute;
    width: 1px;
    background-color: rgb(60, 132, 244);
    height: 100%;
    top: 0;
}

.PlaygroundEditorTheme__tableCellActionButtonContainer {
    display: block;
    right: 5px;
    top: 6px;
    position: absolute;
    z-index: 4;
    width: 20px;
    height: 20px;
}

.PlaygroundEditorTheme__tableCellActionButton {
    background-color: #eee;
    display: block;
    border: 0;
    border-radius: 20px;
    width: 20px;
    height: 20px;
    color: #222;
    cursor: pointer;
}

.PlaygroundEditorTheme__tableCellActionButton:hover {
    background-color: #ddd;
}

.PlaygroundEditorTheme__characterLimit {
    display: inline;
    background-color: #ffbbbb !important;
}

.PlaygroundEditorTheme__ol1,
#thirdPartyWrapContainer ol {
    padding: 0;
    font-size: var(--text-normal-size);
    margin: var(--text-normal-margin);
    line-height: var(--text-normal-line-height);
    list-style-position: outside;
}

.PlaygroundEditorTheme__ol2 {
    padding: 0;
    margin: 0;
    list-style-type: upper-alpha;
    list-style-position: outside;
}

.PlaygroundEditorTheme__ol3 {
    padding: 0;
    margin: 0;
    list-style-type: lower-alpha;
    list-style-position: outside;
}

.PlaygroundEditorTheme__ol4 {
    padding: 0;
    margin: 0;
    list-style-type: upper-roman;
    list-style-position: outside;
}

.PlaygroundEditorTheme__ol5 {
    padding: 0;
    margin: 0;
    list-style-type: lower-roman;
    list-style-position: outside;
}

.PlaygroundEditorTheme__ul,
#thirdPartyWrapContainer ul {
    padding: 0;
    font-size: var(--text-normal-size);
    margin: var(--text-normal-margin);
    line-height: var(--text-normal-line-height);
    list-style-position: outside;
}

.PlaygroundEditorTheme__listItem,
#thirdPartyWrapContainer li {
    margin-left: 20px;
}

.PlaygroundEditorTheme__listItemChecked,
.PlaygroundEditorTheme__listItemUnchecked {
    position: relative;
    margin-left: 8px;
    margin-right: 8px;
    padding-left: 24px;
    padding-right: 24px;
    list-style-type: none;
    outline: none;
}

.PlaygroundEditorTheme__listItemChecked {
    text-decoration: line-through;
}

.PlaygroundEditorTheme__listItemUnchecked::before,
.PlaygroundEditorTheme__listItemChecked::before {
    content: "";
    width: 16px;
    height: 16px;
    top: 2px;
    left: 0;
    cursor: pointer;
    display: block;
    background-size: cover;
    position: absolute;
}

.PlaygroundEditorTheme__listItemUnchecked[dir="rtl"]::before,
.PlaygroundEditorTheme__listItemChecked[dir="rtl"]::before {
    left: auto;
    right: 0;
}

.PlaygroundEditorTheme__listItemUnchecked:focus::before,
.PlaygroundEditorTheme__listItemChecked:focus::before {
    box-shadow: 0 0 0 2px #a6cdfe;
    border-radius: 2px;
}

.PlaygroundEditorTheme__listItemUnchecked::before {
    border: 1px solid #999;
    border-radius: 2px;
}

.PlaygroundEditorTheme__listItemChecked::before {
    border: 1px solid rgb(61, 135, 245);
    border-radius: 2px;
    background-color: #3d87f5;
    background-repeat: no-repeat;
}

.PlaygroundEditorTheme__listItemChecked::after {
    content: "";
    cursor: pointer;
    border-color: #fff;
    border-style: solid;
    position: absolute;
    display: block;
    top: 6px;
    width: 3px;
    left: 7px;
    right: 7px;
    height: 6px;
    transform: rotate(45deg);
    border-width: 0 2px 2px 0;
}

.PlaygroundEditorTheme__nestedListItem {
    list-style-type: none;
}

.PlaygroundEditorTheme__nestedListItem::before,
.PlaygroundEditorTheme__nestedListItem::after {
    display: none;
}
