html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  background-color: #0f172a;
  color: white;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- TOPO COM TÍTULO E BOTÕES ---------- */

.topo {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.topo-centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

.topo-centro h1 {
  font-size: 40px;
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#contador-tentativas {
  font-size: 16px;
  margin-top: 4px;
  color: #ccc;
  font-family: 'Courier New', Courier, monospace;
}

.topo button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.topo button img {
  display: block;
}


.topo-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 400px;
  padding: 0 10px;
}

.topo-flex h1 {
  font-size: 40px;
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.topo-flex button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.topo-flex img {
  display: block;
}


/* ---------- CAIXA DE INFORMAÇÕES ---------- */

#caixa-informacoes {
  background-color: #2f3f58;
  border: 2px solid #334155;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

/* ---------- ENTRADA ---------- */

.entrada-box {
  background-color: #1e293b;
  border: 2px solid #334155;
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  max-width: 400px;
  width: 100%;
}

#entrada-caixas {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.caixa {
  width: 50px;
  height: 50px;
  background-color: #2f3f58;
  border: 2px solid #334155;
  color: white;
  font-size: 28px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.caixa.ativa {
  border-color: #2f9fcf;
  box-shadow: 0 0 8px #2a8eb9;
}

.caixa.certa {
  color: #22c55e !important;
  font-weight: bold;
}

.caixa.errada {
  color: #facc15 !important;
  font-weight: bold;
}

/* ---------- TABULEIRO ---------- */

#tabuleiro {
  flex-grow: 1;
  overflow-y: auto;
  width: 100%;
  max-width: 400px;
  padding: 10px 0;
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.linha-tabuleiro {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ---------- TECLADO ---------- */

.teclado {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: auto;
  padding-bottom: 10px;
}

.linha-teclado {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
}

.teclado button {
  padding: 1rem;
  font-size: 1rem;
  background-color: #334155;
  color: white;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  text-transform: uppercase;
}

.teclado button:hover {
  background-color: #455872;
}

/* Oculta o input real */
#entrada {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* ---------- MODAIS ---------- */

.infoModal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.infoConteudo {
  background-color: #1e293b;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  color: white;
}

/* ---------- RODAPÉ E ICONES ---------- */

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.icon {
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-block;
}

.icon img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
}

.icon img.hover {
  opacity: 0;
}

.icon:hover img.hover {
  opacity: 1;
}

.icon:hover img.default {
  opacity: 0;
}

.Copyright {
  font-family: 'Courier New', Courier, monospace;
}


#botaoDica {
  margin: 1px;
  padding: 1px 5px;
  font-size: 1rem;
  background-color: #22c55e;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#botaoDica:hover {
  background-color: #16a34a;
}


.dica-box {
  background-color: #1e293b;
  border: 2px solid #334155;
  border-radius: 8px;
  padding: 10px;
  margin-top: 5px;
  max-width: 400px;
}

.linha-tabuleiro-dica {
  display: flex;
  gap: 3px;
  justify-content: center;
}

#entrada-caixas-dica {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.box-dica {
  width: 20px;
  height: 20px;
  background-color: #2f3f58;
  border: 2px solid #334155;
  color: white;
  font-size: 28px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  gap: 1px;
}

.box-dica.certa {
  background-color: #14532d;
  color: #22c55e;
  font-size: 1rem;
}
