* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  word-spacing: 1px;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  color: #333;
  text-align: left;
  background: #f3f3f4;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.container {
  padding-top: 70px;
  padding-left: 15px;
  padding-right: 15px;
}

[tabindex="-1"]:focus:not(:focus-visible) {
  outline: 0 !important;
}

ol,
ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  background-color: transparent;
}

a:focus {
  text-decoration: none;
}

img {
  vertical-align: middle;
  border-style: none;
  max-width: 100%;
  user-select: none;
}

pre {
  display: block;
}

pre code {
  display: block;
  white-space: pre-wrap;
}

/* ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: rgba(120, 120, 120, 0.7);
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(120, 120, 120, 0.8);
}

::-webkit-scrollbar-thumb:active {
  background-color: rgba(120, 120, 120, 0.9);
}

::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: #f5f5f5;
} */

.ant-form-item {
  margin-bottom: 15px;
}

.ant-form-item-label {
  line-height: 30px;
}

.ant-empty-description {
  user-select: none;
  color: #888;
}

.ant-input-group-addon {
  line-height: 1.5;
}

.tui-editor-defaultUI {
  border-top-left-radius: 4px !important;
  border-top-right-radius: 4px !important;
}

.tui-editor-defaultUI .te-tab button {
  height: 32px !important;
}

.te-markdown-tab-section .te-tab {
  margin-left: 12px !important;
}

.te-md-container .te-preview {
  padding: 0 15px !important;
}

.te-md-container .te-preview .tui-editor-contents {
  padding-top: 5px !important;
}

.tui-editor-defaultUI .CodeMirror pre.CodeMirror-placeholder {
  padding-left: 16px !important;
}

.tui-tooltip {
  max-width: 250px !important;
  min-height: 34px !important;
  padding: 8px 12px !important;
  color: #fff !important;
  text-align: left !important;
  text-decoration: none !important;
  background-color: rgba(70, 76, 91, 0.9) !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2) !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  border-radius: 4px !important;
}

.tui-editor-defaultUI .CodeMirror-lines {
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

.tui-editor-defaultUI .CodeMirror-line {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.tui-md-code-block.CodeMirror-linebackground {
  left: 14px !important;
  right: 14px !important;
}

.tui-toolbar-icons:disabled {
  display: none !important;
}

.tui-toolbar-icons:disabled + .tui-toolbar-divider {
  display: none !important;
}

.CodeMirror pre {
  line-height: 1.6 !important;
}

.comments-wrap .tui-editor-contents h1,
.comments-wrap .tui-editor-contents h2,
.comments-wrap .tui-editor-contents h3,
.comments-wrap .tui-editor-contents h4 {
  font-weight: bold !important;
  font-size: 1rem !important;
  line-height: 17px !important;
  margin: 10px 0 -4px !important;
  color: #333 !important;
  border: 0 !important;
  padding: 0 !important;
}

.te-markdown-tab-section {
  user-select: none !important;
}

.tui-editor-contents pre {
  border-radius: 4px !important;
}

.tui-tooltip .arrow {
  display: none !important;
}

.tui-editor-defaultUI-toolbar button:hover,
.tui-editor-defaultUI-toolbar button:active,
.tui-editor-defaultUI-toolbar button.active {
  border-color: #bbb !important;
  border-radius: 3px !important;
}

.tui-editor-popup {
  position: fixed !important;
  top: 50% !important;
  transform: translate(0, -50%) !important;
  box-shadow: 0px 0px 10px #aaa !important;
  border-radius: 5px !important;
}

.tui-editor-contents li.task-list-item {
  margin-left: -15px !important;
  pointer-events: none !important;
}

.ant-calendar-picker {
  width: 100%;
}

.link-dark {
  color: #555;
}

.link-dark:hover {
  color: #777;
}

.icon-emoji {
  display: inline-block;
  background-size: cover;
  height: 1.5em;
  width: 1.5em;
  margin: 0 1px;
  vertical-align: text-bottom;
}

.popup-emojis {
  height: 40vh;
  overflow: auto;
}

.popup-emojis li {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  float: left;
}

.popup-emojis li .icon-emoji {
  width: 2em;
  height: 2em;
  cursor: pointer;
  transition: all ease .3s;
}

.popup-emojis li .icon-emoji:hover {
  transform: scale(1.3);
}

.tui-editor-defaultUI-toolbar .custom-button {
  color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tui-editor-defaultUI-toolbar .custom-button:disabled {
  display: none !important;
}

::selection {
  background: #ffbd2e;
  color: inherit;
}

@media (max-width: 576px) {
  .container {
    padding-left: 0;
    padding-right: 0;
  }
}
