body{
	margin: 0;
	background-color: #333;
	scrollbar-color: grey black;
}

#container{
	display: flex;
	height: calc(100% - 42px);
	width: 100%;
	position: fixed;
}

#controls_panel{
	display: flex;
	flex-direction: column;
	min-width: 308px;
	width: 308px;
	resize: horizontal;
	overflow-y: scroll;
	padding: 8px 4px 0 8px;
	scrollbar-width: thin;
}

#controls_panel > div:last-of-type{
	margin-bottom: 0;
}

.controls{
	color: #eee;
	margin-bottom: 15px;
	padding: 10px 6px 7px 10px;
	border: 2px solid #222;
}

.header_controls{
	display: flex;
	flex-direction: row;
}

.header_controls * {
	width: fit-content;
	margin: -21px 0px 5px 0px;
	padding: 1px 8px 1px 8px;
}

.header_controls p{
	background: rgb(0,0,0);
	min-width: 16px;
	text-align: center;
	user-select: none;
}

#painter_controls {
	flex-grow: 1;
}

h4{
	width: fit-content;
	margin: -21px 0 5px 10px;
	padding: 1px 8px;
	color: #ccc;
	background-color: #333;
	font: bold 16px Arial, sans-serif;
}

#table_controls{
	position: relative;
	margin-top: 5px;
	padding-bottom: 0;
	font: bold 12px Arial, sans-serif;
}

#table_controls div:nth-of-type(1){
	margin-top: 7px;
}

#table_controls div{
	margin-bottom: 10px;
}

#table_controls button{
	padding-left: 5px;
	padding-right: 5px;
}

.uicheckbox{
	margin-left: 0;
}

.numberinput{
	width: 64px;
	margin-right: 4px;
}

.error{
	border: 2px solid red;
}

#color_controls{
	position: absolute;
	width: 40px;
	height: 36px;
	right: 5px;
	bottom: 5px;
	margin: 0 !important;
}

.colorpicker{
	width: 20px;
	height: 20px;
	padding: 0;
	border: none;
	background: none;
}

#color1{
	position: absolute;
	top: 0;
	left: 5px;
	z-index: 2;
}

#color2{
	position: absolute;
	top: 12px;
	left: 17px;
	z-index: 1;
}

#colorswitch{
	position: absolute;
	bottom: 0;
	left: 0;
	height: 12px;
	width: 12px;
}

.emote_button, .tool_button{
	margin-right: 4px;
	margin-bottom: 3px;
	padding: 1px 4px;
	border: none;
	border-radius: 4px;
	background-color: #eee;
}

.emote_button:hover, .tool_button:hover{
	background-color: #ccc;
}

.emote_button:active, .tool_button:active{
	background-color: #888;
}

#loadfile{
	display: none;
}

.selected, .selected:hover{
	background-color: #b1deec;
}

#draw_container{
	width: 100%;
	overflow: auto;
	padding: 13px 0 0 10px;
	scrollbar-width: thin;
}

#draw_table{
	position: relative;
	margin: auto;
}

table, td{
	border: 1px solid rgba(0,0,0,0);
}

table{
	border-collapse: separate;
	border-spacing: 0px;
}

table ::selection {
	background-color: rgba(0, 0, 0, 0);
}

tr{
	display: flex;
}

td{
	display: flex;
	height: 56px;
	width: 56px;
	min-height: 56px;
	min-width: 56px;
	padding: 0;
}

.tableborder{
	border: 1px solid #222;
}

.selected_cell{
	border-color: #b1deec !important;
}

.cursor:hover{
	border: 1px solid #eee !important;
}

.guide_line{
	border-color: #b1deec;
}

.selection_top{
	border-top: 1px dashed #fff;
}

.selection_bottom{
	border-bottom: 1px dashed #fff;
}

.selection_left{
	border-left: 1px dashed #fff;
}

.selection_right{
	border-right: 1px dashed #fff;
}

.popup{
	position: fixed;
	display: none;
	justify-content: center;
	align-items: center;
	height: 100%;
	width: 100%;
}

.popup p{
	margin: 0 0 5px 0;
	color: #eee;
}

.popup label{
	color: #eee;
}

.popup input{
	border: none;
	color: #eee;
	background-color: #444;
}

.popup input:focus{
	outline: none;
}

.popup_wrapper{
	padding: 0px 0px 20px 20px;
	background-color: rgba(0, 0, 0, 0.3);
}

.popup_wrapper > div{
	margin: -10px;
	padding: 40px 60px;
	border: 2px solid #222;
	background-color: #333;
}

.popup_buttons{
	margin: 20px 0 0 0;
	text-align: center;
}

.popup_buttons button{
	min-width: 60px;
}

.emote3{
	height: 112px;
	width: 112px;
}

.emote2{
	height: 56px;
	width: 56px;
}

.emote1{
	height: 28px;
	width: 28px;
}

input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}
