*
{
	margin: 0;
	padding: 0;
	font-family: system-ui;
}

html, border-style
{
	width: 100%;
	height: 100%;
	overflow: hidden;
}

aside
{
	position: fixed;
	top: 0;
	background: #efead9;
	border: 1px solid #9c8141;
	left: 0;
	bottom: 0;
	width: 57px;
	z-index: 1000;
	display: flex;
    justify-content: flex-end;
    align-items: stretch;
    transition: all 0.2s ease-in-out
}

.print_footer
{
	display: none;
	background: #dfd6b9;
    height: 50px;
    text-align: center;
    padding: 2.5px 0;
    border: 1px solid #9c8141;
    z-index: 1000;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
}

.print_footer ul li:nth-child(2)
{
		width: 35px;
    height: 35px;
    margin-right: 15px;
}

.active
{
	width: 350px;
}

aside::-webkit-scrollbar
{
	width: 0;
	height: 0;
}
canvas
{
	background-color: #7f7d7d1c;
	position: relative;
	left: 57px;
}

ul hr
{
	margin-bottom: 3px;
}

li
{
		width: 40px;
    height: 40px;
    background: linear-gradient(155deg, rgb(220 216 202) 58%, rgb(239 234 217) 56%, rgb(171 141 71) 60%, rgb(215 210 192) 100%);
    border-radius: 4px;
    border: 2px solid #9c8141;
    border-style: ridge;
    text-align: center;
    margin-bottom: 5px;
    margin-left: 8px;
    position: relative;
    line-height: 40px;
    font-size: 12px;
    display: block;
    box-shadow: inset -2px -6px 6px 4px #937f39;
 }

 li img 
 {
 	height: 100%;
 	width: 100%;
 }

li:hover,
.li-active
{
	cursor: pointer;
	background: #fff;
}

li::after
{

	content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 4px;
    box-shadow: inset -1.5px -1.5px 1px #a0a0a0, inset 1.5px 1.5px 4px #ffffff;
}

li svg
{
	width: 24px;
	height: 24px;
	position: relative;
	top: 5px;
}

.other-buttons
{
		position: fixed;
    z-index: -1;
    left: 5px;
}

.other-buttons li
{
	  width: 25px;
    height: 25px;
    right: -9px;
}

.left-bar
{
	position: relative;
	width: 140px;
	height: 350px;
	left: -140px;
	border: 1px solid #9c8141;
	transition: all 0.25s ease-in-out;
	background: #fff7db;
	border-bottom-right-radius: 4px;
	padding: 10px;
	box-sizing: border-box;
	z-index: 1000;
}

.left-bar::before
{
	position: absolute;
    content: "➧";
    top: -1px;
    right: -18px;
    padding: 2px;
    width: 10px;
    height: 100px;
    border-radius: 4px;
    border-bottom-left-radius: unset;
    border-top-left-radius: unset;
    text-align: right;
    background: #fff7db;
    line-height: 100px;
    border: 2px solid #9c8141;
    z-index: -1;
    box-shadow: inset -2px -2px 4px 0px #937f39;
    border-style: ridge;
}

.left-bar:hover
{
	left: 0px;
	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="checkbox"],
.input-form input[type="radio"]
{
	accent-color: #9e8447;
}

.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: #efead9;
  	width: 100%;
  	text-align: center;
  	padding: 2.5px;
  	z-index: 1;
  }

  .profile
  {
	display: none;
	position: absolute;
	top: 5px;
	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;
		background: #eed79b;
  }

  .butn_profile button:hover
  {
  	background: #f9f8f5;
  }

  .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;
	opacity: 0.8;
  }

  .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;
	opacity: 0.8;
  }
  .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: 80px;
		margin-bottom: 10px;
		margin-top: 10px;
  }

  .state div
  {
	width: 60px;
    background: linear-gradient(90deg, #e5cc91 0%, #e8e2d1 20%, #e8e2d1 80%, #e5cc91 100%);
    border: 1px solid #afafaf;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease-in-out;
  }

  .state div:hover,
  .state div:active
  {
	box-shadow: 0 0 4px 2px #26dd49;
    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 div::after,
  .state div::before
  {
  	    content: "";
    position: absolute;
    bottom: -6px;
    width: 10px;
    height: 10px;
    background: #afafaf;
    border: 1px solid black;
    border-top: unset;
    border-radius: 100%;
    z-index: -1;
  }

  .state div::after
  {
  	left: 10%;
  }

  .state div::before
  {
  	right: 10%;
  }

  .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: 95px;
  padding: 5px;
  background: #efead9;
  border: 1px solid #9c8141;
  border-bottom-right-radius: 5px;
  border-top-right-radius: 5px;
  transition: left 0.3s ease-in-out;
}

.wiremode
{
	position: absolute;
    top: 291px;
    left: -10px;
    padding: 5px;
    background: #efead9;
    border: 1px solid #9c8141;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    z-index: -1;
}

.wiremode .other-buttons
{
	position: unset;
	display: contents;
	width: auto;
}

.wiremode .other-buttons li
{
	right: unset;
	left: 0;
	margin-left: unset;
}
.wiremode .other-buttons li:nth-child(2)
{
	margin-bottom: unset;
}

#panCoorMove, #zalInf
{
	position: fixed;
	border-radius: 10px;
	padding: 5px;
	background: #000000;
	z-index: 2;
	font-size: 11px;
	color: #fff;
	pointer-events: none;
	font-weight: bold;
	text-shadow: black 0px 0px 1px;

}

#infoPanel
{
	position: fixed;
	bottom: 0;
	left: 60px;
	opacity: 0;
	z-index: 1;
	pointer-events: none;
	will-change: contents;
}