/*! SCEditor | (C) 2011-2013, Sam Clarke | sceditor.com/license */
html, p, code::before, div, table {
	margin: 0;
	padding: 0;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: var(--body-text);
	line-height: 1.25;
	overflow: visible;
}
html {
	height: 100%;
}
.ios {
	/* Needed for iOS scrolling bug fix */
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}
.ios body {
	/* Needed for iOS scrolling bug fix */
	position: relative;
	overflow: auto;
}
body {
	/* Needed to make sure body covers the whole editor and that
		long lines don't cause horizontal scrolling */
	min-height: 100%;
	word-wrap: break-word;
	margin: 0 5px;
	padding: 0;
}

ul, ol {
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
}

table, td {
	border: 1px dotted var(--body-text);
	empty-cells: show;
	min-width: 0.5ch;
}

code::before {
	position: absolute;
	content: 'Code:';
	top: -1.35em;
	left: 0;
}
code[data-title]::before {
	content: 'Code: (' attr(data-title) ')';
}
code {
	margin-top: 1.5em;
	position: relative;
	background: var(--code-background);
	border: 1px solid var(--code-ew-border);
	white-space: pre;
	padding: .25em;
	display: block;
}
.ie6 code, .ie7 code {
	margin-top: 0;
}
code::before, code {
	display: block;
	text-align: left;
}

blockquote {
	margin: 0 0 8px 0;
	padding: 6px 10px;
	font-size: small;
	border: 1px solid var(--quote-ns-border);
	border-left: 2px solid var(--quote-ew-border);
	border-right: 2px solid var(--quote-ew-border);
	background-color: var(--quote-background);
}
blockquote cite {
	display: block;
	border-bottom: 1px solid var(--quote-cite-separator);
	font-size: 0.9em;
	margin-bottom: 0.5em;
}

blockquote cite::before {
	color: var(--body-text);
	font-size: 22px;
	font-style: normal;
	content: '\275D';
	margin-right: 5px;
	vertical-align: middle;
}
blockquote cite + br,
blockquote br:last-child {
	display: none;
}

h1, h2, h3, h4, h5, h6 {
	padding: 0;
	margin: 0;
}

/* Make sure images stay within bounds */
img {
	max-width: 100%;
}

img[data-sceditor-emoticon] {
    max-height: 1.35em;
}

/* Responsive Youtube embed */
.videocontainer, .media-video, .media-audio {
	max-width: 560px;
}
.videocontainer div {
	position: relative;
	padding-bottom: 56.25%;
}
.videocontainer iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
}

.media-video video, .media-audio audio {
    width: 100%;
}

.floatleft, .floatright {
	max-width: 45%;
	border: 1px dashed var(--separator);
	padding: 1px;
	min-height: 1em;
}
.floatleft {
	float: left;
	clear: left;
	margin: 0 1em 1em 0;
}
.floatright {
	float: right;
	clear: right;
	margin: 0 0 1em 1em;
}
@media (max-width: 480px) {
	.floatleft, .floatright {
		max-width: 100% !important;
		margin: 0 0.5em 1em !important;
	}
}
