﻿html, body, div, section, article, aside, header, hgroup, nav, h1, h2, h3, h4, h5, h6, p, blockquote, address, time, span, em, img, li, figure, canvas, video, th, td, tr {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    font: inherit;
}

body {
    padding: 0;
    margin: 0;
    background: url(../images/bg-image.jpg) repeat top left;
    font-family: Verdana,Tahoma,Arial,'Segoe UI';
    font-size: 13px;
    color: #333;
}

#nav {
    background-color: #ffd646;
    box-shadow: 0 0 2px #999;
    float: left;
    font-size: 88%;
    height: 50px;
    padding: 10px 0 10px 0;
    width: 100%;
    margin: 7px 0 7px 0;
    text-align: center;
}

    #nav ul {
        float: left;
        list-style-type: none;
        margin: 0;
        padding-left: 3.5%;
        display: inline;
    }

        #nav ul li {
            color: #666;
            list-style-type: none;
            width: 100%;
            float: left;
            padding: 5px 5px;
            display: inline;
            -webkit-transition-property: background-color;
            transition-property: background-color;
            -webkit-transition-duration: .5s;
            transition-duration: .5s;
        }

            #nav ul li:hover {
                background-color: #e67813;
                color: #fff;
            }

            #nav ul li a {
                color: #666;
                text-decoration: none;
            }

                #nav ul li a:hover {
                    color: #fff;
                }

#mainNav h2, #mainNav #menuToggle {
    display: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mainNav {
    margin-bottom: .5em;
    width: 100%;
}

    #mainNav li {
        float: left;
    }

    #mainNav a, #mainNav h3 {
        display: block;
        color: #4c4341;
        border: 0;
    }

        #mainNav a:hover {
            color: #7b798f;
        }

        #mainNav a.current {
            color: #7b798f;
            cursor: default;
        }

@media only screen and (max-width:800px) {
    html, body, div, section, article, aside, header, hgroup, nav, h1, h2, h3, h4, h5, h6, p, blockquote, address, time, span, em, strong, img, ol, ul, li, figure, canvas, video, th, td, tr {
        -webkit-text-size-adjust: none;
    }

    #mainNav {
        width: auto;
        margin: 0;
        margin-bottom: 1em;
        float: left;
        width: 100%;
    }

        #mainNav li {
            margin: 0;
            float: none;
            position: relative;
            width: 100%;
            background-color: #f2f2f2;
        }

    .topMenu {
        max-height: 0;
        visibility: hidden;
    }

        .topMenu.expand {
            max-height: 900em;
            visibility: visible;
        }

    #mainNav a, #mainNav h3 {
        text-align: left;
        color: #000;
        display: block;
        margin-bottom: 1px;
        background-color: #ffd646;
        padding-left: 1em;
        line-height: 2em;
        cursor: pointer;
    }

    #mainNav span.indicator {
        position: absolute;
        right: 1em;
    }

    #mainNav ul.submenu {
        float: none;
        width: 100%!important;
        height: auto;
        max-height: 0;
        -moz-transition: max-height .5s ease;
        -webkit-transition: max-height .5s ease;
        -o-transition: max-height .5s ease;
        transition: max-height .5s ease;
        overflow: hidden;
        left: -130px;
    }

        #mainNav ul.submenu.expand {
            max-height: 200em;
        }

        #mainNav ul.submenu li a {
            padding: .2em 1em;
            white-space: nowrap;
            color: #000;
            text-align: left;
            font-size: 1em;
            padding-left: 20px;
            background-color: #f2f2f2;
        }

    #mainNav .menuToggle {
        display: block;
        background: #4c4341;
        width: 8em;
        margin-bottom: .2em;
        position: relative;
    }

    .menuToggle a {
        text-align: center;
        padding: 0;
    }

    #mainNav ul.submenu2 {
        width: auto!important;
    }

        #mainNav ul.submenu2 li a {
            border-bottom: 1px dotted #ccc;
            white-space: nowrap;
            text-align: left;
        }

        #mainNav ul.submenu2 li:first-child {
            background-color: #f2f2f2;
            font-size: 100%;
            font-weight: bold;
            padding: 3% 0 3% 7%;
            text-align: left;
            white-space: nowrap;
            width: 93%;
            color: #000;
        }

        #mainNav ul.submenu2 li:last-child a {
            border-bottom: 0;
            padding-bottom: 20px;
        }

    .navMore {
        margin: 0!important;
        padding: 0!important;
    }
}

@media only screen and (min-width:800px) {
    #menuContainer {
        position: relative;
        width: 100%;
        float: left;
        margin-bottom: 4em;
    }

    #mainNav {
        float: left;
        box-shadow: 0 0 2px #999;
        background-color: #ffd646;
        position: absolute;
        z-index: 101;
    }

        #mainNav li {
            margin-right: .5px;
            position: relative;
            padding: .7em 0;
        }

        #mainNav a, #mainNav h3 {
            text-align: center;
            padding: 0 .6em;
        }

            #mainNav a:hover {
                color: #b61818;
                text-decoration: none;
            }

    .submenu {
        background-color: #fff;
        box-shadow: 0 1px 1px #959595;
        border-radius: 0 0 5px 5px;
    }

    #mainNav ul.submenu {
        float: none;
        width: auto;
        height: auto;
        position: absolute;
        top: 3.1em;
        max-height: 0;
        -moz-transition: max-height .5s ease;
        -webkit-transition: max-height .5s ease;
        -o-transition: max-height .5s ease;
        transition: max-height .5s ease;
        overflow: hidden;
        z-index: 1000;
        font-size: 85%;
        background-color: #f2f2f2;
    }

        #mainNav ul.submenu li {
            float: none;
            margin: 0;
            padding: 0;
        }

    #mainNav li:hover ul {
        left: 0;
        max-height: 100em;
    }

    #mainNav li:hover {
        background-color: #f2f2f2;
    }

    #mainNav ul.submenu2 li a {
        border-bottom: 1px dotted #ccc;
        padding: .5em 1em;
        white-space: nowrap;
        text-align: left;
    }

    #mainNav ul.submenu2 li:first-child {
        font-weight: bold;
        font-size: 120%;
        padding: 1.5em 0 .5em 1em;
        white-space: nowrap;
        text-align: left;
    }

    #mainNav ul.submenu2 li:last-child a {
        border-bottom: 0;
        padding-bottom: 20px;
    }

    .submenu ul {
        float: left;
    }

    .topMenu {
        margin: auto;
        width: 1000px;
    }

    .fadebg {
        display: none;
        opacity: .8;
        background-color: #000;
        position: absolute;
        z-index: 100;
        width: 100%;
        height: 768px;
    }
}

@media only screen and (max-width:1300px) {
    #nav ul {
        padding-left: 1.5%;
    }
}

@media only screen and (min-width:1500px) {
    #nav ul {
        padding-left: 4%;
    }
}
