/* Cabeçalho ocupando toda largura */
header {
  display: flex;
  align-items: center;
  background-color: #d2691e; /* terra cota */
  padding: 15px 20px;
  color: white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  width: 100vw;  /* largura total da viewport */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-sizing: border-box;
}

/* Imagem do cabeçalho - redonda e ao lado esquerdo */
header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 2px solid white;
}

/* Título do cabeçalho */
header h1 {
  font-size: 26px;
  font-weight: 700;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
}

/* Rodapé ocupando toda largura e pequeno */
footer {
  background-color: #d2691e;
  color: white;
  text-align: center;
  padding: 6px 10px;  /* menos altura */
  font-size: 13px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  width: 100vw; /* largura total */
  position: fixed;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  z-index: 1000;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.15);
}

body {
  padding-top: 90px; /* espaço para o header fixo */
  padding-bottom: 30px; /* espaço para o footer fixo */
}


/* Container dos botões da guia para alinhar horizontalmente */
#guia-menu {
  display: flex;
  justify-content: center; /* centraliza na horizontal */
  gap: 20px; /* espaçamento entre os botões */
  margin: 20px 0;
  flex-wrap: wrap; /* permite quebra em telas pequenas */
}

/* Estilo dos botões grandes da guia */
#guia-menu .botao-grande {
  background-color: #d2691e; /* terra cota */
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(210, 105, 30, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
  user-select: none;
}

/* Hover deixa mais claro e um leve efeito de "zoom" */
#guia-menu .botao-grande:hover {
  background-color: #e27b39; /* tom mais claro */
  box-shadow: 0 6px 12px rgba(226, 123, 57, 0.6);
  transform: scale(1.05);
}

/* Foco com outline para acessibilidade */
#guia-menu .botao-grande:focus {
  outline: 3px solid #f9d5b3; /* cor clara para foco */
  outline-offset: 2px;
}

/* Ativo - para indicar o botão selecionado */
#guia-menu .botao-grande.ativo {
  background-color: #b35d17; /* tom mais escuro terra cota */
  box-shadow: 0 4px 10px rgba(179, 93, 23, 0.8);
  cursor: default;
  transform: none;
}


nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 25px 0;
  flex-wrap: wrap;
}

/* Botões dentro do nav */
nav button {
  background-color: #a0522d; /* terra cota escuro */
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(160, 82, 45, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
  user-select: none;
}

nav button:hover {
  background-color: #b36b40; /* tom mais claro */
  box-shadow: 0 5px 10px rgba(179, 107, 64, 0.7);
  transform: scale(1.04);
}

nav button:focus {
  outline: 3px solid #f9d5b3;
  outline-offset: 2px;
}

nav button.ativo {
  background-color: #7a3f15; /* tom mais escuro */
  box-shadow: 0 3px 8px rgba(122, 63, 21, 0.8);
  cursor: default;
  transform: none;
}


/* Aplica a todos os conteúdos das abas */
#inicio, 
#edital, 
#guia-conteudo, 
#sobre, 
#textos-conteudo {
  background: #f9f4ef;
  border-radius: 15px;
  padding: 25px 30px;
  margin: 20px auto;
  max-width: 900px;
  box-shadow: 0 8px 15px rgba(160, 82, 45, 0.2);
  font-family: 'Georgia', serif;
  font-size: 18px;
  line-height: 1.6;
  color: #4b2e2e;
  transition: all 0.4s ease;
}

/* Títulos dentro do conteúdo */
#inicio h2, 
#edital h2, 
#guia-conteudo h2, 
#sobre h2, 
#textos-conteudo h2 {
  font-family: 'Palatino Linotype', 'Book Antiqua', serif;
  color: #7a3f15;
  margin-bottom: 18px;
  text-shadow: 1px 1px 2px #cda47e;
}

/* Parágrafos */
#inicio p, 
#edital p, 
#guia-conteudo p, 
#sobre p, 
#textos-conteudo p {
  margin-bottom: 15px;
}

/* Links estilizados */
#inicio a, 
#edital a, 
#guia-conteudo a, 
#sobre a, 
#textos-conteudo a {
  color: #a0522d;
  text-decoration: underline dotted;
  font-weight: 600;
  transition: color 0.3s ease;
}

#inicio a:hover, 
#edital a:hover, 
#guia-conteudo a:hover, 
#sobre a:hover, 
#textos-conteudo a:hover {
  color: #7a3f15;
  text-decoration-style: solid;
  cursor: pointer;
}

/* Listas */
#inicio ul, 
#edital ul, 
#guia-conteudo ul, 
#sobre ul, 
#textos-conteudo ul,
#inicio ol, 
#edital ol, 
#guia-conteudo ol, 
#sobre ol, 
#textos-conteudo ol {
  margin-left: 20px;
  margin-bottom: 15px;
  color: #5b3a29;
}

#inicio li, 
#edital li, 
#guia-conteudo li, 
#sobre li, 
#textos-conteudo li {
  margin-bottom: 8px;
}

/* Imagens dentro do conteúdo */
#inicio img, 
#edital img, 
#guia-conteudo img, 
#sobre img, 
#textos-conteudo img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(160, 82, 45, 0.3);
  margin: 15px 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.calculator {
  width: 280px;
  background: #f4f4f8;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
  margin: 20px auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top {
  display: flex;
  align-items: center;
  gap: 10px;
}

#entrada {
  flex-grow: 1;
  height: 40px;
  font-size: 18px;
  padding: 6px 10px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  text-align: right;
  cursor: default;
}

.igual {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 10px 16px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.igual:hover {
  background-color: #45a049;
}

#resultado {
  min-width: 80px;
  font-weight: bold;
  font-size: 18px;
  color: #333;
  text-align: right;
  padding-right: 10px;
  user-select: text;
}

.teclado {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.teclado button {
  padding: 14px 0;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  background-color: #e0e0e0;
  cursor: pointer;
  transition: background-color 0.25s ease;
  user-select: none;
}

.teclado button:hover {
  background-color: #d1d1d1;
}

.teclado button:active {
  background-color: #bdbdbd;
}

.teclado button:nth-child(4),
.teclado button:nth-child(8) {
  background-color: #ff9500;
  color: white;
}

.teclado button:nth-child(4):hover,
.teclado button:nth-child(8):hover {
  background-color: #e08600;
}

.teclado button:nth-child(12) {
  background-color: #ff3b30;
  color: white;
}

.teclado button:nth-child(12):hover {
  background-color: #cc3226;
}

#formulario-intercambio {
  max-width: 360px;
  margin: 30px auto;
  padding: 25px 20px;
  background-color: #f9f9fb;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.07);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
}

#formulario-intercambio h2 {
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
  color: #333;
  font-size: 1.6rem;
}

#formulario-intercambio label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 1rem;
  color: #444;
}

#formulario-intercambio input[type="number"],
#formulario-intercambio select {
  width: 100%;
  padding: 8px 12px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  margin-bottom: 18px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

#formulario-intercambio input[type="number"]:focus,
#formulario-intercambio select:focus {
  border-color: #4a90e2;
  outline: none;
  background-color: #fff;
}

#formulario-intercambio button[type="submit"] {
  width: 100%;
  padding: 12px 0;
  background-color: #4a90e2;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#formulario-intercambio button[type="submit"]:hover {
  background-color: #357ABD;
}

.sobre-conteudo img {
  width: 120px;        /* tamanho menor */
  height: 120px;       /* para manter proporção quadrada */
  border-radius: 50%;  /* deixa redonda */
  object-fit: cover;   /* corta a imagem para preencher o círculo */
  float: left;         /* alinha a imagem do lado esquerdo do texto */
  margin-right: 15px;  /* espaço entre a imagem e o texto */
  margin-bottom: 10px; /* espaço em baixo para evitar que o texto fique grudado */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* sombra suave pra ficar elegante */
}

#sobre {
  background-image: url('../imagens/fundo\ isaque.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px;
  color: white; /* Ou outra cor que combine com a imagem */
}

.filtros {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
  width: 90%;
  flex-wrap: wrap;
}

.filtros input, .filtros select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 250px;
}

.textos-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 20px auto;
  width: 90%;
}

.cartao-texto {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: 220px;
  cursor: pointer;
  transition: transform 0.2s;
  overflow: hidden;
}

.cartao-texto:hover {
  transform: scale(1.03);
}

.card {
  width: 300px;        /* Aumenta a largura */
  height: 250px;       /* Aumenta a altura */
  padding: 16px;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: 0.3s;
  cursor: pointer;
}


.cartao-texto h3 {
  margin: 10px;
  font-size: 1.1rem;
  text-align: center;
}

.conteudo-principal {
  margin: 40px auto;
  width: 90%;
  background-color: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
