.main-menu {
	--icon-width-height: 1.8rem;
	width: var(--nav-expanded-width);
	display: flex;
	align-items: center;
	flex-direction: column;
	position: fixed;
	top: 1rem;
	left: 0.5em;
	bottom: 0.5em;
	padding: 0;
	z-index: 10;
	margin: 0;
	transition: width ease-out 0.2s;
	overflow: hidden;
	border-radius: 1rem;
	box-shadow: var(--container-inner-shadow);
	background-color: var(--deep-background-color);
	height: calc(100% - 2.1rem);
}

.expanded {
	width: var(--nav-collapsed-width);
}

.main-menu li[active] {
	background-color: var(--background-white);
	border-bottom-left-radius: 2rem;
	border-top-left-radius: 2rem;
	color: var(--darker-primary-green);
	box-shadow: var(--continer-outer-shadow);
	position: relative;
}

.main-menu li[active]::before,
.main-menu li[active]::after {
	--item-detail-border-radius: 3rem;
	pointer-events: none;
	content: '';
	position: absolute;
	width: var(--item-detail-border-radius);
	height: var(--item-detail-border-radius);
	right: -1px;
	background: transparent;
}

.main-menu li[active]::before {
	top: calc(var(--item-detail-border-radius) * -1);
	border-radius: 80% 0 50% 0;
	box-shadow: 5px 5px 0 5px var(--background-white);
}

.main-menu li[active]::after {
	bottom: calc(var(--item-detail-border-radius) * -1);
	border-radius: 0 50% 0 80%;
	box-shadow: 5px -5px 0 5px var(--background-white);
}

.main-menu .small-logo {
	width: 3.5em;
	height: 3.5em;
}

.main-menu .logo-wrapper {
	width: 100%;
	height: 3.5em;
	display: flex;
	align-items: center;
	justify-content: center;
}

.main-menu .logo {
	width: 11em;
	height: 3.5em;
	display: flex;
}

.main-menu .menu-items {
	display: flex;
	flex-direction: column;
	align-self: flex-start;
	padding-left: 0.5rem;
	color: var(--black);
	width: 100%;
    gap: 0.5rem;
}

.menu-item {
	display: flex;
	flex-direction: row;
	cursor: pointer;
	padding: 0.75em 1rem;
	column-gap: 0.75rem;
	align-items: center;
	font-weight: 500;
	transition: 0.1s ease-out;
    border: 1px solid transparent;
    color: var(--global-font-color);
}
	.menu-item svg {
		font-size: 2.5rem;
	}
	.menu-item:hover {
		color: var(--darker-primary-green);
	}
	
.expandable-menu-item {
	display: flex;
	flex-direction: column;
	column-gap: 5px;
	align-items: flex-start;
	cursor: pointer;
	font-weight: 500;
	transition: color 0.1s linear;
	padding: 0.75em 1rem;
    border: 1px solid transparent;
}
	.expandable-menu-item svg:not([animated-arrow]) {
		font-size: 2.5em;
		min-width: 2.5rem;
	}
	.expandable-menu-item ul {
		color: var(--gray);
	}
	.expandable-menu-item:hover .expandable-menu-item-header{
		color: var(--darker-primary-green);
	}
.expandable-menu-item-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	column-gap: 0.75rem;
	width: 100%;
	pointer-events: none;
    color: var(--global-font-color);
}

.expandable-menu-item-header-hidden {
	cursor: default;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}
.expandable-menu-item-header-hidden svg {
	font-size: 1em;
}

.arrow-tip-down-icon {
	transition: rotate 0.2s ease-in-out;
	width: 0.5em;
	aspect-ratio: 1;
	cursor: pointer;
}

.rotated-180-icon {
	rotate: -180deg;
}

/*.expandable-menu-item > ul {
	display: flex;
	flex-direction: column;
	padding: 0.5em 0em 0.5em 3.5em;
	width: 100%;
	list-style: disc;
}

	.expandable-menu-item > ul > li {
		padding: 0.5em 0;
		border-radius: 0.5em;
		cursor: pointer;
	}*/

.expandable-menu-item > ul {
	display: flex;
	flex-direction: column;
	list-style: none;
	padding: 0em 0.4em 0 0.4em;
	width: 100%;
	margin-bottom: 0.75em;
	margin-top: 0.75em;
	gap: 0.25em;
	max-height: 0px;
	overflow: hidden;
	transition: margin 0.3s ease-out;
}

.expandable-menu-item > ul.collapsed {
	margin: 0;
}
.expandable-menu-item svg[animated-arrow] {
	transition: rotate 0.1s ease-out;
} 
.expandable-menu-item > ul > li {
	padding: 0.5rem 1rem 0.5rem 2.3rem;
	border-radius: 0.5em;
	cursor: pointer;
	color: var(--light-global-font-color);
	transition: background-color 0.1s linear;
}
.expandable-menu-item > ul > li:hover {
	background-color: var(--primary-green);
	color: var(--colored-button-font-color);
}
.expandable-menu-item svg {
	min-width: var(--icon-width-height);
}

.menu-item svg {
	min-width: var(--icon-width-height);
}



#smallLogo,
#largeLogo {
	transition: all 0.2s ease-in-out;
}

#menuLoginPartial {
	width: 100%;
	font-size: var(--font-size-small);
	padding: 0 0 0 1rem;
	margin-top: auto;
	margin-bottom: 2.6rem;
}
	#menuLoginPartial .menu-item {
		cursor: default;
	}
	#menuLoginPartial .menu-item div[menu-label] {
		display: flex;
		flex-direction: row;
		gap: 1rem;
		align-items: center;
		justify-content: center;
		cursor: pointer;
	}
		#menuLoginPartial div[menu-label] a {
			color: var(--global-font-color);
			overflow-y: hidden;
			max-height: 1.3rem;
			transition: color 0.1s ease-out;
		}
		#menuLoginPartial div[menu-label] svg {
			transition: color 0.1s ease-out;
		}
		#menuLoginPartial .menu-item:hover {
			color: var(--black);
		}
		#menuLoginPartial div[menu-label]:hover a,
		#menuLoginPartial div[menu-label]:hover svg{
			color: var(--darker-primary-green);
		}
	#menuLoginPartial .menu-item span {
		color: var(--gray);
	}
	#menuLoginPartial:hover .menu-item span {
		color: var(--gray);
	}

	#menuLoginPartial > li {
		column-gap: 0.5rem
	}

#menuLoginPartial button {
	/* Hiding all the button styling */
	background-color: transparent;
	border: none;
	padding: 0;
	color: var(--gray);
	margin-left: 0.3em;
	transition: color 0.1s linear, transform 0.1s linear;
}
	#menuLoginPartial button:hover {
		color: var(--darker-primary-green);
	}
		#menuLoginPartial button:active {
			transform: scale(0.9);
		}

		#menuLoginPartial > li > .menu-item {
			/* Hidden part that is revealed on expand */
			justify-content: space-between;
			width: 100%;
			max-width: calc(var(--nav-expanded-width) - var(--icon-width-height) - 3rem);
			padding: 0;
			max-height: 3em;
		}

#menuLoginPartial > li > .menu-item > div {
	/* Setting the email and display name in a column */
	display: flex;
	overflow: hidden;
	flex-direction: column;
}

#menuLoginPartial > li > img,
#menuLoginPartial > li > svg {
	min-width: calc(var(--icon-width-height) * 1.5);
	cursor: default;
	aspect-ratio: 1;
}

#menuLoginPartial > li > .menu-item img,
#menuLoginPartial > li > .menu-item svg {
	/* Log out icon */
	width: var(--icon-width-height);
	color: var(--black); /* icon color */
	aspect-ratio: 1;
}

#menuLoginPartial a {
	font-size: var(--font-size-medium);
	font-weight: 600;
	color: var(--gray);
	text-overflow: ellipsis;
	text-decoration: none;
}

	@keyframes fade-in {
		100% {
		opacity: 1;
	}
}

@keyframes fade-out {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

.menu-items .menu-item span,
.expandable-menu-item > ul > li,
.expandable-menu-item-header-hidden {
	user-select: none;
}

@media screen and (max-width: 1500px){
	.main-menu {
        background: var(--blue-gray);
        box-shadow: var(--soft-continer-outer-shadow);
        border: none;
	}
	.main-menu .menu-items{
		padding: 0 1rem;
	}
    .main-menu .menu-items img {
        width: 32px;
        height: 32px;
    }
    #menuLoginPartial {
        padding: 0 1rem;
    }
    #menuLoginPartial .menu-item img {
        width: 32px;
        height: 32px;
    }
    .main-menu li {
        border-radius: 2rem;
        border: none;
        transition: 0.3s ease-out;
    }
	.main-menu li[active]{
        background: var(--blue-gray);
        box-shadow: var(--soft-continer-outer-shadow);
	}
	.main-menu li[active]::before,
	.main-menu li[active]::after {
		display: none;
	}

    .menu-item:hover {
        color: var(--darker-primary-green);
        background: var(--blue-gray);
        box-shadow: var(--soft-continer-outer-shadow);
        border: none;
        border-radius: 2rem;
    }

    .expandable-menu-item:hover {
        color: var(--darker-primary-green);
        background: var(--blue-gray);
        box-shadow: var(--soft-continer-outer-shadow);
        border: none;
        border-radius: 2rem;
    }
}