/* 

Javascript Shell by Bouke Regnerus
No dependencies bash-like shell in the browser

Based on Javascript Shell by Jesse Ruderman (http://www.squarefree.com/shell/)
Styling based on CodePen by Rafael Rinaldi (http://codepen.io/rafaelrinaldi/pen/uGifm)

*/

body {
	margin: 1rem;
	padding: 0;
	background: #212230;
}

.terminal {
	margin: 0;
	padding: 0;
	font-family: Menlo, Courier New;
	font-size: 14px;
	text-rendering: optimizeLegibility;
	color: white;
	font-smoothing: antialiased;
	cursor: text;
	counter-reset: input;
	background: #212230;
}

.terminal .terminal--output {
	white-space: pre;
}

.terminal .terminal--input {
	counter-increment: input;
}
.terminal .terminal--input:before {
	content: "[" counter(input) "] $ ";
}

.terminal .terminal--input input {
	background: transparent;
	color: inherit;
	width: 80%; 
	border: none; 
	padding: 0; 
	margin: 0;
	overflow: auto;
	font-family: Menlo, Courier New;
	font-size: 14px;
}

.terminal .terminal--input input:focus {
    outline:none;
}

.terminal .terminal--output.is-console:before {
	margin-right: 10px;
	content: ">";
}

.terminal .terminal--output.is-not-defined {
	color: rgba(255, 255, 255, 0.5);
}