canvas.canvas {
	position: relative;
	z-index: 1;
	cursor: none;
}

canvas.overlay {
	pointer-events: none;
	user-select: none;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99;
}

.wrapper {
	width: 100vw;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(0, 0, 0, 0.1);
	z-index: 99999;
	user-select: none;
}

.modal {
	background: white;
	width: 400px;
	border-radius: 6px;
	margin-top: -100px;
	padding: 20px;
	box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.03);

	input.action-uuid,
	input.action-file {
		padding: 12px 14px;
		width: 100%;
		border: none;
		background: #FAFAFA;
		border-radius: 3px;
		font-size: 16px;
		user-select: none;

		&:hover {
			background: #F8F8F8;
		}

		&:focus {
			background: #F5F5F5;
		}
	}

	.seperator {
		border-top: 1px solid #F5F5F5;
		margin: 20px 0;
	}

	.align {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	p {
		font-size: 18px;
		letter-spacing: 0.2px;
		padding-top: 5px;
		margin-bottom: 25px;
	}

	button {
		padding: 12px 14px;
		border: none;
		background: #F8F9FA;
		border-radius: 3px;
		font-size: 16px;
		cursor: pointer;
		user-select: none;
		transition: background 0.1s;
		color: #212121;

		&:hover {
			background: lighten(#F8F9FA, -5%);
		}

		&.success {
			background: #28A745;
			color: white;

			&:hover {
				background: lighten(#28A745, -5%);
			}
		}

		&.danger {
			background: #DC3545;
			color: white;

			&:hover {
				background: lighten(#DC3545, -5%);
			}
		}

		&.info {
			background: #007BFF;
			color: white;

			&:hover {
				background: lighten(#007BFF, -5%);
			}
		}
	}

	button.action-join {
		width: 100%;
	}

	button.action-cancel {
		width: calc(50% - 10px);
	}

	button.action-save,
	button.action-clear,
	button.action-background,
	button.action-scaling,
	button.action-color,
	button.action-default {
		width: calc(50% - 10px);
	}

	ul.avatar-list {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
		list-style-type: none;

		li.avatar {
			background: #EEE;
			border-radius: 9999px;
			border: 5px solid white;
			margin: 10px;
			width: 70px;
			height: 70px;
			cursor: pointer;
			transition: border-color 0.1s;

			&:hover {
				border: 5px solid #F8F8F8;
			}
		}
	}

	input.action-range {
		width: calc(100% - 80px);
		-webkit-appearance: none;
		background: #F8F8F8;
		height: 6px;

		&:hover {
			background: #F5F5F5;

			&::-webkit-slider-thumb {
				background: lighten(#888888, -20%);
			}
		}

		&::-webkit-slider-thumb {
			-webkit-appearance: none;
			background: #888888;
			width: 20px;
			height: 20px;
			border-radius: 9999px;
			border: none;
			cursor: pointer;
			transition: background 0.1s;
		}

		&::-webkit-slider-runnable-track {
			-webkit-appearance: none;
		}
	 }

	 .preview {
		 width: 60px;
		 height: 60px;
		 background: #F5F5F5;
		 border-radius: 9999px;
		 display: flex;
		 justify-content: center;
		 align-items: center;

		 .circle {
			 width: 12px;
			 height: 12px;
			 background: #212121;
			 border-radius: 9999px;
		 }
	 }

	 &.modal-color {
		 width: 580px;

		 .align {
			 width: calc(100% - 200px);
			 margin-left: 200px;
		 }
	 }

	 ul.bucket-list {
 		display: flex;
 		flex-wrap: wrap;
 		width: 100%;
 		list-style-type: none;

 		li.bucket {
 			background: #EEE;
 			border-radius: 9999px;
 			margin: 10px;
 			width: 70px;
 			height: 70px;
 			cursor: pointer;
 			transition: transform 0.2s;
			box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);

			transform: scale(0.9);
			user-select: none;

			&:hover {
				transition: transform 0.2s;
				transform: scale(1);
			}

			&.focused {
				transform: scale(1.1);
			}

			&::after {
				position: absolute;
				bottom: -20%;
			}
 		}
 	}
}

.toolbar {
	position: fixed;
	left: calc(50% - 360px);
	bottom: 30px;
	z-index: 2;
	display: flex;
	z-index: 999;

	.bucket {
		width: 56px;
		height: 56px;
		border-radius: 9999px;
		background: #CCC;
		margin: 8px;
		transition: transform 0.2s;
		box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);
		cursor: pointer;
		transform: scale(0.9);
		user-select: none;

		&:hover {
			transition: transform 0.2s;
			transform: scale(1);
		}

		&.focused {
			transform: scale(1.1);
		}
	}
}

.actions {
	position: fixed;
	top: 30px;
	left: 30px;
	display: flex;
}

.action {
	user-select: none;
	position: relative;
	width: 46px;
	height: 46px;
	border: none;
	border-radius: 9999px;
	background: transparent;
	cursor: pointer;
	outline: none;
	position: fixed;
	margin-right: 8px;

	i {
		color: #212121;
		user-select: none;
		pointer-events: none;
	}

	&:hover {
		background: #ECECEC;
	}

	&::after {
		bottom: -60%;
	}
}

.tooltip {
	position: relative;
	display: flex;
	justify-content: center;

	&:hover {

		&::before {
			opacity: 1;
			transition-delay: 0.6s;
		}

		&::after {
			opacity: 1;
			transition-delay: 0.6s;
		}
	}

	&::after {
		display: flex;
		opacity: 0;
		content: attr(data-title);
		justify-content: center;
		align-items: center;
		position: absolute;
		background: #212121;
		color: white;
		min-height: 24px;
		padding: 0 10px;
		border-radius: 4px;
		font-size: 12px;
		top: auto;
		bottom: -70%;
		white-space: nowrap;
		z-index: 9999;
		pointer-events: none;
	}

	&.up {

		&::before {
			top: ~'calc(-90% + 26px)';
			bottom: auto;
			border-left: 6px solid transparent;
			border-right: 6px solid transparent;
			border-top: 6px solid #212121;
			border-bottom: none;
		}

		&::after {
			top: -60%;
			bottom: auto;
		}
	}

	&.down {

		&::before {
			top: auto;
			bottom: ~'calc(-90% + 26px)';
			border-left: 6px solid transparent;
			border-right: 6px solid transparent;
			border-top: none;
			border-bottom: 6px solid #212121;
		}

		&::after {
			top: auto;
			bottom: -60%;
		}
	}
}
