/*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 * Arquivo: menu.css
 *
 * @author     Guilherme Rojas <guilhermehrojas@gmail.com>
 * @author     Leonidas O. Brandao <leo@ime.usp.br>
 * @author     Octavio Augusto Potalej <oapotalej@gmail.com>
 *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/

* {
  /* fundo do menu */
  --background-menu: #e0e0e0 url(../images/bg_menu.png) repeat-x;

  /* cor das ancoras do menu */
  --cor-ancoras-menu: #404040;
}

#menu {
  background: var(--background-menu);
  max-width: 1000px;
  width: 100%;
  margin: 0px auto;
  height: 40px;
  line-height: 40px;
  }

#menu-conteudo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  line-height: 1.5em;
}

ul.menu {
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: row;
  list-style: none;
  justify-content: space-between;
}

li.menu {
  padding: 0px 10px;
}

div.menu {
  line-height: 10px;
  text-align: center;
}

.menu a {
  color: var(--cor-ancoras-menu);
  text-decoration: none;
  line-height: 30px;
  margin-left: 4px;
}
#menu a:hover {
  background: #e0e0e0;
}

/* Itens: Inicio | Cursos */
/* Itens: Inscrever-se | Login */
div.submenu {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* Solicitacoes */
a.solicitacao {
  color: #BB2A00;
  font-weight: bold;
  border: 0;
}
a.solicitacao:hover {
  background-color: #BB2A00;
  color: #faebcc;
  text-decoration: none;
} 

/* SUB-MENUS */
li.menu {
  position: relative;
}
li.menu ul { /* ul nivel 2 */
  position: absolute;
  top: 2em;
  width: 100%;
  height: 100%;
  display: none; /* para so mostrar quando passar mouse sobre */
}

li.menu:hover ul { /* ul nivel 2 */
  display: flex;
  flex-direction: column;
}

li.menu ul li {  /* ul nivel 2: posiciona o sub-menu sob o primeiro */
  background: #e0e0e0 url(../images/bg_menu.png) repeat-x;
  display: inline-block; /* display: block;*/
  text-align: left;
  width: inherit; /* usar mesmo tamanho do pai */
  position: relative;
  left: -40px; /* posicione 1 bloco a menos */
  top: 0px;
}
