/*http://css-snippets.com/drop-down-navigation/*/

body {
  font-family: 'Oswald', sans-serif;
  color: #282828;
  margin: 0;
  padding: 0;
  background: #fff;
}

/* header */
h1, h2, h3 {
  color: #005f5f
}

/* table container */
th.default, td.default {
  border-color: #282828;
  border-style: solid;
  border-width: 2px;
}

table.default {
  border-color: #282828;
  border-style: solid;
  border-width: 2px;
  border-collapse: collapse;
}

table.code {
  border-width: 0px;
  border-collapse: collapse;
}

/* Table header: colour scheme inverted */
th {
  text-align: center;
  background-color: #005f5f;
  color: #ffffff;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 1.1em;
}
/* end */

/* links */
a:link {
  color: #005f5f;
  text-decoration: none;
}

a:hover {
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
  background: #005f5f;
  border-color: transparent;
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

.nav ul {
  list-style: none;
  background-color: #444;
  text-align: center;
  padding: 0;
  margin: 0;
}

.nav li {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2em;
  line-height: 40px;
  text-align: left;
}

.nav a {
  text-decoration: none;
  color: #fff;
  display: block;
  padding-left: 15px;
  border-bottom: 1px solid #888;
  transition: .3s background-color;
}

.nav a:hover {
  background-color: #005f5f;
}

.nav a.active {
  background-color: #aaa;
  color: #444;
  cursor: default;
}

/* Sub Menus */
.nav li li {
  font-size: .8em;
}

/*******************************************
   Style menu for larger screens

   Using 650px (130px each * 5 items), but ems
   or other values could be used depending on other factors
********************************************/



@media screen and (min-width: 650px) {
  body {
    margin:20px;
    padding:20px;
  }

  .nav li {
    width: 130px;
    border-bottom: none;
    height: 50px;
    line-height: 50px;
    font-size: 1.4em;
    display: inline-block;
    margin-right: -4px;
  }

  .nav a {
    border-bottom: none;
  }

  .nav > ul > li {
    text-align: center;
  }

  .nav > ul > li > a {
    padding-left: 0;
  }

  /* Sub Menus */
  .nav li ul {
    position: absolute;
    display: none;
    width: inherit;
  }

  .nav li:hover ul {
    display: block;
  }

  .nav li ul li {
    display: block;
  }
}
