/* Editor */
.EditorContainer{
	display: flex;
	width: 34vw;
	max-height: 100vh;
	min-height: 100vh;
	background-color: #555;
	flex-direction: column;
}

.EditorMainContainer{
	display: flex;
	flex-grow: 1;
	max-height: 95%;
}

.EditorTabContainer{
	width: 2vw;
	background-color: #666;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 4px;
}

.EditorTab{
	border: solid 1px #eee;
	border-radius: 4px;
	width: 30px;
	aspect-ratio: 1 / 1;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 4px;
	cursor: pointer;
}

.EditorTab:hover{
	background-color: #aaa;
}

.EditorActiveTab{
	background-color: #aaa;
}

.EditorContentContainer{
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.EditorBarContainer{
	width: 100%;
	display: flex;
	/* justify-content: flex-end; */
	align-items: center;
	background-image: linear-gradient(0deg, #333, #555);
	padding: 8px;
	justify-content: space-between;
}

.EditorCloseButton{
	padding: 4px;
	border-radius: 2px;
	color: #eee;
	cursor: pointer;
	background-color: #555;
	border: #888 solid 1px;
	width: 70px;
	text-align: center;
}

.EditorCloseButton:hover{
	background-color: #888;
}

.EditorBarSpacer{
	width: 70px;
}

.EditorScenePanel{
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 10vw;
	background-color: #666;
	justify-content: space-between;
}

.EditorScenePanelTop{
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.EditorScenePanelBottom{
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding-top: 8px;
	border-top: solid 2px #999;
}

.EditorScenePanelPhysicsButton{
	background-color: #888;
	border: #ccc solid 2px;
	border-radius: 4px;
	cursor: pointer;
	padding: 10px 0px;
	width: 90%;
	text-align: center;
	margin-bottom: 8px;
	text-shadow: black 1px 1px;
}

.EditorScenePanelPhysicsButton:hover{
	background-color: #bbb;
}

.EditorScenePanelPhysicsButton span{
	font-weight: bold;
}

.EditorScenePanelResetAssetsButton{
	width: 90%;
	text-align: center;
	margin-bottom: 8px;
}

.EditorScenePanelResetPlayerButton{
	width: 90%;
	text-align: center;
	margin-bottom: 8px;
}

.EditorSceneTitle{
	text-align: center;
}

.EditorAssetsContainer{
	background-color: #444;
	width: 100%;
	margin: 4px 0px;
	text-align: center;
	border: #000000 solid 2px;
	text-shadow: black 1px 1px 2px;
}

.EditorAssetsTitle{
	padding: 4px;
}

.EditorAssetsInnerContainer{
	padding: 10px 0px;
	overflow-y: auto;
	max-height: 300px;
}

.EditorAssetNodeContainer{
	
}

.EditorAssetNode{
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 4px;
	cursor: pointer;
}

.EditorAssetNode:hover{
	background-color: #bbb;
}

.EditorAssetNodeText{
	display: flex;
	align-items: center;
}

.EditorAssetNodeIcon{
	background-color: black;
	width: 4px;
	height: 4px;
	margin-right: 4px;
}

.EditorAssetButtons{
	display: flex;
}

.EditorAssetVisibleButton{
	background-color: aqua;
	width: 10px;
	height: 10px;
	margin: 0px 2px;
}

.EditorAssetMenuButton{
	background-color: #b400ff;
	width: 10px;
	height: 10px;
	margin: 0px 2px;
	position: relative;
}

.EditorAssetMenuContainer{
	position: absolute;
	background-color: #222;
	top: 10px;
	right: 0;
	z-index: 10;
	border: #eee solid 1px;
	border-radius: 2px;
}

.EditorAssetCreateChildText{
	
}

.EditorAssetCreateChildButton{
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 2px 4px;
	cursor: pointer;
	font-size: 11pt;
	white-space: pre;
	position: relative;
}

.EditorAssetCreateChildButton:hover{
	background-color: #bbb;
}

.EditorAssetCreateChildMenuContainer{
	position: absolute;
	background-color: #777;
	border-left: black solid 2px;
	border-right: black solid 2px;
	border-bottom: black solid 2px;
	top: 0;
	margin-top: 22px;
	z-index: 1000;
}

.EditorAssetCreateChildMenuItem{
	font-size: 12pt;
	padding: 4px 10px;
	border-top: black solid 2px;
}

.EditorAssetCreateChildMenuItem:hover{
	background-color: #bbb;
}

.EditorAssetDeleteText{
	
}

.EditorAssetDeleteButton{
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 2px 4px;
	cursor: pointer;
	font-size: 11pt;
	white-space: pre;
	position: relative;
}

.EditorAssetDeleteButton:hover{
	background-color: #bbb;
}

.EditorAssetDeleteMenuContainer{
	position: absolute;
	background-color: #777;
	border-left: black solid 2px;
	border-right: black solid 2px;
	border-bottom: black solid 2px;
	top: 0;
	margin-top: 22px;
	z-index: 1000;
}

.EditorAssetDeleteMenuItem{
	font-size: 12pt;
	padding: 4px 10px;
	border-top: black solid 2px;
}

.EditorAssetDeleteMenuItem:hover{
	background-color: #bbb;
}

.EditorAssetChildrenNodes{
	margin-left: 12px;
}

.EditorAssetButtonContainer{
	display: flex;
}

.EditorAssetButton{
	background-color: #d13636; /*#6773ff*/
	cursor: pointer;
	color: var(--fore-color);
	text-shadow: black 1px 1px 2px;
	padding: 10px 0px;
	width: 100%;
}

.EditorAssetButton:hover{
	background-color: #e93b3b;
}

.EditorCreateAssetButton{
	padding: 6px 0px;
	cursor: pointer;
	border-top: #333 solid 1px;
	color: var(--fore-color);
}

.EditorCreateAssetButton:hover{
	background-color: #bbb;
}

.EditorInstancesContainer{
	background-color: #444;
	width: 100%;
	margin: 4px 0px;
	text-align: center;
	border: #000000 solid 2px;
	text-shadow: black 1px 1px 2px;
}

.EditorInstancesTitle{
	padding: 4px;
}

.EditorInstancesInnerContainer{
	overflow-y: auto;
    max-height: 250px;
}

.EditorInstanceButtonContainer{
	display: flex;
}

.EditorInstanceButton{
	background-color: #cd0000; /*#65c2ef;*/
	padding: 6px;
	cursor: pointer;
	border-top: #333 solid 1px;
	color: var(--fore-color);
	text-shadow: black 1px 1px 2px;
	width: 100%;
}

.EditorInstanceButton:hover{
	background-color: #ff4f4f;
}

.EditorInstanceDeleteButton{
	background-color: #000;
	cursor: pointer;
	color: red;
	padding: 6px 0px;
	width: 20%;
	font-weight: bold;
}

.EditorInstanceDeleteButton:hover{
	background-color: #444;
}

.EditorCreateInstanceButton{
	padding: 6px 0px;
	cursor: pointer;
	border-top: #333 solid 1px;
	color: var(--fore-color);
}

.EditorCreateInstanceButton:hover{
	background-color: #bbb;
}


.EditorPanel{
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 15vw;
}

.EditorWorldsContainer{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.EditorWorldsTitle{
	padding: 8px;
}

.EditorWorldsMiddleContainer{
	width: 100%;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.EditorCurrentWorldsTitle{
	padding: 8px 0px;
}

.EditorCurrentWorldContainer{
	width: 100%;
}

.EditorOwnedWorldsTitle{
	padding: 8px 0px;
}

.EditorWorldsSelectionContainer{
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: #444;
	width: 90%;
	border: #000000 solid 2px;
	text-shadow: black 1px 1px 2px;
	overflow-y: auto;
}

.EditorCurrentWorldButton{
	background-color: #999;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	border: #333 solid 1px;
	width: 100%;
	padding: 8px 0px;
}

.EditorCurrentWorldButton:hover{
	background-color: #bbb;
}

.EditorWorldSelectionButton{
	background-color: #999;
	cursor: pointer;
	display: flex;
	justify-content: space-around;
	align-items: center;
	border: #333 solid 1px;
	width: 100%;
	padding: 8px 0px;
}

.EditorWorldSelectionButton:hover{
	background-color: #bbb;
}

.EditorWorldSelectionLoadButton{
	background-color: #0b0;
	padding: 20px;
}

.EditorWorldSelectionText{
	width: -webkit-fill-available;
	text-align: center;
	padding: 20px;
}

.EditorWorldSelectionLoadButton:hover{
	background-color: #6e6;
}


.EditorWorldSelectionDeleteButton{
	background-color: #b00;
	padding: 20px;
}

.EditorWorldSelectionDeleteButton:hover{
	background-color: #e66;
}


.EditorChangeWorldButton{
	background-color: #999;
	padding: 10px;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	border: #333 solid 1px;
	width: 100%;
}

.EditorChangeWorldButton:hover{
	background-color: #bbb;
}

.EditorCreateWorldButton{
	background-color: #999;
	padding: 10px;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	border: #333 solid 1px;
	width: 100%;
}

.EditorCreateWorldButton:hover{
	background-color: #bbb;
}

.EditorWorldText{
	
}

.EditorSceneContainer{
	padding: 8px;
}

.EditorPropertiesContainer{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	overflow: auto;
	flex-grow: 1;
}

.EditorPropertiesTopContainer{
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.EditorPropertiesBottomContainer{
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	height: 10%;
	justify-content: flex-end;
}

.EditorPropertiesInnerContainer{
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.EditorPropertiesTabsConatiner{
	width: 90%;
	margin-bottom: 10px;
	text-align: center;
	text-shadow: black 1px 1px 2px;
	position: relative;
	cursor: pointer;
}

.EditorPropertiesTabSelect{
	background-color: #999;
	cursor: pointer;
	padding: 8px 0px;
}

.EditorPropertiesTabSelect:hover{
	background-color: #bbb;
}

.EditorPropertiesTabSelected{
	background-color: #888;
	border: #ccc solid 2px;
	border-radius: 4px;
	padding: 8px;
}

.EditorPropertiesTabSelected:hover{
	background-color: #bbb;
}

.EditorPropertiesTabMenu{
	border-left: #ccc solid 2px;
	border-right: #ccc solid 2px;
	border-bottom: #ccc solid 2px;
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	position: absolute;
	width: 100%;
	display: none;
	z-index: 100;
}

.EditorPropertiesTab{
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 10px;
}

.EditorPropertiesTabTitle{
	
}

.EditorPropertyContainer{
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 2px 0;
}

.EditorPropertiesTitle{
	padding: 10px 0px;
}

.EditorPropertyName{
	text-wrap: nowrap;
	margin-right: 6px;
}

.EditorPropertyValue{
	/* width: 60%; */
}

.EditorPropertyInputContainer{
	max-width: 50%;
}

.EditorPropertyInput{
	/* width: 100%; */
}

.EditorPropertyStringInput{
	width: 100%;
}

.EditorPropertyNumberInput{
	width: 100%;
}

.EditorPropertyLabel{
	background-color: #333;
	padding: 4px;
	border-radius: 6px;
	cursor: pointer;
	text-wrap: nowrap;
	overflow-x: hidden;
	position: relative;
}

.EditorPropertyLabel:hover{
	background-color: #999;
}

.EditorPropertyLabelCopied{
	position: absolute;
	background-color: #888;
	border-radius: 6px;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.EditorPropertySaveButton{
	
}

.EditorPropertyGrid{
	
}

.EditorPropertyGridTitle{
	display: grid;
	grid-template-columns: 24% 22% 22% 22%;
	justify-items: center;
	align-items: center;
	justify-content: center;
}

.EditorPropertyVec3InputContainer{
	display: grid;
	grid-template-columns: 24% 22% 22% 22%;
	align-items: center;
	justify-content: center;
}

.EditorPropertyVec3Input{
	width: 100%;
}

.EditorPropertySubMenuContainer{
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 2px 0;
}

.EditorPropertySubMenuTitle{
	width: 100%;
	background-color: #222;
	border: #ccc solid 2px;
	border-radius: 4px;
	padding: 2px;
	text-align: center;
	text-shadow: black 1px 1px;
	cursor: pointer;
}

.EditorPropertySubMenuTitle:hover{
	background-color: #999;
}

.EditorPropertySubMenu{
	background-color: #333;
	padding: 4px;
}

.AssetUploadContainer{
	width: 90%;
	aspect-ratio: 1;
	border: black dashed 4px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.EditorAssetUploadButton{
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.EditorAssetUploadPic{
	
}

.EditorAssetText{
	
}

.AssetMapWindowContainer{
	width: 90%;
	aspect-ratio: 1;
	border: #888 solid 2px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.AssetMapWindowViewport{
	width: 100%;
	aspect-ratio: 1;
}

.EditorAssetMapUploadBelowButton{
	width: 90%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.EditorAssetMapBelowText{
	width: 100%;
	text-align: center;
	margin-bottom: 8px;
}

/* Modules and Scripts */
.EditorModulesContainer{
	padding: 8px;
	display: flex;
    flex-direction: column;
    max-height: 84%;
}

.EditorModulesTitle{
	text-align: center;
	padding: 8px;
}

.EditorModulesSelectionContainer{
	display: flex;
	flex-direction: column;
	background-color: #444;
	width: 100%;
	margin: 4px 0px;
	text-align: center;
	text-shadow: black 1px 1px 2px;
	overflow-y: auto;
}

.EditorModuleSelectionButton{
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	flex-direction: column;
	border: #000 solid 4px;
    border-bottom: #000 solid 2px;
}

.EditorModuleContainer{
	width: 100%;
}

.EditorModuleText{
	width: 100%;
	text-align: center;
	border-bottom: solid 1px #111;
	cursor: pointer;
	padding: 4px;
}

.EditorModuleText:hover{
	background-color: #bbb;
}

.EditorModuleDetails{
	width: 100%;
	padding-left: 8px;
	padding-right: 8px;
	padding-top: 8px;
}

.EditorModulePropertyContainer{
	display: flex;
	justify-content: space-between;
	padding-bottom: 8px;
}

.EditorModulePropertyText{
	
}

.EditorModuleMainScript{
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px 0px;
	align-items: center;
	border-top: #000 solid 2px;
}

.EditorMainScriptTitle{
	width: 100%;
	padding-bottom: 8px;
	border-bottom: solid #000 1px;
}

.EditorMainScriptFileName{
	width: 100%;
	padding: 8px 0px;
}

.EditorMainScriptUploadButton{
	background-image: linear-gradient(0deg, #000, #dfdfdf);
	cursor: pointer;
	border-radius: 2px;
	text-align: center;
	padding: 4px;
	width: fit-content;
	text-shadow: #000 1px 1px;
	box-shadow: #000 1px 3px 3px;
	margin-top: 8px;
}

.EditorMainScriptUploadButton:hover{
	background-image: linear-gradient(0deg, #a9a4a4, #757575);
}

.EditorModuleScripts{
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	border-top: #000 solid 2px;
	padding: 8px 0px;
}

.EditorModuleScriptsTitle{
	width: 100%;
	padding-bottom: 8px;
	border-bottom: solid #000 1px;
}

.EditorScriptsContainer{
	width: 100%;
	overflow-y: auto;
}

.EditorScriptButton{
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	flex-direction: column;
}

.EditorScriptTitle{
	width: 100%;
	text-align: center;
	border-bottom: solid 1px #111;
	cursor: pointer;
	padding: 4px;
}

.EditorScriptTitle:hover{
	background-color: #bbb;
}

.EditorScriptContainer{
	padding: 8px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

.EditorModuleUploadText{
	cursor: pointer;
}

.EditorScriptUploadButton{
	background-image: linear-gradient(0deg, #000, #dfdfdf);
	cursor: pointer;
	border-radius: 2px;
	text-align: center;
	padding: 4px;
	width: fit-content;
	text-shadow: #000 1px 1px;
	box-shadow: #000 1px 3px 3px;
	margin-top: 8px;
}

.EditorScriptUploadButton:hover{
	background-image: linear-gradient(0deg, #a9a4a4, #757575);
}

.EditorModuleResources{
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	border-top: #000 solid 2px;
	padding: 8px 0px;
}

.EditorModuleResourcesTitle{
	width: 100%;
	padding-bottom: 8px;
	border-bottom: solid #000 1px;
}

.EditorResourcesContainer{
	width: 100%;
	overflow-y: auto;
}

.EditorResourceButton{
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	flex-direction: column;
}

.EditorResourceUploadButton{
	background-image: linear-gradient(0deg, #000, #dfdfdf);
	cursor: pointer;
	border-radius: 2px;
	text-align: center;
	padding: 4px;
	width: fit-content;
	text-shadow: #000 1px 1px;
	box-shadow: #000 1px 3px 3px;
	margin-top: 8px;
}

.EditorResourceUploadButton:hover{
	background-image: linear-gradient(0deg, #a9a4a4, #757575);
}

.EditorDeleteModuleButton{
	margin-bottom: 8px;
    margin-left: auto;
    width: 30px;
    aspect-ratio: 1/1;
    padding: unset;
}

.EditorDeleteModuleButtonIcon{
	width: 100%;
	height: 100%;
	background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: invert(1);
}

.EditorCreateModuleButton{
	background-color: #999;
	padding: 10px;
	cursor: pointer;
	text-align: center;
	border: #333 solid 1px;
	width: 100%;
	margin-top: 8px;
}

.EditorCreateModuleButton:hover{
	background-color: #bbb;
}