body {
    margin: 0;
}

.App {
    text-align: center;
}

.App-logo {
    height: 40vmin;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .App-logo {
        animation: App-logo-spin infinite 20s linear;
    }
}

.App-header {
    background-color: #282c34;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: calc(10px + 2vmin);
    color: white;
}

.App-link {
    color: #61dafb;
}

@keyframes App-logo-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.RichEditor-root {
    background: #fff;
    border: 1px solid #ddd;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 14px;
    padding: 0 15px 15px;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;


    .BtnBox {
        display: flex;
        flex-wrap: wrap;
        border-bottom: 1px solid #ddd;
        background: #fff;
        position: sticky;
        top: 0px;
        padding-top: 5px;
        z-index: 99;
    }

    .RichEditor-editor {
        cursor: text;
        font-size: 16px;
        margin-top: 10px;

        line-height: 1.5;
        height: calc(100% - 56px);
        overflow: auto;
    }

    .RichEditor-blank {
        flex: 1;
        cursor: text;
    }

    h1 {
        font-weight: bold;
    }

    h2 {
        font-weight: bold;
    }

    h3 {
        font-weight: bold;
    }

    h4 {
        font-weight: bold;
    }

    h5 {
        font-weight: bold;
    }

    h6 {
        font-weight: bold;
    }
}

.RichEditor-hidePlaceholder .public-DraftEditorPlaceholder-root {
    display: none;
}

.RichEditor-editor .RichEditor-blockquote {
    border-left: 5px solid #eee;
    color: #666;
        font-style: italic;
    margin: 0px 0;
    padding: 0px 20px;
}

.RichEditor-editor .public-DraftStyleDefault-pre {
    background-color: rgba(0, 0, 0, 0.05);
    font-family: "Inconsolata", "Menlo", "Consolas", monospace;
    font-size: 16px;

    padding: 10px;
}

.RichEditor-controls {
    font-family: "Helvetica", sans-serif;
    font-size: 14px;
    margin-bottom: 5px;
    user-select: none;
}

@mixin BtnStyle {
    cursor: pointer;
    margin-right: 16px;
    padding: 2px 0;
    display: inline-block;
}

.RichEditor-styleButton {
    color: #999;
    @include BtnStyle;
}

.RichEditor-activeButton {
    color: #5890ff;
    @include BtnStyle;
}

.controls {
    font-family: "Helvetica", sans-serif;
    font-size: 14;
    margin-bottom: 10;
    user-select: none;
}

.code {
    font-family: "Inconsolata", "Menlo", "Consolas", monospace;
    font-size: 16px;
}

.root {
    background: #fff;
    height: 100%;
    position: relative;
    max-width: 50em;
    margin: 0 auto;
}

.editor {
    padding: 2.5%;
    height: 100%;
    width: 100%;
}

pre {
    position: relative;
}

.switcherContainer {
    position: absolute;
    text-align: right;
    bottom: -23px;
    right: 3px;
}

.switcher {
    display: inline-block;
    font-family: sans-serif;
    color: #ccc;
    letter-spacing: 0.05em;
    font-size: 12px;
    padding: 0.3em;
    cursor: pointer;
    position: relative;
}

.switcherSelect {
    position: absolute;
    top: 0;
    cursor: pointer;
    opacity: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.block-align-left {
    text-align: left;
}

.block-align-center {
    text-align: center;
}

.block-align-right {
    text-align: right;
}