#mainDiv {
  width: 100%;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: calc(var(--bfs) * 3) 0;
}

#editor {
  width: clamp(300px, 55.5%, 1200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0px;
  margin: 0px auto;
  color: var(--black) !important;
}

#relatedPostDiv {
  width: clamp(300px, 55.5%, 1200px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-template-areas: "previousPost followingPost";
  padding: calc(var(--bfs) * 2) 0px;
  margin: 0px auto;
  position: relative;
}

#relatedPostDiv > .previousPostA {
  color: var(--black);
  text-decoration: none;
  grid-area: previousPost;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

#relatedPostDiv > .followingPostA {
  color: var(--black);
  text-decoration: none;
  grid-area: followingPost;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}

.previousPostA > button,
.followingPostA > button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--bfs);
  background-color: var(--white);
  padding: calc(var(--bfs) * 0.3) calc(var(--bfs) * 0.6);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-out;
  font-size: var(--bfs08);
  color: var(--grey);
}

.previousPostA > button > img,
.followingPostA > button > img {
  width: calc(var(--bfs) * 1.5);
  height: calc(var(--bfs) * 1.5);
  opacity: 0.6;
  transition: all 0.3s ease-out;
}

.previousPostA > button:hover > img,
.followingPostA > button:hover > img {
  opacity: 1;
}

.previousPostA > button:hover,
.followingPostA > button:hover {
  color: var(--black);
}

#infoDiv {
  width: 100%;
  margin: auto;
  line-height: 1.6em;
}

#infoDiv > div:first-child > span {
  font-weight: 500;
  font-size: var(--bfs);
}

#infoDiv > div:first-child > span:nth-child(2) {
  color: var(--orange);
}

#infoDiv > div:last-child {
  font-size: var(--bfs08);
  color: var(--grey);
}

#post-toolbar {
  width: 100%;
  position: fixed;
  bottom: 0px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  padding: var(--bfs);
  gap: var(--bfs);
  box-shadow: 0px -2px 4px var(--grey);
  z-index: 100;
}

#post-toolbar > button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--bfs);
  border-radius: 10px;
  background-color: var(--white);
  padding: calc(var(--bfs) * 0.3) calc(var(--bfs) * 0.6);
  border: 0.3px solid var(--grey);
  cursor: pointer;
  transition: all 0.3s ease-out;
  box-shadow: 1px 1px 15px var(--white);
}

#post-toolbar > button:hover {
  box-shadow: 1px 1px 15px var(--orange);
}

#post-toolbar > button > span {
  font-size: var(--bfs);
  color: var(--grey);
}

#post-toolbar > button > img {
  width: calc(var(--bfs) * 1.5);
  height: calc(var(--bfs) * 1.5);
  opacity: 0.6;
}

.codex-editor__redactor {
  padding-bottom: calc(var(--baseFontSize) * 2) !important;
}

@media screen and (max-width: 1300px) {
  #editor {
    width: 70%;
  }

  #relatedPostDiv {
    width: 70%;
  }
}

@media screen and (max-width: 1100px) {
  #editor {
    width: 80%;
  }

  #relatedPostDiv {
    width: 80%;
  }
}

@media screen and (max-width: 991px) {
  #editor {
    width: 87%;
  }

  #relatedPostDiv {
    width: 87%;
  }
}

@media screen and (max-width: 800px) {
  #post-toolbar {
    flex-direction: column;
    gap: var(--bfs);
    align-items: stretch;
  }
}

@media screen and (max-width: 600px) {
  #editor {
    width: 95%;
  }
}

.ce-block__content,
.ce-toolbar__content {
  max-width: calc(100% - 80px) !important;
  margin: 0px auto !important;
}
.cdx-block {
  max-width: 100% !important;
  margin-bottom: var(--bfs) !important;
}

.ce-paragraph {
  width: 100% !important;
  text-align: justify !important;
}

#editor div {
  font-family: var(--blogFont) !important;
  font-size: var(--bfs);
}

#editor div i {
  font-family: var(--blogFont) !important;
  font-size: var(--bfs);
}

#editor div a {
  font-family: var(--blogFont) !important;
  font-size: var(--bfs);
  color: var(--orange);
}

#editor div b {
  font-family: var(--blogFont) !important;
  font-size: var(--bfs);
  font-weight: 500;
}

#editor p {
  font-family: var(--blogFont) !important;
  font-size: var(--bfs);
}

#editor li {
  font-family: var(--blogFont) !important;
}

#editor h1 {
  font-family: var(--blogFont) !important;
  font-size: calc(var(--bfs) * 1.9) !important;
  font-weight: 700;
}

#editor h2 {
  font-family: var(--blogFont) !important;
  font-size: calc(var(--bfs) * 1.6) !important;
  font-weight: 500;
}

#editor h3 {
  font-family: var(--blogFont) !important;
  font-size: calc(var(--bfs) * 1.4) !important;
  font-weight: 500;
}

#editor h4 {
  font-family: var(--blogFont) !important;
  font-size: calc(var(--bfs) * 1.9) !important;
  font-weight: 700;
  color: var(--orange) !important;
}

#editor h5 {
  font-family: var(--blogFont) !important;
  font-size: calc(var(--bfs) * 1.6) !important;
  font-weight: 500;
  color: var(--orange) !important;
}

#editor h6 {
  font-family: var(--blogFont) !important;
  font-size: calc(var(--bfs) * 1.4) !important;
  font-weight: 500;
  color: var(--orange) !important;
}

.tc-cell {
  border: 1px solid var(--grey) !important;
  font-size: var(--bfs);
}

.cdx-marker {
  background-color: var(--orange) !important;
  font-family: var(--blogFont) !important;
  font-size: var(--bfs);
}

.cdx-underline {
  font-family: var(--blogFont) !important;
  font-size: var(--bfs);
}

.cdx-alert-success {
  background-color: rgba(126, 220, 175, 0.6) !important;
  color: var(--black) !important;
  border: 0.6px solid var(--success) !important;
  font-family: var(--blogFont) !important;
  font-size: var(--bfs);
}

.cdx-alert-warning {
  background-color: rgba(253, 255, 163, 0.6) !important;
  color: var(--black) !important;
  border: 0.6px solid var(--warning) !important;
  font-family: var(--blogFont) !important;
  font-size: var(--bfs);
}

.cdx-alert-danger {
  background-color: rgba(255, 149, 151, 0.6) !important;
  color: var(--black) !important;
  border: 0.6px solid var(--error) !important;
  font-family: var(--blogFont) !important;
  font-size: var(--bfs);
}

.cdx-alert-info {
  background-color: rgba(172, 187, 255, 0.6) !important;
  color: var(--black) !important;
  border: 0.6px solid var(--info) !important;
  font-family: var(--blogFont) !important;
  font-size: var(--bfs);
}

.cdx-alert-dark {
  background-color: var(--grey) !important;
  color: var(--grey) !important;
  border: 0.6px solid black !important;
  font-family: var(--blogFont) !important;
  font-size: var(--bfs);
}

.link-tool__content {
  box-shadow: none !important;
  border: 0px solid var(--grey) !important;
  font-size: calc(var(--bfs) * 0.75) !important;
}

.link-tool__content--rendered {
  box-shadow: 2px 2px 6px var(--grey) !important;
  border: 0px solid var(--grey) !important;
  transition: box-shadow 0.3s ease-in-out;
  font-size: calc(var(--bfs) * 0.75) !important;
}

.link-tool__content--rendered:hover {
  box-shadow: 3px 3px 14px var(--grey) !important;
}

.link-tool__content__wrapper {
  border-left: 4px solid var(--orange) !important;
  font-size: calc(var(--bfs) * 0.75) !important;
}

.cdx-checklist__item--checked .cdx-checklist__item-checkbox {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
}

.image-tool--withBackground .image-tool__image {
  background-color: var(--orange-light) !important;
}

/* Setting provider styling */

.setting-provider-shadow {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 11;
  background-color: rgba(0, 0, 0, 0.6);
}

.setting-provider-main {
  width: 90%;
  background-color: var(--white);
  border-radius: 10px;
  display: grid;
  padding: var(--bfs);
  overflow: hidden;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas: "section service post" "button button button";
}

.setting-provider-section-column {
  grid-area: section;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px;
  height: 40vh;
  overflow-y: scroll;
}

.setting-provider-service-column {
  grid-area: service;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px;
  height: 40vh;
  overflow-y: scroll;
}

.setting-provider-post-column {
  grid-area: post;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px;
  height: 40vh;
  overflow-y: scroll;
}

.setting-provider-section-column > h4,
.setting-provider-service-column > h4,
.setting-provider-post-column > h4 {
  width: 100%;
  text-align: center;
  font-size: var(--bfs);
  font-weight: 500;
  color: var(--grey);
}

.setting-provider-button-div {
  grid-area: button;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  gap: var(--bfs);
  padding: var(--bfs);
  border-top: 0.3px solid var(--grey);
}

.setting-provider-button-div > .showDateInputDiv {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: var(--bfs);
}

.setting-provider-button-div > .showDateInputDiv > label {
  font-size: var(--bfs);
  color: var(--grey);
}

.setting-provider-button-div > .showDateInputDiv > input[type="checkbox"] {
  width: var(--bfs) !important;
  height: var(--bfs) !important;
  cursor: pointer;
}

.setting-provider-close-button {
  padding: calc(var(--bfs) * 0.4) calc(var(--bfs) * 0.9);
  border-radius: 7px;
  background-color: var(--white);
  border: 0.3px solid var(--grey);
  cursor: pointer;
  transition: all 0.3s ease-out;
  box-shadow: 1px 1px 15px var(--white);
}

.setting-provider-close-button:hover {
  box-shadow: 1px 1px 15px var(--orange);
}

.setting-provider-save-button {
  padding: calc(var(--bfs) * 0.4) calc(var(--bfs) * 0.9);
  border-radius: 7px;
  background-color: var(--white);
  border: 0.3px solid var(--grey);
  cursor: pointer;
  transition: all 0.3s ease-out;
  box-shadow: 1px 1px 15px var(--white);
}

.setting-provider-save-button:hover {
  box-shadow: 1px 1px 15px var(--orange);
}

.setting-provider-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: var(--bfs);
  padding: calc(var(--bfs) * 0.4) calc(var(--bfs) * 0.9);
}

.setting-provider-option > span {
  font-size: var(--bfs08);
  color: var(--black);
}

.setting-provider-option > input[type="checkbox"] {
  width: var(--bfs) !important;
  height: var(--bfs) !important;
  cursor: pointer;
}
