/* Please read the readme file, when editing or creating a new styles file. */

.Application_DropDownMenu
{
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	list-style: none;
	/*align-items: flex-end;*/
	align-items: center;

	height: 100%;

	background: transparent;
	
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;

	padding-left: 0px;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;

	border-left: 0px;
	border-top: 0px;
	border-right: 0px;
	border-bottom: 0px;
}

.Application_DropDownSubMenu
{
	box-sizing: border-box;
	display: none;
	visibility: hidden;
	position: relative;
	background: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	z-index: 1;
	
	/*background: linear-gradient(to bottom,var(--NAVBAR-MENU-BUTTON-BG-COLOR) 0,var(--NAVBAR-MENU-BUTTON-BG-COLOR) 100%);
	opacity: .8;*/

	min-width: 300px;
	min-height: auto;

	width: auto;
	height: auto;

	/*
		MARGIN NEEDS TO BE ZERO
		The SubMenu DIV is inside the parent SubMeniContainer,
		But the parent is position: relative, so it remains inside the navBar,
		the SubMenu DIV to be able to exit the navBar and float above it must
		be position: absolute, if we put a margin to the SubMenu DIV this
		apparently disconnects or leaves a space between the two DIVs
		therefore if we move the mouse from the button to the SubMenu DIV and
		there is a space/margin between the button and the SubMenu the
		OnMouseLeave event will be triggered, this makes the menu hide :(
	*/
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	/*------------------------------------------------------------------------*/
	
	border-left: var(--SUBMENU-BORDER-L);
	border-top: var(--SUBMENU-BORDER-T);
	border-right: var(--SUBMENU-BORDER-R);
	border-bottom: var(--SUBMENU-BORDER-B);
	border-radius: var(--SUBMENU-BORDER-RADIUS);

	padding-left: var(--SUBMENU-PADDING-L);
	padding-top: var(--SUBMENU-PADDING-T);
	padding-right: var(--SUBMENU-PADDING-R);
	padding-bottom: var(--SUBMENU-PADDING-B);
	
	/*border: 5px solid red;*/

	 background: var(--SUBMENU-BG);
    -webkit-backdrop-filter: var(--SUBMENU-BACKDROP-FILTER);
    backdrop-filter: var(--SUBMENU-BACKDROP-FILTER);
    /*box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);*/

	box-shadow: var(--FORM-BOX-SHADOW);

	/*clip-path: polygon(
		0 15px,
		15px 0,

		100% 0,

		100% 96%,
		93% 100%,

		0 100%
  	)*/

	animation: rotateMenu 400ms ease-in-out forwards;
    transform-origin: top center;
}

.Application_DropDownSubMenuBackground
{
	position: absolute;
	z-index: 0;

	width: 100%;
    max-height: 100%;
    
	left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;

	border-radius: var(--SUBMENU-BORDER-RADIUS);
    border-left: var(--SUBMENU-BORDER-L);
    border-top: var(--SUBMENU-BORDER-T);
    border-right: var(--SUBMENU-BORDER-R);
    border-bottom: var(--SUBMENU-BORDER-B);

    background: var(--SUBMENU-BG);
    -webkit-backdrop-filter: var(--SUBMENU-BACKDROP-FILTER);
    backdrop-filter: var(--SUBMENU-BACKDROP-FILTER);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

@keyframes rotateMenu {
    0% {
        transform: rotateX(-90deg)
    }
    70% {
        transform: rotateX(20deg) 
    }
    100% {
        transform: rotateX(0deg) 
    }
}