/*
---------------------------------------------------------------
  Note that styles you apply to the main menu items are inherited by the sub menus items too.
  If you'd like to avoid this, you could use child selectors (not supported by IE6) - for example:
  .sm > li > a { ... } instead of .sm a { ... }
---------------------------------------------------------------*/


/* Menu box
===================*/

    .sm {
        background:transparent; 
    }
    .sm-vertical {
        -moz-box-shadow:0 1px 4px rgba(0,0,0,0.3);
        -webkit-box-shadow:0 1px 4px rgba(0,0,0,0.3);
        box-shadow:0 1px 4px rgba(0,0,0,0.3);
    }
    .sm ul {
        border:0px solid #868686;
        padding: 0;
        background:transparent;
        -moz-box-shadow:0 5px 12px rgba(0,0,0,0.3);
        -webkit-box-shadow:0 5px 12px rgba(0,0,0,0.3);
        box-shadow:0 5px 12px rgba(0,0,0,0.3);
    }
    /* for vertical main menu subs and 2+ level horizontal main menu subs round all corners */
    .sm-vertical ul,
    .sm ul ul {
        -moz-border-radius:0px;
        -webkit-border-radius:0px;
        border-radius:0px;
	background:rgba(255,255,255,0.85);
    }


/* Menu items
===================*/

.sm #topnav_1, .sm #topnav_2, .sm #topnav_3, .sm #topnav_4, .sm #topnav_5, .sm #topnav_6, .sm #topnav_7, .sm #topnav_8{
    width: 12.5%;
    text-align:center;
}
    .sm a {
	text-align: center;
	display:block; 
        padding:12px 0 12px 0;
        color:#016c7c;
        font-size:18px;
        line-height:32px;
        font-family: 'RotisSemiSansW01-Light', sans-serif;
	font-variant: small-caps;
        font-weight:normal;
        text-decoration:none;
        background:rgba(255,255,255,0.85); 
	letter-spacing: 0.3px;
	text-transform: uppercase;
    }
    .sm ul li {
	width: auto;
    }
    .sm a:hover, .sm a:focus, .sm a:active,
    .sm a.highlighted {
        background:rgba(255,255,255,0.85); 
        color:#016c7c;
    } 
    .sm-vertical a {
        padding:9px 40px 8px 23px;
	color:#016c7c;
        background:#fff; /* Old browsers */
        background-color: rgba(255,255,255,0.85);
	border-bottom:1px solid #868686;
    }
    .sm ul a {
        padding:9px 23px 8px 23px;
        background:rgba(255,255,255,0.85); 
        color:#016c7c;
        font-size:16px;
        text-shadow:none;
    }
    .sm ul a:hover, .sm ul a:focus, .sm ul a:active,
    .sm ul a.highlighted {
        background:#027c8e; 
        color:#fff;
        text-shadow:0 1px 0 rgba(0,0,0,0.3);
    }
    /* current items - add the class manually to some item or check the "markCurrentItem" script option */
    .sm a.current, .sm a.current:hover, .sm a.current:focus, .sm a.current:active,
    .sm ul a.current, .sm ul a.current:hover, .sm ul a.current:focus, .sm ul a.current:active {
        background:#027c8e; 
        color:#fff;
        text-shadow:0 1px 0 rgba(0,0,0,0.3);
    }
    


/* Sub menu indicators
===================*/

    .sm a span.sub-arrow {
        position:absolute;
        bottom:2px;
	left:50%;
        /* we will use one-side border to create a triangle so that we don't use a real background image, of course, you can use a real image if you like too */
        width:0;
        height:0;
        overflow:hidden;
        border-width:5px; /* tweak size of the arrow */
        border-style:solid dashed dashed dashed;
        border-color:#006d7c transparent transparent transparent;
    }
    .sm-vertical a span.sub-arrow,
    .sm ul a span.sub-arrow {
        bottom:auto;
        top:50%;
        margin-top:-5px;
        right:15px;
        left:auto;
        margin-left:0;
        border-style:dashed dashed dashed solid;
        border-color:transparent transparent transparent #006d7c;
    }


/* Items separators
===================*/

    .sm li {
        border-left:0px solid #1a8bb9;
    }
    .sm li:first-child,
    .sm-vertical li,
    .sm ul li {
        border-left:0;
    }
    .sm li ul li {
	border-top:1px solid #868686;
    }
    .sm li ul li:first-child {
	border-top:0px solid #868686;
    }

/* Scrolling arrows containers for tall sub menus - test sub menu: "Sub test" -> "more..." -> "more..." in the default download package
===================*/

    .sm span.scroll-up, .sm span.scroll-down {
        position:absolute;
        display:none;
        visibility:hidden;
        overflow:hidden;
        background:#ffffff;
        height:20px;
        /* width and position will be automatically set by the script */
    }
    .sm span.scroll-up-arrow, .sm span.scroll-down-arrow {
        position:absolute;
        top:-2px;
        left:50%;
        margin-left:-8px;
        /* we will use one-side border to create a triangle so that we don't use a real background image, of course, you can use a real image if you like too */
        width:0;
        height:0;
        overflow:hidden;
        border-width:8px; /* tweak size of the arrow */
        border-style:dashed dashed solid dashed;
        border-color:transparent transparent #247eab transparent;
    }
    .sm span.scroll-down-arrow {
        top:6px;
        border-style:solid dashed dashed dashed;
        border-color:#247eab transparent transparent transparent;
    }



/*
---------------------------------------------------------------
  Responsiveness
  These will make the sub menus collapsible when the screen width is too small.
---------------------------------------------------------------*/
@media screen and (min-width: 768px) and (max-width: 959px) {
    .sm a {
        padding:12px 0 12px 0;
	font-size: 15px;
    }
}
@media screen and (max-width: 767px) {
    .sm a {
        padding:12px 0 12px 0;
	font-size: 11px;
    }
    .sm #topnav_1, .sm #topnav_2, .sm #topnav_3, .sm #topnav_4, .sm #topnav_5, .sm #topnav_6, .sm #topnav_7, .sm #topnav_8{
	width: 25%;
	float:left;
	text-align:center;
    }
    
}
@media screen and (max-width: 480px) {
    .sm #topnav_1, .sm #topnav_2, .sm #topnav_3, .sm #topnav_4, .sm #topnav_5, .sm #topnav_6, .sm #topnav_7, .sm #topnav_8{
	width: 100%; 
	float:left;
	text-align:center;
    }
    /* The following will make the sub menus collapsible for small screen devices (it's not recommended editing these) */
    ul.sm{width:auto !important;}
    ul.sm ul{display:none;position:static !important;top:auto !important;left:auto !important;margin-left:0 !important;margin-top:0 !important;width:auto !important;min-width:0 !important;max-width:none !important;}
    ul.sm>li{float:none;}
    ul.sm>li>a,ul.sm ul.sm-nowrap>li>a{white-space:normal;}
    ul.sm iframe{display:none;}



/* Menu box
===================*/

    .sm {
        background:transparent;
        -moz-box-shadow:0 1px 4px rgba(0,0,0,0.3);
        -webkit-box-shadow:0 1px 4px rgba(0,0,0,0.3);
        box-shadow:0 1px 4px rgba(0,0,0,0.3);
    }
    .sm ul {
        border:0;
        padding:0;
        background:#fff;
        -moz-box-shadow:none;
        -webkit-box-shadow:none;
        box-shadow:none;
    }
    .sm ul ul {
        /* darken the background of the 2+ level sub menus and remove border rounding */
        background:rgba(100,100,100,0.1);
    }


/* Menu items
===================*/

    .sm a {
        padding:6px 5px 6px 28px !important; /* add some additional left padding to make room for the sub indicator */
  
        color:#016c7c !important;
        text-align: left !important;
        padding-left: 30px !important;
	font-size: 14px;
    }
    .sm ul a {
        background:transparent !important;
        color:#247eab !important;
        text-shadow:none !important;
	font-size: 14px;
    }
    .sm a.current {

        color:#016c7c !important;
    }
    /* add some text indentation for the 2+ level sub menu items */
    .sm ul a {
        border-left:8px solid transparent;
    }
    .sm ul ul a {
        border-left:16px solid transparent;
    }
    .sm ul ul ul a {
        border-left:24px solid transparent;
    }
    .sm ul ul ul ul a {
        border-left:32px solid transparent;
    }
    .sm ul ul ul ul ul a {
        border-left:40px solid transparent;
    }
    /* round the corners of the first and last items */
    .sm > li:first-child > a {

    }
  


/* Sub menu indicators
===================*/

    .sm a span.sub-arrow,
    .sm ul a span.sub-arrow {
        top:50%;
        margin-top:-9px;
        right:auto;
        left:6px;
        margin-left:0;
        width:17px;
        height:17px;
        font:bold 16px/16px monospace !important;
        text-align: left;
        border:0;
        text-shadow:none;
        background:rgba(0,0,0,0.0);
 
    }
    /* Hide sub indicator "+" when item is expanded - we enable the item link when it's expanded */
    .sm a.highlighted span.sub-arrow {
        display:none !important;
    }


/* Items separators
===================*/

    .sm li {
        border-left:0;
    }
    .sm ul li {
        border-top:1px solid rgba(0,0,0,0.05);
    }
    .sm ul li:first-child {
        border-top:0;
    }

}