	*
	{
		margin: 0;
		padding: 0;
		font-family: system-ui;
	}

	html, body
	{
		width: 100%;
		height: 100%;
	}
	aside
	{
		position: fixed;
		top: 0;
		background: #dfd6b9;
		padding: 2.5px;
		border: 1px solid #9c8141;
		left: 0;
		bottom: 0;
		width: 50px;
		z-index: 1000;
		display: flex;
	    justify-content: flex-end;
	    align-items: stretch;
	    transition: all 0.2s ease-in-out
	}

	.active
	{
		width: 350px;
	}

	aside::-webkit-scrollbar
	{
		width: 0;
		height: 0;
	}
	canvas
	{
		background: #f6f6f6;
		position: relative;
		left: 57px;
		width: calc(100% - 57px);
		height: 100%;
	}

	ul
	{
		width: 100%;
		scroll-behavior: 
	}

	ul hr
	{
		margin-bottom: 3px;
	}

	li
	{
		width: 48.5px;
	    height: 48.5px;
	    background: #ece2c1;
	    border-radius: 10px;
	    border: 1px solid #9c8141;
	    text-align: center;
	    margin-bottom: 3px;
	    margin-left: 4px;
	    position: relative;
	    line-height: 50px;
	    font-size: 12px;
	    transition: all 0.2s ease-in-out;
	    display: block;
	 }

	li:hover,
	.li-active
	{
		cursor: pointer;
		background: #fff;
	}

	li::after
	{

		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		border-radius: 10px;
		box-shadow: inset -1.5px -1.5px 5px #414040, inset 1.5px 1.5px 4px #ffffff;
	}

	li svg
	{
		width: 24px;
		height: 24px;
		position: relative;
		top: 5px;
	}

	.other-buttons
	{
		position: fixed;
    	top: 325px;
    	z-index: -1;
		display: contents;
		width: 20px;
	}

	.other-buttons li
	{
		width: 35px;
    	height: 35px;
      right: -13px;
	}

	.left-bar
	{
		position: relative;
		width: 140px;
		height: 370px;
		left: -140px;
		border: 1px solid #9c8141;
		transition: all 0.25s ease-in-out;
		background: #fff7db;
		border-bottom-right-radius: 10px;
		padding: 10px;
		box-sizing: border-box;
		z-index: 1000;
	}

	.left-bar::before
	{
		position: absolute;
	    content: "➧";
	    top: -1px;
	    right: -16px;
	    padding: 2px;
	    width: 10px;
	    height: 100px;
	    border-radius: 10px;
	    border-bottom-left-radius: unset;
	    border-top-left-radius: unset;
	    text-align: right;
	    background: #fff7db;
	    line-height: 100px;
	    border: 1px solid #9c8141;
	    z-index: -1;
	    box-shadow: inset -1px -1px 5px #414040;
	}

	.left-bar:hover
	{
		left: -3px;
		box-shadow: 1px 1px 5px 0px #7c7b7b;
		will-change: left;
	}

	.left-bar:hover::before
	{
		background: #fff;
		color: red
	}

	.input-form
	{
		display: flex;
		margin-bottom: 5px;

	    justify-content: flex-start;
	    align-items: center;
	}

	.input-form label
	{
		margin-left: 5px;
	}

	.input-form input[type="text-number"],
	.input-form input[type="number"]
	{
		position: relative;
		padding: 5px;
		width: 50px;
		border: 1px solid #9c8141;
		border-radius: 4px;
		
	}

	.input-button-num
	{
		display: flex;
	    flex-direction: column;
	    justify-content: center;
	}

	.input-button-num span
	{
		margin: 0;
	    padding: 0;
	    background: #9c8141;
	    font-size: 9px;
	    width: 12px;
	    border: 1px solid #9c8141;
	    border-radius: 5px;
		border-top-left-radius: unset;
		border-bottom-left-radius: unset;
	}

	.input-button-num span:hover
	{
		cursor: pointer;
		background: #ffcb50;
	}

	.input-button-num span:nth-child(1)
	{
		border-bottom-right-radius: unset;
		border-bottom-width: 2px;
	}

	.input-button-num span:nth-child(2)
	{
		border-top-right-radius: unset;
	}

		input[type=number]::-webkit-inner-spin-button,
    	input[type=number]::-webkit-outer-spin-button
	    {
	        opacity: 1;
	    }

	  input[type=number]::-webkit-outer-spin-button, 
	  input[type=number]::-webkit-inner-spin-button
	  {
	    -webkit-appearance: inner-spin-button !important;
	    width: 30px;
	    position: absolute;
	    top: 0;
	    right: 0;
	    height: 100%;
	    background: #ece2c1
	  }

	  ul .input-form input[type="number"]
	  {
	  	width: 100% !important;
	  	margin-right: unset;
	  }

	  .flex_block_1
	  {
	  	width: 100%;
	  }

	  .flex_block_2
	  {
	  	background: #dfd6b9;
	  	width: 55px;
	  	text-align: center;
	  	z-index: 1;
	  }

	  .profile
	  {
		display: none;
		position: absolute;
		top: 10px;
		left: 65px;
		max-width: 250px;
		border-radius: 4px;
		background: #dfd6b9;
		padding: 10px;
		border: 1px solid #9c8141;
		z-index: 1;
	  }

	  .butn_profile
	  {
		position: relative;
		width: 100%;
		height: 100px;
		margin-top: 15px;
		margin-bottom: 20px;
	  }

	  .butn_profile button
	  {
		position: absolute;
		width: 100px;
		height: 30px;
		border: 1px solid #9c8141;
		border-radius: 4px;
	  }

	  .butn_profile button:nth-child(1)
	  {
		top: -5px;
    	left: 31px;
	  }
	  .butn_profile button:nth-child(1)::after,
	  .butn_profile button:nth-child(2)::after
	  {
		content: "";
		width: 100px;
		height: 30px;
		background: url(./img/ln.png);
		background-size: 70%;
		background-repeat: no-repeat;
		background-position-x: center;
		background-position-y: center;
		position: absolute;
		left: -3px;
	  }

	  .butn_profile button:nth-child(2)
	  {
		left: -37px;
    	top: 35px;
		transform: rotateZ(270deg);
	  }

	  .butn_profile button:nth-child(3)
	  {
		top: 35px;
		left: 98px;
		transform: rotateZ(270deg);
		
	  }

	  .butn_profile button:nth-child(4)
	  {
		top: 75px;
		left: 31px;
	  }

	  .butn_profile button:nth-child(3)::after,
	  .butn_profile button:nth-child(4)::after
	  {
		content: "";
		width: 100px;
		height: 12px;
		background: url(./img/ln.png);
		background-size: 70%;
		background-repeat: no-repeat;
		background-position-x: center;
		background-position-y: center;
		position: absolute;
		left: -3px;
		top: 2px;
	  }
	  .butn_profile input
	  {
		position: absolute;
		top: 30px;
		padding: 3px;
		left: 31px;
		max-width: 90px;
		height:30px
	  }

	  .state
	  {
		display: flex;
		justify-content: space-around;
		align-items: stretch;
		width: 100%;
		height: 100px;
		margin-bottom: 10px;
		margin-top: 10px;
	  }

	  .state div
	  {
		width: 70px;
		background: rgb(0,0,0);
		background: linear-gradient(90deg, rgba(110,82,16,1) 0%, rgba(253,29,29,0) 20%, rgba(238,27,27,0) 80%, rgba(110,82,16,1) 100%);
		border: 1px solid #9c8141;
		position: relative;
		transition: all 0.3s ease-in-out;
	  }

	  .state div:hover,
	  .state div:active
	  {
		box-shadow: 0 0 8px 5px #1ec53e;
		cursor: pointer;
	  }
	  .state .vertical g::after,
	  .state .vertical g::before
	  {
		content: "";
		width: 10px;
		height: 10px;
		position: absolute;
		border: 1px solid #000000;
		border-radius: 100%;
		background: red;
		left: -4px;
	  }

	  .state .vertical g::after
	  {
		top: -5px;
	  }
	  .state .vertical g::before
	  {
		bottom: -5px;
	  }

	  .state .vertical g
	  {
		width: 3px;
		height: 100%;
		background:black;
		position: absolute;
		left: 50%;
	  }

	  .state .horisontal g::after,
	  .state .horisontal g::before
	  {
		content: "";
		width: 10px;
		height: 10px;
		position: absolute;
		border: 1px solid #000000;
		border-radius: 100%;
		background: red;
		top: -4px;
	  }

	  .state .horisontal g::after
	  {
		left: -5px;
	  }
	  .state .horisontal g::before
	  {
		right: -5px;
	  }

	  .state .horisontal g
	  {
		width: 100%;
		height: 3px;
		background:black;
		position: absolute;
		top: 50%;
	  }


	  .plus,
	  .minus
	  {
	  	position: relative;
	  	overflow: hidden;
	  }
	  .plus span,
	  .minus span
	  {
	  	font-size: 40px;
	    font-weight: 900;
	    position: absolute;

	  }
	  .plus span
	  {
	    top: -13px;
	    right: 3px;
	    color: green;
	  }

	  .minus span
	  {
	  	font-size: 50px;
	  	top: -15px;
	    right: 5px;
	    color: red;

	  }
	  .modal
		{
			position: fixed;
		    top: 10px;
		    left: 65px;
		    background: white;
		    border: 1px solid #2f2f2f;
		    border-bottom: unset;
		    border-radius: 10px;
		    display: none;
		    overflow: hidden;
		    z-index: 1;
		}

	.modal .modal-container
	{
		border: 5px solid #2f2f2f;
		border-top: unset;
		border-bottom-left-radius: 10px;
		border-bottom-right-radius: 10px;
		min-width: 380px;
		min-height: 160px;
	    max-height: 400px !important;
	    overflow-y: auto;
	    padding: 1px !important;
	}
	
	.modal .modal-header,
	.modal .modal-footer
	{
		padding: 5px;
	}

	.modal .modal-header
	{
		background: linear-gradient(to bottom, #969595 15%, #2f2f2f);
    	border-bottom: 1px solid black;
		color: white
	}
	.modal .modal-header span
	{
		position: absolute;
	    right: 10px;
	    top: -4px;
	    font-size: 24px;
	    font-weight: 700;
	    color: #242424;
	    text-shadow: 0 0 5px #d6d1d1;
	}

	.modal-container .modal-item
	{
		padding: 4px;
    	border-bottom: 1px solid #dfd6b9;
	}

	.modal-item-img
	{
		vertical-align: middle;
		margin-right: 10px;
		border-radius: 3px;
		border: 1px solid black;
	}

	.modal-container .modal-item:hover
	{
		cursor: pointer;
    	background: #dfd6b9;
	}

	.modal .modal-header span:hover
	{
		cursor: pointer;
		color: white;
		text-shadow: 0 0 5px #242424;
	}

	.modal .modal-footer
	{
		text-align: center;
	}

	.modal .modal-footer .modal-button
	{
		padding: 5px 10px;
		color: white;
		border-style: none;
		border: 1px solid black;
		border-radius: 4px;
		outline: none;
		background: linear-gradient(to bottom, #969595 15%, #2f2f2f);
		cursor: pointer;
		transition: background 0.3s ease;
	}

	.modal .modal-footer .modal-button:hover
	{
		background: linear-gradient(to bottom, #d7d7d7 15%, #6f6f6f);
	}

	.modal .modal-footer .modal-button:active
	{
			background: #6f6f6f;
	}

	.modal .modal-container input,
	.modal .modal-container select,
	.modal .modal-container button
	{
		display: block;
		margin-bottom: 10px;
		padding: 5px;
	}

	.modal .modal-header-content .a-active
	{
		font-weight: 800;
		cursor: pointer;
	}


	.modal .modal-container button
	{
		background: #ece2c1;
	    border-radius: 3px;
	    border: 1px solid #9c8141;
	    text-align: center;
	    position: relative;
	    cursor: pointer;
	}

	.modal .modal-container button img
	{
		float: left;
	}
	.modal .modal-container button:hover
	{
		background: #fff;
	}


	.modal .modal-container button:after
	{
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		border-radius: 3px;
		box-shadow: inset -1.5px -1.5px 5px #414040, inset 1.5px 1.5px 4px #ffffff;
	}

	.modal .modal-container select,
	.modal .modal-container button
	{
		width: 100%;
	}


	.modal .modal-container .grav-overflow
	{
		min-width: 400px;
		max-width: 400px;
		max-height: 400px;
		background: white;
		overflow-y: auto;
		border-radius: 4px;
	}

	.modal .modal-container .grav-overflow .grav-container .grav-span,
	.modal .modal-container .grav-overflow .grav-container .knam-span
	{
		display: block;
		padding: 3px;
		border-bottom: 1px solid grey;
	}

	.modal .modal-container .grav-overflow .grav-container .grav-span img
	{
		vertical-align: sub;
	}

	.modal .modal-container .grav-overflow .grav-container .gnam-span
	{
		display: inline-block;
		text-align: center;
		margin: 10px;
	}
	.modal .modal-container .grav-overflow .grav-container .gnam-span img
	{
		display: block;
	}

	.modal .modal-container .grav-overflow .grav-container .grav-span:hover,
	.modal .modal-container .grav-overflow .grav-container .gnam-span:hover,
	.modal .modal-container .grav-overflow .grav-container .knam-span:hover
	{
		background: #eee;
		cursor: pointer;
	}

	.add-texture
	{
		text-align: left;
	}

	.bezz_ok
	{
		position: absolute;
	    left: -10px;
	    top: 106px;
	    padding: 2px;
	    padding-left: 8px;
	    background: #dfd6b9;
	    border: 1px solid #9c8141;
	    border-bottom-right-radius: 10px;
	    border-top-right-radius: 10px;
	    transition: left 0.3s ease-in-out;
	}

	.wiremode
	{
		position: absolute;
	    top: 320px;
	    left: -1px;
	    padding: 5px;
	    background: #dfd6b9;
	    border: 1px solid #9c8141;
	    border-bottom-right-radius: 10px;
	    border-top-right-radius: 10px;
	    z-index: -1;
	    transition: left 0.3s ease-in-out;
	}

	.wiremode .other-buttons
	{
		position: unset;
		display: contents;
		width: auto;
	}

	.wiremode .other-buttons li
	{
		right: unset;
		left: 0;
	}

	#panCoorMove
	{
		display: none;
		position: fixed;
		border-radius: 10px;
		padding: 5px;
		background: grey;
		z-index: 2;
		font-size: 11px;
		color: #fff;
		pointer-events: none;
		font-weight: bold;
    	text-shadow: black 0px 0px 1px;
    	will-change: top left contents;
	}

	#infoPanel
	{
		position: fixed;
		bottom: 0;
		left: 60px;
		z-index: 1;
		pointer-events: none;
		will-change: contents;
	}