﻿.mastermenu_wrapper {
	margin: 0 auto;
	padding: 0 4%;
	width: 92%;
	display: block;
	position: relative;
	z-index: 10;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: #222;
	border-top: solid 1px #e6e6e6;
	border-bottom: solid 1px #e6e6e6;
	background: #f5f5f5;
}

/* =========== add sticky menu styles =========== */
.stick {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: #fff;
	z-index: 10 !important;
	-webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.15);
	-moz-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.15);
	box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.15);
	animation: fadein 1s;
	/*-moz-animation: fadein 1s;
	-webkit-animation: fadein 1s;
	-o-animation: fadein 1s;*/
}

.stick .mastermenu_wrapper {
	width: 94% !important;
	max-width: 1180px !important;
	padding: 0 !important;
	border: none !important;
	background: #fff !important;
}

/* Google auto suggestion postion for sticky */
.gssb_c_stick {
	position: fixed !important;
	top: 35px !important;
}

/* =========== end sticky, begin menu =========== */

	.mastermenu_container {
		width: 100%;
		margin: 0 auto;
		height: 40px;
	}
	
	.mastermenu {
		list-style: none;
		width: 100%;
		margin: 0 auto;
		padding: 0;
	}
.mastermenu > li {
	float: left;
	position: relative;
	margin-right: 5px;
	border: none;
}
.mastermenu li.menuitem_fullwidth {
	position: static !important;
}
.mastermenu > li > a {
	outline:0;
	padding: 9px 15px 11px 15px;
	text-decoration: none;
	display: block;
}

.mastermenu > li > a.first {
	padding: 9px 15px 11px 0;
}

.mastermenu > li.menuitem_nodrop > a {
	padding-bottom: 10px;
	background-image: none !important;
}

/* Right aligned menu item */
.mastermenu > li.menuitem_right {
	float: right;
	right: 0;
	margin-right: 0;
}

/* Menu Button (Mobiles) */
.mastermenu li.mastermenu_button {
	display: none;
	background: url(../img/icons/mobinav.png) 10px 10px no-repeat;
}

.mastermenu li.mastermenu_button a {
	padding: 10px 50px;
	width: 70%;
}

.mastermenu li.mastermenu_button a:hover {
	background: none !important;
}

.mastermenu li.mastermenu_button_active {
	background: #222 url(../img/icons/mobinav-active.png) 10px 10px no-repeat !important;
}

.mastermenu li.mastermenu_button_active a {
	color: #fff !important;
}

/* ===== show top level link for desktop but not mobiles ===== */
.mastermenu .mobile-no-link { display: none; }
.mastermenu .desktop-link { }

/* ==========
	Drop Down Containers
    ==========  */
.mastermenu .dropdown_1column, 
.mastermenu .dropdown_2columns, 
.mastermenu .dropdown_3columns, 
.mastermenu .dropdown_4columns,
.mastermenu .dropdown_5columns,
.mastermenu .dropdown_6columns,
.mastermenu .dropdown_fullwidth {
	margin: 0;
	display: none;
	position: absolute;
	top: 41px;
	left: 10px;
	-webkit-border-radius: 0 0 3px 3px;
	-moz-border-radius: 0 0 3px 3px;
	border-radius: 0 0 3px 3px;
}

/* Drop Downs Sizes */
.mastermenu .dropdown_1column { width: 135px; padding: 15px 14px 15px 15px; }
.mastermenu .dropdown_2columns { width: 290px; padding: 15px 11px 15px 15px; }
.mastermenu .dropdown_3columns { width: 405px; padding: 15px 8px 15px 15px; }
.mastermenu .dropdown_4columns { width: 600px; padding: 15px 5px 15px 15px; }
.mastermenu .dropdown_5columns { width: 755px; padding: 15px 2px 15px 15px; }
.mastermenu .dropdown_6columns { width: 885px; padding: 15px 2px 15px 15px; }
.mastermenu .dropdown_fullwidth {
	width: 945px;
	padding: 15px 0 15px 15px;
	top: 41px;
	left: 10px;
}
.mastermenu_wrapper .dropdown_right {
	left: auto;
	right: -1px;
}
.mastermenu_wrapper .mastermenu li.menuitem_right .dropdown_fullwidth {
	left: auto;
	right: 8px;
}

/* Drop down on hover */
.mastermenu > li .menuitem_drop { transition: 0s; }
.mastermenu > li .menuitem_drop:hover { transition-delay: 0.3s; }

.mastermenu li:hover > div {
	display: block;
	opacity: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	-ms-backface-visibility: hidden;

	animation: fadein 0.2s 0.3s forwards;
    -moz-animation: fadein 0.2s 0.3s forwards;
    -webkit-animation: fadein 0.2s 0.3s forwards;
    -o-animation: fadein 0.2s 0.3s forwards;
	
    opacity: 1\9; /* For IE9 (Note: There is "NO" space before \9) */
    opacity: 1 \9; /* For IE8 (Note: There is "ONE" space before \9) */
    *opacity: 1; /* For IE7 */
    _opacity: 1; /* For IE6 */
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {  
   .mastermenu li:hover > div {
        opacity: 1; /* For IE10 */
    }
}

@keyframes fadein { from { opacity:0; } to {  opacity:1; } }
@-moz-keyframes fadein {  from { opacity:0; } to {  opacity:1; } }
@-webkit-keyframes fadein {  from {  opacity:0; } to { opacity:1; } }
@-o-keyframes fadein { from { opacity:0; }  to { opacity: 1; } }


/* Column sizes */
.mastermenu .col_one_sixth,
.mastermenu .col_one_fifth,
.mastermenu .col_one_quarter,
.mastermenu .col_one_third,
.mastermenu .col_two_fifths,
.mastermenu .col_half,
.mastermenu .col_three_fifths,
.mastermenu .col_two_thirds,
.mastermenu .col_three_quarters,
.mastermenu .col_four_fifths,
.mastermenu .col_five_sixths,
.mastermenu .col_full {
	float: left;
	margin-left: 2%;
}
.mastermenu .col_one_sixth { width: 14.66667%; }
.mastermenu .col_one_fifth { width: 18%; }
.mastermenu .col_one_quarter { width: 23%; }
.mastermenu .col_one_third { width: 31.33333%; }
.mastermenu .col_two_fifths { width: 38%; }
.mastermenu .col_half { width: 48%; }
.mastermenu .col_three_fifths { width: 58%; }
.mastermenu .col_two_thirds { width: 64.66667%; }
.mastermenu .col_three_quarters { width: 73%; }
.mastermenu .col_four_fifths { width: 78%; }
.mastermenu .col_five_sixths { width: 81.33333%; }
.mastermenu .col_full { width: 98%; }


/* Use the firstcolumn class for the first element of a new row of content */
.mastermenu .firstcolumn {
	margin-left: 0;
	clear: left;
}

/* ============= some menu postion fixes =============== */
#mybpac_loggedout_position {
	right: 30px;
}


/*  ==========
	Content styling
    ==========  */
.mastermenu p,
.mastermenu ul,
.mastermenu li,
.mastermenu h2,
.mastermenu h3 {
	font-size: 14px;
	line-height: 21px;
	text-align: left;
}

.mastermenu h2, 
.mastermenu h3 {
	margin-top: 7px;
}
.mastermenu h2 {
	font-size: 21px;
	margin-bottom: 18px;
	padding-bottom: 11px;
}

.mastermenu h3 {
	font-size: 15px;
	margin-bottom: 14px;
	padding-bottom: 7px;
    color: #222;
}

.mastermenu h3 a {
	color: #0d83dd;
	text-decoration: none;
}

.mastermenu h3 a:hover {
	color: #222;
	text-decoration: none;
}

.mastermenu p {
	margin: 0 0 18px 0;
}

.mastermenu a {
	color: #000;
	text-decoration: none;
}

.mastermenu a:hover {
	color: #0d83dd;
	text-decoration: none;
}

.mastermenu .strong {
	font-weight: bold;
}

.mastermenu .italic {
	font-style: italic;
}

.mastermenu li a {
	text-decoration:none;
}

/* Images styles */
.mastermenu .img_left { 
	float: left;
	margin: 5px 15px 5px 0;
}
.mastermenu .img_right {
	float: right;
	margin: 5px 0 5px 15px;
}

.mastermenu .cover {
	width: 100%;
	max-width: 160px;
	margin: 0 0 10px 0; 
	padding: 0 0 13px 0; 
	background: url(/img/cover-shadow-small.png) bottom center no-repeat;
}

/* Standard list styles */
.mastermenu li ul {
	list-style: none;
	padding: 0;
	margin: 0 0 12px 0;
}
.mastermenu li ul li {
	font-size: 13px;
	line-height: 24px;
	position: relative;
	padding: 0 0 0 20px;
	background: url(../img/li.png) left no-repeat;
	margin: 0;
	float: left;
	text-align: left;
	width: 100%;
}
.mastermenu li ul li a {
	padding:0;
}

/* Other list styles */
.mastermenu li .plus li {
	margin: 0 0 4px 0;
	padding: 0 0 0 20px;
	float: left;
}

/* 2-Level Drop Down */
.mastermenu .dropdown_flyout {
	min-width: 120px;
}
.mastermenu .levels, 
.mastermenu .levels ul {
	padding: 0;
	margin: 0;
	list-style: none;
}
.mastermenu .levels a {
	display: block;
	width: 10em;
}
.mastermenu .levels li {
	float: left;
}
.mastermenu .levels li ul {
	position: absolute;
	top:-23px;
	margin:15px 0 0 4px;
	padding:6px 12px;
	left: -999em;
	z-index: 9999;
    -webkit-border-radius: 5px;
	-moz-border-radius: 5px;
    border-radius: 5px;
}
.mastermenu .levels li:hover > ul {
	left: 96%;
}

.mastermenu_container > ul > li:hover > a {
	color: #0d83dd;
	background-image: url(/img/menu/droparrow-hover.png);
	background-repeat: no-repeat;
	background-position: right 17px;
	
	/*box-sizing: border-box;
  	-moz-box-sizing: border-box;
  	-webkit-box-sizing: border-box;*/
	
	/* Add bottom bar on hover, maybe - maybe not
	height: 18px;
	border-bottom: solid 3px #66CC99;
	*/
}
.mastermenu_container ul li .menuitem_drop,
.mastermenu_container li.noactive .menuitem_drop {
	background-image: url(/img/menu/droparrow.png);
	background-repeat:no-repeat;
	background-position: right 17px;
}

.mastermenu > li > div,
.mastermenu_container ul .levels li ul {
	background-color: #fff;
	border: 1px solid #e6e6e6;
	border-top: none;
	-webkit-box-shadow: 0 1px 6px rgba(0,0,0,0.10);
	-moz-box-shadow: 0 1px 6px rgba(0,0,0,0.10);
	box-shadow: 0 1px 6px rgba(0,0,0,0.10);
}

.mastermenu_container ul h2, 
.mastermenu_container ul h3 {
	border-bottom: 1px solid #e6e6e6;
}

.mastermenu li#mybpac {
	background: url(/img/icons/user.png) 0 12px no-repeat;
	padding: 0 0 0 10px;
	margin: 0 0 0 20px;
}

.mastermenu li#mybpacactive {
	background: url(/img/icons/useractive.png) 0 12px no-repeat;
	padding: 0 0 0 10px;
	margin: 0 0 0 20px;
}

.mastermenu .favouritesbulletlist {
	padding: 0 0 0 20px;
	background: url(/img/icons/fav2.png) 0 4px no-repeat;
	margin: 0 0 10px 0;
	text-decoration: none;
	display: block;
}

.mastermenu .otherArticleLinks {
	padding: 0 0 0 20px;
	background: url(/img/icons/bulb.png) 0 4px no-repeat;
	margin: 0 0 10px 0;
	text-decoration: none;
	display: block;
}

.mastermenu .accountLinks {
	padding: 0 0 0 20px;
	background: url(/img/icons/settings3.png) 0 5px no-repeat;
	margin: 0 0 10px 0;
	text-decoration: none;
	display: block;
}

.mastermenu .accountLinks.reportLink {
	background: url(/img/icons/download.png) 0 5px no-repeat;
}

.popular {
	background: #FFCC5C; 
	color: #000; 
	font-size: 12px; 
	display: inline-block; 
	padding: 2px 5px 1px 5px; 
	margin: 0;
}

.new {
	background: #96CEB4; 
	color: #fff; 
	font-size: 12px; 
	display: inline-block; 
	padding: 2px 5px 1px 5px; 
	margin: 0;
}

/* Category links */
.mastermenu #MenuCategories .otherArticleLinks {
	text-decoration: none;
	margin: 5px 0 0 0;
	padding: 0;
	background: none;
	display: inline-block;
	width: 100%;
	font-size: 14px;
}
.mastermenu MenuCategories .otherArticleLinks a {
	display: block;
	text-decoration: none;
}

/* Button */
.mastermenu .button {
	font-size: 14px;
	padding: 3px 10px;
	background: #f1f1f1;
	border: solid 1px #e6e6e6;
	margin: 5px 0 0 0;
	color: #222 !important;
	display: inline-block;
	-webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.10);
	-moz-box-shadow: 0 1px 0 rgba(0,0,0,0.10);
	box-shadow: 0 1px 0 rgba(0,0,0,0.10);
}

.mastermenu .dashbutton {
	background: #6699FF;
	color: #fff !important;
}

.mastermenu .button:hover, .mastermenu .dashbutton:hover {
	background: #0c64a8;
	color: #fff !important;
}

.mastermenu .issuelink {
	padding: 0 0 10px 16px;
	background: url(../img/icons/sidearrow.png) 0 7px no-repeat;
	border-bottom: solid 1px #e6e6e6;
}

/* Quiz login box */
.mastermenu .quiz-login-box {
	border: solid 1px #e2e2e2;
	border-top: 3px solid #2f7aba;
	margin: 0 0 20px 0;
	padding: 4%;
	width: 92%;
	float: left;
}

.mastermenu_container .mastermenu > li.noactive {
	background-color: transparent;
	border: none;
}



/* ================
==================== Mobile optimization 
===========================================
=======================================  */

@media only screen and (max-width: 1140px) {
	.mastermenu_wrapper { z-index: 12; }

}

@media only screen and (max-width: 1024px) {
	/* Menu Containers */

	/* Menu Items */
	.mastermenu_wrapper .mastermenu > li {
		height: 40px;
		position: static;
		float: left;
		right: auto;
	}
	
	/* un-sticky */
	.stick {
		position: static;
		-webkit-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
		-moz-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
		box-shadow: 0 0 0 rgba(0, 0, 0, 0);
		animation: fadein 0s;
		-moz-animation: fadein 0s;
		-webkit-animation: fadein 0s;
		-o-animation: fadein 0s;
	}

	/* Menu Drop Downs */
	.mastermenu_wrapper .mastermenu .dropdown_1column, 
	.mastermenu_wrapper .mastermenu .dropdown_2columns, 
	.mastermenu_wrapper .mastermenu .dropdown_3columns, 
	.mastermenu_wrapper .mastermenu .dropdown_4columns,
	.mastermenu_wrapper .mastermenu .dropdown_5columns,
	.mastermenu_wrapper .mastermenu .dropdown_fullwidth,
	.mastermenu_wrapper .mastermenu .dropdown_right {
		top: auto;
		right: auto;
		left: auto;
		float: left;
		border-top: none;
		padding: 2%;
		margin: -1px 0 0 -1px;
	}
	.mastermenu .dropdown_1column  {
		width: 12.6666%;
	}
	.mastermenu .dropdown_2columns  {
		width: 29.3333%;
	}
	.mastermenu .dropdown_3columns  {
		width: 44%;
	}
	.mastermenu .dropdown_4columns  {
		width: 60.6666%;
	}
	.mastermenu .dropdown_5columns  {
		width: 79.3333%;
	}
	.mastermenu .dropdown_fullwidth  {
		width: 94%;
	}
	.mastermenu_wrapper .mastermenu .dropdown_right {
		left: auto;
		right: 1%;
	}
	.mastermenu_wrapper .mastermenu .dropdown_fullwidth,
	.mastermenu_wrapper .mastermenu li.menuitem_right .dropdown_fullwidth {
		top: 40px;
		right: auto;
		left: 1%;
		margin: 0;
	}
	
	/* Styling */
	.mastermenu #all-issues h3 {
		font-size: 12px;
	}
	
}

@media only screen and (max-width: 840px) {
	#cme_position {
		width: 260px;
		left: 300px;
	}
}


@media only screen and (max-width: 768px) {
	.mastermenu .m-hide { display: none; }
	
	/* ===== show top level link for desktop but not mobiles ===== */
	.mastermenu .mobile-no-link { display: block; }
	.mastermenu .desktop-link { display: none; }
	
	/* reposition first tab */
	.mastermenu > li > a.first {
		padding: 9px 15px 11px 15px;
	}

	.mastermenu_wrapper {
		padding: 0 2%;
		margin: 0 2%;
		float: left;
	}
	.mastermenu_vertical_left,
	.mastermenu_vertical_right {
		float: none;
	}
	.mastermenu_wrapper .mastermenu_container .mastermenu {
		width: 100% !important;
		margin: 0;
		padding: 0;
	}
	.mastermenu_container .mastermenu > li,
	.mastermenu_container .mastermenu > li:hover,
	.mastermenu_container .mastermenu > li.menuitem_right,
	.mastermenu_container .mastermenu > li.menuitem_right:hover {
		float: left;
		width: 99%;
		display: block;
		padding-right: 0;
		margin-right: 0;
	}
	
	.mastermenu li#mybpacactive, .mastermenu li#mybpac {
		padding: 0 0 0 2%;
		margin: 0 0 0 2%;
		width: 95%;
	}
		
	.mastermenu_container .mastermenu .dropdown_1column, 
	.mastermenu_container .mastermenu .dropdown_2columns, 
	.mastermenu_container .mastermenu .dropdown_3columns, 
	.mastermenu_container .mastermenu .dropdown_4columns,
	.mastermenu_container .mastermenu .dropdown_5columns,
    .mastermenu_container .mastermenu .dropdown_6columns,
	.mastermenu_container .mastermenu .dropdown_fullwidth,
	.mastermenu_container .mastermenu .dropdown_right,
	.mastermenu #cme_position, .mastermenu #mybpac_loggedout_position {
		left: 0;
		top: auto;
		margin: -1px 0 0 0;
		width: 92%;
		padding: 2% 4%;
	}

	/* Menu Drop Downs Columns */
	.mastermenu .col_one_sixth,
	.mastermenu .col_one_fifth,
	.mastermenu .col_one_quarter,
	.mastermenu .col_one_third,
	.mastermenu .col_two_fifths,
	.mastermenu .col_half,
	.mastermenu .col_three_fifths,
	.mastermenu .col_two_thirds,
	.mastermenu .col_three_quarters,
	.mastermenu .col_four_fifths,
	.mastermenu .col_five_sixths,
	.mastermenu .col_full {
		margin-left: 0;
		margin-right: 0;
		width: 96%;
		float: left;
		display: block;
	}
	.mastermenu > .col_one_sixth,
	.mastermenu > .col_one_fifth,
	.mastermenu > .col_one_quarter,
	.mastermenu > .col_one_third,
	.mastermenu > .col_two_fifths,
	.mastermenu > .col_half,
	.mastermenu > .col_three_fifths,
	.mastermenu > .col_two_thirds,
	.mastermenu > .col_three_quarters,
	.mastermenu > .col_four_fifths,
	.mastermenu > .col_five_sixths,
	.mastermenu > .col_full {
		margin-left: 2%;
		margin-right: 2%;
	}

	/* Regular Drop Down (turned into a list) */
	.mastermenu_wrapper .mastermenu .levels li ul {
		position: relative;
		top: auto;
		margin: 0;
		padding: 0;
		left: auto;
		border: none;
		background: none;
	}
	.mastermenu_wrapper .mastermenu .levels li{
		float: left;
		width: 100%;
	}
	.mastermenu_wrapper .mastermenu .levels li:hover > ul {
		left: auto;
	}
	
	ul .levels a.parent, 
	ul .levels a.parent:hover,
	ul .levels li ul,
	.mastermenu_wrapper ul .levels a.parent, 
	.mastermenu_wrapper ul .levels a.parent:hover,
	.mastermenu_wrapper ul .levels li ul {
		background: none;
		border: none;
	}
	
	/* Styling */
	.mastermenu h2 {
		margin: 10px 0 20px 0;
	}
	
	.mastermenu #all-issues h2 {
		margin: 10px 0;
		border-bottom: none;
		padding: 0;
	}
	
	.mastermenu #all-issues h3 {
		font-weight: bold;
		font-size: 16px;
		border-top: solid 3px #ccc;
		border-bottom: none;
		padding: 20px 0 0 0;
	}
	
	.mastermenu #MenuCategories .otherArticleLinks {
		width: 100%;
		font-size: 14px;
		border-bottom: solid 1px #e2e2e2;
	}
	
	.mastermenu #MenuCategories .otherArticleLinks a {
		padding: 5px 0;
		display: block;
	}
	
	/* Drop down on hover */
	.mastermenu li:hover > div {
		opacity: 1;
		animation: none;
    	-moz-animation: none;
    	-webkit-animation: none;
    	-o-animation: none;
	}
	@keyframes fadein { from { opacity:1; } to {  opacity:1; } }
	@-moz-keyframes fadein {  from { opacity:1; } to {  opacity:1; } }
	@-webkit-keyframes fadein {  from {  opacity:1; } to { opacity:1; } }
	@-o-keyframes fadein { from { opacity:1; }  to { opacity: 1; } }

}