html { overflow-y:scroll; }
html, body { height: 100%; background-color: #f5f5f5; }
#wrap { min-height: 100%; height: auto !important; height: 100%; margin: 0 auto -30px; }
#push, footer { height: 30px; }
footer { background-color: #1B1B1B; }
footer p { margin:5px 0 0 0; color:#999999; }
#body { padding-top:60px; padding-bottom:100px; }

.content-box {
	padding:20px;
	background-color:#fff;
	border: 1px solid #e5e5e5;
	-webkit-border-radius: 5px;
	   -moz-border-radius: 5px;
			border-radius: 5px;
	-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
	   -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
			box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

.help-block:empty { display:none; }

.clear {
	clear:both;
}

.well { min-height:26px; }
.well .control-group { margin-bottom:0; }
.well .fields .control-group { margin-top:10px; }
.well .fields .control-group input { margin-bottom:0; }

legend + .control-group { margin-top:0; }

#page-template,
#quiz-template,
#question-template,
#answer-template { display:none; }

#page-template input,
#quiz-template input,
#question-template input,
#answer-template input { display:none; }


.well .well { background-color:#EDEDED; }
.well .well .well { background-color:#F5F5F5; }

i.icon-trash { margin-left:10px; cursor:pointer; }
i.icon-question-sign { margin-left:10px; cursor:pointer; }
i.icon-folder-open,
i.icon-folder-close { margin-left:10px; cursor:pointer; }

textarea { resize:vertical; }

/* 
---------------------
Sign in form
---------------------
*/
.form-signin {
	padding:20px;
	background-color: #fff;
	border: 1px solid #e5e5e5;
	-webkit-border-radius: 5px;
	   -moz-border-radius: 5px;
			border-radius: 5px;
	-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
	   -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
			box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.form-signin h2 {
	margin-top:0;
}
.form-signin input[type="email"],
.form-signin input[type="password"] {
	font-size: 16px;
	height: auto;
	margin-bottom:0;
	padding: 7px 9px;
}
.form-signin .add-on {
	padding:7px 9px;
}
.form-signin .input-prepend {
	margin-bottom:0;
}
.form-signin input[aria-invalid="true"] {
	margin-bottom:10px;
}
.form-signin .help_block:empty {
	display:none;
}

/*
---------------------
Responsive adjustments
---------------------
*/
@media (max-width: 979px) {

	/* remove the body padding when the nav switches to static position */
	#body {
		padding-top:0; 
	}
}

@media (max-width: 767px) {

	/* adjust footer position at smaller sizes */
	footer {
		margin-left: -20px;
		margin-right: -20px;
		padding-left: 20px;
		padding-right: 20px;
	}
}

/*
---------------------
Drag & Drop
---------------------
*/
body.dragging, body.dragging * {
	cursor: move !important;
}

.dragged {
	position: absolute;
	opacity: 0.5;
	z-index: 2000;
}

ol.example li.placeholder {
	position: relative;
	/** More li styles **/
}
ol.example li.placeholder:before {
	position: absolute;
	/** Define arrowhead **/
}

.dotted.empty {
	width:auto;
	height:50px;
	background-color:#fefefe;
	border:dotted 1px #ff0000;
	margin-bottom:20px;
	-webkit-border-radius: 5px;
	   -moz-border-radius: 5px;
			border-radius: 5px;
}

.nav.well,
.page.well,
.question.well,
.answer.well {
	padding-top:0;
}

.answer {
	background-color:#F5F5F5;
	margin-bottom:5px;
}

.well legend {
	font-size:15px;
}

.nav_handle,
.page_handle,
.question_handle,
.answer_handle {
	background-color:#e5e5e5;
	height:15px;
	margin-bottom:5px;
	-webkit-border-radius: 0 0 10px 10px;
	   -moz-border-radius: 0 0 10px 10px;
			border-radius: 0 0 10px 10px;
}


/* hide & show item rows */
.ecollapse {
    height:0;
    overflow:hidden;
}
.ecollapse.in {
    height:auto;
}

.ecollapse > div { display:none; }
.ecollapse.in > div { display:inherit; }

/* hide & show the collapse label */
.ecollapse > .ecollapse_label { display:inherit; }
.ecollapse.in > .ecollapse_label { display:none; }

.ecollapse > .page_handle,
.ecollapse > .question_handle,
.ecollapse > .answer_handle,
.ecollapse > .icons { display:block !important; }

.collapse-title { cursor:pointer; }