#nav, #nav ul, #teema, #teema ul {
  margin-top: 0;
  margin: auto;
  padding: 0;
  list-style-type: none;
  list-style-position: outside;
  position: relative;
  line-height: 1.5em;
  text-align: left;
}

#nav, #nav ul { text-align: left; }
#nav a, #teema a { display: block; text-decoration: none; outline: 0; }
#nav a { padding: 0px 6px; }
#nav a:hover, #teema a:hover { color: #ffffff; text-shadow: 0px 0px 5px #ffffff; }
#nav a:focus, #nav a:active, #teema a:focus, #teema a:active { outline: 0; }

#nav li { float: left; position: relative; }
#teema li { float: right; position: relative; }

#nav ul, #teema ul {
  position: absolute;
  display: none;
  top: 1.6em;
  font-size: 14px;
}

#nav ul {
  width: 13em;
  border-width: 0;
  border-bottom-width: 1px;
  border-style: solid;
}

#teema ul {
  width: 40px;
  padding-top: 5px;
  padding-right: 20px;
  border-width: 1px;
  border-style: solid;
}

#nav li ul a {
  width: 12em;
  height: auto;
  float: left;
  background-color: transparent;
  border-width: 1px;
  border-bottom: 0px;
  border-style: solid;
  padding-top: 3px;
  padding-bottom: 3px;
}

#nav ul ul {
  top: auto;
}

#nav li ul ul {
  left: 12.95em;
}

#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li:hover ul ul ul ul, #teema li:hover ul ul { display: none; }
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li li li li:hover ul, #teema li:hover ul { display: block; }

.hover {
  display: block;
  padding: 0px 6px;
  text-decoration: none;
  cursor: default;
}

.hover:hover {
  display: block;
  padding: 0px 6px;
  color: #ffffff;
  text-decoration: none;
  cursor: default;
  text-shadow: 0px 0px 5px #ffffff;
}

a.norm {
  cursor: default;
}

#nav ul.scroll {
  height: 1500%;
  overflow: scroll;
  overflow-x: hidden;
  padding-right: 15px;
}
