/* Iconfont made with icomoon.com */
@font-face {
    font-family: 'cbp-tmicons';
    src:url('/fonts/cbp-tmicons.eot');
    src:url('/fonts/cbp-tmicons.eot?#iefix') format('embedded-opentype'),
    url('/fonts/cbp-tmicons.woff') format('woff'),
    url('/fonts/cbp-tmicons.ttf') format('truetype'),
    url('/fonts/cbp-tmicons.svg#cbp-tmicons') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* reset  list style */
.navtop-menu,
.navtop-menu ul {
    list-style: none;
    z-index: 2;  /*above flexslider*/
}

.navtop-menu #carticon {
    height: 1em;
    margin-left: 6px;
    vertical-align: text-bottom;
    opacity: .6;
}

/* set menu position; change here to set to relative or float, etc. */
.navtop-menu {
    box-sizing: border-box;  /*BLG added this*/
    clear: both;
    display: block;
    width: 100%;
    background: white;
    text-align: center;
    padding: 0;
    margin: 0;
    max-width: 1000px;
}

/* first level menu items */
.navtop-menu > li {
    display: inline-block;
    margin: 0 .4em;   /*this % is spacing between nav bar items*/
    position: relative;
}

.navtop-menu > li > a {
    line-height: 1.8em;
    padding: 0 .5em;
    font-size: 1.2em;
    display: block;
    color: black;
    white-space: nowrap;  /***Bathsheba*/
}

/*hover color of main menu links*/
.no-touch .navtop-menu > li > a:hover,
.no-touch .navtop-menu > li > a:active {
    color: rgb(50,50,180);
}

/*you-are-here links*/
.navtop-menu > li .hilite {
    background: rgb(240,240,240);
}

.navtop-menu > li ul .hilite {
    background: rgb(220,220,220);
}

/* submenu with transitions */
.navtop-submenu {
    position: absolute;
    display: block;
    width: 15em;
    background: rgb(240,240,240);
    visibility: hidden;
    opacity: 0;
    padding-top: 8px;
    padding-bottom: 8px;
    margin: 0;      /*left margin positions submenu relative to menu item*/
    text-align: left;
    pointer-events: none;
    -webkit-transition: visibility 0s, opacity 0s;
    -moz-transition: visibility 0s, opacity 0s;
    transition: visibility 0s, opacity 0s;
}

.navtop-show .navtop-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    -webkit-transition: visibility 0s, opacity 0.3s;
    -moz-transition: visibility 0s, opacity 0.3s;
    transition: visibility 0s, opacity 0.3s;
}

.navtop-show-below .navtop-submenu {
    top: 100%;
}

/* extreme cases: not enough space on the sides */
.navtop-nospace-right .navtop-submenu {
    right: 0;
    left: auto;
}

.navtop-nospace-left .navtop-submenu {
    left: 0;
}

/* last menu item has to fit on the screen */
.navtop-menu > li:last-child .navtop-submenu {
    right: 0;
}



/* arrow: depending on where the menu will be shown, we set 
   the right position for the arrow
   */
.navtop-submenu:after {
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.navtop-show-below .navtop-submenu:after {
    bottom: 100%;
    margin-bottom: -10px;
}

.navtop-submenu:after {
    border-color: transparent;
    border-width: 16px;
    margin-left: -16px;
    left: 50%;
}

.navtop-submenu > li {
    display: block;
}

.navtop-submenu > li > a {
    padding: 5px 2.3em 5px 0.6em; /* top/bottom paddings in 'em' cause a tiny "jump" in Chrome on Win */
    display: block;
    font-size: 1.1em;
    position: relative;
    color: black;
    border: 1px solid rgb(240,240,240);

    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    transition: all 0.2s;
}

/*hover color of submenu links*/
.no-touch .navtop-submenu > li > a:hover,
.no-touch .navtop-submenu > li > a:active {
    color: white;
    background: rgb(100,100,130);
}

/* the icons (main level menu icon and sublevel icons) */
.navtop-submenu li a:before,
.navtop-menu > li > a:before {
    font-family: 'cbp-tmicons';
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: middle;
    margin-right: 0.8em;
    -webkit-font-smoothing: antialiased;
}

.navtop-submenu li a:before {
    position: absolute;
    top: 50%;
    margin-top: -0.5em;
    right: 0.5em;
}

/*this puts the menu icon on items with a submenu*/
.navtop-menu > li > a:not(:only-child):before {
    content: "\f0c9";
    font-size: 60%;
    opacity: 0.3;
}

.navtop-icon-archive:before {
    content: "\e002";
}

.navtop-icon-cog:before {
    content: "\e003";
}

.navtop-icon-users:before {
    content: "\e004";
}

.navtop-icon-earth:before {
    content: "\e005";
}

.navtop-icon-location:before {
    content: "\e006";
}

.navtop-icon-mobile:before {
    content: "\e007";
}

.navtop-icon-screen:before {
    content: "\e008";
}

.navtop-icon-mail:before {
    content: "\e009";
}

.navtop-icon-contract:before {
    content: "\e00a";
}

.navtop-icon-pencil:before {
    content: "\e00b";
}

.navtop-icon-article:before {
    content: "\e00c";
}

.navtop-icon-clock:before {
    content: "\e00d";
}

.navtop-icon-videos:before {
    content: "\e00e";
}

.navtop-icon-pictures:before {
    content: "\e00f";
}

.navtop-icon-link:before {
    content: "\e010";
}

.navtop-icon-refresh:before {
    content: "\e011";
}

.navtop-icon-help:before {
    content: "\e012";
}

/* Media Queries */
/*Breakpoints are measured in em so they depend on what the nav items are!*/

/*BLG wrap trick*/
.navtop-menu #nav_break {
    display: none;
    clear: none;
}

/*first breakpoint: shrink padding.*/
@media screen and (max-width: 45em) { 
    .navtop-menu > li > a {
	padding: 0px 3%;
    }
}

/*second breakpoint: wrap, shrink font, minimize spacing*/
@media screen and (max-width: 40em) {
    .navtop-menu > li {
	margin: 0 0;   /*this % is spacing between nav bar items*/
    }
    .navtop-menu > li > a {
	padding: 0px .3em;
    }

    /*BLG wrap trick*/
    .navtop-menu #nav_break {
	display: block;
	clear: both;
    }

    /*BLG  if nav bar has wrapped, last menu item on first line has to fit on the screen*/
    .navtop-menu > #nav-wrapped .navtop-submenu {
	right: 0;
    }

    .navtop-menu > li > a:before {
	margin-right: 0.3em;
    }
    .navtop-menu {
	font-size: 95%;
    }

}

/*third breakpoint: shrink font*/
@media screen and (max-width: 340px) {
    .navtop-menu {
	font-size: 95%;
    }
}



