::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
	background-color: #F5F5F5;
	border-radius: 10px;
}

::-webkit-scrollbar {
	width: 5px;
	height: auto;
	background-color: #F5F5F5;
}

::-webkit-scrollbar:horizontal {
	width: auto;
	height: 5px;
}

::-webkit-scrollbar-thumb {
	background-color: #F90;
	background-image: -webkit-linear-gradient(45deg,
			rgba(255, 255, 255, .2) 25%,
			transparent 25%,
			transparent 50%,
			rgba(255, 255, 255, .2) 50%,
			rgba(255, 255, 255, .2) 75%,
			transparent 75%,
			transparent)
}

* {
	position: relative;
	padding: 0;
	margin: 0;
	outline: none;
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
}

html {
	background-color: #fffdf0;
}

body {
	font-family: 'Roboto Condensed', sans-serif;
	color: #e6daa8;
}

.inactive {
	pointer-events: none;
	opacity: 0.5;
}

a {
	text-decoration: none
}

.content-holder {
	display: flex;
}

.content {
	height: 100%;
	overflow: auto;
	text-align: center;
	white-space: nowrap;
	text-align: center;
	font-size: 0;
	background-color: #fffad9;
	flex-grow: 1;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.content .canvas {
	display: inline-block;
	box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.32);
	vertical-align: middle;
}

.content .canvas canvas {
	display: inline-block;
}

.content .canvas canvas:nth-child(2) {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
}

.content .canvas,
.content .canvas canvas {
	-moz-user-select: none;
	-khtml-user-select: none;
	user-select: none;
	touch-action: none;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-webkit-text-size-adjust: none;
}

.sidebar-wrap {
	display: flex;
	background-color: #fffad9;
}

.sidebar {
	background: #fff;
	transform: translate3d(0, 0, 0);
	padding: 10px 0px;
	box-shadow: 4px 0 0 0 rgba(0, 0, 0, 0.08);
	font-size: 0px;
	overflow-y: auto;
	max-height: 100vh;
	margin: auto 0;
}

.sidebar-left {
	display: flex;
	flex-direction: column;
	margin: auto 0;
	width: 54px;
	position: relative;
	overflow-x: hidden;
	transition: width 250ms ease, height 250ms ease;
	border-top-right-radius: 20px;
	border-bottom-right-radius: 20px;
}

.sidebar-wrap.opened .sidebar-left {
	width: 110px;
}

.sidebar-opener {
	position: absolute;
	width: 20px;
	height: 40px;
	top: 50%;
	left: 100%;
	margin-top: -20px;
	display: flex;
	align-items: center;
	z-index: 1000;
	background-color: #fff;
	box-shadow: 6px 0px 8px 0 rgba(95, 95, 95, 0.25);
	border-top-right-radius: 20px;
	border-bottom-right-radius: 20px;
}

.sidebar-opener i {
	color: #accae5;
}

.sidebar-opener i:hover {
	color: #1d88e6;
}

.sidebar-opener i:before {
	content: '\f105';
}

.sidebar-wrap.opened .sidebar-opener i:before {
	content: '\f104';
	margin-left: -6px;
}

.ps.sidebar-left,
.ps.sidebar-right {
	overflow-x: hidden !important;
	overflow-y: auto !important;
}

.sidebar .tools {
	white-space: nowrap;
	margin-bottom: 10px;
	display: flex;
	flex-direction: column;
}

.sidebar .tool {
	display: inline-block;
	/*width:20%;*/
	/*height:20%;*/
	padding: 10px;
	cursor: pointer;
	text-align: center;
}

.cur .fa {
	color: orange;
}

.cur .fas {
	color: orange;
}

.sidebar .tool.pencil {
	background-image: url(../img/icon-pencil.png);
}

.sidebar .tool.brush {
	background-image: url(../img/icon-brush.png);
}

.sidebar .tool.marker {
	background-image: url(../img/icon-marker.png);
}

.sidebar .tool.eraser {
	background-image: url(../img/icon-eraser.png);
}

.diselement {
	pointer-events: none;
}

.curcolor {
	display: inline-block;
	width: 47px;
	height: 77px;
	border-radius: 50px;
	cursor: pointer;
	margin: 0 7px;
	border: 3px solid #fff;
}

.curcolor:before {
	content: '';
	background-image: linear-gradient(60deg, #f79533, #f37055, #ef4e7b, #a166ab, #5073b8, #1098ad, #07b39b, #6fba82);
	border-radius: 50px;
	z-index: -1;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: -6px;
}

.colors-list {
	margin-bottom: 25px;
	margin-top: 12px;
	display: flex;
	flex-direction: column;
}

.color {
	display: inline-block;
	width: 55px;
	height: 55px;
	border-radius: 28.5px;
	border: 4px solid #cae6ff;
	margin: 3px;
	cursor: pointer;
	vertical-align: top;
	transition: border-color 0.2s ease-in-out;
}

.color:hover,
.color.active {
	border: 4px solid orange;
}

.pallete-icon {
	cursor: pointer;
	pointer-events: auto;
}

.curcolor .pallete-icon:hover {
	border: 4px solid orange;
}

.toolsblock {
	display: flex;
}

.button_arr {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 0 5px;
}

.button {
	display: inline-block;
	padding: 0 15px 0;
	text-transform: uppercase;
	color: #656565;
	cursor: pointer;
	transition: border-color 0.2s ease-in-out, color 0.2s ease-in-out;
	font-family: calibri;
}

.button .fa {
	color: #a9d1f5;
}

.button .fas {
	color: #a9d1f5;
}

.button:hover {
	border-color: #1e88e5;
	color: #333;
}

.button:active {
	border-color: #1e88e5;
	color: #333;
}

.button.with-icon {
	padding: 6px;
	display: inline-block;
	position: inherit;
}


@media screen and (max-width: 1020px) {
	body {
		padding-right: 0;
	}

	.someblock {
		display: none;
	}

	.content .canvas {
		margin-top: 0;
	}
}

.input_range {
	height: 50px;
	width: 272px;
}

.input_range:before {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 4px;
	position: absolute;
	top: 21px;
	left: 21px;
	background: #1d88e6;
	content: '';
	z-index: 0;
}

.input_range .track {
	display: inline-block;
	width: 244px;
	height: 4px;
	position: absolute;
	top: 23px;
	right: 0;
	background: #1d88e6;
	z-index: 0;
}

.input_range:after {
	display: inline-block;
	width: 44px;
	height: 44px;
	border-radius: 25px;
	position: absolute;
	top: 3px;
	right: 0px;
	background: #1d88e6;
	content: '';
	z-index: 0;
	display: none !important;
}

.input_range .thumb {
	display: inline-block;
	background: #1d88e6;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	position: absolute;
	top: 25px;
	left: 40px;
	width: 20px;
	height: 20px;
	z-index: 1;
}

input[type=range] {
	-webkit-appearance: none;
	width: 281px;
	height: 50px;
	display: block;
	border: 0;
	background: transparent;
	z-index: 2;
}

input[type=range]:focus {
	outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
	width: 100%;
	height: 4px;
	cursor: pointer;
	border-radius: 0px;
	border: 0;
	background: rgba(0, 0, 0, 0);
}

input[type=range]::-webkit-slider-thumb {
	width: 50px;
	height: 50px;
	border-radius: 25px;
	border: 4px solid #1d88e680;
	background: none;
	cursor: pointer;
	-webkit-appearance: none;
	margin-top: -23px;
	box-sizing: border-box;
	transition: border-color 0.2s ease-in-out;
}

input[type=range]::-webkit-slider-thumb:hover {
	border-color: #1d88e6;
}

/*
input[type=range]::-webkit-slider-thumb:active {
	border-color:#FE73BB;
}
*/
input[type=range]:focus::-webkit-slider-runnable-track {
	background: rgba(0, 0, 0, 0);
}

input[type=range]::-moz-range-track {
	width: 100%;
	height: 4px;
	cursor: pointer;
	background: rgba(0, 0, 0, 0);
	border-radius: 0px;
	border: 0;
}

input[type=range]::-moz-range-thumb {
	width: 50px;
	height: 50px;
	border-radius: 25px;
	border: 4px solid #EBEBEB;
	background: none;
	cursor: pointer;
	margin-top: -23px;
	box-sizing: border-box;
	transition: border-color 0.2s ease-in-out;
}

input[type=range]::-moz-range-thumb:hover {
	border-color: #1e88e5;
}

/*
input[type=range]::-moz-range-thumb:active {
	border-color:#FE73BB;
}
*/
input[type=range]::-ms-track {
	width: 100%;
	height: 4px;
	cursor: pointer;
	background: rgba(0, 0, 0, 0);
	border-color: transparent;
	color: transparent;
}

input[type=range]::-ms-fill-lower {
	background: rgba(0, 0, 0, 0);
	border: 0;
	border-radius: 0px;
}

input[type=range]::-ms-fill-upper {
	background: rgba(0, 0, 0, 0);
	border: 0;
	border-radius: 0px;
}

input[type=range]::-ms-thumb {
	width: 50px;
	height: 50px;
	border-radius: 25px;
	border: 4px solid #EBEBEB;
	background: none;
	cursor: pointer;
	margin-top: 0px;
	box-sizing: border-box;
	transition: border-color 0.2s ease-in-out;
}

input[type=range]::-ms-thumb:hover {
	border-color: #FFCF58;
}

/*
input[type=range]::-ms-thumb:active {
	border-color:#FE73BB;
}
*/
input[type=range]:focus::-ms-fill-lower {
	background: rgba(0, 0, 0, 0);
}

input[type=range]:focus::-ms-fill-upper {
	background: rgba(0, 0, 0, 0);
}

.input_range.vertical-desktop-horizontal-mobile {
	transform-origin: left top;
	transform: rotate(90deg) translate(-2px, -45px) scale(0.9);
	margin-right: -221px;
}

/*
 * Container style
 */
.ps {
	overflow: hidden !important;
	text-align: center;
	background-color: white;
	overflow-anchor: none;
	-ms-overflow-style: none;
	touch-action: auto;
	-ms-touch-action: auto;
	box-shadow: -4px 0px 8px 0 rgba(95, 95, 95, 0.25);
}

/*
 * Scrollbar rail styles
 */
.ps__rail-x {
	display: none;
	opacity: 0;
	transition: background-color .2s linear, opacity .2s linear;
	-webkit-transition: background-color .2s linear, opacity .2s linear;
	height: 15px;
	/* there must be 'bottom' or 'top' for ps__rail-x */
	bottom: 0px;
	/* please don't change 'position' */
	position: absolute;
}

.ps__rail-y {
	display: none;
	opacity: 0;
	transition: background-color .2s linear, opacity .2s linear;
	-webkit-transition: background-color .2s linear, opacity .2s linear;
	width: 15px;
	/* there must be 'right' or 'left' for ps__rail-y */
	right: 0;
	/* please don't change 'position' */
	position: absolute;
}

.ps--active-x>.ps__rail-x,
.ps--active-y>.ps__rail-y {
	display: block;
	background-color: transparent;
}

.ps:hover>.ps__rail-x,
.ps:hover>.ps__rail-y,
.ps--focus>.ps__rail-x,
.ps--focus>.ps__rail-y,
.ps--scrolling-x>.ps__rail-x,
.ps--scrolling-y>.ps__rail-y {
	opacity: 1;
}

.ps__rail-x:hover,
.ps__rail-y:hover,
.ps__rail-x:focus,
.ps__rail-y:focus {
	/*background-color: #eee;*/
	opacity: 1;
}

/*
 * Scrollbar thumb styles
 */
.ps__thumb-x {
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 6px;
	transition: background-color .2s linear, height .2s ease-in-out;
	-webkit-transition: background-color .2s linear, height .2s ease-in-out;
	height: 6px;
	/* there must be 'bottom' for ps__thumb-x */
	bottom: 2px;
	/* please don't change 'position' */
	position: absolute;
}

.ps__thumb-y {
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 6px;
	transition: background-color .2s linear, width .2s ease-in-out;
	-webkit-transition: background-color .2s linear, width .2s ease-in-out;
	width: 6px;
	/* there must be 'right' for ps__thumb-y */
	right: 2px;
	/* please don't change 'position' */
	position: absolute;
}

/*.myselect .drop .ps__thumb-y {
  background-color:#000;
}*/

.ps__rail-x:hover>.ps__thumb-x,
.ps__rail-x:focus>.ps__thumb-x {
	background-color: rgba(0, 0, 0, 0.2);
	height: 11px;
}

/*
.myselect .drop .ps__rail-y:hover > .ps__thumb-y,
.myselect .drop .ps__rail-y:focus > .ps__thumb-y {
  background-color: #000;
  height: 11px;
}*/

.ps__rail-y:hover>.ps__thumb-y,
.ps__rail-y:focus>.ps__thumb-y {
	background-color: rgba(0, 0, 0, 0.2);
	width: 11px;
}

/* MS supports */
@supports (-ms-overflow-style: none) {
	.ps {
		overflow: auto !important;
	}
}

@media screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) {
	.ps {
		overflow: auto !important;
	}
}


input[type=color] {
	font-size: 0px;
	color: rgba(0, 0, 0, 0);
	cursor: pointer;

	-moz-user-select: none;
	-khtml-user-select: none;
	user-select: none;
	touch-action: none;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	-webkit-text-size-adjust: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}

input[type="color"]::-webkit-color-swatch {
	border: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
}

.color-picker {
	display: inline-block;
	box-sizing: border-box;
	width: 300px;
	padding: 15px 15px 0 15px;
	box-shadow: 0px 2px 10px 5px rgba(0, 0, 0, 0.2);
	height: 150px;
	background: fff;
	font-size: 0;
	position: fixed;
	top: 50%;
	left: 50%;
	margin: -75px 0 0 -150px;
	background: #fff;

	transition: opacity 0.2s ease-out;
	opacity: 1;
}

.color-picker.hidden {
	opacity: 0;
	height: 0;
	top: -50% !important;
	left: -50% !important;
	transition: opacity 0.2s ease-out, height 0s linear 0.2s, top 0s linear 0.2s, left 0s linear 0.2s;
}

.color-picker * {
	font-family: 'Open Sans', sans-serif;
	position: relative;
}

.color-picker .color {
	display: inline-block;
	vertical-align: top;
	width: 35px;
	height: 35px;
	margin: 0 15px 15px 0;
	box-sizing: border-box;
	border: 1px solid #999;
	background: #ff0000;
}

.color-picker input {
	display: inline-block;
	vertical-align: top;
	box-sizing: border-box;
	width: 120px;
	height: 35px;
	line-height: 35px;
	border: 1px solid #999;
	font-size: 12pt;
	color: #666;
	margin: 0 15px 15px 0;
	padding: 0 10px;
	text-transform: uppercase;
}

.color-picker .close {
	display: inline-block;
	vertical-align: top;
	width: 35px;
	height: 35px;
	cursor: pointer;
	background: #fff;
	border-radius: 50%;
	position: absolute;
	top: -8px;
	right: -8px;
	box-shadow: 0 0 3px 5px rgba(0, 0, 0, 0.1);
}

.color-picker .close:before,
.color-picker .close:after {
	display: inline-block;
	content: '';
	width: 2px;
	height: 15px;
	position: absolute;
	top: 10px;
	left: 50%;
	margin-left: -1px;
	background: #999;
	transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
}

.color-picker .close:before {
	transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
}

.color-picker iframe {
	display: inline-block;
	vertical-align: top;
	background: #fff;
	border: 0;
	width: 300px;
	height: 100px;
	margin: -15px -15px 0 -15px;
}

.fa {
	color: #1d88e6;
	font-size: 34px !important;
}

.fa:hover {
	color: orange;
}

.fas {
	color: #1d88e6;
	font-size: 34px !important;
}

.fas:hover {
	color: orange;
}

#main-canvas {
	width: 0;
	height: 0;
}

#texture-selector {
	position: relative;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	background-size: cover;
	margin: 0 auto 10px auto;
	border:2px solid #1d88e6;
	background-color:#272727;
}
.pretty{
	image-rendering: crisp-edges;
	image-rendering: -moz-crisp-edges;          /* Firefox */
	image-rendering: -o-crisp-edges;            /* Opera */
	image-rendering: -webkit-optimize-contrast; /* Webkit (non-standard naming)*/
	-ms-interpolation-mode: nearest-neighbor;   /* IE (non-standard property) */
	transform: translateZ(0);
}
#texture-preview {
	width: 40px;
	height: 40px;
	margin: 0 auto 10px auto;
}

#texture-modal {
	position: fixed;
}

#texture {
	display: none;
	font-size: 16px;
	padding: 4px 22px 4px 4px;
	border: 0px;
	width: 100%;
	text-align: center;
	-webkit-appearance: none;
	appearance: none;
	background-color: #cfe7fd;
}

#texture option {
	background: #fff !important;
}

#texture-selector .dd-toggle {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	font-size: 20px !important;
	line-height: 25px;
	margin-right: 7px;
	pointer-events: none;
}
#texture-modal{
	position:fixed;
	top:0;
	left:0;
	right:0;
	bottom:0;
	background-color:rgba(0,0,0,0.5);
	justify-content:center;
	align-items: center;
    z-index: 10000;
	display:none;
	visibility: hidden;
	opacity:0;
	transition:opacity 250ms ease;
}
#texture-modal.show{
	display:flex;
	visibility: visible;
	opacity:1;
}
#texture-modal-content{
	background-color:#fff;
	border-radius:20px;
	max-width:300px;
	margin:5px;
	padding:10px;
	display:grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap:10px;
}
#texture-modal-content .item-wrap{
	display:flex;
	flex-direction: column;
}
#texture-modal-content .item{
	display:block;
	border-radius:50%;
	width:60px;
	height:60px;
	background-color:rgb(39, 39, 39);
}
#texture-modal-content .item-wrap .title{
	color: #262626;
    font-size: 11px;
    text-align: center;
	margin-top:3px;
}
@media (hover: none) {
	a:hover {
		color: inherit;
	}
}

@media screen and (orientation:landscape) and (max-height: 500px) {
	.fas {
		font-size: 24px !important;
	}

	.sidebar-left {
		width: 47px;
	}

	.sidebar-wrap.opened .sidebar-left {
		width: 90px;
	}

	.input_range.vertical-desktop-horizontal-mobile {
		transform: rotate(90deg) translate(-5px, -31px) scale(0.56);
	}

	.button_arr {
		padding: 0 6px;
	}
	.sidebar .tool{
		padding: 4px 10px;
	}
	.simple-editor .sidebar-opener {
		display:none;
	}
	.simple-editor .button_arr {
		grid-template-columns: 1fr;
		margin-left:-3px;
	}
}

@media screen and (orientation:portrait) {

	.ps.sidebar-left,
	.ps.sidebar-right {
		overflow-x: auto !important;
		overflow-y: hidden !important;
	}

	.content-holder {
		flex-direction: column;
		max-height: 100%;
	}

	.tools-wrap{
		display:flex;
	}
	
	.sidebar-wrap {
		justify-content: center;
	}

	.sidebar-left {
		flex-direction: row;
		overflow: hidden;
		flex-shrink: 0;
		justify-content: space-between;
		height: 36px;
		width: auto;
		border-top-right-radius: 0;
		border-bottom-left-radius: 20px;
		padding: 2px 4px;
	}

	.sidebar-wrap.opened .sidebar-left {
		height: 77px;
		width: auto;
	}

	.sidebar-opener {
		top: 100%;
		left: 50%;
		margin-top: 0;
		margin-left: -20px;
		border-top-right-radius: 0;
		border-bottom-left-radius: 20px;
		width: 40px;
		height: 20px;
		justify-content: center;
		box-shadow: 0px 6px 8px 0 rgb(95 95 95 / 25%);
	}

	.sidebar-wrap .sidebar-opener i:before {
		content: '\f107';
	}

	.sidebar-wrap.opened .sidebar-opener i {
		margin-top: -7px;
	}

	.sidebar-wrap.opened .sidebar-opener i:before {
		content: '\f106';
		margin-left: 0;
	}

	.button_arr {
		grid-template-columns: 1fr 1fr 1fr;
	}

	.input_range.vertical-desktop-horizontal-mobile {
		transform-origin: left top;
		transform: rotate(0deg) scale(0.6) translate(0px, 6px);
		margin-right: -150px;
		margin-bottom: -8px;
	}

	.toolsblock {
		flex-direction: column;
	}

	.sidebar .tools {
		flex-direction: row;
		margin-bottom: 2px;
	}

	.sidebar .tool {
		padding: 3px 5px;
	}
	#texture-selector{
		width: 29px;
		height: 29px;
		margin: auto 0 auto 4px;
	}
	#texture {
		border-radius: 14px;
	}

	.fas {
		font-size: 24px !important;
	}

	.simple-editor .sidebar-opener {
		display:none;
	}
	.simple-editor .button_arr {
		display: flex;
		margin-top:-2px;
	}

	.simple-editor .tools-wrap {
		display: flex;
		align-items: center;
	}

	.simple-editor .texture-selector {
		margin: 0;
	}

	.sidebar-right {
		display: flex;
		flex-shrink: 0;
		padding: 10px 0px 8px 0px;
	}

	.colors-list {
		flex-grow: 1;
		flex-direction: row;
		margin: 0;
	}

	.curcolor {
		width: 55px;
		height: 31px;
		flex-shrink: 0;
		margin: 4px 7px 0 10px;
	}

	.color {
		width: 37px;
		height: 37px;
		margin: 0px 2px;
	}
}