html {
    scroll-behavior: smooth;
}

body {
    display: inline-block;
    user-select: none;
    font-family: Arial;
}

abbr {
    border: none;
    text-decoration: none;
}

::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

::-webkit-scrollbar-track {
    background: lightgrey;
}

::-webkit-scrollbar-thumb {
    background: grey;
}

/* */

.ql-editor {
    font-size: 12px !important;
}

.ql-editor.ql-blank::before {
    font-size: 12px !important;
    font-style: normal !important;
}

.ql-bubble .ql-tooltip-arrow {
    border-bottom: transparent !important;
}

.ql-bubble .ql-toolbar .ql-fill {
    fill: white !important;
    stroke: none !important;
}

.ql-bubble .ql-toolbar .ql-stroke {
    fill: none !important;
    stroke: white !important;
}

.ql-bubble .ql-toolbar .ql-picker {
    color: white !important;
}

.ql-bubble .ql-picker-options {
    background-color: black !important;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.32);
}

.ql-bubble .ql-picker-label {
    color: white !important;
}

.ql-bubble .ql-picker-item {
    color: white !important;
}

.ql-bubble .ql-tooltip { /* else, can't click on toolbar if it extends out of bounds of grid */
    z-index: 92;
    width: max-content !important;
    border-radius: 0px !important;
    background-color: black !important;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.32);
}

.ql-editor ul, ol {
    padding-left: 0.125rem !important;
}
.ql-indent-1 {
    padding-left: 2.125rem !important;
}
.ql-indent-2 {
    padding-left: 3.125rem !important;
}
.ql-indent-3 {
    padding-left: 4.125rem !important;
}
.ql-indent-4 {
    padding-left: 5.125rem !important;
}
.ql-indent-5 {
    padding-left: 6.125rem !important;
}
.ql-indent-6 {
    padding-left: 7.125rem !important;
}
.ql-indent-7 {
    padding-left: 8.125rem !important;
}
.ql-indent-8 {
    padding-left: 9.125rem !important;
}
.ql-indent-9 {
    padding-left: 10.125rem !important;
}

/* */

.zem_row {

}

/* */

.zem_button_ {
    position: absolute;
    height: 16px;
    width: 16px;
    font-size: 11px;
    text-align: center;
    cursor: pointer;
}

.zem_opaque_ {
    opacity: 0.32;
}

/* */

.zem_point_main {
    display: inline-block;
    min-height: 41px;
    min-width: 40px;
    margin-top: 12px !important;
    margin-left: 16px !important;
}

.zem_point_side {
    display: block;
    min-height: 41px;
    max-height: 152px; /* zem_default.height */
    margin: 16px !important;
}

.zem_selectx {
    box-shadow: 0 0 32px 0 rgba(0, 0, 0, 0.64) !important;
}

.zem_select1 {
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.32) !important;
}

.zem_select2 {
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.32) !important;
}

.zem_outline { /* https://stackoverflow.com/questions/18344272/jquery-ui-resizable-box-sizing-border-box-height-bug */
    outline: 1px solid lightgrey;
}

.zem_shadow {
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.16);
}

.zem_color {
    color: black;
    background-color: white;
}

.zem_hidex {
    outline: none !important;
    box-shadow: none;
}

.zem_hide1 {
    display: none;
}

.zem_hide2 {
    display: none;
}

.zem_hide3 {
    display: none;
}

.zem_hide_ {
    opacity: 0;
}

.zem_hide_:hover {
    opacity: 1;
}

/* */

.zem_sidebar {
    z-index: 91;
    position: fixed;
    top: 0px;
    height: 100%;
    width: 192px;
    margin-top: 48px;
    overflow-x: hidden;
    overflow-y: scroll;
    background-color: rgba(255, 255, 255, 0.64);
}

.zem_sidebar_header {
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 16px;
    cursor: pointer;
}

.zem_sidebar_option {
    padding: 4px;
    padding-left: 16px;
    margin-bottom: 1px;
    font-size: 10px;
    cursor: pointer;
}

.zem_sidebar_option:hover {
    background-color: lightgrey;
}

.zem_sidebar_header_container {
    height: 32px;
    margin: 16px;
    margin-bottom: 1px;
    font-size: 12px;
}

.zem_sidebar_options_container {
    margin: 16px;
    margin-top: 0px;
}

.zem_sidebar_item {
    max-height: 82px;
    padding: 12px;
    margin-top: 0px;
    margin-bottom: 16px;
    overflow-y: scroll;
    overflow-x: hidden;
    /* modified ql-editor */
    tab-size: 0.5 !important;
    font-size: 10px !important;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.zem_sidebar_item > p {
    margin: 0rem !important;
}

.zem_sidebar_item > ol {
    margin: 0rem !important;
}

.zem_sidebar_item > ol > li {
    margin: 0rem !important;
}

.zem_sidebar_item > h1 {
    margin: 0rem !important;
}

.zem_sidebar_item > h2 {
    margin: 0rem !important;
}

.zem_sidebar_item > h3 {
    margin: 0rem !important;
}

.zem_sidebar_item > h4 {
    margin: 0rem !important;
}

.zem_sidebar_item > h5 {
    margin: 0rem !important;
}

.zem_sidebar_item > h6 {
    margin: 0rem !important;
}

/* */

.zem_options {
    z-index: 95;
    position: fixed;
    width: 96px;
    /* */
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.32);
}

.zem_options_item {
    padding: 4px;
    padding-left: 12px;
    margin-bottom: 1px;
    font-size: 10px;
    cursor: pointer;
}

.zem_options_item:hover {
    background-color: lightgrey;
}

/* */

.zem_navbar {
    z-index: 92;
    position: fixed;
    height: 48px;
    padding-left: 16px;
    padding-right: 16px;
    background-color: black;
}

.zem_navbar_item {
    display: inline-block;
    padding: 6px !important;
    font-size: 24px !important;
    box-sizing: border-box;
    color: white;
}

/* */

.zem_modal {
    z-index: 97;
    position: fixed;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    padding-top: 64px;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.32);
}

.zem_modal_content {
    display: inline-block;
    vertical-align: top;
}

/* */

#zem_editor_free { /* cause zem_editor_free is used by containers for zem_mouse */
    z-index: 94;
    position: fixed;
    min-height: 40px;
    min-width: 40px;
}

/* */

#snack {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: black;
    color: white;
    text-align: center;
    padding: 16px;
    position: fixed;
    z-index: 96;
    left: 50%;
    bottom: 30px;
    font-size: 14px;
}

#snack.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}