/* =================== Main Nav Bar Styling =================== */
#nav_block {
        display: inline-block;
	position: absolute;
        top: 29px; /* Adjust this as the height of nav columns changes */
        right: 20px;
        padding: 0;
        margin: 0;
        margin-bottom: -3px; /* I don't know why I need this, but without it there is a a 3px space between the menu and what follows it. */
}
/* Style overrides for links in the menus */
#nav_block a {
        color: #000000;
	font-family: 'Nimbus', Arial, Helvetica, sans-serif;
	letter-spacing: 0px;
	font-size: 16pt;
        text-decoration: none;
        text-transform: uppercase;
        font-weight: normal;
	display: block;
	transition: background-color 0.2s ease-in-out;
}
/* Styling for all menu text */
#nav_block li {
        color: black;
	font-family: 'Nimbus', Arial, Helvetica, sans-serif;
	letter-spacing: 0px;
	font-size: 16pt;
        text-transform: uppercase;
        font-weight: normal;
}
#nav_block li:hover {
        background-color: #FFFFFF;
	border: 2px solid #fc6719;
}
/* Top level menu item styling */
#nav_block > li {
	display: inline; 
	float: left;
        padding-top: 5px;
        padding-bottom: 4px;
        padding-left: 8px;
        padding-right: 7px;
	margin-right: 2px; /* Controls the spacing between elements */
	border: 2px solid transparent;
        border-radius: 4px;
	transition: background-color 0.2s ease-in-out; /* Set this the same as the transition above */
	transition: border 0.2s ease-in-out;
}
/* Pull-down menu styling */
#nav_block ul {
	visibility: hidden; /* Use this instead of "display:none;" when adding a transition to the menu.*/
	/* Create the animated "pull-down" effect. */
	opacity: 0; 
	max-height: 0;
	overflow-y: hidden;
	transition: opacity 0.3s ease-in-out;
	transition: max-height 0.6s ease-in-out;
	/* /Create the animated "pull-down" effect. */
	position: absolute;
	list-style-type: none;
	margin-left: -11px; /* This offsets the padding-left used in top level item styling. */
	margin-top: 6px; /* This offsets the padding-bottom used in the top level item styling. */
	padding-top: 0px;
        z-index: 100; /* Make sure it's on top of anything below on the page. */
        /*border: 1px solid #000000;*/
        border-top: none;
	background-color: #FFFFFF;
	border: 1px solid #e2d6cf;
	border-radius: 4px;
}
/* Pull-down menu item styling */
#nav_block ul li {
	font-size: 13pt;
        text-transform: none;
        margin-left: -40px; /* To remove the li indenting */
        margin-right: 0px;
	/* These control the spacing of the items in the menu */
        padding-top: 5px; 
        padding-bottom: 4px;
        padding-left: 8px;
        padding-right: 7px;
	border: 2px solid transparent;
        border-radius: 4px;
	transition: border 0.2s ease-in-out; /* Set this the same as the two transitions above */
}
/* Style 2nd level pull-down menus differently than first-level menus. */
#nav_block > li:hover > ul > li:hover > ul {
	left: 100%;
	margin-top: -15px; /* To move ul up to where it's even with parent */
	margin-left: 0px;
        border: 1px solid #890505;
        border-left: none;
        z-index: 101; /* Make sure it's on top of the first-level menu. */
}
/* Hover actions. This is what makes the pull-downs appear */
#nav_block > li:hover > ul, #nav_block > li:hover > ul > li:hover > ul {
	visibility: visible; /* Use this instead of "display:block;" when adding a transition to the menu.*/
	/* Create the animated "pull-down" effect. */
	opacity: 1;
	max-height: 500px; /* Make this larger than any pull-down menu length */
	/* /Create the animated "pull-down" effect. */
}
/* =================== /Main Nav Bar Styling =================== */
