html, body, svg {
	padding:0;
	margin:0;
	font-family: Liberation sans, sans-serif;
}

body.whiteboard-canvas {
	overflow: hidden;
}

#canvas {
	transform-origin: 0 0;
}

#loadingMessage {
	font-size: 1.5em;
	background: #f5f5f5;
	line-height: 100vh;
	text-align: center;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999999;
	transition: 1s;
	right: 0;
	bottom: 0;
}

#loadingMessage.hidden {
	display: none;
	opacity: 0;
	z-index: -1;
}

#loadingMessage::after {
	content: "...";
}

/* Hide scrollbar for Chrome, Safari and Opera */
#menu::-webkit-scrollbar, #menu2::-webkit-scrollbar {
	display: none;
}

#menu, #menu2 {
	-ms-overflow-style: none;
	scrollbar-width: none;
	font-size: 16px;
	border-radius: 0;
	overflow-y: scroll;
	position: fixed;
	margin-bottom: 30px;
	left: 0;
	top: 0;
	color: black;
	max-height: 100%;
	transition-duration: 1s;
	cursor: default;
	padding: 10px;
	z-index: 100000;
}

#menu.closed, #menu2.closed {
	border-radius:3px;
	left:10px;
	top:10px;
	background-color:rgba(100,200,255,0.7);
	width:6vw;
	height:2em;
	transition-duration:1s;
}

#menu h2, #menu2 h2{ /*Menu title ("Menu")*/
	display: none;
	font-size:4vh;
	text-align: center;
	letter-spacing:.5vw;
	text-shadow: 0px 0px 5px white;
	color:black;
	padding:0;
	margin:0;
}

#menu .tools, #menu2 .tools {
	list-style-type:none;
	background-color: #eee;
}

#menu #tools {
	display: flex;
	width: 37px;
	flex-wrap: wrap;
	background: #eee;
	padding: 5px;
	border-radius: 5px;
	margin: 0;
}

#tools .tool-name {
	display: none !important;
}

#settings {
	margin-bottom: 0;
	background-color: #eee;
	padding: 5px;
	border-radius: 5px;
}

#tools_right {
	display: flex;
	width: 37px;
	flex-wrap: wrap;
	background: #eee;
	padding: 5px;
	border-radius: 5px;
	margin: 0;
}

#menu #settings .tool:hover {
	max-width: 100%;
}

#menu .tool, #menu2 .tool {
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none; /* Safari */
	-khtml-user-select: none; /* Konqueror HTML */
	-moz-user-select: none; /* Old versions of Firefox */
	-ms-user-select: none; /* Internet Explorer/Edge */
	user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Opera and Firefox */
	pointer-events: auto;
	white-space: nowrap;
	list-style-position:inside;
	text-decoration:none;
	cursor:pointer;
	height: 40px;
	border-radius: 0px;
	line-height: 40px;
	max-width: 40px;
	transition-duration: .2s;
	overflow: hidden;
	width: max-content;
	border: 1px solid transparent;
	outline: none;
	border-radius: 5px;
	display: none;
}

.tools[data-visible=true] .tool {
	display: block !important;
}

#menu .tool:hover, #menu2 .tool:hover, #menu .tool:active, #menu2 .tool:active {
	background-color: #ddd;
}

@media (hover: none), (pointer: coarse) {
	#menu .tool:hover, #menu2 .tool:hover {
		max-width: 40px;
	}

	#menu .tool:focus #menu2 .tool:focus {
		max-width: 100%;
	}

	#menu, #menu2 {
		pointer-events: auto;
	}

	#menu:focus-within, #menu2:focus-within {
		pointer-events: none;
	}

}

#menu .tool.curTool, #menu2 .tool.curTool {
	background-color: #ddd;
}

#menu .tool-icon, #menu2 .tool-icon {
	display: inline-block;
	text-align:center;
	width: 35px;
	height: 35px;
	margin: 2.5px;
	font-family: mono, monospace;
	overflow: hidden;
}

input.tool-icon {
	background-color: #eee;
}

#menu img.tool-icon, #menu2 img.tool-icon {
	pointer-events: none;
	width: 30px;
	height: 30px;
}

#menu .tool-icon > *, #menu2 .tool-icon > * {
	display: block;
	margin: auto;
}

#menu .tool-name, #menu2 .tool-name {
	text-align: center;
	font-size: 23px;
	margin-right: 20px;
	margin-left: 20px;
	margin-bottom: 2.5px;
	display: inline-block;
	vertical-align: text-bottom;
}
#menu .tool-name.slider, #menu2 .tool-name.slider {
	display: inline-block;
    width: 150px;
    height: 30px;
    font-size: .9em;
    line-height: 15px;
    vertical-align: top;
    padding: 6px;

}

input {
	font-size:16px;
}

#chooseColor {
	width: 100%;
	height:100%;
	border: 0;
	border-radius: 0;
	color:black;
	display: block;
	margin: 0;
	padding: 0;
}

.colorPresets {
	margin-right: 20px;
	vertical-align: top;
	display: inline-block;
}

.colorPresetButton {
	width: 30px;
	height: 30px;
	border: 1px solid black;
	border-radius: 3px;
	display: inline-block;
	margin-right: 6px;
	padding: 0;
	vertical-align: middle;
}

.rangeChooser {
	display: block;
	border: 0;
	width: 100%;
	margin: 0;
	background: transparent;
}

line {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

path {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

text {
	font-family:"Arial", "Helvetica", sans-serif;
	user-select:none;
	-moz-user-select:none;
}

circle.opcursor {
	pointer-events: none;
	transition: .1s;
}

#cursor-me {
	transition: 0s;
}

.download-board {
	position: fixed;
	top: 0;
	right: 0;
	display: flex;
	height: 30px;
	flex-direction: row;
	background-color: #ffffff;
	padding: 20px;
	z-index: 10000;
}

.download-board img {
	width: 30px;
	cursor: pointer;
}

.footer-container {
	position: fixed;
	bottom: 0;
	right: calc(100vw - 70px);
	display: flex;
	transition: 1s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.pages-container {
	height: 50px;
	padding: 10px;
	display: block;
	align-items: center;
	overflow: hidden;
	white-space: nowrap;
	box-shadow: 0 0 10px #aaa inset;
	background-color: #ffffff;
	width: calc(100vw - 160px)
}

.page {
	width: 50px;
	height: 50px;
	margin-right: 10px;
	box-shadow: 0 0 10px #ccc;
	cursor: pointer;
	background-color: #ffffff;
	position: relative;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	display: inline-block;
}

.page[data-selected=true] {
	border: 1px solid #0074d9;
}

.add-page {
	background-color: #ffffff;
	border: none;
	font-size: 70px;
	cursor: pointer;
	height: 70px;
	width: 70px;
	line-height: 0;
	outline: none;
	padding: 0;
}

.delete-page {
	position: absolute;
	top: -10px;
	right: -10px;
	font-family: Arial;
	line-height: 20px;
	width: 20px;
	height: 20px;
	background-color: #ffffff;
	color: #555555;
	cursor: pointer;
	border-radius: 50%;
	text-align: center;
	border: 1px solid #ccc;
	transition: 0.2s;
}

.delete-page:hover {
	background-color: #eee;
}

.footer-container .expand-collapse {
	background-image: url('arrow-right.svg');
}

.footer-container[data-expanded=true] .expand-collapse {
	background-image: url('arrow-left.svg');
}

.footer-container[data-expanded=true] {
	right: 0;
}

.expand-collapse {
	width: 70px;
	height: 70px;
	background-size: 50px;
	background-repeat: no-repeat;
	background-position: center;
	background-color: #ffffff;
	cursor: pointer;
}

#menu2 {
	position: fixed;
	top: 80px;
	left: unset;
	right: 10px;
}

.menu-expand-collapse {
	width: 30px;
	height: 30px;
}

body[data-locked="true"] #menu, body[data-locked="true"] #menu2{
	display: none;
}

.owner {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	text-align: center;
	color: #888;
	display: none;
}

body[data-locked="true"] .owner {
	display: block;
}

body[data-locked="true"] .add-page {
	opacity: 0;
	pointer-events: none;
}

body[data-locked="true"] .delete-page {
	display: none;
}

/* Internet Explorer specific CSS */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
	#chooseColor {
		color: transparent;
	}
	label.tool-name[for=chooseColor] {
		line-height: 10px;
	}
}