body {
	font-family: 'montserrat', sans-serif;
}

.mobile .networks-wrapper {
	margin: 24px 20px;
	width: calc(100% - 40px);
	height: calc(100% - 48px);
}

.networks-wrapper {
	position: absolute;
	height: calc(100% - 100px);
	width: calc(100% - 100px);
	margin: 50px;
	-ms-overflow-style: none;
	/* Hide scrollbar for IE and Edge */
	scrollbar-width: none;
	/* Hide scrollbar for Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.networks-wrapper::-webkit-scrollbar {
	display: none;
}

/* .leftWrapper {
	padding: 1rem 1rem 1rem 0;
} */

.networks-modal-wrapper .name {
	font-weight: bolder;
}

.networks-modal-wrapper .list-item {
	margin: 0.5rem;
	padding: 1rem;
	font-family: 'montserrat', sans-serif;
	color: rgb(0, 0, 0);
	border-radius: 1rem;
	background-color: aliceblue;
}

.networks-modal-wrapper .label {
	height: 100px;
	width: 100px;
	margin: 0.8rem;
	padding: 1rem;
	font-family: 'montserrat', sans-serif;
	font-size: 0.8rem;
	align-content: center;
	fill: white;
	border-radius: 1rem;
	background-color: aliceblue;
	white-space: normal;
	text-anchor: middle;
	text-align: center;
	position: absolute;
	user-select: none;
	font-weight: bolder;
	/* for avoiding copy label and interference with the touch input */
}

.networks-modal-wrapper #legends {
	margin-top: 23px;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 24px;
}

.networks-modal-wrapper .mobile #legends {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 16px;
}

.networks-modal-wrapper .legend-item {
	display: flex;
	font-size: 14px;
	line-height: 17px;
	align-items: center;
	gap: 10px;
	width: max-content;
}

.networks-modal-wrapper .hni {
	background-color: redrgb(19, 0, 46);
	fill: rgb(19, 0, 46);
}

.networks-modal-wrapper .fund {
	background-color: rgb(64, 88, 196);
	fill: rgb(64, 88, 196);
}

.networks-modal-wrapper .undefined {
	background-color: rgb(0, 64, 255);
	fill: rgb(0, 64, 255);
}

.networks-modal-wrapper .centerSvgGraph {
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: auto;
}

.networks-modal-wrapper .hni:hover {
	background-color: red;
	fill: #da4567;
}

.networks-modal-wrapper {
	display: none;
	/* Hidden by default */
	position: fixed;
	/* Stay in place */
	z-index: 3;
	/* Sit on top */
	left: 0;
	top: 0;
	width: 100%;
	/* Full width */
	height: 100%;
	/* Full height */
	overflow: auto;
	/* Enable scroll if needed */
	-webkit-animation-name: fadeIn;
	/* Fade in the background */
	-webkit-animation-duration: 0.4s;
	animation-name: fadeIn;
	animation-duration: 0.4s;
}

.networks-modal-wrapper .modal {
	min-width: 280px;
	overflow: hidden;
	position: fixed;
	bottom: 0;
	background-color: #fefefe;
	width: 100%;
	height: 100%;
	max-height: 885px;
	-webkit-animation-name: slideIn;
	-webkit-animation-duration: 0.4s;
	animation-name: slideIn;
	animation-duration: 0.4s;
	border-radius: 2rem;
	justify-content: start;
	max-width: 700px;
	left: 50%;
	transform: translate(-50%);
	box-shadow: 0px -1px 10px 0px lightgrey;
}
.networks-modal-wrapper .modal.macos.fullscreen {
	max-height: 100%;
	max-width: 100%;
}

.networks-modal-wrapper .modal.mobile {
	height: 100%;
	border-radius: 0;
	max-height: 100%;
}

.networks-modal-wrapper .login-modal {
	display: block;
	background-color: #ffffff;
	position: absolute;
	z-index: 1;
	border-radius: 1rem;
	box-shadow: 0px -1px 10px 0px lightgrey;
	height: 6rem;
	width: 17rem;
}

.networks-modal-wrapper .login-modal-wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	/* display: block; */
	color: #ffffff;
	/* background-color: #0000006b; */
	height: 100%;
	width: 100%;
	z-index: 1;
}

.networks-modal-wrapper .login-modal-text {
	text-align-last: center;
	color: black;
	font-weight: bold;
	letter-spacing: 0.06rem;
	font-size: 0.9rem;
	position: relative;
	margin: auto;
}

.networks-modal-wrapper .dot {
	background-color: white;
	border-radius: 4rem;
	width: 4rem;
	height: 4rem;
	margin: 1rem;
}

.networks-modal-wrapper canvas {
	margin: auto;
	min-width: 400px;
	min-height: 400px;
	margin-top: 25%;
}

.networks-modal-wrapper .fullscreen canvas {
	margin: auto;
	min-width: 400px;
	min-height: 400px;
	margin-top: 15%;
}

.networks-modal-wrapper .mobile canvas {
	margin: auto;
	min-width: calc(100% - 40px);
	min-height: auto;
	margin-top: 70%;
}

.networks-modal-wrapper .mobile .centerSvgGraph {
	scale: 1.13;
}

/* Add Animation */
@-webkit-keyframes slideIn {
	from {
		bottom: -300px;
		opacity: 0;
	}

	to {
		bottom: 0;
		opacity: 1;
	}
}

@keyframes slideIn {
	from {
		bottom: -300px;
		opacity: 0;
	}

	to {
		bottom: 0;
		opacity: 1;
	}
}

@-webkit-keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.networks-modal-wrapper .autocomplete {
	/*the container must be positioned relative:*/
	position: relative;
	display: inline-flex;
	align-items: center;
}

.networks-modal-wrapper .mobile .autocomplete {
	/*the container must be positioned relative:*/
	width: calc(100% - 80px);
	box-sizing: border-box;
	display: flex;
}

.networks-modal-wrapper .presentation {
	font-size: 30px;
	font-weight: 700;
	margin-top: 30px;
}


@media only screen and (max-width: 420px) {
	.networks-modal-wrapper .presentation {
		padding: 0.5rem;
		margin-bottom: 0.5rem;
		font-size: 30px;
		font-weight: bold;
	}
}

.networks-modal-wrapper input {
	font-family: 'montserrat', sans-serif;
	border: 3px solid #e8effd !important;
	background: #fff;
	padding: 10px 35px 10px 20px;
	font-size: 16px;
	border-radius: 50px;
	min-width: 320px;
}

.networks-modal-wrapper .mobile input {
	width: 100%;
	min-width: unset;
}

.networks-modal-wrapper input[type='search'] {
	background-color: white;
}

.networks-modal-wrapper input[type='submit'] {
	background-color: DodgerBlue;
	color: #fff;
}

.networks-modal-wrapper #nameInput:hover {
	border: 3px solid #e8effd !important;
}

.networks-modal-wrapper #nameInput:focus-visible {
	border: 3px solid #e8effd !important;
}

.networks-modal-wrapper .autocomplete-items {
	position: absolute;
	border: 1px solid aliceblue;
	border-bottom: none;
	border-top: none;
	z-index: 99;
	/*position the autocomplete items to be the same width as the container:*/
	top: 100%;
	left: 0;
	right: 0;
	/* overflow-y: auto; */
	/* max-height: calc(100vh - 475px); */
	overflow-y: scroll;
	border-radius: 1rem;
	margin-top: 1rem;
	max-height: 16.5rem;
}

.networks-modal-wrapper .autocomplete-items div {
	padding: 10px;
	cursor: pointer;
	background-color: #fff;
	border-bottom: 1px solid aliceblue;
}

.networks-modal-wrapper .autocomplete-items div:hover {
	/*when hovering an item:*/
	background-color: aliceblue;
}

.networks-modal-wrapper .autocomplete-active {
	/*when navigating through the items using the arrow keys:*/
	background-color: DodgerBlue !important;
	color: #ffffff;
}

.networks-modal-wrapper .autocomplete_loader {
	position: absolute;
	right: 10px;
	display: none;
}

.networks-modal-wrapper .autocomplete_loader.show {
	display: block !important;
	animation: spin 2s infinite linear;
}

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

	to {
		transform: rotate(360deg);
	}
}

.networks-modal-wrapper .close_modal {
	position: absolute;
	top: 55px;
	right: 35px;
	cursor: pointer;
	z-index: 99;
}

.networks-modal-wrapper .fullscreen_request {
	position: absolute;
	top: 55px;
	right: 75px;
	cursor: pointer;
	z-index: 99;
}

.networks-modal-wrapper .mobile .close_modal {
	top: 35px;
}

.networks-modal-wrapper .mobile .fullscreen_request {
	top: 35px;
}

.networks-modal-wrapper .legend-btn {
	font-size: 14px;
	cursor: pointer;
	color: black;
	z-index: 99;
	position: relative;
	padding-top: 12px;
	text-decoration: underline;
	display: flex;
	align-items: center;
}

.networks-modal-wrapper .legend-btn .caret {
	margin-left: 8px;
}

.networks-modal-wrapper .legend-btn.show .caret {
	margin-left: 8px;
	transform: rotate(180deg);
}

@media screen and (max-width: 350px) {
	.networks-modal-wrapper .mobile #legends {
		display: inline-flex;
		flex-wrap: wrap;
	}

	.networks-modal-wrapper .mobile input {
		font-size: 14px;
	}

	.networks-modal-wrapper .mobile .presentation {
		font-size: 20px;
	}
}
