html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	width: 100%;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: Sans Serif;
  background-color: #FFF;
}

canvas {
  display: block;
  image-rendering: pixelated;
}

.tileIcon, .square {
  image-rendering: pixelated;
}

#desktop {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}


#menubar {
  flex-basis: 1.1em;
  flex-grow: 0;
  background-color: #777;
}

#middle {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  overflow: auto;
}

#statusbar {
  flex-basis: 1.1em;
  flex-grow: 0;
  background-color: #777;
}

#canvasarea {
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: auto;
  overflow: auto;
  resize: horizontal;
}

#toolbar {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  overflow: auto;
}

.tool {
	font-family: 'Font Awesome';
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5em;
	width: 32px;
	height: 32px;
	background-color: #FFF;
}

.menu {
	position: relative;
	display: inline-block;
	margin-left: 15px;
	z-index: 2;
}

.title {
    padding: 0.15em;
}

.title:hover {
	color: #FFF;
}

.menu_content {
	position: absolute;
	margin: 0;
	padding: 0;
	list-style-type: none;
	display: none;
	background-color: #777;
	min-width: 70px;
}

.menu_content > li {
    padding: 0.2em;
}

.menu_content > li:hover {
	color: #FFF;
}

.popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.window {
	width: 50%;
	height: 50%;
	overflow: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-around;
	background-color: white;
	border: solid 1px black;
}

.row {
	width: 80%;
	display: flex;
	align-items: center;
	justify-content: space-around;
}

.row > label {
    min-width: 10em;
}

.row > input {
    min-width: 15em;
    box-sizing: border-box;
}

.row > input[type="file"] {
    max-width: 15em;
}

#tools {
    display: flex;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
}

#tileIcons, #collisionTiles {
	display: flex;
	flex-wrap: wrap;
}

.tileIcon {
	display: block;
	border: dashed 1px #CCC;
	box-sizing: border-box;
}

.collisionTileIcon {
  display: block;
  box-sizing: border-box;
  margin: 2px;
}

.tile {
	display: inline-flex;
	flex-wrap: wrap;
	margin: 2px;
}

.tileBorder{
	background-color: black;
}

.tileBorderDelete{
	background-color: red;
}


.square {
	display: block;
	background-color: gray;
}

.selected {
    border: solid 1px black;
}

#canvas-toolbar {
    display: flex;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
}

#canvas-toolbar > * {
  margin-left: 1em;
}
