:root {
  --bg: white;
  --brand: #1e90ff;
  --hover: #F8F9F9;
  --font-color: #2a2a2a;
  --border: #dadada;
  --placeholder: #ccc;
  /*--font-family: 'Roboto', sans-serif;*/
  --font-family: 'Lexend', sans-serif;
}
body {
  font-size: 16px;
  font-family: var(--font-family);
}
a {
  color: var(--brand);
}
.ui-resizable-e {
  cursor: col-resize;
}
.ce-toolbar__plus {
    border: 1px solid var(--border);
    border-radius: 100%;
    transition: all .2s linear;
    background-color: var(--bg);
}
.ce-toolbar__plus:hover {
  transform: rotate(90deg);
  border-color: var(--brand);
  background-color: var(--brand);
}
.ce-toolbar__plus:hover path {
  stroke: white;
}
.ce-toolbar__settings-btn {
  border: 1px solid transparent;
  background-color: var(--bg) !important;
}
.ce-toolbar__settings-btn:hover {
  border-color: var(--border);
}

.container {
  display: flex;
}

.sidebar {
  min-width: 300px;
  width: 300px;
  background-color: white;
  padding: 10px;
  display: flex;
  flex-direction: row;
  align-content: space-between;
  flex-wrap: wrap;
  border-right: 1px solid var(--border);
  /*height: calc(100vh - 64px);*/
}
.sidebar .ce-toolbar--opened {
  /*margin-top: 4px;*/
  z-index: 2;
}
.sidebar .ce-toolbar [data-item-name="image"],
.sidebar .ce-toolbar [data-item-name="paragraph"] {
  display: none;
}
.ce-toolbar [data-item-name="aiText"] path {
  stroke: none;
}
.sidebar .ce-block:not(.page-block) {
  padding: 6px 12px;
}
.sidebar .ce-block .ce-header {
  padding: 0;
}
.sidebar .ce-block:not(.simple-image-block):hover {
  background-color: var(--hover);
}
.sidebar .cdx-simple-image {
  padding: 0;
}
.sidebar .codex-editor__redactor {
  width: 100%;
  /*height: 100vh;*/
}
.sidebar .cdx-simple-image__caption {
  border: none;
  box-shadow: none;
  text-align: center;
}
.sidebar .ce-toolbar__content {
  max-width: 100%;
}
.sidebar .ce-block__content .page-tool {
  color: var(--brand);
  cursor: pointer;
  padding: 6px 12px;
}
.sidebar .ce-block__content .page-tool:focus {
  color: #000;
}
.sidebar .ce-block__content .page-tool input {
  width: 70% !important;
}
.sidebar .toggle-block__input {
  font-size: 1em;
  line-height: 1.25em;
  font-weight: 600;
}
.sidebar .notes {
  width: 100%;
}
.sidebar #ce-updated {
  color: var(--placeholder);
  font-size: 12px;
  text-align: center;
  margin: 0 auto 24px;
}
.content {
  flex-grow: 1;
  padding: 10px 0;
}
.content .ce-block {
  margin-bottom: 16px;
}
.content .ce-block:not(.toc-block) .ce-block__content,
.content .ce-toolbar__content {
  max-width: 60%;
  width: 60% !important;
  margin: 0 25% 0 15%
}
.ce-block--selected .ce-block__content {
  /*background: #e1f2ff80;*/
  background: var(--hover);
}
h1.ce-header {
  font-size: 3em;
}
.content .ce-header {
  font-weight: 600;
}
.content .ce-header[data-placeholder][data-empty=true]:before {
  color: var(--placeholder);
  font-weight: normal;
}
[data-item-name=embedFigma] path {
  stroke: none !important;
}
.toc-block {
  position: absolute;
  right: 0;
  max-width: 240px;
  margin-right: 48px;
  top: 40px;
}
.toc-wrapper a {
  display: block;
  color: #605f60;
  text-decoration: none;
  padding: 4px 12px;
  max-width: 100%;
  word-wrap: break-word;
}
.toc-wrapper a:hover {
  color: var(--font-color);
  background-color: var(--hover);
}
.toc-wrapper {
  padding: 0.6em 0 3px;
}

.toc-paragraph {
    display: block;
    line-height: 2;
}

.toc-l-1 {
    margin-left: 0;
}

.toc-l-2 {
    margin-left: 1.0em;
}

.toc-l-3 {
    margin-left: 2.0em;
}

.toc-l-4 {
    margin-left: 3.0em;
}

.toc-l-5 {
    margin-left: 4.0em;
}

.toc-l-6 {
    margin-left: 5.0em;
}
.codex-editor__redactor:has(> .toc-block:hover) ~ .ce-toolbar--opened {
  display: none;
  /*margin-left: 80% !important;*/
  /*right: 270px !important;*/
}
.toggle-block__content-default {
  padding: 12px;
  font-size: 14px;
}
.ce-delimiter {
  padding: 0;
  height: 5px;
  line-height: 0;
}
.ce-delimiter:before {
  display: block;
  content: "";
  height: 1px;
  width: 10%;
  border-top: 1px dotted var(--border);
  margin: 24px auto;
}
.cdx-simple-image img {
  max-width: 100%;
  vertical-align: bottom;
  margin: 0 auto;
  display: block;
}
.nav {
  display: flex;
  padding: 4px 48px;
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 99;
  width: calc(100% - 96px);
  background-color: #fff;
}
.nav a:not(#mainlogo) {
  text-decoration: none;
  color: var(--brand);
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.nav a:not(#mainlogo):hover {
  background-color: var(--hover);
  border: 1px solid var(--brand);
}
#mainlogo {
  font-weight: 400;
  font-size: 18px;
  text-decoration: none;
  color: var(--font-color);
  background: url(../assets/test_logo.svg) no-repeat top center transparent;
  display: block;
  background-size: 100px;
  width: 130px;
  text-align: right;
  line-height: 50px;
  background-position: -40px center;
}
.nav + .container {
  margin-top: 58px;
}

.ripple-container .ripple {
  background-color: rgba(255,255,255,0.4);
  animation: ripple 2s forwards cubic-bezier(0, 0, 0.2, 1);
}
 @keyframes 
  ripple {  0% {
   transform: scale(0);
   opacity: 1;
  }
   80% {
   transform: scale(1);
  }
   100% {
   opacity: 0;
  }
}

#toggleReadOnlyButton {
  margin-left: 24px;
  background-color: green;
  background-color: #00b894;
}
#toggleReadOnlyButton.active {
  background-color: red;
  background-color: #d63031;
}
#toggleReadOnlyButton span {
  color: white;
  font-size: 13px;
  font-family: var(--font-family);
  font-weight: 400;
}

.cdx-simple-image .cdx-loader {
  min-height: 200px;
}

.cdx-simple-image img {
  max-width: 100%;
  vertical-align: bottom;
}

.cdx-simple-image__caption[contentEditable=true][data-placeholder]:empty::before {
  position: absolute;
  content: attr(data-placeholder);
  color: #707684;
  font-weight: normal;
  opacity: 0;
 }

.cdx-simple-image__caption[contentEditable=true][data-placeholder]:empty::before {
  opacity: 1;
}

.cdx-simple-image__caption[contentEditable=true][data-placeholder]:empty:focus::before {
  opacity: 0;
}

.cdx-simple-image__picture--with-background {
  background: #eff2f5;
  padding: 10px;
}

.cdx-simple-image__picture--with-background img {
  display: block;
  max-width: 60%;
  margin: 0 auto;
}

.cdx-simple-image__picture--with-border {
  border: 1px solid #e8e8eb;
  padding: 1px;
}

.cdx-simple-image__caption {
  display: none;
  margin-top: 10px;
}
.cdx-simple-image__caption[data-empty="true"] {
  text-indent: -45%;
}
.cdx-simple-image__picture.cdx-simple-image__picture--usecaption + .cdx-simple-image__caption {
  display: block;
}

.cdx-simple-image__picture--stretched img {
  max-width: none;
  width: 100%;
}

.ce-header {
  padding: 0.6em 0 0;
  margin: 0;
  line-height: 1.25em;
  outline: none;
}

.ce-header p,
.ce-header div {
  padding: 0 !important;
  margin: 0 !important;
}

/**
 * Styles for Plugin icon in Toolbar
 */
.ce-header__icon {
}

.ce-header[contentEditable="true"][data-placeholder]::before {
  position: absolute;
  content: attr(data-placeholder);
  color: #707684;
  font-weight: normal;
  display: none;
  cursor: text;
}

.ce-header[contentEditable="true"][data-placeholder]:empty::before {
  display: block;
}

.ce-header[contentEditable="true"][data-placeholder]:empty:focus::before {
  display: none;
}

/* Alignment*/
.ce-header--right {
  text-align: right;
}
.ce-header--center {
  text-align: center;
}
.ce-header--left {
  text-align: left;
}
.ce-header--justify {
  text-align: justify;
}

.ce-paragraph {
    line-height: 1.6em;
    outline: none;
}
.ce-paragraph--right {
    text-align: right;
}
.ce-paragraph--center {
    text-align: center;
}
.ce-paragraph--left {
    text-align: left;
}

.ce-paragraph--justify {
    text-align: justify;
}

.codex-editor [data-placeholder][data-empty=true]:before,
.ce-paragraph[data-placeholder]:empty::before{
  content: attr(data-placeholder);
  color: var(--placeholder);
  font-weight: normal;
  opacity: 1;
}

/** Show placeholder at the first paragraph if Editor is empty */
.codex-editor--empty .ce-block:first-child .ce-paragraph[data-placeholder]:empty::before {
  opacity: 1;
}

.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph[data-placeholder]:empty::before,
.codex-editor--empty .ce-block:first-child .ce-paragraph[data-placeholder]:empty:focus::before {
  opacity: 0;
}

.ce-paragraph p:first-of-type{
    margin-top: 0;
}

.ce-paragraph p:last-of-type{
    margin-bottom: 0;
}


.svg-icon {
    width: 1em;
    height: 1em;
}

.svg-icon path,
.svg-icon polygon,
.svg-icon rect {
    fill: #4691f6;
}

.svg-icon circle {
    stroke: #4691f6;
    stroke-width: 1;
}

#ai-suggestions {
  display: block;
}
#ai-suggestions span {
  color: var(--brand);
  display: block;
}

.cdx-image-select {
  padding: 24px;
  background-color: var(--hover);
  width: calc(100% - 48px);
  border: 1px dashed var(--border);
}
input[type="file" i]::-webkit-file-upload-button {
    padding: 8px 12px;
    margin-right: 12px;
    font-family: var(--font-family);
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 4px;
}
input[type="file" i]::-webkit-file-upload-button:hover {
  background: #3D8DE5;
}
.cdx-image-select:hover {
  background-color: #1e90ff10;
}
.sidebar .ce-toolbar .ce-popover-item-html:has(> .simple-image-tunes) ~ .ce-popover-item[data-item-name="move-up"],
.sidebar .ce-toolbar .ce-popover-item-html:has(> .simple-image-tunes) ~ .ce-popover-item[data-item-name="move-down"],
.sidebar .ce-toolbar .ce-popover-item-html:has(> .simple-image-tunes) ~ .ce-popover-item-separator,
.sidebar .ce-toolbar .ce-popover-item-html:has(> .simple-image-tunes) ~ .ce-popover-item[data-item-name="delete"] {
  display: none;
}
.ce-popover-indent-item:is([version^="2.26"], [version^="2.27"], [version^="2.28"], [version^="2.29"]) .ce-popover-item__icon,
.ce-popover-indent-item:is([version^="2.26"], [version^="2.27"], [version^="2.28"], [version^="2.29"]):hover .ce-popover-item__icon {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}
.ce-popover-indent-item .ce-popover-item__title {
  margin-left: 4px;
}

.ce-tune-alignments {
  display: flex;
  justify-content: space-around;
  padding: 0 8px;
}
.ce-tune-alignment--right {
    text-align: right;
}
.ce-tune-alignment--center {
    text-align: center;
}
.ce-tune-alignment--left {
    text-align: left;
}
.ce-tune-alignment--justify {
    text-align: justify;
}

.cdx-quote__text {
  border: none;
  box-shadow: none;
  -webkit-box-shadow: none;
  min-height: auto;
  margin-bottom: 0;
  padding: 0;
}
.cdx-quote__caption {
  border: none;
  box-shadow: none;
  -webkit-box-shadow: none;
  min-height: auto;
  padding: 0;
  opacity: .5;
  font-size: 14px;
  font-style: italic;
}

#ai-suggestions-loader {
  border: none;
  position: absolute;
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  padding-left: 16px;
}