/*
#edit,#drag,#save {
	width: auto;
	font-family: Optima, Corbel, PT Sans, sans-serif; 
    padding: 2px;
	position: absolute; 
    top: 40px;
	margin-left: 181.5px;
}

#edit {
	background-color: rgb(89, 144, 233);
	border-color: rgb(89, 144, 233);
	left: 15px;
	display: none;
}

#drag {
	background-color: rgb(144, 89, 233);
	border-color: rgb(144, 89, 233);
    left: 60px;
	display: none;
}

#save {
	background-color: rgb(233, 89, 144);
	border-color: rgb(233, 89, 144);
	left: 110px;
	display: none;
}
*/

.inner,.outer {
	min-height: 350px;	
}

.inner > div[contenteditable] {
	min-height: 265px;
}

.outer > div[contenteditable] {
	min-height: 0;
}

.writing-toolbar {
	width: 26px;
	position: absolute;
	top: 75px;
	left: calc(424px + 50%);
}
.writing-toolbar .top {
	margin-top: 10px;
}

.writing {
/*	position: absolute;
/*	left: 874px; */
	height: 23px;
	width: 26px;
/*	margin-left: 181.5px; */
	display: none;
	/*border-color: rgb(214, 214, 214);*/
	border: 1px solid #888;
	cursor: pointer;
	background: no-repeat center rgb(214, 214, 214);
	border-right: 0;
	/**/
	position: relative;
}

.writing:hover {
	background-color: #EEE;	
}
.writing:active {
	background-color: #f4f4f4;
	border-style: solid;
}

#bold {
/*	top: 85px; */
	background-image: url('bold.png');
}
#italic {
/*	top: 108px;	*/
	background-image: url('italic.png');
}
#underline {
/*	top: 131px; */
	background-image: url('underline.png');
}
#sup {
/*	top: 154px; */
	background-image: url('sup.png');
}
#sub {
/*	top: 177px; */
	background-image: url('sub.png');
}

#ul {
/*	top: 210px; */
	background-image: url('ul.png');
}
#ol {
/*	top: 233px; */
	background-image: url('ol.png');
}
#al {
/*	top: 256px; */
	background-image: url('al.png');
}

#img {
/*	top: 289px; */
	background-image: url('img.png');
}
#link {
/*	top: 312px; */
	background-image: url('link.png');
}
#vid {
/*	top: 335px; */
	background-image: url('vid.png');
}
#table {
/*	top: 358px; */
	background-image: url('table.png');
}
#equation {
/*	top: 381px; */
	background-image: url('equation.png');
}
#new_page {
/*	top: 404px; */
	background-image: url('new_page.png');
}

.writing.top {
	border-radius: 5px 0 0 0;
	border-bottom: 0;
}
.writing.mid {
	border-radius: 0;
	border-top: 0;
	border-bottom: 0;	
}
.writing.bot {
	border-radius: 0 0 0 5px;
	border-top: 0;
}

#hud {
	position: fixed;
	top: 0;
	left: 3px;
}


p[id] > span {
	/*outline: none;*/
	display: inline-block;
	padding-left: 4px;
	padding-right: 4px;
	min-height: 18px;
	min-width: 18px;
}

.in + p {
	padding-left: 8px;
	padding-right: 1px;
}

/*[contenteditable="true"] {
	outline: dashed 1px #ccc;
	outline-offset: -0.5px;
}*/

[contenteditable="true"]:focus,.focus {
	outline: solid 2px #F0C97D;
	outline-offset: -1px;
}

[draggable] {
	-khtml-user-drag: element;
	-webkit-user-drag: element;
	outline: dashed 1px #ccc;
	outline-offset: -2px;
}

form.linear {
	position: absolute;
	top: -4px;
	right: 32px;
	font-size: 0.75em;
}

form.linear input {
	position: relative;
	top: 2px;
}


/* Styling to make execCommand discrepancies have a more consistent appearance */

div[contenteditable] {
	margin-left: 2px;
	padding-left: 12px;
	padding-right: 5px;
	margin-bottom: 16px;
	/* newer *//*
	padding-top: 5px;
}
div[contenteditable] > :first-child {
	margin-top: -5px;
/**/
}

div[contenteditable] > br {
	margin-bottom: 19px;	
}

div[contenteditable] br + p, div[contenteditable] br + ol, div[contenteditable] br + ul {
	margin-top: 0;
	padding-top: 0;
}

div[contenteditable] p ol, div[contenteditable] p ul {
	margin: 0;
}

div[contenteditable] p {
	margin-left: 0;
	padding-left: 0;
	padding-right: 0;
}

div[contenteditable] ol, div[contenteditable] ul {
	margin-left: 0;
	padding-left: 26px;
	padding-right: 0;
}

div[contenteditable] .preview_window {
	margin-left: -2px;
	margin-right: 7px;
}

div[contenteditable] .preview_window p {
	padding-left: 12px;
	padding-right: 6px;
}

div[contenteditable] table {
	margin-left: 0;	
}

div[contenteditable] table p {
	margin-left: 2px;
	padding-left: 12px;
	padding-right: 5px;
}

.tab {
	padding-left: 50px;
}

div > img {
	margin: 21px auto;	
}

.active-img {
	outline: 1px solid black;
}
.resize_handle {
	width: 5px;
	height: 5px;
	border: 1px solid black;
	background-color: white;
	position: absolute;	
}
.resize_handle:hover {
	background-color: black;
}
#nw {
	cursor: nw-resize;
}
#n {
	cursor: n-resize;
}
#ne {
	cursor: ne-resize;
}
#e {
	cursor: e-resize;
}
#se {
	cursor: se-resize;
}
#s {
	cursor: s-resize;
}
#sw {
	cursor: sw-resize;
}
#w {
	cursor: w-resize;
}

.handle {
	height: 21px;
	width: 21px;
	background-color: #C9AEE5;
	background-image: url('move_cursor.png');
	background-repeat: no-repeat;
	background-position: center center;
	border-radius: 11px;
	position: absolute;
	cursor: move;
	margin-top: -2px;
}

.delete {
	height: 16px;
	width: 16px;
	background-image: url('trash.png');
	background-repeat: no-repeat;
	background-position: right bottom;
	position: absolute;
	cursor: pointer;
	margin-top: -2px;
}
/*
.insert {
	width: 100%;
	background-color: green;
	border-color: green;
	margin: 16px 0;
	padding: 5px;
	font-family: inherit;	
	font-size: 1.25em;
	max-width: 750px;
}
*/
.OkeeboMath {
	border: 1px solid black;
	padding-right: 15px !important;
	padding-left: 15px !important;
	margin: 0 0 16px;
	height: 120px;
	overflow-y: scroll;
	width: 90%;
	display: block;
}
.OkeeboMathTeX,.OkeeboMathML,.OkeeboMathDisplay {
	color: black;
	font-size: 0.75em;
	font-family: Optima, Corbel, PT Sans, sans-serif;
	width: auto;
	height: auto;
	padding: 2px;
	line-height: 110%;
	position: absolute;	
	-moz-user-select: none;
	/* Flat Buttons */
	border: 1px solid #AAA;
}
.OkeeboMathTeX {
	border-right: 0;
	border-radius: 5px 0 0 5px;
}
.OkeeboMathML {
	border-radius: 0;
	border-right: 0;
}
.OkeeboMathDisplay {
	border-radius: 0 5px 5px 0;
}
.OkeeboMath span.lang {
	display: inline-block;
	min-height: 120px;
	width: 100%;
	outline: none;
}
p[id] span:nth-child(3) {
	min-width: 90%;
}

.upp,.dwn {
	position: absolute;
	cursor: pointer;
	background-color: rgb(223, 195, 255);
	line-height: 18px;
	width: 16px;
	text-align: center;
	border-radius: 10px;
	height: 16px;
	left: 67px;
}

.cursor {
	display: block;
	position: absolute;
	width: 1px;
	padding: 0;
	margin: 0;
	background-color: rgba(255, 0, 0, 0.5);
}
#iframe2.cursor {
	background-color: rgba(0, 128, 255, 0.5);
}
.delete:before {
	content: attr(data-content);
	position: relative;
	left: -50px;
	top: -10px;
	pointer-events: none;
}