/* ------------------------------------------
  NECESSARY STYLES FOR RESPONSIVE NAV
--------------------------------------------- */

@media screen and (max-width: 920px) {
    .nav-collapse ul {
        margin: 0;
        padding: 0;
        width: 100%;
        display: block;
        list-style: none;
    }

    .nav-collapse li {
        width: 100%;
        display: block;
    }

    .js .nav-collapse {
        clip: rect(0 0 0 0);
        max-height: 0;
        position: absolute;
        display: block;
        overflow: hidden;
        zoom: 1;
    }

    .nav-collapse.opened {
        max-height: 9999px;
    }

    #top_bar, #top_bar > div:first-child {
        line-height: initial;
    }
    #mobile_logo {
        display: inline-block !important;
    }
    #top_right {
        display:none;
    }
    #second_level_outer {
        line-height: initial;
    }
    #second_level > table:first-child {
        position: absolute;
    }
    #nav_td1 {
        display: none;
    }
    #nav_td2 {
        display: table;
        width: 100%;
        text-align: left !important;
    }
        #nav_td2 span {
            display: none !important;
        }
    #nav_box {
        display: initial !important;
        padding-top: 0px !important;
    }
    #nav {
        margin-top: 0px !important;
    }
    #top_nav > li > a {
        color: #ffffff !important;
        padding-left: 10px !important;
    }
        #top_nav > li > a:hover, #top_nav > li.active > a {
            text-decoration: none !important;
            color: #ffffff !important;
            border-bottom: 1px solid white !important;
            padding-bottom: 5px !important;
            background-color: rgba(69,69,69,0.9);
        }
}

@media screen and (min-width: 920px) {
  .js .nav-collapse {
    position: relative;
    max-height: none;
  }
  #nav-toggle {
    display: none;
  }
}


/* ------------------------------------------
  DEMO PAGE'S STYLES
--------------------------------------------- */

@media screen and (max-width: 920px) {
    body, div,
    h1, h2, h3, h4, h5, h6,
    p, blockquote, pre, dl, dt, dd, ol, ul, li, hr,
    fieldset, form, label, legend, th, td,
    article, aside, figure, footer, header, hgroup, menu, nav, section,
    summary, hgroup {
        margin: 0;
        padding: 0;
        border: 0;
    }

    a:active,
    a:hover {
        outline: 0;
    }

    @-webkit-viewport { width: device-width; }
    @-moz-viewport { width: device-width; }
    @-ms-viewport { width: device-width; }
    @-o-viewport { width: device-width; }
    @viewport { width: device-width; }

    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .nav-collapse,
    .nav-collapse * {
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }

    .nav-collapse,
    .nav-collapse ul {
        list-style: none;
        width: 100%;
        float: left;
    }

    .nav-collapse li {
        float: left;
        width: 100%;
        background-color: rgba(0,0,0,0.9);
        display: block !important;
    }
}

@media screen and (max-width: 920px) {
    .nav-collapse a {
        color: #fff;
        text-decoration: none;
        width: 100%;
        border-bottom: 1px solid white;
        text-align: center;
    }
}

@media screen and (max-width: 920px) {
    .nav-collapse ul ul a {
        background: #646464;
        padding-left: 2em;
    }
}

@media screen and (max-width: 920px) {
    #nav-toggle {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        border: 0;
        cursor: pointer;
        width: 59px;
        height: 59px;
        float: right;
        text-indent: -9999px;
        overflow: hidden;
        background: transparent url("hamburger.gif") no-repeat 50% 50%;
        outline: none;
    }
}

@media screen and (-webkit-min-device-pixel-ratio: 1.3), screen and (min--moz-device-pixel-ratio: 1.3), screen and (-o-min-device-pixel-ratio: 2 / 1), screen and (min-device-pixel-ratio: 1.3), screen and (min-resolution: 192dpi), screen and (min-resolution: 2dppx) {
  #nav-toggle {
    background-image: url("hamburger-retina.gif");
    -webkit-background-size: 100px 100px;
    -moz-background-size: 100px 100px;
    -o-background-size: 100px 100px;
    background-size: 100px 100px;
  }
}
