/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/

.ck-content {
  /* Font */
  /* Emoji fonts are added to visualise them nicely in Internet Explorer. */
  font-family: sans-serif, Arial, Verdana, "Trebuchet MS", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 12px;

  /* Text color */
  color: #333;

  /* Remove the background color to make it transparent. */
  background-color: #fff;

  /*margin: 20px;*/
}

.ck-content .cke_editable {
  font-size: 13px;
  line-height: 1.6;

  /* Fix for missing scrollbars with RTL texts. (#10488) */
  word-wrap: break-word;
}

.ck-content blockquote {
  font-style: italic;
  font-family: Georgia, Times, "Times New Roman", serif;
  padding: 2px 0;
  border-style: solid;
  border-color: #ccc;
  border-width: 0;
}

.ck-content .cke_contents_ltr blockquote {
  padding-left: 20px;
  padding-right: 8px;
  border-left-width: 5px;
}

.ck-content .cke_contents_rtl blockquote {
  padding-left: 8px;
  padding-right: 20px;
  border-right-width: 5px;
}

.ck-content a {
  color: #0782C1;
  text-decoration: underline;
}

.ck-content ol, .ck-content ul, .ck-content dl {
  /* IE7: reset rtl list margin. (#7334) */
  *margin-right: 0px;
  /* Preserved spaces for list items with text direction different than the list. (#6249,#8049)*/
  padding: 0 40px;
}

.ck-content ol {
  display: block;
  list-style-type: decimal;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}

.ck-content ul {
  display: block;
  list-style-type: disc;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}

.ck-content h1, .ck-content h2, .ck-content h3, .ck-content h4, .ck-content h5, .ck-content h6 {
  font-weight: normal;
  line-height: 1.2;
}

.ck-content hr {
  border: 0px;
  border-top: 1px solid #ccc;
  display: block;
  unicode-bidi: isolate;
  margin-block-start: 0.5em;
  margin-block-end: 0.5em;
  margin-inline-start: auto;
  margin-inline-end: auto;
  overflow: hidden;
}

.ck-content img.right {
  border: 1px solid #ccc;
  float: right;
  margin-left: 15px;
  padding: 5px;
}

.ck-content img.left {
  border: 1px solid #ccc;
  float: left;
  margin-right: 15px;
  padding: 5px;
}

.ck-content pre {
  white-space: pre-wrap; /* CSS 2.1 */
  word-wrap: break-word; /* IE7 */
  -moz-tab-size: 4;
  tab-size: 4;
}

.ck-content .marker {
  background-color: Yellow;
}

.ck-content span[lang] {
  font-style: italic;
}

.ck-content figure {
  text-align: center;
  outline: solid 1px #ccc;
  background: rgba(0, 0, 0, 0.05);
  padding: 10px;
  margin: 10px 20px;
  display: inline-block;
}

.ck-content figure > figcaption {
  text-align: center;
  display: block; /* For IE8 */
}

.ck-content a > img {
  padding: 1px;
  margin: 1px;
  border: none;
  outline: 1px solid #0782C1;
}

/* Widget Styles */
.ck-content .code-featured {
  border: 5px solid red;
}

.ck-content .math-featured {
  padding: 20px;
  box-shadow: 0 0 2px rgba(200, 0, 0, 1);
  background-color: rgba(255, 0, 0, 0.05);
  margin: 10px;
}

.ck-content .image-clean {
  border: 0;
  background: none;
  padding: 0;
}

.ck-content .image-clean > figcaption {
  font-size: .9em;
  text-align: right;
}

.ck-content .image-grayscale {
  background-color: white;
  color: #666;
}

.ck-content .image-grayscale img, .ck-content img.image-grayscale {
  filter: grayscale(100%);
}

.ck-content .embed-240p {
  max-width: 426px;
  max-height: 240px;
  margin: 0 auto;
}

.ck-content .embed-360p {
  max-width: 640px;
  max-height: 360px;
  margin: 0 auto;
}

.ck-content .embed-480p {
  max-width: 854px;
  max-height: 480px;
  margin: 0 auto;
}

.ck-content .embed-720p {
  max-width: 1280px;
  max-height: 720px;
  margin: 0 auto;
}

.ck-content .embed-1080p {
  max-width: 1920px;
  max-height: 1080px;
  margin: 0 auto;
}

.ck-content table {
  border-collapse: collapse;
}

.ck-content table tr > td {
  padding: 4px 10px;
}

.ck-content h1 {
  font-size: 2em;
}

.ck-content h2 {
  font-size: 1.5em;
}

.ck-content h3 {
  font-size: 1.17em;
}

.ck-content h5 {
  font-size: 0.83em;
}

.ck-content h6 {
  font-size: 0.83em;
}

.ck-content address, .ck-content em {
  font-style: italic;
}

.ck-content p {
  margin: 1em 0;
  /*min-height: 1em;*/
}

/****** CKEDITOR 5 *******/
.ck-editor__editable {
  /* editing area */
  min-height: 200px;
}

/* 글쓰기 영역일 때 스크롤 생성 */
.ck-editor__editable:not(.ck-read-only) {
  max-height: 200px;
}

.ck-content .image {
  /* block images */
  max-width: 80%;
  margin: 20px auto;
}

/* "Powered by CKEditor" logo customization. */
.ck-powered-by {
  display: none;
}

.ck-read-only .ck-widget__selection-handle {
  display: none;
}

.ck-read-only figure.ck-widget {
  outline: none !important;
}
