#function {
	min-width: 350px;
	min-height: 15em;
	position: relative;
	border: solid black 2px;
	height: calc(100vh - 20px - 5px);
	border-radius: 5px 5px 0 0;
}
#minimalFunctionWidth {
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}
#minimalFunctionWidth>div {
	display: inline-block;
	width: 14em;
}
.functionTwoColumns {
	/* overflow-x: scroll;
	overflow-y: hidden;
	display: flex;
	flex-direction: row;
	justify-content: left; */
}
.functionTwoColumns>div {
	height: 2.5em;
	font-size: xx-large;
}
.functionTwoColumns>div>div {
	display: inline-block;
	margin: 0 5px;
	/* display: flex !important;
	flex-direction: row;
	justify-content: center; */
}
.functionTwoColumns>div.firstColumn {
	border: solid #bbb 0px;
	border-right-width: 2px;
	vertical-align: bottom;
}
.functionTwoColumns>div.secondColumn {
	text-align: center;
	overflow-x: scroll;
	overflow-y: hidden;
	white-space: nowrap;
	position: absolute;
	scroll-behavior: smooth;
}
#functionParams>div.firstColumn {
	width: calc(32px + 7ch);
}
#functionParams>div.secondColumn {
	width: calc(100% - 32px - 7ch - 7px - 40px);
	padding: 0 20px;
}
.functionTwoColumns .scrollLeft, .functionTwoColumns .scrollRight {
	display: inline-block;
	position: absolute;
	color: #555;
	z-index: 1;
	min-width: unset;
	/* padding: 0; */
	height: 1em;
}
.functionTwoColumns .scrollLeft {
	background-image: linear-gradient(to left, rgba(153, 153, 153, 0), rgba(153, 153, 153, 1));
}
.functionTwoColumns .scrollRight {
	right: 0px;
	background-image: linear-gradient(to left, rgba(153, 153, 153, 1), rgba(153, 153, 153, 0));
}
#functionDebug>div.firstColumn .functionIconLarge {
	margin: 3px;
}
#functionDebug>div.firstColumn {
	width: calc(6px + 6ch);
}
#functionDebug>div.secondColumn {
	width: calc(100% - 6px - 6ch - 7px - 40px);
	padding: 0 20px;
}
.functionTwoColumns>div.secondColumn::-webkit-scrollbar {
	height: 6px;
}
.functionTwoColumns>div.secondColumn::-webkit-scrollbar-track {
	background: transparent;
	border-radius: 3px;
}
.functionTwoColumns>div.secondColumn::-webkit-scrollbar-thumb {
	box-shadow: inset 0 0 3px white;
	background: black;
	border-radius: 3px;
}
#function>div.functionTool .name {
	width: 100%;
	margin: 0 5px;
	position: relative;
	z-index: 1;
}
#function>div.functionTool:nth-child(1) .name { z-index: 5; }
#function>div.functionTool:nth-child(2) .name { z-index: 4; }
#function>div.functionTool:nth-child(3) .name { z-index: 3; }
#function>div.functionTool:nth-child(4) .name { z-index: 2; }
#function>div.functionTool:nth-child(5) .name { z-index: 1; }

#function>div.functionTool .name input {
	cursor: pointer;
	margin-right: -20px;
	/* padding: 5px 25px 5px 10px; */
	padding: 5px 10px 5px 10px;
	font-family: sans-serif;
	letter-spacing: 1px;
	color: white;
	background-color: transparent;
	/* line-height: 1.5em; */
	width: 100%;
	overflow: hidden;
    border-radius: 30px;
	border: solid white 2px;
	background-color: #888;
}
#function>div.functionTool#functionFind .name input {
	margin-right: -25px;
}
#function>div {
	position: relative;
	padding: 5px;
	/* padding-left: 60px; */
}
#function>div:nth-child(1) {
    border-radius: 3px 3px 0 0;
}
#function>div.functionTool {
	position: relative;
	background-color: #999;
	color: white;
	line-height: 1em;
	height: calc(2em + 4px);
	white-space: nowrap;
}
#function>div.functionTool>div {
	display: inline-block;
	cursor: pointer;
}
#function>div.functionTool>div>img {
	height: 30px;
}
/* .functionName::before {
	content: 'aaa';
	position: absolute;
	width: 100%;
	background-color: #999;
	color: white;
} */
#function div, input[type=text], #commandSupport, #fullMap, #normalMap, #tutorialActualCommand {
	font-family: Monaco, "Andale Mono", Menlo, Courier, 'Courier New', monospace;
	font-size: 1em;
}
#commandSupport {
	scroll-behavior: smooth;
}
.functionContent {
	scroll-behavior: smooth;
	user-select: none;
	height: calc(100% - 4em - 28px);
	overflow-x: hidden;
	overflow-y: scroll;
	cursor: text;
	padding-bottom: 7em !important;
	box-sizing: border-box;
}
.functionContent input[type=text]::placeholder {
	color: red;
	font-weight: bold;
}
.functionContent div.bold, input[type=text].bold {
	font-weight: bold;
}
.functionContent .separator,
.functionContent .properties,
.functionContent>.command,
.functionContent>.inputContainer>input[type=text].primitiveValue,
.functionContent .commandLogical>.command,
.functionContent .commandLogical>.inputContainer>input[type=text].primitiveValue,
.functionContent .commandContent>.command,
.functionContent .commandContent>.inputContainer>input[type=text].primitiveValue,
.functionContent .command[name=disable]>.br>.command
{
	border-style: hidden;
	border-left: solid transparent 0.3ch;
	padding-left: 0.7ch;
}
.functionContent .command:not(.inLine) {
	padding-left: 2.7ch;
}
.functionContent .br {
	padding-left: 2ch;
}
.functionContent .br.withTab {
	padding-left: 6ch;
}
.functionContent .commandProperties .properties {
	padding-left: 4ch;
}
.functionContent .command:not(.inLine)>.br,
.functionContent .br>.br {
	padding-left: 0;
}
.functionContent .command:not(.inLine)>.br.withTab {
	padding-left: 6ch;
}
.functionContent .br>div:first-child,
.functionContent .command:not(.inLine)>div:not(.br):first-child {
	margin-left: -2ch;
}
.functionContent .commandProperties .properties>div:first-child,
.functionContent .br.withTab>div:first-child {
	margin-left: -4ch;
}
.functionContent div.commandPart {
	/* content: " "; ::after*/
	padding-right: 2ch;
}
.functionContent .commandContent,
.functionContent .commandLogical,
.functionContent .commandProperties,
.tab {
	/* margin-left: 2ch; */
	margin-left: 1ch;
}
/* .functionContent .commandContent,
.functionContent .commandLogical {
	margin-left: -1ch;
} */
.functionContent .commandContent {
	margin-bottom: 0.5em;
}
.functionContent input[type=text].commandName.leftBorder {
	color: white;
	padding-left: 1ch;
	margin-left: -1ch;
	margin-right: 1ch;
}
/* .functionContent input[type=text].leftBorder[part=END] {
	padding-left: 1ch;
	margin-left: -1ch;
	margin-right: 1ch;
	border-bottom: solid 0.3ch;
} */
.functionContent .inputContainer.leftBorderEnd::before {
	content: '';
	position: absolute;
	bottom: -0.3ch;
	left: -1ch;
	width: 1ch;
	border-bottom: solid 0.3ch;
	border-color: inherit;
}
.functionContent input[type=text], #commandSupport input[type=text] {
	background-color: transparent;
	border-style: hidden;
	margin: 0;
	padding: 0;
	box-sizing: content-box;
	width: 50px;
}
.functionContent input[type=text]:focus {
	background-color: rgba(255, 255, 0, 0.7) !important;
	color: black !important;
}
.functionContent .inputContainer {
	display: inline-block;
	position: relative;
}
.functionContent .inputContainer>div.after {
	display: inline-block;
	position: relative;
}
.functionContent .inputContainer>div.debug table,
.functionContent .inputContainer>div.debug tr,
.functionContent .inputContainer>div.debug td,
.functionContent .inputContainer>div.debug div,
.functionContent .inputContainer>div.debug {
	margin: 0;
	padding: 0;
	border-spacing: 0;
}
.functionContent .inputContainer>div.debug.debugRealtime table {
	background-color: red;
}
.functionContent .inputContainer>div.debug table {
	position: relative;
	background-color: green;
	color: white;
}
.functionContent .inputContainer>div.debug table.noEmpty {
	padding: 0 0.5ch;
}
.functionContent .inputContainer>div.debug {
	z-index: 1;
	display: inline-block;
	position: relative;
	height: 1.3em;
	vertical-align: bottom;
	left: -1ch;
}
.functionContent .inputContainer>div.debug.close {
	z-index: 0;
	margin-left: 0;
}
.functionContent .inputContainer>div.debug.debugRealtime.close .design>div>div {
	background-color: red;
}
.functionContent .inputContainer>div.debug.close .design>div>div {
	background-color: green;
}
/* .functionContent .inputContainer>div.debug.close tr:not(.hidden):nth-child(n+2), */
.functionContent .inputContainer>div.debug.close tr:not(.first),
.functionContent .inputContainer>div.debug.close td.order {
	display: none;
}
.functionContent .inputContainer>div.debug .design>div {
	position: relative;
	width: 0;
}
.functionContent .inputContainer>div.debug .design>div>div {
	position: absolute;
	top: -0.3em;
	z-index: -1;
	background-color: transparent;
	left: calc(-0.25em - 0.5ch);
	width: 0.6em;
	height: 0.6em;
	display: inline-block;
	transform: rotate(45deg);
	transform-origin: center center;
}
.functionContent .inputContainer>div.debug td.order {
	text-align: right;
	vertical-align: top;
	padding-right: 1ch;
}
.functionContent .inputContainer>div.debug td.value {
	/* text-align: right; */
	text-align: left; /* zarovnáva hodnoty viacrozmerných polí */
}
.functionContent .inputContainer>div.after::after {
	display: block;
	position: absolute;
	top: -1em;
	width: 1000px;
	height: 1.4em;
	content: close-quote;
}
.lineOpt {
	position: absolute;
	left: 0;
}




.functionContent input:hover {
	animation: opacityUp05_10_100 1s linear;
	animation-iteration-count: 1;
}
.functionContent input:not(.commandPartName):hover {}





div.supportIcon {
	margin-top: -8px !important;
}
.supportIcon {
	display: inline-block;
	margin-right: 5px !important;
	height: 26px;
	text-align: center;
	font-size: 1.5em;
}
.supportIcon.createBefore,
.supportIcon.createAfter,
.functionIconLarge.createBefore,
.functionIconLarge.createAfter {
	filter: drop-shadow(0 0 1px #555);
}
.functionIconLarge.delete {
	filter: drop-shadow(0 0 2px #fff);
}
.functionIcon.findInAllFunction {
	line-height: 0.7em;
}
.functionIconLarge.disable {
	font-size: x-large !important;
	top: -3px;
}
.roundIcon .functionIcon {
	position: relative;
	top: 0px;
	width: 35px;
	left: -3px;
	margin: 0;
	color: black;
}
.roundIcon {
	user-select: none;
	margin: 0 8px;
    border-radius: 50px;
	border: solid white 2px;
	/* background-color: #888; */
	background-color: #ddd;
	width: 1.8em;
	height: 1.8em;
	text-align: center;
    font-weight: bold;
	/* font-size: xx-large !important; */
}
.functionIcon {
	user-select: none;
	margin: 0 10px;
	position: relative;
	width: 0.8em;
	height: 0.8em;
	text-align: center;
    font-weight: bold;
	font-size: 2.2em !important;
}
.functionIconLarge, .functionIconLarge select {
	user-select: none;
	/* margin: 0 5px;  niečo tam tento margin už nahradzuje, no chrom mi neukazuje čo */
	padding: 0 10px;
	position: relative;
	line-height: 1em;
	/* top: 7px; */
	/* width: max-content; */
	/* min-width: 0.8em; */
	height: 1em;
	text-align: center;
	vertical-align: bottom;
    font-weight: bold;
	font-size: xx-large !important;
	letter-spacing: -0.2ch;
}
.functionIconLarge select {
	font-size: x-large !important;
	height: auto;
}
.functionIconLarge.select {
	border: solid white 2px;
	padding: 0 5px;
	border-radius: 10px;
	font-size: x-large !important;
	top: -5px;
	height: calc(1em + 10px);
	overflow: hidden;
}
.functionIconLarge.select.active {
	z-index: 5;
	overflow: visible;
}
.functionIconLarge.select .debugRobotOrder .active {
}
.functionIconLarge.select .debugRobotOrder {
	position: relative;
	border-radius: 10px;
	background-color: #999;
	text-align: left;
}
.functionIconLarge.select .debugRobotOrder>div {
	padding: 5px;
}
.functionIconLarge.select .debugRobotOrder .active::after {
	font-size: large !important;
	content: '\25BC';
}
#functionFind .counter {
	display: inline-block;
	position: relative;
	width: 2em;
	text-align: center;
	font-size: small;
	color: black;
	text-shadow: 0 0 3px #fff;
	left: -35px;
	top: -3px;
}
#functionChange .roundIcon.active {
	background-color: rgba(0, 255, 0, 0.7) !important;
}

#fullMap>.activPlace:hover>img, #normalMap>.activPlace:hover>img, .animIcon:hover,
.functionIconLarge:hover, .functionIcon:hover {
	animation: zoomDown501001210 0.2s linear;
	animation-iteration-count: 1;
	cursor: pointer;
}





#function .robotPointer>img {
	width: 1em;
}
#function .robotPointer {
	z-index: 1;
	position: absolute !important;
	display: inline-block;
	padding: 0;
	cursor: default;
	color: red;
	/* line-height: 1em; */
	font-size: 1.7em !important;
	font-family: sans-serif;
}
#function .robotPointer:before {
	position: absolute;
	left: 0.3ch;
	margin-right: -1ch;
	color: white;
	/* font-size: small; */
	font-size: 0.6em;
	font-weight: bold;
	line-height: 1.7em;
	content: attr(data-content);
}






.selectedAllFinded.selectedFinded, .selectedFinded {
	background-color: rgba(0, 255, 0, 1) !important;
	color: black !important;
}
.selectedAllFinded {
	background-color: rgba(0, 255, 0, 0.2) !important;
	color: black !important;
}
.selectedCommand {
	background-color: rgba(0, 255, 0, 0.2) !important;
}
.commandName.debugPoint.active {
	background-color: red !important;
	color: white !important;
}
.functionContent .inputContainer.selectedFinded .commandName.debugPoint.active {
	background-color: #B50 !important;
	color: white !important;
}
#debugCounter {
	position: absolute !important;
	bottom: 0;
	right: 0;
	width: 10ch;
	height: 1em;
	text-align: center;
	background-color: #999;
	color: white;
	border-radius: 5px 0 0 0;
}





#commandSupport {
	position: absolute;
	background-color: #eee;
	width: max-content;
	max-width: 100%;
	overflow: scroll;
}
#commandSupport.functionSupport {
	border-radius: 0 20px 0 0;
	padding-top: 15px;
	margin-top: -5px;
	z-index: 0;
}
#commandSupport .active {
	background-color: rgba(255, 255, 0, 0.7);
}
#commandSupport .commandName {
	display: inline-block;
	padding: 0 15px;
	/* width: 100%; */
}
#commandSupport .command, #commandSupport .commandName, #commandSupport .supportIcon, #commandSupport .groupName {
	position: relative;
	line-height: 2em;
	margin: 0px;
	white-space: nowrap;
	cursor: pointer;
}
#commandSupport .number {
	font-weight: bold;
	text-align: center;
	display: flex;
	flex-direction: row;
}
#commandSupport .number>* {
	flex: 2;
}
#commandSupport .number input[type=button] {
	font-size: x-large;
	line-height: 1em;
	flex: 1;
	background-color: white;
}
#commandSupport .number input {
	text-align: center;
}
#commandSupport .group {
	overflow: hidden;
	padding-left: 15px;
}
#commandSupport .symbol {
	position: absolute;
	display: inline-block;
	left: -12px;
}
#commandSupport .group.close>.groupName>.symbol {
	transform: rotate(-90deg);
	transform-origin: center center;
}
#commandSupport .group.close {
	height: 2em;
}
#commandSupport .command.base {
	display: flex;
	flex-direction: row;
	justify-content: center;
	white-space: nowrap;
}
/* .functionContent .command[name=exam] input,
.functionContent .command[name=exam] textarea {
	pointer-events: none;
} */






.deepDeactivate .commandPart, .deepDeactivate>div .commandName, 
.deepDeactivate .propertyName, .deepDeactivate .propertyValue,
.deepDeactivate .primitiveValue, .deepDeactivate>div .commandPartNoEditable {
	opacity: 0.4;
}
.deepDeactivate>.inputContainer * {
	opacity: 1 !important;
}
/* .deepDeactivate>.inputContainer:nth-child(2)::after {
	background-color: rgba(255, 150, 0, 0.3);
} */
.functionContent .command[name=description] {
	display: flex;
	flex-wrap: wrap;
}
.functionContent .command[name=description]>.inputContainer:nth-child(2) {
	flex: 1;
}
.functionContent .command[name=description]>.inputContainer:nth-child(2)>textarea {
	background-color: rgba(255, 150, 0, 0.3);
	display: inline-block;
	width: calc(100% + 5px);
	border: none;
	padding: 0 1ch;
	margin: 0;
	resize: none;
	font-size: 1em;
	font-family: "Comic Sans MS";
}



#function textarea.backgroundOpacity50100 {
	animation: backgroundOpacity50100 0.3s linear;
	animation-iteration-count: 3;
	cursor: pointer;
}