/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Corpo e fontes */
body {
  font-family: Arial, sans-serif;
  background-color: #111;
  color: #eee;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container principal */
main {
  flex-grow: 1;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* Cabeçalho */
header {
  background-color: #222;
  padding: 20px 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

header h1 {
  color: #8a9900;
  margin-bottom: 15px;
  font-size: 28px;
  text-align: center;
}

/* Container com menu + busca */
.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Menu de navegação */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: #eee;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #8a9900;
}

/* Barra de busca */
.search-bar {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #ffffff, #ffffff);
  border-radius: 40px;
  padding: 5px 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.search-bar input {
  border: none;
  border-radius: 40px;
  padding: 10px 14px;
  font-size: 15px;
  outline: none;
  width: 160px;
  background: #fff;
  color: #333;
}

.search-bar button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 18px;
  color: #333;
}

.search-bar button:hover {
  color: #000;
}

/* Seções */
section {
  margin-bottom: 30px;
}

/* Títulos das seções */
h2 {
  color: #8a9900;
  margin-bottom: 10px;
}

/* Listas personalizadas */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  background-color: #1e1e1e;
  border-left: 5px solid #8a9900;
  margin: 8px 0;
  padding: 12px 15px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

ul li:hover {
  background-color: #2a2a2a;
}

/* Links dentro do conteúdo */
a {
  color: #8a9900;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Rodapé */
footer {
  background-color: #222;
  text-align: center;
  padding: 15px;
  font-size: 14px;
  color: #aaa;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  margin-top: auto;
}

/* Créditos na página inicial */
main section:last-child {
  text-align: center;
  color: #888;
  font-size: 0.9em;
  margin-top: 40px;
  font-style: italic;
}

/* Responsividade */
@media (max-width: 700px) {
  .header-top {
    flex-direction: column;
    align-items: center;
  }

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

  nav a {
    display: block;
    margin: 8px 0;
  }

  main {
    padding: 15px 10px;
  }
}
