/*!
 * Bootstrap Markdown Editor v2.0.2 (https://github.com/inacho/bootstrap-markdown-editor)
 * Copyright 2016 Ignacio de Tomás <nacho@inacho.es>
 * Licensed under MIT (https://github.com/inacho/bootstrap-markdown-editor/blob/master/LICENSE)
 */

.md-container {
	position: relative;
}

.md-loading {
	display: none;
	filter: alpha(opacity=80);
	opacity: .8;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	z-index: 9999;
}

.md-icon-container {
	display: table;
	width: 100%;
	height: 100%;
}

.md-icon {
	height: 100%;
	display: table-cell;
	vertical-align: middle;
	text-align: center;
}

.md-icon:before {
	content: "\e031";
	font-family: "Glyphicons Halflings";
	font-size: 80px;
	line-height: 1;
	-animation: spin 1s infinite linear;
	-ms-animation: spin 1s infinite linear;
	-webkit-animation: spinw 1s infinite linear;
	-moz-animation: spinm 1s infinite linear;
}

body.md-body-fullscreen,
html.md-body-fullscreen {
	overflow: hidden;
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
}

.md-toolbar {
	padding: 0 10px;
	border: 1px solid #d8d8d8;
	border-bottom: none;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
}

.md-toolbar .btn-toolbar {
	margin: 0;
	padding: 10px 0;
	opacity: 0.6;
}

.md-toolbar .btn-toolbar:hover {
	opacity: 1;
}

.md-toolbar .md-btn.btn {
	color: #2c3e50 !important;
	border-color: transparent !important;
	border-radius: 3px !important;
	padding: 5px 10px;
	box-shadow: none;
	background-color: transparent !important;
}

.md-toolbar .md-btn.btn.active,
.md-toolbar .md-btn.btn:hover {
	border: 1px solid #95a5a6 !important;
	background: transparent !important;
}

.md-toolbar .btn-group {
	position: relative;
}

.md-toolbar .btn-group {
	padding: 0 5px;
}

.md-toolbar .btn-group:after {
	content: '';
	width: 1px;
	background: #d9d9d9;
	position: absolute;
	right: 0;
	top: 5px;
	bottom: 5px;
}

.md-toolbar .btn-group:first-of-type {
	padding-left: 0;
}

.md-toolbar .btn-group:last-of-type {
	padding-right: 0;
}

.md-toolbar .btn-group:last-of-type:after {
	content: none;
}

.md-toolbar button {
	font-weight: bold;
}

.md-toolbar button:focus,
.md-toolbar button:active {
	outline: none !important;
}

.md-btn-file {
	position: relative;
	overflow: hidden;
}

.md-btn-file input[type=file] {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 100%;
	min-height: 100%;
	font-size: 100px;
	text-align: right;
	filter: alpha(opacity=0);
	opacity: 0;
	outline: none;
	background: white;
	cursor: inherit;
	display: block;
}

.md-textarea-hidden {
	position: absolute;
	height: 0;
	width: 0;
	left: -9999px;
	opacity: 0;
}

.md-editor,
.md-preview {
	border: 1px solid #d8d8d8;
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
}

.md-preview {
	overflow-y: scroll;
	padding: 10px;
}

.md-fullscreen {
	position: absolute;
	margin: 0 !important;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100% !important;
	background: #fff;
	z-index: 9999;
}

.md-fullscreen .md-toolbar {
	border: none
}

.md-fullscreen .md-editor,
.md-fullscreen .md-preview {
	border: none;
	width: 100% !important;
}

.md-container .ace_text-input.ace_composition {
	z-index: 990;
}

@keyframes spin {
	from {
		transform: scale(1) rotate(0deg);
	}
	to {
		transform: scale(1) rotate(360deg);
	}
}

@-webkit-keyframes spinw {
	from {
		-webkit-transform: rotate(0deg);
	}
	to {
		-webkit-transform: rotate(360deg);
	}
}

@-moz-keyframes spinm {
	from {
		-moz-transform: rotate(0deg);
	}
	to {
		-moz-transform: rotate(360deg);
	}
}