/**
 * Bartik Editor Styles for CKEditor5
 * Extended version with indents, hanging styles, and video embeds
 */

body {
  font-family: Arial, sans-serif;
  font-size: 87.5%;
  line-height: 1.5;
  color: blue;
}

/* Headings */
h1, .heading-a { color: blue; font-size: 1.357em; margin: 0 0 0.5em; }
h2, .heading-b { color: red; text-align: center; font-size: 1.143em; margin: 1em 0 0.5em; border: 1px solid; }
h3, .heading-c { color: magenta; font-size: 1.092em; margin: 1em 0 0.5em; border-bottom: 1px solid; }
h4, .heading-d { font-size: 1.05em; margin: 1em 0 0.5em; }
h5, .heading-e { font-size: 0.889em; text-transform: uppercase; letter-spacing: 0.1em; margin: 1em 0 0.5em; }
h6, .heading-f { font-size: 0.67em; text-transform: uppercase; letter-spacing: 0.1em; margin: 1em 0 0.5em; }

/* Blockquotes */
blockquote {
  background: #F7F84D;
  border-left: 1px solid #bbb;
  padding: 0.5em 1.5em;
  margin: 0;
}

/* Lists */
ul, ol { margin: 0; padding: 0 0 0.25em 1em; }
ol ol, ul ul { margin: 0; padding: 0 0 0.25em 1em; }

/* Tables */
table { border-collapse: collapse; width: 100%; }
.table-bordered td, .table-bordered th { border: 1px solid #000; }
.table-striped tr:nth-child(even) { background-color: #f2f2f2; }
.table-header th { background-color: #ddd; font-weight: bold; }

/* Dictionary mappings */
.text-align-center, .rtecenter, .align-center { text-align: center; }
.text-align-left, .rteleft, .align-left { text-align: left; }
.text-align-right, .rteright, .align-right { text-align: right; }
.text-align-justify, .rtejustify { text-align: justify; }

.bold, .rtebold, .strong, .text-bold { font-weight: bold; }
.italic, .rteitalic, .emphasis, .text-italic { font-style: italic; }
.underline, .rteunderline, .text-underline { text-decoration: underline; }

.red-text, .rtered, .text-red { color: red; }
.blue-text, .rteblue, .text-blue { color: blue; }
.green-text, .rtegreen, .text-green { color: green; }
.yellow-text, .rteyellow, .text-yellow { color: #FFD700; }

.bg-red, .rtebgred, .background-red { background-color: red; }
.bg-blue, .rtebgblue, .background-blue { background-color: blue; }
.bg-green, .rtebggreen, .background-green { background-color: green; }
.bg-yellow, .rtebgyellow, .background-yellow { background-color: #FFD700; }
.bg-highlight, .rtebghighlight, .background-highlight { background-color: yellow; }

.list-disc, .rtelistdisc, .ul-disc { list-style-type: disc; }
.list-decimal, .rtelistdecimal, .ol-decimal { list-style-type: decimal; }

/* Indents & Hanging Styles */
.hangtwice { margin-left: 40px; text-indent: -40px; }
.hang1 { margin-left: 20px; text-indent: -20px; }
.hang2 { margin-left: 40px; text-indent: -20px; }
.hang3 { margin-left: 60px; text-indent: -20px; }
.hang4 { margin-left: 80px; text-indent: -20px; }
.hang5 { margin-left: 100px; text-indent: -20px; }

.indent1 { margin-left: 20px; }
.indent2 { margin-left: 40px; }
.indent3 { margin-left: 60px; }
.indent4 { margin-left: 80px; }

/* Video Embeds */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
