#cssmenu ul,
#cssmenu li,
#cssmenu span,
#cssmenu a {
  margin: 0;
  padding: 0;
  position: relative;
}
#cssmenu {
  line-height: 0.1;
  border-radius: 0px 0px 0 0;
  -moz-border-radius: 0px 0px 0 0;
  -webkit-border-radius: 0px 0px 0 0;
  background: #20527D;
  background: -moz-linear-gradient(top, #20527D 0%, #20527D 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #20527D), color-stop(100%, #20527D));
  background: -webkit-linear-gradient(top, #20527D 0%, #20527D 100%);
  background: -o-linear-gradient(top, #20527D 0%, #20527D 100%);
  background: -ms-linear-gradient(top, #20527D 0%, #20527D 100%);
  background: linear-gradient(to bottom, #20527D 0%, #20527D 100%);
  border-bottom: 1px solid #0fa1e0;
  width: auto;
  height: 20px;
}
#cssmenu:after,
#cssmenu ul:after {
  content: '';
  display: block;
  clear: both;
}
#cssmenu a {
  background: #20527D;
  background: -moz-linear-gradient(top, #20527D 0%, #20527D 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #20527D), color-stop(100%, #20527D));
  background: -webkit-linear-gradient(top, #20527D 0%, #20527D 100%);
  background: -o-linear-gradient(top, #20527D 0%, #20527D 100%);
  background: -ms-linear-gradient(top, #20527D 0%, #20527D 100%);
  background: linear-gradient(to bottom, #20527D 0%, #20527D 100%);
  color: #000000;
  display: block;
  font-family: Helvetica, Arial, Verdana, sans-serif;
  padding: 2px 2px;
  text-decoration: none;
}
#cssmenu ul {
  list-style: none;
}
#cssmenu > ul > li {
  display: inline-block;
  float: left;
  margin: 0;
}
#cssmenu.align-center {
  text-align: center;
}
#cssmenu.align-center > ul > li {
  float: none;
}
#cssmenu.align-center ul ul {
  text-align: left;
}
#cssmenu.align-right > ul {
  float: right;
}
#cssmenu.align-right ul ul {
  text-align: right;
}
#cssmenu > ul > li > a {
  color: #ffffff;
  font-size: 8px; /* marimea fontului */
}
#cssmenu > ul > li:hover:after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  left: 50%;
  bottom: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #0fa1e0;
  margin-left: -10px;
}
#cssmenu > ul > li:first-child > a {
  border-radius: 2px 0 0 0;
  -moz-border-radius: 5px 0 0 0;
  -webkit-border-radius: 5px 0 0 0;
}
#cssmenu.align-right > ul > li:first-child > a,
#cssmenu.align-center > ul > li:first-child > a {
  border-radius: 0;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
}
#cssmenu.align-right > ul > li:last-child > a {
  border-radius: 0 5px 0 0;
  -moz-border-radius: 0 5px 0 0;
  -webkit-border-radius: 0 5px 0 0;
}
#cssmenu > ul > li.active > a,
#cssmenu > ul > li:hover > a {
  color: #66FFFF; /* culoarea pe hover */

  background: #20527D;
  background: -moz-linear-gradient(top, #20527D 0%, #20527D 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #20527D), color-stop(100%, #20527D));
  background: -webkit-linear-gradient(top, #20527D 0%, #20527D 100%);
  background: -o-linear-gradient(top, #20527D 0%, #20527D 100%);
  background: -ms-linear-gradient(top, #20527D 0%, #20527D 100%);
  background: linear-gradient(to bottom, #20527D 0%, #20527D 100%);
  color: #5B7E9E;
}
#cssmenu .has-sub {
  z-index: 1111;
}
#cssmenu .has-sub:hover > ul {
  display: block;
}
#cssmenu .has-sub ul {
  display: none;
  position: absolute;
  width: 200px;
  top: 100%;
  left: 0;
  border: 1px  solid #66CCCC; /* primul li */
}
#cssmenu.align-right .has-sub ul {
  left: auto;
  right: 0;
}
#cssmenu .has-sub ul li {
  *margin-bottom: -1px;
}
#cssmenu .has-sub ul li a {
  background: #ffffff;
  /* border-bottom: 1px dotted #31b7f1; */
  font-size: 8px;
  filter: none;
  display: block;
  line-height: 120%;
  padding: 5px;
  color: #000000;
}
#cssmenu .has-sub ul li:hover a {
  background: #428BCA;
}
#cssmenu ul ul li:hover > a {
  color: #000000;
}
#cssmenu .has-sub .has-sub:hover > ul {
  display: block;
}
#cssmenu .has-sub .has-sub ul {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  font-size: 12px;
  border: 0px  solid #66CCCC;
}
#cssmenu.align-right .has-sub .has-sub ul,
#cssmenu.align-right ul ul ul {
  left: auto;
  right: 100%;
}
#cssmenu .has-sub .has-sub ul li a {
  background: #ffffff; /* setare culoare al doilea li */
  /*border-bottom: 1px dotted #31b7f1; */ /* border de jos pixelat */
 /* border: 1px  solid #000000;*/
}
#cssmenu .has-sub .has-sub ul li a:hover {
  background: #428BCA;
}
#cssmenu ul ul li.last > a,
#cssmenu ul ul li:last-child > a,
#cssmenu ul ul ul li.last > a,
#cssmenu ul ul ul li:last-child > a,
#cssmenu .has-sub ul li:last-child > a,
#cssmenu .has-sub ul li.last > a {
  border-bottom: 0;
}
