nav{
    display: block;
    text-align: center;
}

/* El logo sera flotado a la izquierda */
#logo22{
    background: url(logo.png) no-repeat 0 0;
    display: block;
    float: left;
    margin: 6px 10px 0;
    width: 82px;
    height: 46px;
    text-indent: -9999px
}

/* Nuestro nav con id #menu lo flotaremos a la derecha*/
#navmenu{
    margin:0 auto;
    margin-top:0px;
    margin-bottom:0px;
    margin-right:20px;
    font-size:16px;
    overflow:hidden;
}



    /* Quitamos estilos por defecto de el tag UL */
    #navmenu ul{
        list-style: none;
        font-size: 14px;
    }
        
        /* Centramos y ponemos los textos en mayuscula */
        #navmenu li{
           display: inline-block;
           /*float: left;*/
           text-transform: uppercase;
           text-align: center;
           font-size: 18px;
           border: 1px solid silver;
           background: #22282e;
           margin-top: 3px;
           margin-left: -4px;
           width: 232px;
        }
            
            /* Damos estilo a nuestros enlaces */
            #navmenu li a{
                display: block;
                color: #fff;
                text-decoration: none;

                height: 40px;
                line-height: 40px;
                padding: 0 26px;
            }
            #navmenu li a:hover{
                background: #151a1e;
                color: #ffc700;
            }
    
    /* Estilos #nav-mobile y lo ocultamos */
    #nav-mobile{
        display: none; 
        background: url(../img/nav.png) no-repeat center center;
        background-position: right;
        margin-right: 10px;
        height: 36px;
        opacity: .7;
        color:white;
        padding-top: 16px;
        padding-left: 15px;
        text-align: left;
        text-decoration: none;
    }   
        /* Agregaremos esta clase a #nav-mobile, cuando el menu mobile haya sido desplegado */
        #nav-mobile.nav-active{
            opacity: 1;
        }

/*
    MEDIA QUERY
*/

@media only screen and (max-width: 767px) {
        
    h2{font-size: 40px;}
    
    /* mostramos #nav-mobile */
    #nav-mobile{display:block;}

    /* Fijamos nuestro nav en 100% ancho y dejamos de flotarlo  */
    #navmenu{
        width: 100%;
        display: block;
        float: none;
        background: #22282e;
    }

        /* Convertimos nuestra lista de enlaces en un menú horizontal */
        #navmenu ul{
            -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.5);
            -moz-box-shadow: 0 1px 2px rgba(0,0,0,.5);
            box-shadow: 0 1px 2px rgba(0,0,0,.5);
            max-height: 0;
            overflow: hidden;
        }
            /* estilos para los LI del menu */
            #navmenu li{
                display:block;
                background: #33363b;
                border-bottom: 1px solid #282b30;
                float: none;
                margin-top: 0px;
                width:auto;
            }

            /* Quitamos el borde del ultimo item del menú */
            #navmenu li:last-child{ border-bottom: 0;}
                #navmenu li a{
                    padding: 12px 0;
                    height: 18px;
                    line-height: normal;
                }
                #navmenu li a:hover{background:#2a2d33}

        /* Agregamos una animación al despligue del menú */
        #navmenu ul.open-menu{
            max-height: 400px;
            -webkit-transition: max-height .4s;
            -moz-transition: max-height .4s;
            -ms-transition: max-height .4s;
            -o-transition: max-height .4s;
            transition: max-height .4s;
        }
}




