/*
 * Project: HTML5 Kid Games
 * File name: menu.html
 * Version: 0.1.0
 * Description:
 * Copyright (c) 2010 Michael Calabrese, Dunamis Design
 *
 * @author Michael Calabrese, Dunamis Design http://www.dunamisdesign.com Copyright (c) 2010
 * @see The GNU Public License (GPL)
 *
 * Released under the GNU General Public License version 3
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 3.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
 * for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */

menu {
    margin: 0;
    padding: 7px 6px 0;
/*     height:50px; */
    background: #7d7d7d url(img/gradient.png) repeat-x 0 -110px;
/*     background-image: -webkit-gradient(linear, 0% 0%, 0% 90%, from(rgba(128, 128, 128, 0.8)), to(rgba(255, 255, 255, .9))); */

    line-height: 100%;

    border-radius: 2em;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;

    -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .4);
    -moz-box-shadow: 0 1px 3px rgba(0,0,0, .4);
}
menu li {
    margin: 0 5px;
    padding: 0 0 8px;
    float: left;
    position: relative;
    list-style: none;
}
/* main level link */
menu a {
/*     background: #7d7d7d; */
    font-weight: bold;
    color: #e7e5e5;
    text-decoration: none;
    display: block;
    padding:  8px 20px;
    margin: 0;

    -webkit-border-radius: 1.6em;
    -moz-border-radius: 1.6em;

    text-shadow: 0 1px 1px rgba(0,0,0, .3);
}
menu a:hover {
    background: #000;
    color: #fff;
}

/* main level link hover */
menu .current a, #nav li:hover > a {
    background: #666 url(img/gradient.png) repeat-x 0 -40px;
/*     color: #444; */
    font-weight: bold;
    color: #e7e5e5;
    border-top: solid 1px #f8f8f8;

    -webkit-box-shadow: 0 1px 1px rgba(0,0,0, .2);
    -moz-box-shadow: 0 1px 1px rgba(0,0,0, .2);
    box-shadow: 0 1px 1px rgba(0,0,0, .2);

    text-shadow: 0 1px 0 rgba(255,255,255, 1);
}

/* sub levels link hover */
menu ul li:hover a, #nav li:hover li a {
    background: none;
    border: none;
/*     color: #444; */
    font-weight: bold;
    color: #e7e5e5;

    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}
menu ul a:hover {
    background: #7d7d7d url(img/gradient.png) repeat-x 0 -100px !important;
    color: #fff !important;
    font-weight:bold;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;

    text-shadow: 0 1px 1px rgba(0,0,0, .1);
}

/* dropdown */
menu li:hover > ul {
    display: block;
}

/* level 2 list */
menu ul {
    display: none;

    margin: 0;
    padding: 0;
    width: 185px;
    position: absolute;
    top: 35px;
    left: 0;
    background: #444 url(img/gradient.png) repeat-x 0 0;
    border: solid 1px #b4b4b4;
    font-weight: bold;
    color: #e7e5e5;

    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;

    -webkit-box-shadow: 0 1px 3px rgba(0,0,0, .3);
    -moz-box-shadow: 0 1px 3px rgba(0,0,0, .3);
    box-shadow: 0 1px 3px rgba(0,0,0, .3);
    z-index:100;
}
menu ul li {
    float: none;
    margin: 0;
    padding: 0;
    font-weight:bold;
    font-weight: bold;
    color: #e7e5e5;
}

menu ul a {
    font-weight: normal;
    text-shadow: 0 1px 0 #fff;
    font-weight: bold;
    color: #e7e5e5;
}
/* level 3+ list */
menu ul ul {
    left: 181px;
    top: -3px;
    font-weight: bold;
    color: #e7e5e5;
}

/* rounded corners of first and last link */
menu ul li:first-child > a {
    -webkit-border-top-left-radius: 9px;
    -moz-border-radius-topleft: 9px;

    -webkit-border-top-right-radius: 9px;
    -moz-border-radius-topright: 9px;
}
menu ul li:last-child > a {
    -webkit-border-bottom-left-radius: 9px;
    -moz-border-radius-bottomleft: 9px;

    -webkit-border-bottom-right-radius: 9px;
    -moz-border-radius-bottomright: 9px;
}


/* clearfix */
menu:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}
menu {
    display: inline-block;
}

