* {
	box-sizing: border-box;
}

*::before, *::after {
	box-sizing: inherit;
}

html, body {
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
}

body {
	font-size: 1em;
	font-family: arial, freesans, sans-serif;
}

::-webkit-scrollbar {
	width: 5px;
	height: 8px;
	background: rgba(0, 0, 0, .05);
}

::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, .5);
}

#menu {
	position: absolute;
	top: 0;
	left: -200px;
	width: 200px;
	height: 100%;
	overflow: auto;
	cursor: default;
	color: #555;
	background: #FCFCFC;
	border-right: 1px solid #DDD;
	transition: .2s;
}

.show-documents #menu {
	left: 0;
}

#menu::after {
	position: absolute;
	display: block;
	top: 0;
	right: 0;
	height: 100%;
	width: 2px;
	content: '';
	background: linear-gradient(to right, rgba(0, 0, 0, .01), rgba(0, 0, 0, .05));
}

.document-list-item {
	position: relative;
	padding: 15px;
	cursor: pointer;
	font-size: .8em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	border-bottom: 1px solid #E6E6E6;
}

.document-list-item.active,
.document-list-item:hover {
	color: #FFF;
	background: #333;
	border-color: #222;
}

.document-list-item.active::before {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	content: '';
	border-left: 5px solid #333;
}

.button {
	cursor: pointer;
	display: table;
	padding: 10px 20px;
	margin: 20px 10px;
	color: #FFF;
	font-size: .85em;
	background: #37B;
	border: 1px solid #069;
	border-radius: 2px;
}

.button:hover {
	background: #38C;
	box-shadow: 0 0 3px rgba(0, 0, 0, .2);
}

#scratchpad-container {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	transition: .2s;
}

.show-documents #scratchpad-container {
	left: 200px;
}

#scratchpad {
	width: 100%;
	height: 100%;
	padding: 20px;
	margin: 0;
	font-size: 1.1em;
	font-family: inherit;
	outline: none;
	resize: none;
	overflow: auto;
	background: #FCFCFC;
	box-shadow: 0 0 4px #DDD inset;
	border: 0;
}
