
* {
	position:relative;
	padding:0;
	margin:0;
	outline:none;
	box-sizing:border-box;
}

html, body {
	width:100%;
	height:100%;
}

html {
	background-color: #fffdf0;
}

body {
	padding-left:320px;
	font-family:'Roboto Condensed',sans-serif;
	color: #e6daa8;
}

.inactive {
	pointer-events:none;
	opacity:0.5;
}

a {text-decoration:none}

.content {
	height:100%;
	overflow:auto;
	text-align:center;
	white-space: nowrap;
	text-align: center;
	font-size: 0;
	background-color: aliceblue;
	background: url(../img/bg.png);
}

.content:before {
    height: 100%;
    display: inline-block;
    vertical-align: middle;
    content: '';
}

.content .canvas {
	display:inline-block;
	box-shadow:0 0 0 4px rgba(0,0,0,0.08);
	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 {
	position:fixed;
	top:0;
	left:0;
	bottom:0;
	background:#fff;
	transform: translate3d(0,0,0);
	padding: 20px 20px;
	box-shadow: 4px 0 0 0 rgba(0, 0, 0, 0.08);
	font-size:0px;
	overflow-y:auto;
}

.sidebar .tools {
	white-space: nowrap;
	margin-bottom: 10px;
	width: 281px;
}

.sidebar .tool {
	display: inline-block;
	width:65px;
	height:65px;
	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: 85px;
	height: 85px;
	border-radius: 49.5px;
	border: 4px solid #cae6ff;
	cursor:pointer;
}

.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 {
	border: 4px solid orange;
}

.pallete-icon {
	display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 56px;
    border: 4px solid #EBEBEB;
    position: absolute;
    top: 10px;
    left: -65px;
    background: url(../img/pallete.png) center center no-repeat;
    background-size: cover;
    cursor: pointer;
    pointer-events: auto;
}

.curcolor .pallete-icon:hover {
	border:4px solid orange;
}

.toolsblock {
	padding: 20px 0 5px 0;
    border-top: 8px dotted #f0f8ff;
    border-bottom: 8px dotted #f0f8ff;
}

.button_arr {width: 281px;margin-top: 30px;}
.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: 15px;display: inline-block;position: inherit;}

.showhide_sidebar {
	display:none;
	width:0;
}

@media screen and (max-width: 1020px) {
	body {
		padding-left:0;
	}

	.someblock {
		display:none;
	}

	.content .canvas {margin-top:90px;}

	.sidebar {
		display:none;
	}

	.sidebar.shown {
		display:inline-block;
		left:auto;
		right:0;
		box-shadow:-4px 0 0 0 rgba(0,0,0,0.08);
	}

	.showhide_sidebar {
		display:inline-block;
		width:50px;
		height:50px;
		border-radius: 50px;
		box-shadow: 0 0 0 4px #1d88e6;
		position:fixed;
		top: 30px;
		right: 30px;
		cursor:pointer;
		background:#fff;
	}

	.showhide_sidebar:after, .showhide_sidebar:before, .showhide_sidebar span {
		display:inline-block;
		height:4px;
		width:24px;
		background:#1d88e6;
		transition:all 0.2s ease-in-out;
		border-radius:2px;
		position:absolute;
		top:23px;
		left:13px;
		transform:rotate(0deg);
		content:'';
	}

	.showhide_sidebar:hover:after, .showhide_sidebar:hover:before, .showhide_sidebar:hover span {
		background: #1d88e6;
	}

	.showhide_sidebar:before {
		top:15px;
	}

	.showhide_sidebar:after {
		top:31px;
	}

	.showhide_sidebar.close:after {
		transform:rotate(45deg);
		top:23px;
	}

	.showhide_sidebar.close:before {
		transform:rotate(-45deg);
		top:23px;
	}

	.showhide_sidebar.close span {
		opacity:0;
	}
	
	.sidebar .tools {
		margin-top: 30px;
	}
}

@media screen and (max-width: 600px) {
	.sidebar {
		outline:300px solid rgba(0,0,0,0.2);
	}
}



.input_range {
	height: 80px;
	width: 281px;
}
.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:260px;
	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;
}
.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);
}



/*
 * 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: 40px !important;
}
.fa:hover {
	color:orange;
}
.fas {
	color: #1d88e6;
	font-size: 40px !important;
}
.fas:hover {
	color:orange;
}