/*estrutura padrão*/

html{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  height: auto;
  background-color: rgb(21, 22, 22);
}

body {
  margin: 0%;
  overflow-x: hidden;
}

header {
  top: 0%;
  width: 100%;
}

/*  NAV   */

nav {
  background: rgb(43, 40, 40);
  display: flex;
  margin-bottom: -8px;
  font-size: 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border-bottom: rgb(21, 22, 22) 5px solid;
}

nav :is(ul, li) {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-block;
  border-radius: 15px;
}

nav ul li {
  padding: .5em;
  transition: .3s;
  vertical-align: middle;
}

nav ul li:hover:not(.titulo) {
  background-color: rgba(126, 209, 205, 0.377);
}

nav a {
  color: white;
  text-decoration: none;
}

nav a:active {
  color: orange;
}
  
nav > ul > li {
  position: relative;
}

nav ul li:has(ul)::after {
  content: ">";
  color: white;
}

nav > ul > li > ul {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(19, 49, 133, 0.74);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

nav > ul > li:hover > ul {
  opacity: 1;
  visibility: visible;
}

nav > ul > li > ul > li {
  display: block;
}

/* Media query para telas menores */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0.5rem;
  }

  nav ul li {
    padding: 0.3em;
    font-size: 1.2rem;
  }

  nav ul li:hover {
    background-color: rgba(255, 255, 255, 0.384);
  }

  nav ul li:has(ul)::after {
    content: "";
  }

  nav > ul > li:hover > ul {
    opacity: 1;
    visibility: visible;
    background-color: rgba(6, 2, 54, 0.753);
  }
}


.titulo { 
  height: 4rem;
  width: 14rem;
  background-size: cover;
  background-position: center;
  background-image: url('assests/logo\ colorida.png');
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat; 
}
