*{
	-webkit-tap-highlight-color: rgba(0,0,0,0);
    touch-action: manipulation;
}

.picker_wrapper{
	background-color: #000000;
	border: 0px;
}
button{
	background-color: #f3e4bd;
	color: #543e30;
	font-weight: bold;
}
.picker_wrapper button:hover{
	background-color: #dcbc83;
}

#scrollhor{
	height: 20px;
	width: 100%;
	position: absolute;
	top:-22px;
	z-index: 1;
	background-color: #111;
	border-top: 2px solid #000;
}
#scrollver{
	height: 100%;
	width: 20px;
	position: absolute;
	right: 0px;
	z-index: 0;
	background-color: #111;	
	border-left: 2px solid #000;
}

#patternscroll{
	height: 20px;
	width: 100%;
	position: absolute;
	top: 80px;
	z-index: 1;
	background-color: #111;
	margin-left:290px;
}

.scroller{
	background-color: #333;
	width: 200px;
	height: 20px;
	border-radius: 10px;
	margin: 0px 20px 0px 5px;
	cursor: grabbing;
}
.scroller:hover{
	background-color: #444;
}

.scrollerv{
	background-color: #333;
	margin: 48px 0px 20px 0px;
	width: 20px;
	height: 200px;
	border-radius: 10px;
	cursor: grabbing;
}
.scrollerv:hover{
	background-color: #444;
}
/* width 
::-webkit-scrollbar {
  width: 30px;
  height: 20px;
  border-style: none;
}

#patternscontainer::-webkit-scrollbar {
	height: 30px;
}

::-webkit-scrollbar-track {
  background: #333;
  border:0px;
  width: 20px;
}

::webkit-scrollbar-button { 
     display:none;
}

#patternscontainer::-webkit-scrollbar-track {
  background: #000;
  border:0px;
} 

#patternscontainer::-webkit-scrollbar-thumb {
	border-top: 10px solid black;
	border-left: 140px solid black;
	border-right: 200px solid black;
}

::-webkit-scrollbar-thumb {
  background: #666;
}

::-webkit-scrollbar-corner{
	 background: #333;
}	 */


body{
	image-rendering: -webkit-optimize-contrast;
	position:fixed;
	background: #000;
	margin:0px;
	width:100%;
	height:100%;
	float:left;
	overflow:hidden;
	font-family: Helvetica, Arial, Sans-Serif;
	scrollbar-color: #333 #000;
	overscroll-behavior-x: none;
}

#container{
	padding:0px;
	left: 0px;
	right: 0px;
	top: 42px;
	bottom: 110px;
	position: absolute;
	overflow: scroll;
	width:100%;
	margin:auto;
}
#our_table{		
	transform-origin: 0 0;
	transform: scale(1,1);	
	float:left;		
}	

#tools{
	border-top: 2px solid #543e30;
	background-color: #000;
	width:100%;		
	height:105px;
	position:absolute;
	bottom:0px;
	left:0px;	
}	

#toolpadding{
	padding: 5px;
	padding-left: 0px;
	float: left;
	width: 100%;
}		

#colors, #bgcolors{
	width: 140px;
	height: 70px;
	float: left;
	clear: both;
	margin: 0px 10px 30px 0px;
	background-color: black;
	z-index: 2;
	position: absolute;
}	
#bgcolors{
	display: none;
}			
#colors div,#bgcolors div{
	width: 25%;
	padding-top: 25%;
	float: left;	
	cursor:pointer;				
}

#adjustbuttons{
	padding: 0px 0px 0px 0px;
	margin-top: 0px;
	float: left;
	width: 140px;
	margin-right: 5px;
	border-right: 5px solid black;
	border-left: 5px solid black; 
	left: 140px;
	z-index: 2;
	position: absolute;
	background-color: #f3e4bd;
	background-clip: content-box;
}

#adjustbuttons img{
	width: 25%;
	float:left;
	cursor:pointer;	
}

#adjustbuttons input{
	width: 25%;
	height: 31px;
	padding: 0px;
	border: 0px;
	text-align: center;
	background-color: #f3e4bd;
	font-weight: bold;
	color: #543e30;
	font-size: 18px;
	padding-top: 4px;
}

#adjustbuttons input:focus{
	outline: none;
	background-color: #fff;
}

#patternscontainer{		
	float:left;
	width:100%;
	margin-left: 0;
	margin-top: 5px;
	padding-right: 0px;
	overflow-x: hidden;
	background-color:#333; 
	white-space: nowrap;
	top: 0px;
	position: absolute;
	z-index: 1;
}

#patterns{		
	margin-right: 300px;
	white-space: nowrap;
	height: 70px;
	display: inline-block;
	
}

#patterns img{
	height: 70px;
	margin-bottom: -5px;
	cursor: pointer;	
	display: inline-block;
	white-space: nowrap;
	transform: rotate(0.05deg);
}

#patterns svg{
	height: 70px;
	margin-bottom: -5px;
	cursor: pointer;	
	display: inline-block;
	white-space: nowrap;
	transform: rotate(0.05deg);
}


#buttons{
	width: 280px;
	float: right;
	margin: 5px 0px 30px 5px;
	right:0px;
	top:0px;
	position: absolute;
	border:0px solid #543e30;
	background-color: #f3e4bd;
	border-left: 5px solid black; 
	cursor:pointer;	
	z-index: 2;
}	

#buttons img{
	width: 35px;
	float: left;
}	

#info, #print_menu, #share, #dims_menu {
	position: absolute;
	z-index:10;
	left: 50%;
	top: 50%;			
	width: 640px;
	height: 460px;
	margin-left:-350px;
	margin-top: -260px;				
	background-color:#d1a468; 
	border: 10px solid #543e30;
	visibility: hidden;
	padding: 20px;
	font-size: 20px;
}

#info a{
	color: #543e30;
}

#print_menu h2, #dims_menu h2, #share h2{
	color: #543e30;
	margin: 10px;
	font-size: 25px;
}

#print_menu p, #dims_menu p, #share p{
	color: #543e30;
	margin-left: 10px;
	margin-top: 16px;
}

#print_menu img, #dims_menu img{
	position: relative;
	margin-top: 2px;
	width: 175px;
	height: 150px;
	margin-bottom: 15px;
	margin-left: 10px;
	margin-right: 12px;
	cursor: pointer;
	opacity: 0.7;
	border: 5px solid rgba(84,62,48,1);
	z-index: 3;
}
.beta{
	width: 40px;
	background-color: #00ff00;
	opacity: 0.7;
	height: 16px;
	left: 0px;
	top: 0px;
	font-size: 14px;
	margin-left: 15px;
	margin-top: 7px;
	padding: 5px;	
	position: absolute;
	text-align: center;
	z-index: 5;
}

.menu_info, .menu_infot{
	position: absolute;
	height: 16px;
	width: 164px;
	bottom: 38px;
	left: 30px;
	background: #543e30;
	color: #fff; 
	z-index: 4;
	padding: 10px;			
	font-size: 13px;
	line-height: 14px;
	font-weight: normal;
}
.menu_infot{
	bottom: 220px;
}

#print_menu img:hover, #dims_menu img:hover{
	opacity: 1;
}		

#info p{
	margin:0px;
}

#break{
	border: 5px solid #543e30;
	margin: 15px -25px 12px -25px;
}

#icons{
	width: 300px;
	float: left;
}		
#icons img{
	width: 45px;
	margin: 5px;
	float: left;
	clear: both;
}
#icons p{
	width: 230px;
	float: left;
	height: 45px;
	padding: 0px;
	margin: 5px;
	display: flex;
	align-items: center;
}

#info input{
	position: absolute;
	right: 0px;
	top: 0px;
	width: 120px;
}

#rotatebutton{
	width: 0%;
	height: 51%;
	float: left;
	margin-top: 0.5%;
	border:0px solid red;
	background-color: #d1a468;
}

#collapse{
	width:20px;
	height:20px;
	position: absolute;
	right: 0;
	top:-20px;
	z-index: 2;
	background-image: url('../images/collapse.png');
	background-size: 20px;
}	

#edtpattern, #parampattern{
	width: 600px;
	height: 400px;
	top: 45%;
	left: 50%;
	margin-left: -300px;
	margin-top: -200px;
	background-color: #333;
	position:absolute;
	z-index: 10;
	visibility: hidden; 
	user-select: none;
}

#parampattern a{
	color: #333;
}

#parampattern{
	visibility: hidden;
}

.param-slider {
    border-left: 5px solid #333;
    height: 310px;
    position: absolute;
    right: 80px;
    top: 75px;    
}
 
.param-thumb {
    cursor: pointer; 
    position: absolute; 
    right: -10px;
    top: 200px; 
    width: 20px; 
    height: 20px; 
	border-radius: 20px;
	border: 2px solid #543e30;
    background: #f3e4bd;
}
 
.param-value {
    position: absolute;
    right: 60px;
    top: 400px; 
    width: 45px;
    text-align: center;
    font-family: "Lucida Console", Monaco, monospace;
	font-weight: bold;
}

#patterne{
	margin: 40px;
	transform: rotate(180deg);	
}
	
.color{
	width: 144px;
	height: 30px;
	background-color: #9e492c;
	float: left;
	margin-left: 12px;
	margin-right: 50px;
	margin-bottom: 12px;
	cursor: pointer;	
}
#color2{
	background-color: #543e30;
}
#color3{
	background-color: #6e4250;
}

#colornum span{
	float: left;
	color: red;
	background-color: #543e30;
	box-shadow: none;
	border: 3px solid #856b53; 
	width: 24px;
	height: 24px;
	cursor: pointer;	
	border-radius: 24px;
}

#colornum span:first-child{
	background-color: #f3e4bd;
}

#colornum span:hover{
	border: 3px solid #f3e4bd; 
}

#colorpicker{
	display: none;	
	position: absolute;
	margin-left: 210px;
	margin-top: -48px;
	width: 300px;
	height: 300px;
	z-index: 3;
}

#cancel,#insert{
	width: 140px;
	height: 40px;
	color: #2d2727;
	font-size: 20px;
	font-weight: bold;
	background-color: #f3e4bd;
	position: absolute;
	text-align: center;
	line-height: 40px;
	bottom: 20px;
	cursor: pointer;
	
	-webkit-user-select: none; /* Safari */        
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* IE10+/Edge */
	user-select: none; /* Standard */
}

#selectionpattern{
	position: absolute; 
	width: 120px; 
	height: 60px; 
	right: 20px; 
	bottom: 130px; 
	z-index: 5;
	background-color: #d1a468;
	padding: 10px;
	border: 10px solid #543e30;
}

#selectionpattern p{
	clear: both;
	float: left;
	margin: 0px;
	padding: 0px;
}

#selectionpattern input{
	float: right;
	margin: 0px;
	padding: 0px;
	width: 30px;
	font-weight: bold;
	background-color: #f3e4bd;
	border: 0px;
	text-align: center;
}

#hotkeys{
	position: absolute;
	left: 0px;
	top:30px;
	padding: 20px;
	color:#444;
	width:250px;
	height: 400px;
	z-index: 0;
	pointer-events: none; 
}
table{
	color:#444;
}
.faded{
	opacity: 0.3;
	cursor: default;
}

@media only screen and (max-device-width: 800px) { /* larger buttons for mobile touch devices */
	body{
		zoom: 1.2;
	}
	#hotkeys{
		display: none;
	}
	#container{
		bottom: 210px;
	}
	#patternscontainer{
		top:0px;
	}
	#settings, #settings2{
		top: 5px;
		left: 0px !important;
		padding-left: 0px;
		margin-left: 0px;
		width: 800px;
		height: 80px !important;
	}	
	#tools{
		height: 205px;
		background-color: #000;
	}
	#scrollver, .scrollerv{
		width: 30px;
	}
	#scrollhor{
		height: 30px;
		top: -32px; 
	}
	.scroller{
		height: 30px;
	}
	#patternscroll{
		visibility: hidden;
	}	
	#collapse{
		width: 30px;
		height: 30px;
		background-size: 30px;
		top: -30px; 
	}
	#colors, #bgcolors, #adjustbuttons, #buttons{
		top: 105px;
		padding-top: 0px;
	}
	#adjustbuttons{
		border-bottom: 30px solid #543e30;
		border-right: 0px;
		width: 200px;
		left: 202px;
		padding-right: 5px; 
	}
	#adjustbuttons input{
		font-size: 25px;
		line-height: 25px;
		padding-top: 10px;
	}
	#patternname{
		height: 0px;
		line-height: 0px;
		z-index: 0;
		opacity: 0;
	}
	#colors, #bgcolors{
		width: 200px;
		margin-left: -4px;
	}	
	
	#buttons{
		width: 400px;
		background-color: #f3e4bd;
		margin-left: 10px;
		padding: 0px;
		margin-top: 0px; 
		border: 0px; 
	}
	#buttons img{
		width: 50px;
	}
	
	#bar{
		height: 60px;
		line-height: 60px;
	}
	.designname{		
		font-size:30px;
	}
	#user,#user span{
		font-size: 30px;
		line-height: 60px;
	}
	#user img{
		height: 40px;
		padding:5px; 		
	}
	#print_menu img{
		opacity: 1;
	}
	#panel{
		padding-right: 0px;
	}
}

/* Toggle button for imperial/metric */
#toggler p{
	color: #543e30;
	margin: 0px;
	margin-left: 5px;
	margin-right: 5px; 
	top: 0px;
	float: right;
}

.toggleCheckbox {
   display: none;
 }
 
.toggleContainer {
	float: right;
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	width: fit-content;
	border: 0px solid #F0E6C8;
	background: #543e30;
	font-weight: bold;
	cursor: pointer;
	line-height: 20px;
	padding: 1px;
	margin-right: 5px;
	margin-top: 5px; 
	width:40px; 
	height: 15px;
	border-radius: 15px; 
}

.toggleContainer::before {
	content: '';
	position: absolute;
	width: 25px;
	height: 25px;
	left: 0%;
	background: #F0E6C8;
	border-radius: 15px;
	margin-top: -5px;
}

.toggleContainer div {
	padding: 2px 6px 1px 6px;
	text-align: center;
	z-index: 1;
}

.toggleCheckbox:checked + .toggleContainer::before {
	left: 20px;
}

.toggleCheckbox:checked + .toggleContainer div:first-child{
	color:  #fff;
}	
.toggleCheckbox:checked + .toggleContainer div:last-child{
	color: #F0E6C8;
}
.toggleCheckbox + .toggleContainer div:first-child{
	color: #F0E6C8;
}
.toggleCheckbox + .toggleContainer div:last-child{
   color: #fff;
}

/* end of toggle button */


/* Loading animation */
.lds-default {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-default div {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #f3e4bd;
  border-radius: 50%;
  animation: lds-default 1.2s linear infinite;
}
.lds-default div:nth-child(1) {
  animation-delay: 0s;
  top: 37px;
  left: 66px;
}
.lds-default div:nth-child(2) {
  animation-delay: -0.1s;
  top: 22px;
  left: 62px;
}
.lds-default div:nth-child(3) {
  animation-delay: -0.2s;
  top: 11px;
  left: 52px;
}
.lds-default div:nth-child(4) {
  animation-delay: -0.3s;
  top: 7px;
  left: 37px;
}
.lds-default div:nth-child(5) {
  animation-delay: -0.4s;
  top: 11px;
  left: 22px;
}
.lds-default div:nth-child(6) {
  animation-delay: -0.5s;
  top: 22px;
  left: 11px;
}
.lds-default div:nth-child(7) {
  animation-delay: -0.6s;
  top: 37px;
  left: 7px;
}
.lds-default div:nth-child(8) {
  animation-delay: -0.7s;
  top: 52px;
  left: 11px;
}
.lds-default div:nth-child(9) {
  animation-delay: -0.8s;
  top: 62px;
  left: 22px;
}
.lds-default div:nth-child(10) {
  animation-delay: -0.9s;
  top: 66px;
  left: 37px;
}
.lds-default div:nth-child(11) {
  animation-delay: -1s;
  top: 62px;
  left: 52px;
}
.lds-default div:nth-child(12) {
  animation-delay: -1.1s;
  top: 52px;
  left: 62px;
}
@keyframes lds-default {
  0%, 20%, 80%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}