:root {
	--primary: #192844;
	--secondary: #0a67a6;
	--tertiary: #94d4ee;
}

@font-face {
	font-family: formulaFont;
	src: url("/Web/assets/fonts/PPFormula-Light.otf") format("truetype");
}

.font-pp-formula {
  font-family: 'PP Formula', sans-serif;
}

.loading-bg {
	background-color: #192844;
	color: #0a67a6;
	font-size: x-large;
}

.loader {
	border: 3px solid #94d4ee;
	border-radius: 50%;
	border-top: 3px solid #192844;
	width: 20px;
	height: 20px;
	margin-top: auto;
	margin-bottom: auto;
	margin-left: 10px;
	-webkit-animation: spin 2s linear infinite;
	/* Safari */
	animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
	0% {
		-webkit-transform: rotate(0deg);
	}

	100% {
		-webkit-transform: rotate(360deg);
	}
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* * {
	font-family: formulaFont;
} */

body {
	overflow: hidden;
	margin: 0px;
	background-repeat: no-repeat;
	background-size: cover;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	/* font-weight: bold; */
}
.contiunity-bg {
	background-color: #eff3f5;
}

.contiunity-background {
	background-color: #eff3f5;
	height: calc(100vh - 272px);
}

li {
	list-style-type: none;
}

ul {
	margin: 0px;
}

.gradient-button {
	background-image: linear-gradient(45deg, #142745, #2c659e 53%, #90d0e8);
	border: none;
	color: white;
	padding: 10px 20px;
	cursor: pointer;
	border-radius: 10px;
}

.gradient-button:hover {
	opacity: 0.9;
	/* Optional: Changes opacity on hover */
}

.assetSiteDropdown {
	color: #000 !important;
}

.asset-field {
	height: 36rem;
}

.navbar-container {
	width: 100vw;
	height: 75px;
	color: white;
}

.navbar-parent {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	padding: 1rem 0px;
	margin-left: 2rem;
	width: 25%;
}

.navbar-child {
	margin: 0px 5px;
}

#main {
	display: flex;
	justify-content: space-between;
}

#state {
	max-height: 5rem;
	overflow-y: auto;
}

#location {
	max-height: 5rem;
	overflow-y: auto;
}

.recipe-field {
	height: calc(100vh - 140px);
}

.inner-recipe-field {
	height: calc(100vh - 175px);
}

.asset-field {
	height: calc(100vh - 250px);
}

#canvasWrapper {
	overflow: auto;
	/* width: 100vw; */
	height: calc(100vh - 110px);
	background-repeat: no-repeat;
	background-size: cover;
}

#editModuleModal {
	height: calc(100vh - 67px);
	width: 100vw;
	background-color: white;
	position: absolute;
	top: 67px;
	z-index: 20;
	padding: 2rem;
}

.main-canvas {
	background-color: rgba(255, 255, 255, 0.5);
	overflow: none;
	/* cursor: pointer; */
	position: relative;
}

.catalogue-button {
	position: absolute; /* Allows precise positioning */
	top: 50%; /* Center vertically (adjust as needed) */
	left: -20px; /* Negative value pushes it outside the window */
	transform: translateY(-50%) rotate(90deg); /* Center vertically and rotate */
	overflow: hidden; /* Ensure the overflow is handled */
}

.grabbing {
	cursor: grabbing;
}

.pointer {
	cursor: pointer;
}

.grab {
	cursor: grab;
}

.module-catalog-bar {
	position: fixed;
	left: -155px;
	width: 150px;
	height: 78%;
	background-color: white;
	box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s ease;
	z-index: 5;
	border-radius: 10px;
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.module-catalog-bar.show {
	transform: translateX(160px);
}

.module-catalog-bar-inner-container {
	width: 150px;
	height: calc(100vh - 50px - 13rem);
	padding: 0.5rem;
	margin-left: auto;
	margin-right: auto;
	overflow-y: scroll;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
}

.module-catalog-bar-module {
	width: 70%;
	margin: 0px auto 1.5rem auto;
	text-align: center;
	cursor: pointer;
	background-color: rgba(255, 255, 255, 0.5);
	border-radius: 10px;
	align-items: center;
}

.add-module-options {
	display: flex;
	flex-direction: column;
	width: 50%;
}

.auto-save {
	width: 80%;
	margin: 0px auto 1rem auto;
	font-size: small;
	text-align: center;
}

.property-bar {
	width: 15vw;
	height: calc(100vh - 55px);
	margin-left: auto;
	display: flex;
	justify-content: space-between;
	flex-direction: column;
}

.remove-button {
	width: 80%;
	background: rgba(255, 0, 0, 0.3);
	/* No background color */
	box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.02), inset 0px 0px 3px 2px rgba(0, 0, 0, 0.3), inset 0px 0px 7px 3px rgba(255, 0, 0, 0.3);
	margin: 0px auto 1rem auto;
	cursor: pointer;
	display: none;
}

td,
th,
tr {
	text-align: left;
	padding: 8px;
	height: 2rem !important;
}

.add-module-modal {
	position: fixed;
	place-items: center;
	z-index: 10;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: rgb(0, 0, 0);
	background-color: rgba(0, 0, 0, 0.4);
}

.module-modal-content-container {
	background-color: #eff3f5;
	width: 75%;
	margin: 5% auto;
	box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.6);
	border-radius: 10px;
	padding: 1rem;
	height: 80vh;
}

.module-modal-content {
	padding: 1rem;
	border: 1px solid #888;
	overflow-y: hidden;
	box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.6);
	border-radius: 10px;
	height: 67vh;
}

.parameterTable {
	width: 100%;
	height: 40px;
}

#parameterTableBody {
	overflow-y: scroll;
	/* height: 52vh; */
}

.assetContainer {
	overflow-y: auto;
}

.parameter-container {
	display: flex;
	justify-content: space-between;
	flex-direction: row;
	margin-top: 1rem;
	height: 58vh;
}

.param-value-input {
	width: 95%;
	height: 100%;
}

.param-value-input1 {
	width: 30%;
}

.param-value-null {
	background-color: #d8d8d8;
}

.selector-outer-container {
	width: 45%;
}

.inputContainer {
	overflow-y: scroll;
	height: 40vh;
	width: 37vw;
}

.btn {
	color: #4793da;
	background: linear-gradient(135deg, #eff1f3, #aeb9c2);
	border-color: #4794da;
	box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.6);
	margin-bottom: 1rem;
	padding: 0.9rem 0.7rem 0.7rem 0.7rem;
	border-radius: 8px;
}

.btn:hover {
	background: linear-gradient(135deg, #aab9c2, #eaf1f3);
}

.active {
	text-decoration: underline;
	color: #1d4ed8;
}

.asset {
	position: relative;
	display: inline-block;
	color: white;
	background-color: var(--secondary);
	border-color: var(--secondary);
	padding: 0.45rem 0.7rem 0.3rem 0.7rem;
	border-radius: 0.25rem;
	cursor: pointer;
	margin-left: 0.2rem;
}

.asset .assettext {
	visibility: hidden;
	width: 150px;
	background-color: var(--tertiary);
	color: #000;
	text-align: center;
	border-radius: 0.25rem;
	padding: 5px;
	top: -55px;
	left: -150px;
	position: absolute;
	z-index: 1;
}

.asset:hover .assettext {
	visibility: visible;
}

@media only screen and (max-width: 1050px) {
	.tooltip {
		position: relative;
		display: inline-block;
		color: white;
		background-color: var(--secondary);
		border-color: var(--secondary);
		padding: 0.45rem 0.7rem 0.3rem 0.7rem;
		border-radius: 0.25rem;
		cursor: pointer;
		margin-left: 0.2rem;
	}

	.tooltip .tooltiptext {
		visibility: hidden;
		width: 150px;
		background-color: var(--tertiary);
		color: #000;
		text-align: center;
		border-radius: 0.25rem;
		padding: 5px;
		top: -55px;
		left: -150px;
		position: absolute;
		z-index: 10;
	}

	.tooltip:hover .tooltiptext {
		z-index: 10;
		visibility: visible;
	}

	#inputBlock {
		display: flex;
		flex-direction: column;
	}

	.inputBlockHeader {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		margin-bottom: 2rem;
	}

	.inputBlockRow {
		display: flex;
		flex-direction: row;
		justify-content: start;
		width: 100%;
		margin-bottom: 1rem;
	}

	.inputBlockItem {
		width: 100%;
	}
}

@media only screen and (min-width: 1050px) {
	.tooltip {
		position: relative;
		display: inline-block;
		align-self: center;
		color: white;
		background-color: var(--secondary);
		border-color: var(--secondary);
		padding: 0.45rem 0.7rem 0.3rem 0.7rem;
		border-radius: 0.25rem;
		cursor: pointer;
		margin-left: 0.2rem;
	}

	.tooltip .tooltiptext {
		visibility: hidden;
		width: 150px;
		background-color: var(--tertiary);
		color: #000;
		margin-left: auto;
		margin-right: auto;
		border-radius: 0.25rem;
		padding: 5px;
		top: -55px;
		left: -150px;
		/* Position the tooltip */
		position: absolute;
	}

	.tooltip:hover .tooltiptext {
		visibility: visible;
		z-index: 10;
	}

	#inputBlock {
		display: flex;
		flex-direction: column;
		overflow-y: auto;
		height: 45vh;
	}

	.inputBlockHeader {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		margin-bottom: 2rem;
	}

	.inputBlockRow {
		display: flex;
		flex-direction: row;
		justify-content: start;
		width: 100%;
		margin-bottom: 1rem;
	}

	.inputBlockItem {
		width: fit-content;
	}

	.inputBlockHeaderItem {
		color: var(--primary);
		display: flex;
		flex-direction: row;
		text-align: center;
	}
}

.editModuleCMsCategory {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

.saveEditModuleCategory {
	display: flex;
	justify-content: end;
	margin-top: 1rem;
}

.editModuleCategoryButton {
	background-color: red;
	min-width: 8rem;
	margin-left: 0.3rem;
	margin-right: 0.3rem;
	margin-top: 1rem;
}

.close {
	color: #000;
	float: right;
	font-weight: bold;
}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

.context-menu {
	position: absolute;
	text-align: center;
	background-color: #eff3f5;
	border-radius: 5px;
}

.context-menu ul {
	padding: 0px;
	margin: 0px;
	min-width: 150px;
	list-style: none;
}

.context-menu ul li {
	padding-bottom: 7px;
	padding-top: 7px;
}

.context-menu ul li a {
	text-decoration: none;
	color: black;
}

.context-menu ul li:hover {
	background: darkgray;
}

.contiunity {
	background: #192844;
}

.zeton {
	background: #0a67a6;
}

.com-unity {
	background: #94d4ee;
}

/* width */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

/* Track */
::-webkit-scrollbar-track {
	background: #EFF3F5;
}

/* Handle */
::-webkit-scrollbar-thumb {
	background:#D7DBDC;
}


/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
	background: #cccece;
}

.connector:hover {
	fill: red;
	cursor: pointer;
}

.connector:active {
	fill: green;
}

.module-text {
	user-select: none;
}

svg.absolute.top-0.left-0.pointer-events-none #lines {
	pointer-events: auto;
}

.block-input {
	top: 0;
	left: 0;
	z-index: 1000;
	width: 100%;
	height: 100%;
	position: absolute;
	/* pointer-events: all; */
}

#moduleSliderContainer {
	position: relative;
	overflow: hidden;
}

#moduleSlider {
	display: flex;
	transition: transform 0.5s ease;
}

#prevBtn,
#nextBtn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background-color: rgba(0, 0, 0, 0.4);
	color: white;
	padding: 10px;
	cursor: pointer;
}

#prevBtn:hover,
#nextBtn:hover {
	background-color: rgba(0, 0, 0, 0.5);
}

#prevBtn {
	border-start-end-radius: 0.5rem;
	border-end-end-radius: 0.5rem;
}

#nextBtn {
	border-start-start-radius: 0.5rem;
	border-end-start-radius: 0.5rem;
}

#prevBtn {
	left: 0;
}

#nextBtn {
	right: 0;
}

.toaster-container {
	position: fixed;
	top: 10px;
	right: 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 1000;
}

.toaster-message {
	padding: 10px 20px;
	color: white;
	border-radius: 5px;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
	opacity: 0;
	transform: translateX(100%);
	transition: opacity 0.3s, transform 0.3s;
	width: 15rem;
	white-space: pre-line;
}