* {
	-webkit-tap-highlight-color: transparent;
}

html,
body {
	overflow: hidden;
}

.wrapper {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: white;
	z-index: 999;
}

#canvas,
#overlay,
.controls {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

#overlay {
	pointer-events: none;
}

.badge {
	display: inline-block;
	margin-top: -1px;
	margin-left: 5px;
	padding: 2px 4px;
	border-radius: 2px;
	font-weight: 500;
	font-size: 12px;
	color: white !important;

	&.prime {
		background: @brand-blue;
	}

	&.beta {
		background: @brand-green;
	}
}

.controls {
	pointer-events: none;

	.notification {
		top: 30px;
		position: fixed;
		display: flex;
		justify-content: center;
		width: 100%;
		opacity: 0;

		p {
			display: inline-block;
			padding: 10px 24px;
			border-radius: 999px;
			background: @brand-black;
			color: white;
			opacity: 0.95;
			user-select: none;
			pointer-events: none;
		}
	}

	.hotbar {
		display: flex;
		position: fixed;
		left: calc(50% - 216px);
		bottom: 30px;
		z-index: -1;

		&.inactive {

			.color {
				pointer-events: none !important;
			}
		}

		.color {
			margin: 6px;
			width: 60px;
			height: 60px;
			border-radius: 30px;
			background: #EEE;
			cursor: pointer;
			transition: transform 0.2s;
			transform: scale(0.9);
			pointer-events: all;

			&:not(.active):hover {
				transform: scale(1);
			}

			&.focus {
				transform: scale(1);
			}

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

	.scale-modal {
		top: 40px;
		left: calc(50% - 200px);
		width: 400px;
		height: 60px;

		input[type="range"] {
			-webkit-appearance: none;
			width: calc(400px - 54px);
			margin-top: 21px;
			margin-left: 27px;
			height: 6px;
    		background: #EEEEEE;
    		border: none;
    		border-radius: 4px;

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

			&::-webkit-slider-thumb {
				-webkit-appearance: none;
				height: 20px;
				width: 20px;
				margin-top: -0px;
				background: @brand-grey-3;
				border-radius: 10px;
				cursor: pointer;

				&:hover {
					background: @brand-grey-2;
				}
			}
		}
	}

	.clear-modal {
		top: calc(50% - 75.5px);
		left: calc(50% - 200px);
		width: 400px;
		padding: 25px;
		display: flex;
		flex-direction: column;

		.info {
			width: 100%;
			font-size: 20px;
			text-align: center;
			margin-bottom: 25px;
			color: @brand-black;
			user-select: none;
		}

		.align {
			display: flex;
			gap: 25px;

			.btn-cancel {
				width: 185px;
				height: 50px;
				border: none;
				border-radius: 3px;
				background-color: @brand-grey-6;
				font-size: 17px;
				color: @brand-black;

				&:hover {
					background-color: @brand-grey-4;
				}
			}

			.btn-apply {
				width: 185px;
				height: 50px;
				border: none;
				border-radius: 3px;
				border-color: grey;
				background-color: @brand-grey-6;
				font-size: 17px;
				color: @brand-black;

				&:hover {
					background-color: @brand-grey-4;
				}
			}
		}
	}

	.capture-modal {
		top: calc(50% - 213px);
		left: calc(50% - 200px);
		width: 400px;
		display: flex;
		flex-direction: column;
		padding: 25px;

		.info {
			font-size: 20px;
			width: 100%;
			text-align: center;
			margin-bottom: 25px;
			color: @brand-black;
			user-select: none;
		}

		.preview {
			height: 250px;
 		 	background: @brand-grey-6;
			border: 1px solid #f1f1f1;
			border-radius: 3px;
			margin-bottom: 25px;
		}

		.align {
			display: flex;
			gap: 25px;

			.btn-cancel {
				width: 185px;
				height: 50px;
				border: none;
				border-radius: 3px;
				background-color: @brand-grey-6;
				font-size: 17px;

				&:hover {
						background-color: @brand-grey-4;
				}
			}

			.btn-apply {
				width: 185px;
				height: 50px;
				border: none;
				border-radius: 3px;
				border-color: grey;
				background-color: @brand-grey-6;
				font-size: 17px;

				&:hover {
						background-color: @brand-grey-4;
				}
			}
		}
	}

	.toolbar {
		top: 20px;
		left: 20px;
	}

	.actionbar {
		top: 20px;
		right: 20px;
	}

	.actionbar,
	.toolbar {
		display: flex;
		position: fixed;

		&.inactive {

			.action,
			.tool {
				pointer-events: none !important;
			}
		}

		.action,
		.tool {
			width: 44px;
			height: 44px;
			padding: 10px;
			margin-left: 8px;
			border-radius: 22px;
			cursor: pointer;
			pointer-events: all;

			&:hover {
				background: rgba(@brand-grey-7, 0.95);

				&.ripple {

					&:not(.active).ripple-active {
						background: lighten(rgba(@brand-grey-7, 0.95), -2%);
					}

					&.active.ripple-active {
						background: lighten(rgba(#EEEEEE, 0.95), -2%);
					}
				}
			}

			&.active {
				background: rgba(#EEEEEE, 0.95);
			}

			i.ico {
				color: @brand-grey-0;
			}
		}
	}
}

.colors-modal {
	flex-wrap: wrap;
	min-width: 410px;
	width: 410px;
	max-width: 410px;
	padding: 30px !important;
	top: calc(50% - 421px);
	left: calc(50% - 205px);
	display: flex;
	gap: 12px;

	.color {
		width: 60px;
		height: 60px;
		border-radius: 30px;
		background: #EEE;
		cursor: pointer;
		transition: transform 0.2s;
		transform: scale(0.9);

		&:not(.active):hover {
			transform: scale(1);
		}

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

		&.focus {
			transform: scale(1);
		}
	}
}

.multiplayer-modal {
	top: 75px;
	right: 120px;
}

.account-modal {
	top: 75px;
	right: 70px;
}

.settings-modal {
	top: 75px;
	right: 20px;
}

.device-modal {
	top: 100px;
	right: 320px;
}

.language-modal {
	top: 100px;
	right: 860px;
}

.settings-modal {
	top: 75px;
	right: 20px;
}

.modal {
	width: 250px;
	position: fixed;
	background: white;
	border: 1px solid @brand-grey-5;
	border-radius: 4px;
	padding: 6px 0;
	pointer-events: all;
	overflow: hidden;
	z-index: -1;
	display: flex;

	.main {
		width: 248px;
		min-width: 248px;7
		max-width: 248px;
	}

	ul.tab-list {
		width: 248px;
		min-width: 248px;
		max-width: 248px;
	}

	.header {
		display: flex;
		margin-bottom: 3px;

		.back {
			margin: 10px;
			margin-top: 15px;
			margin-right: 3px;
			width: 36px;
			height: 36px;
			border-radius: 18px;
			padding: 6px;
			padding-left: 5px;
			cursor: pointer;

			i.ico {
				color: @brand-grey-0;
			}

			&:hover {
				background: @brand-grey-7;
			}

			&.ripple {

				&.ripple-active {
					background: lighten(@brand-grey-7, -2%);
				}
			}
		}

		.info {
			display: flex;
			flex-direction: column;
			margin-top: 15px;

			p {
				display: flex;
				align-items: center;
				font-weight: 500;
				color: @brand-grey-1;
				user-select: none;
				pointer-events: none;
			}

			span {
				display: block;
				margin-top: 3px;
				font-size: 12px;
				color: @brand-grey-3;
				user-select: none;
				pointer-events: none;
			}
		}
	}

	ul.item-list {

		.separator {
			margin: 6px 0;
			width: 100%;
			height: 1px;
			background: @brand-grey-5;
		}

		li.caption {
			padding: 2px 15px;
			padding-top: 12px;
			list-style: none;

			p {
				color: @brand-grey-3;
				user-select: none;
				pointer-events: none;
			}
		}

		li.item {
			display: flex;
			align-items: center;
			padding: 15px;
			cursor: pointer;

			&.empty {

				p {
					display: block;
					width: 100%;
					color: @brand-grey-3;
					text-align: center;
					user-select: none;
					pointer-events: none;
				}
			}

			&:not(.active):not(.inactive) {

				&:hover {
					background: @brand-grey-7;
				}

				&.ripple {

					&.ripple-active {
						background: lighten(@brand-grey-7, -2%);
					}
				}
			}

			i.ico {
				color: @brand-grey-0;
				user-select: none;
				pointer-events: none;
			}

			i.lang {
				display: flex;
				justify-content: center;
				align-items: center;
				font-style: normal;
				font-weight: 600;
				width: 24px;
				height: 24px;
				color: @brand-grey-0;
				user-select: none;
				pointer-events: none;
			}

			.info {
				display: flex;
				flex-direction: column;
				margin-left: 10px;
				max-width: calc(100% - 24px - 10px);

				p {
					display: flex;
					align-items: center;
					font-weight: 500;
					color: @brand-grey-1;
					user-select: none;
					pointer-events: none;
				}

				span {
					display: block;
					margin-top: 3px;
					font-size: 12px;
					color: @brand-grey-3;
					user-select: none;
					pointer-events: none;
					white-space: nowrap;
					overflow: hidden;
					text-overflow: ellipsis;
				}
			}

			&.active {
				background: #EEEEEE;

				&.ripple {

					&.ripple-active {
						background: lighten(#EEEEEE, -2%);
					}
				}
			}

			&.inactive {

				i.ico {
					color: @brand-grey-3;
				}

				.info {

					p {
						color: @brand-grey-3;
					}
				}
			}
		}
	}
}
