#editor_container div{
	/* override core style.css font-size:100% that messes up the editor in IE8 */
	font-size: 13px !important;
}

#editor_controls {
	background-color: white;
	height: 44px;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 3000; /* because the top navigation is 2000 */
}

.ace-clouds .ace_marker-layer .ace_active-line {
    background-color: #f8f8f8 !important;
}

#editor div.ace_gutter {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
	opacity: .2;
 	background-color: transparent;
}

#editor {
	display: block;
	height: 100%;
	width: 100%;
	overflow: hidden;
}

#editor_wrap {
	box-sizing: border-box;
	padding-top: 46px;
	position: absolute;
	top: 0;
	height: 100%;
	width: 100%;
	overflow: hidden;
}

#editor_container{
	position: fixed;
	top: 6%;
	left: 15%;
	width: 70%;
	height: 88%;
	z-index: 9999;
	overflow: hidden;
	background-color: #fff;
	border-radius: 3px;
	box-sizing: border-box;
}

#editor_container.hasPreview {
	z-index: 1750;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	border: none;
	border-radius: 0;
}

#editor_container.hasPreview #preview, #editor_container.hasPreview #preview_wrap {
	display:block;
}

#editor_container.hasPreview #editor {
	width: 50%;
}

#editor_container.hasPreview #editor_controls {
	top: 45px;
}

#editor_container.hasPreview #editor_wrap {
	padding-top: 91px; /** main navigation + controls */
}

#editor_overlay.hasPreview {
	z-index: 1500; /** below main navigation */
}

#preview_wrap {
	box-sizing: border-box;
	height: 100%;
	width: 50%;
	right: 0;
	position: absolute;
	top: 0;
	display: none;
	padding-top: 91px; /** main navigation + controls */
}

#editor_container #preview {
	overflow: auto;
	box-sizing: border-box;
	padding: 15px;
	display: none;
	height: 100%;
	width:100%;
	color: #252525;
	background-color: #f9f9f9;
}

@media(max-width: 768px) {
	#editor_container {
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		border: none;
		border-radius: 0;
	}

	#editor_controls {
		top: 45px;
	}

	#editor_wrap {
		padding-top: 91px; /** main navigation + controls */
	}

	#editor_container.hasPreview #preview {
		display: none;
	}

	#editor_container.hasPreview #editor {
		width: 100%;
	}
}

#editor_close {
	float: right;
	width: 34px;
	border: none;
	background-color: transparent;
	padding: 22px !important;
	margin: 0 !important;
	border-radius: 0;
	right: 0;
	opacity: 0.3;
}

#editor_close:hover {
	background-color: #ddd;
}

#editorcontrols > button {
	height: 30px !important;
	margin-top: 7px;
}

#editor_controls small.filename {
	float: left;
	color: #555;
	font-family: inherit;
	font-size: 100%;
	font-weight: bolder;
	text-overflow: ellipsis;
	padding: 12px 0 0 14px;
	max-width: 218px;
	overflow: hidden;
	white-space: nowrap;
}

#editor_controls small.saving-message {
	color: #ccc;
	font-family: inherit;
	font-size: 90%;
	padding: 13px 0 13px 17px;
	overflow: hidden;
	display: inline-block;
	padding: 13px 0 0 17px;
}

 #editor_overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 3001;
    -moz-opacity: 0.7;
    opacity:.70;
    filter: alpha(opacity=70);
}

small.unsaved-star {
	position:absolute;
	padding: 9px 0 0 4px;
	display: inline-block;
	float: left;
}

#sidebar_editor .ace_gutter {
	display: none;
}

#sidebar_editor .ace_scrollbar.ace_scrollbar-h {
	display: none;
}

#preview_editor_controls {
	float: right;
}

#preview_editor_controls button {
	height: 42px;
	width: 42px;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 32px 32px;
	margin: 0;
	margin-top: 2px;
	border-radius: 0;
	border-left-width: 0;
}

#preview_editor_controls button:hover,
#preview_editor_controls button.active {
	background-color: #eee;
	border-left-width: 1px;
}

#preview_editor_controls button:first-child {
	border-top-left-radius: 3px;
	border-bottom-left-radius: 3px;
	border-left-width: 1px;
}

#preview_editor_controls button:last-child {
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;
}
