* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}
body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  background-color: #f5f5f5;
}


/* Cabeçalho */
.site-header {
position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #005bbb;
  z-index: 1000; 
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  justify-content: space-between;
}

/* Logo */
.logo img {
  height: 60px;
  margin-right: 35px;
}




/* Navegação principal */
.main-nav ul {
  display: flex;
  flex-wrap: wrap;        /* permite várias linhas */
  gap: 16px;              /* espaçamento entre itens */
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-nav .dropdown {
  position: relative;
}

/* o submenu, escondido por padrão */
.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;       /* logo abaixo do pai */
  left: 0;
  background: #4d87bd;
  padding: 8px 0;
  border-radius: 4px;
  min-width: 200px;
  flex-direction: column;
  gap: 0;
  z-index: 100;
}

/* cada item do submenu */
.main-nav .dropdown-menu li {
  padding: 0;
}
.main-nav .dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: #fff;
  white-space: nowrap;
}
.main-nav .dropdown-menu a:hover {
  background: #4d87bd;
}

/* abre no hover (desktop) */
.main-nav .dropdown:hover > .dropdown-menu{
  display: flex;
}


/* abre também quando a li ganhar a classe .open (via click) */
.main-nav .dropdown.open > .dropdown-menu {
  display: flex !important;
}


.main-nav li + li {
  margin-left: 24px;
}

.main-nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  padding: 8px 0;
  transition: color 0.2s;
   margin: 0;  
}

.main-nav a:hover {
  color: #ffd500;
}



.features {
  padding: 40px 20px;
  background: #ffffff;
}
.features .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.features h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #005bbb;
}
.features .intro {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #555;
}
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  position: relative;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.card .label {
  position: absolute;
  top: 0;
  left: 0;
  background: #005bbb;
  color: #fff;
  font-weight: bold;
  padding: 6px 12px;
  border-bottom-right-radius: 8px;
}
.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.card p {
  padding: 16px;
  font-size: 0.95rem;
  color: #333;
  flex-grow: 1;
}



@media (max-width: 480px) {
     .main-nav {
     overflow: visible;
  }
  .main-nav a {
    font-size: 0.875rem;  /* 14px */
  }
  .main-nav ul {
    gap: 8px;             /* espaçamento menor */
  }

 .main-nav .dropdown-menu {
    position: static;      /* sai do absolute */
    display: none;         /* oculto até o click */
    width: 100%;           /* ocupa largura total */
    box-shadow: none;      /* pode remover sombra se quiser */
  }

  /* quando abrir, empurra o conteúdo */
  .main-nav .dropdown.open > .dropdown-menu {
    display: block;
  }

  /* itens do submenu ficam empilhados */
  .main-nav .dropdown-menu li {
    border-top: 1px solid rgba(255,255,255,0.2);
  }
  .main-nav .dropdown-menu li:first-child {
    border-top: none;
  }
  .main-nav .dropdown-menu a {
    padding: 12px 16px;
  }

}



@media (max-width: 361px) {
  /* 1) Reduza o padding geral do header */
  .site-header {
    padding: 4px 0 !important;
  }

  /* 2) Ajuste o container interno */
  .header-container {
    padding: 0 10px !important;
  }

  /* 3) Deixe o logo menor */
  .logo img {
    height: 32px !important;
  }

  /* 4) Links bem apertadinhos */
  .main-nav a {
    font-size: 0.75rem !important;
    padding: 4px 6px !important;
  }

  /* 5) Reduza o gap entre itens */
  .main-nav ul {
    gap: 4px !important;
  }

  /* 6) Se ainda houver overflow vertical, force overflow visível */
  .main-nav,
  .site-header {
    overflow: visible !important;
  }
}

.container {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  margin-top: 70px;
}
h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}
form {
  display: flex;
  flex-direction: column;
}
#megaForm label:nth-of-type(1) {
  margin-bottom: 0.5rem;
  color: #555;
  font-size: 0.9rem;
}
#megaForm label:nth-of-type(2) {
  margin-bottom: 0.5rem;
  color: #555;
  font-size: 0.9rem;
}



input[type="text"] {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
button {
  padding: 0.75rem;
  background-color: #3206aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}
button:hover {
  background-color: #10174e;
}
#resultado {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
  color: #333;
}
.numeros-gerados{
    color: #162e9c !important;
    padding-top: 15px;
    font-size: 20px;
    font-weight: bold;
}
.numero {
  display: inline-block;
  margin: 0.25rem;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  border-radius: 50%;
  background: #eee;
}


/* Estilização do label e select de quantidade */
label[for="quantidade"] {
  margin-bottom: 0.5rem;
  color: #555;
  font-size: 0.9rem;
  display: block;
  text-align: center;
  padding-top: 15px;
  padding-bottom: 5px;
}

#quantidade {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  /* Remove estilo nativo do select no Chrome/Safari */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* ícone seta customizado via CSS */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'10'%20height%3D'6'%20viewBox%3D'0%200%2010%206'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M0%200l5%206%205%200'%20fill%3D'%23333'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 6px;
  cursor: pointer;
}

#quantidade:focus {
  outline: none;
  border-color: #5ed4f1;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}

/* mensagem de erro */
.error-message {
  color: #d32f2f;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  min-height: 1.2em; /* reserva espaço mesmo sem texto */
}


#quantidade {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  /* Remove estilo nativo do select no Chrome/Safari */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* ícone seta customizado via CSS */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'10'%20height%3D'6'%20viewBox%3D'0%200%2010%206'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M0%200l5%206%205%200'%20fill%3D'%23333'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 6px;
  cursor: pointer;
}

#quantidade:focus {
  outline: none;
  border-color: #ff1010;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}


#resultado p {
  margin: 0;             /* reseta margens */
}

#resultado p:first-child {
  margin-bottom: 0.5rem; /* separa o título dos números */
  color: #333;           /* cor padrão, se quiser */
}

#resultado p.gerados {
  color: #4428a7;        /* verde igual ao botão */
  font-weight: bold;     /* opcional, deixa mais destacado */
  letter-spacing: 0.1rem;/* opcional, dá um espaçamento extra */
}


.generator-overview {
  background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 800px;
  margin: 2rem auto;
  box-shadow: 0 8px 16px rgba(0, 123, 255, 0.1);
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #333;
}

.generator-overview h2 {
  font-size: 2.25rem;
  color: #006bb3;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.generator-overview p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.generator-overview ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.generator-overview li {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.generator-overview li:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.15);
}

.generator-overview li strong {
  display: block;
  font-size: 1.1rem;
  color: #006bb3;
  margin-bottom: 0.5rem;
}

.generator-overview .cta {
  text-align: center;
  margin-top: 2rem;
}

.generator-overview .cta a {
  display: inline-block;
  background: #006bb3;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.generator-overview .cta a:hover {
  background: #00508a;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .generator-overview {
    padding: 1.5rem;
  }
  .generator-overview h2 {
    font-size: 1.75rem;
  }
  .generator-overview ul {
    grid-template-columns: 1fr;
  }
}
