/* ===== Overlay básico ===== */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); /* fundo semi-transparente escuro */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.show {
  display: flex;
  opacity: 1;
}

.overlay-content {
  background: #fff;       /* fundo claro padrão */
  color: #333;            /* texto escuro padrão */
  padding: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90%;
  overflow-y: auto;
  border-radius: 12px;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease, background 0.3s, color 0.3s;
  text-align: center;
  font-size: 1.5em;
}

.overlay.show .overlay-content {
  transform: scale(1);
}

/* Palavras clicáveis */
.overlay-content .word {
  display: inline-block;
  margin: 5px 8px;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  background: #eee;
  color: #333;
}

.overlay-content .word:hover {
  background: #ddd;
}

.overlay-content .word.selected {
  background: #4CAF50;
  color: #fff;
}

/* Botão de fechar */
.overlay-content .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
  color: #333;
}

/* Botões dentro do overlay */
.overlay-content button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}

.overlay-content button:hover {
  background: #45a049;
}

/* ===== Modo escuro ===== */
body.dark-mode .overlay {
  background: rgba(0,0,0,0.85);
}

body.dark-mode .overlay-content {
  background: #1e1e1e; /* fundo escuro */
  color: #f0f0f0;      /* texto claro */
  box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

body.dark-mode .overlay-content .word {
  background: #333;
  color: #f0f0f0;
}

body.dark-mode .overlay-content .word:hover {
  background: #4CAF50;
  color: #fff;
}

body.dark-mode .overlay-content .word.selected {
  background: #4CAF50;
  color: #fff;
}

body.dark-mode .overlay-content button {
  background: #4CAF50;
  color: white;
}

body.dark-mode .overlay-content .close-btn {
  color: #f0f0f0;
}


/* ==========================
   RESET BÁSICO E BODY
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #fff;
  color: #333;
  line-height: 1.6;
  padding-top: 70px; /* espaço para header fixo */
  padding-bottom: 100px; /* espaço para footer fixo */
  transition: background 0.3s, color 0.3s;
}

/* ==========================
   HEADER FIXO
========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

header h1 {
  font-size: 1.5em;
  display: flex;
  align-items: center;
}

.emoji-head {
  width: 32px;
  height: 32px;
  margin-left: 8px;
  vertical-align: middle;
}

#modoBtn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

#modoBtn:hover {
  background: #45a049;
}

/* ==========================
   ASIDE / MENU LATERAL
========================== */
aside {
  position: relative;
  width: 100%;
}

aside nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

aside nav a {
  display: block;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  font-size: 1.1em;
  font-weight: 500;
  transition: all 0.3s ease;
}

aside nav a:hover {
  background: #4CAF50;
  color: #fff;
  transform: scale(1.03);
}

aside nav a.active {
  background: #4CAF50;
  color: #fff;
  transform: scale(1.03);
}

body.dark-mode aside nav a {
  background: #1e1e1e;
  color: #ddd;
  box-shadow: 0 3px 6px rgba(255,255,255,0.1);
}

body.dark-mode aside nav a:hover {
  background: #45a049;
  color: #fff;
}

/* ==========================
   MAIN CARDS
========================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lesson-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================
   OVERLAY MODAL
========================== */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.show {
  display: flex;
  opacity: 1;
}

.overlay-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  text-align: center;
  font-size: 1.5em;
}

.overlay.show .overlay-content {
  transform: scale(1);
}

.overlay-content .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
}

.overlay-content .word {
  display: inline-block;
  margin: 5px 8px;
  padding: 5px 10px;
  border-radius: 5px;
  background: #eee;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.overlay-content .word:hover {
  background: #ddd;
}

.overlay-content .word.selected {
  background: #4CAF50;
  color: #fff;
}

.overlay-content .progress-container {
  width: 100%;
  background: #f0f0f0;
  border-radius: 5px;
  margin-bottom: 15px;
}

.overlay-content .progress-bar {
  height: 20px;
  width: 0%;
  background: #4CAF50;
  border-radius: 5px;
  text-align: center;
  color: white;
  line-height: 20px;
  font-size: 0.9em;
  transition: width 0.3s ease;
}

.overlay-content button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}

.overlay-content button:hover {
  background: #45a049;
}

/* ==========================
   FOOTER FIXO
========================== */
#siteFooter {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  color: #555;
  text-align: center;
  padding: 8px 0;
  font-size: 0.85em;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  z-index: 999;
}

/* ==========================
   DARK MODE
========================== */
body.dark-mode {
  background: #121212;
  color: #f0f0f0;
}

body.dark-mode header, 
body.dark-mode footer {
  background: #1e1e1e;
}

/* ==========================
   RESPONSIVIDADE
========================== */
@media (max-width: 768px) {
  .overlay-content {
    font-size: 1.2em;
    padding: 15px;
  }

  .overlay-content .word {
    margin: 4px 6px;
    padding: 4px 8px;
  }

  .overlay-content button {
    font-size: 0.9em;
    padding: 6px 12px;
  }

  aside {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
  }

  aside nav {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding: 8px 10px;
    background: #f9f9f9;
    scrollbar-width: thin;
    border-bottom: 1px solid #ddd;
  }

  aside nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 8px 10px;
    font-size: 0.9em;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }

  aside nav a:hover,
  aside nav a.active {
    background: #4CAF50;
    color: white;
  }

  main {
    padding-top: 110px;
  }

  .mascote {
    display: none;
  }

  body.dark-mode aside nav {
    background: #121212;
    border-bottom: 1px solid #333;
  }

  body.dark-mode aside nav a {
    background: #1e1e1e;
    color: #ddd;
    box-shadow: 0 1px 3px rgba(255,255,255,0.05);
  }

  body.dark-mode aside nav a:hover,
  body.dark-mode aside nav a.active {
    background: #4CAF50;
    color: white;
  }
}
/* ==========================
   RESET BÁSICO E BODY
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #fff;
  color: #333;
  line-height: 1.6;
  padding-top: 70px; /* espaço para header fixo */
  padding-bottom: 100px; /* espaço para footer fixo */
  transition: background 0.3s, color 0.3s;
}

/* ==========================
   HEADER FIXO
========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

header h1 {
  font-size: 1.5em;
  display: flex;
  align-items: center;
}

.emoji-head {
  width: 32px;
  height: 32px;
  margin-left: 8px;
  vertical-align: middle;
}

#modoBtn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

#modoBtn:hover {
  background: #45a049;
}

/* ==========================
   ASIDE / MENU LATERAL
========================== */
aside {
  position: relative;
  width: 100%;
}

aside nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

aside nav a {
  display: block;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  font-size: 1.1em;
  font-weight: 500;
  transition: all 0.3s ease;
}

aside nav a:hover {
  background: #4CAF50;
  color: #fff;
  transform: scale(1.03);
}

aside nav a.active {
  background: #4CAF50;
  color: #fff;
  transform: scale(1.03);
}

body.dark-mode aside nav a {
  background: #1e1e1e;
  color: #ddd;
  box-shadow: 0 3px 6px rgba(255,255,255,0.1);
}

body.dark-mode aside nav a:hover {
  background: #45a049;
  color: #fff;
}

/* ==========================
   MAIN CARDS
========================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lesson-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================
   OVERLAY MODAL
========================== */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.show {
  display: flex;
  opacity: 1;
}

.overlay-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  text-align: center;
  font-size: 1.5em;
}

.overlay.show .overlay-content {
  transform: scale(1);
}

.overlay-content .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
}

.overlay-content .word {
  display: inline-block;
  margin: 5px 8px;
  padding: 5px 10px;
  border-radius: 5px;
  background: #eee;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.overlay-content .word:hover {
  background: #ddd;
}

.overlay-content .word.selected {
  background: #4CAF50;
  color: #fff;
}

.overlay-content .progress-container {
  width: 100%;
  background: #f0f0f0;
  border-radius: 5px;
  margin-bottom: 15px;
}

.overlay-content .progress-bar {
  height: 20px;
  width: 0%;
  background: #4CAF50;
  border-radius: 5px;
  text-align: center;
  color: white;
  line-height: 20px;
  font-size: 0.9em;
  transition: width 0.3s ease;
}

.overlay-content button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}

.overlay-content button:hover {
  background: #45a049;
}

/* ==========================
   FOOTER FIXO
========================== */
#siteFooter {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  color: #555;
  text-align: center;
  padding: 8px 0;
  font-size: 0.85em;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  z-index: 999;
}

/* ==========================
   DARK MODE
========================== */
body.dark-mode {
  background: #121212; /* fundo escuro */
  /* color: #f0f0f0;  <-- Remover ou comentar esta linha para não alterar a cor da fonte */
}

body.dark-mode header, 
body.dark-mode footer {
  background: #1e1e1e;
}

/* se quiser, pode manter links com cores claras ao passar o mouse */
body.dark-mode aside nav a:hover,
body.dark-mode aside nav a.active {
  background: #4CAF50;
  color: white; /* apenas para os links ativos ou hover */
}
/* ==========================
   ESTILO GERAL
========================== */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #ffffff; /* fundo claro padrão */
  color: #000000; /* cor da fonte padrão */
  transition: background 0.3s ease;
}

header, footer {
  background: #f5f5f5;
  padding: 1rem;
  text-align: center;
}

main {
  padding: 2rem;
}

a {
  color: #1a73e8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==========================
   DARK MODE
========================== */
body.dark-mode {
  background: #121212; /* fundo escuro */
  /* cor da fonte não é alterada, permanece igual ao modo claro */
}

body.dark-mode header,
body.dark-mode footer {
  background: #1e1e1e; /* header e footer escuros */
}

body.dark-mode a {
  color: #8ab4f8; /* link com contraste em fundo escuro */
}

body.dark-mode a:hover {
  text-decoration: underline;
  color: #ffffff; /* destaque no hover se quiser */
}

/* ==========================
   OUTROS ELEMENTOS
========================== */
button {
  padding: 0.5rem 1rem;
  border: none;
  background: #4CAF50;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  background: #45a049;
}

section {
  margin-bottom: 2rem;
}


/* ==========================
   RESPONSIVIDADE
========================== */
@media (max-width: 768px) {
  .overlay-content {
    font-size: 1.2em;
    padding: 15px;
  }

  .overlay-content .word {
    margin: 4px 6px;
    padding: 4px 8px;
  }

  .overlay-content button {
    font-size: 0.9em;
    padding: 6px 12px;
  }

  aside {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
  }

  aside nav {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding: 8px 10px;
    background: #f9f9f9;
    scrollbar-width: thin;
    border-bottom: 1px solid #ddd;
  }

  aside nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 8px 10px;
    font-size: 0.9em;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }

  aside nav a:hover,
  aside nav a.active {
    background: #4CAF50;
    color: white;
  }

  main {
    padding-top: 110px;
  }

  .mascote {
    display: none;
  }

  body.dark-mode aside nav {
    background: #121212;
    border-bottom: 1px solid #333;
  }

  body.dark-mode aside nav a {
    background: #1e1e1e;
    color: #ddd;
    box-shadow: 0 1px 3px rgba(255,255,255,0.05);
  }

  body.dark-mode aside nav a:hover,
  body.dark-mode aside nav a.active {
    background: #4CAF50;
    color: white;
  }
}
/* ==========================
   RESET BÁSICO E BODY
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #fff;
  color: #333;
  line-height: 1.6;
  padding-top: 70px; /* espaço para header fixo */
  padding-bottom: 100px; /* espaço para footer fixo */
  transition: background 0.3s, color 0.3s;
}

/* ==========================
   HEADER FIXO
========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

header h1 {
  font-size: 1.5em;
  display: flex;
  align-items: center;
}

.emoji-head {
  width: 32px;
  height: 32px;
  margin-left: 8px;
  vertical-align: middle;
}

#modoBtn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

#modoBtn:hover {
  background: #45a049;
}

/* ==========================
   ASIDE / MENU LATERAL
========================== */
aside {
  position: relative;
  width: 100%;
}

aside nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

aside nav a {
  display: block;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  font-size: 1.1em;
  font-weight: 500;
  transition: all 0.3s ease;
}

aside nav a:hover {
  background: #4CAF50;
  color: #fff;
  transform: scale(1.03);
}

aside nav a.active {
  background: #4CAF50;
  color: #fff;
  transform: scale(1.03);
}

body.dark-mode aside nav a {
  background: #1e1e1e;
  color: #ddd;
  box-shadow: 0 3px 6px rgba(255,255,255,0.1);
}

body.dark-mode aside nav a:hover {
  background: #45a049;
  color: #fff;
}

/* ==========================
   MAIN CARDS
========================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lesson-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================
   OVERLAY MODAL
========================== */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.show {
  display: flex;
  opacity: 1;
}

.overlay-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 40%;
  max-height: 50%;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  text-align: center;
  font-size: 1.5em;
}

.overlay.show .overlay-content {
  transform: scale(1);
}

.overlay-content .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
}

.overlay-content .word {
  display: inline-block;
  margin: 5px 8px;
  padding: 5px 10px;
  border-radius: 5px;
  background: #eee;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.overlay-content .word:hover {
  background: #ddd;
}

.overlay-content .word.selected {
  background: #4CAF50;
  color: #fff;
}

.overlay-content .progress-container {
  width: 100%;
  background: #f0f0f0;
  border-radius: 5px;
  margin-bottom: 15px;
}

.overlay-content .progress-bar {
  height: 20px;
  width: 0%;
  background: #4CAF50;
  border-radius: 5px;
  text-align: center;
  color: white;
  line-height: 20px;
  font-size: 0.9em;
  transition: width 0.3s ease;
}

.overlay-content button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}

.overlay-content button:hover {
  background: #45a049;
}

/* ==========================
   FOOTER FIXO
========================== */
#siteFooter {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  color: #555;
  text-align: center;
  padding: 8px 0;
  font-size: 0.85em;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  z-index: 999;
}

/* ==========================
   DARK MODE
========================== */
body.dark-mode {
  background: #121212;
  color: #f0f0f0;
}

body.dark-mode header, 
body.dark-mode footer {
  background: #1e1e1e;
}

/* ==========================
   RESPONSIVIDADE
========================== */
@media (max-width: 768px) {
  .overlay-content {
    font-size: 1.2em;
    padding: 15px;
  }

  .overlay-content .word {
    margin: 4px 6px;
    padding: 4px 8px;
  }

  .overlay-content button {
    font-size: 0.9em;
    padding: 6px 12px;
  }

  aside {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
  }

  aside nav {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding: 8px 10px;
    background: #f9f9f9;
    scrollbar-width: thin;
    border-bottom: 1px solid #ddd;
  }

  aside nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 8px 10px;
    font-size: 0.9em;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }

  aside nav a:hover,
  aside nav a.active {
    background: #4CAF50;
    color: white;
  }

  main {
    padding-top: 110px;
  }

  .mascote {
    display: none;
  }

  body.dark-mode aside nav {
    background: #121212;
    border-bottom: 1px solid #333;
  }

  body.dark-mode aside nav a {
    background: #1e1e1e;
    color: #ddd;
    box-shadow: 0 1px 3px rgba(255,255,255,0.05);
  }

  body.dark-mode aside nav a:hover,
  body.dark-mode aside nav a.active {
    background: #4CAF50;
    color: white;
  }
}
/* ==========================
   RESET BÁSICO E BODY
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #fff;
  color: #333;
  line-height: 1.6;
  padding-top: 70px; /* espaço para header fixo */
  padding-bottom: 100px; /* espaço para footer fixo */
  transition: background 0.3s, color 0.3s;
}

/* ==========================
   HEADER FIXO
========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

header h1 {
  font-size: 1.5em;
  display: flex;
  align-items: center;
}

.emoji-head {
  width: 32px;
  height: 32px;
  margin-left: 8px;
  vertical-align: middle;
}

#modoBtn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

#modoBtn:hover {
  background: #45a049;
}

/* ==========================
   ASIDE / MENU LATERAL
========================== */
aside {
  position: relative;
  width: 100%;
}

aside nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

aside nav a {
  display: block;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  font-size: 1.1em;
  font-weight: 500;
  transition: all 0.3s ease;
}

aside nav a:hover {
  background: #4CAF50;
  color: #fff;
  transform: scale(1.03);
}

aside nav a.active {
  background: #4CAF50;
  color: #fff;
  transform: scale(1.03);
}

body.dark-mode aside nav a {
  background: #1e1e1e;
  color: #ddd;
  box-shadow: 0 3px 6px rgba(255,255,255,0.1);
}

body.dark-mode aside nav a:hover {
  background: #45a049;
  color: #fff;
}

/* ==========================
   MAIN CARDS
========================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lesson-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================
   OVERLAY MODAL
========================== */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.show {
  display: flex;
  opacity: 1;
}

.overlay-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  text-align: center;
  font-size: 1.5em;
}

.overlay.show .overlay-content {
  transform: scale(1);
}

.overlay-content .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
}

.overlay-content .word {
  display: inline-block;
  margin: 5px 8px;
  padding: 5px 10px;
  border-radius: 5px;
  background: #eee;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.overlay-content .word:hover {
  background: #ddd;
}

.overlay-content .word.selected {
  background: #4CAF50;
  color: #fff;
}

.overlay-content .progress-container {
  width: 100%;
  background: #f0f0f0;
  border-radius: 5px;
  margin-bottom: 15px;
}

.overlay-content .progress-bar {
  height: 20px;
  width: 0%;
  background: #4CAF50;
  border-radius: 5px;
  text-align: center;
  color: white;
  line-height: 20px;
  font-size: 0.9em;
  transition: width 0.3s ease;
}

.overlay-content button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}

.overlay-content button:hover {
  background: #45a049;
}

/* ===== RODAPÉ ===== */
#siteFooter {
  margin-top: 40px;
  padding: 20px;
  background: #f5f5f5;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid #ddd;
}

#siteFooter p {
  margin-bottom: 12px;
  color: #444;
}

/* Container dos botões */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Botões */
.footer-btn {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Azul */
.footer-btn.blue {
  background-color: #1e88e5;
}

/* Vermelho */
.footer-btn.red {
  background-color: #e53935;
}

/* Hover */
.footer-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}


/* ==========================
   DARK MODE
========================== */
body.dark-mode {
  background: #121212;
  color: #f0f0f0;
}

body.dark-mode header, 
body.dark-mode footer {
  background: #1e1e1e;
}

/* ==========================
   RESPONSIVIDADE
========================== */
@media (max-width: 768px) {
  .overlay-content {
    font-size: 1.2em;
    padding: 15px;
  }

  .overlay-content .word {
    margin: 4px 6px;
    padding: 4px 8px;
  }

  .overlay-content button {
    font-size: 0.9em;
    padding: 6px 12px;
  }

  aside {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
  }

  aside nav {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding: 8px 10px;
    background: #f9f9f9;
    scrollbar-width: thin;
    border-bottom: 1px solid #ddd;
  }

  aside nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 8px 10px;
    font-size: 0.9em;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }

  aside nav a:hover,
  aside nav a.active {
    background: #4CAF50;
    color: white;
  }

  main {
    padding-top: 110px;
  }

  .mascote {
    display: none;
  }

  body.dark-mode aside nav {
    background: #121212;
    border-bottom: 1px solid #333;
  }

  body.dark-mode aside nav a {
    background: #1e1e1e;
    color: #ddd;
    box-shadow: 0 1px 3px rgba(255,255,255,0.05);
  }

  body.dark-mode aside nav a:hover,
  body.dark-mode aside nav a.active {
    background: #4CAF50;
    color: white;
  }
}
/* ==========================
   RESET BÁSICO E BODY
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #fff;
  color: #333;
  line-height: 1.6;
  padding-top: 70px; /* espaço para header fixo */
  padding-bottom: 100px; /* espaço para footer fixo */
  transition: background 0.3s, color 0.3s;
}

/* ==========================
   HEADER FIXO
========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

header h1 {
  font-size: 1.5em;
  display: flex;
  align-items: center;
}

.emoji-head {
  width: 32px;
  height: 32px;
  margin-left: 8px;
  vertical-align: middle;
}

#modoBtn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

#modoBtn:hover {
  background: #45a049;
}

/* ==========================
   ASIDE / MENU LATERAL
========================== */
aside {
  position: relative;
  width: 100%;
}

aside nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

aside nav a {
  display: block;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  font-size: 1.1em;
  font-weight: 500;
  transition: all 0.3s ease;
}

aside nav a:hover {
  background: #4CAF50;
  color: #fff;
  transform: scale(1.03);
}

aside nav a.active {
  background: #4CAF50;
  color: #fff;
  transform: scale(1.03);
}

body.dark-mode aside nav a {
  background: #1e1e1e;
  color: #ddd;
  box-shadow: 0 3px 6px rgba(255,255,255,0.1);
}

body.dark-mode aside nav a:hover {
  background: #45a049;
  color: #fff;
}

/* ==========================
   MAIN CARDS
========================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lesson-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================
   OVERLAY MODAL
========================== */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.show {
  display: flex;
  opacity: 1;
}

.overlay-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  text-align: center;
  font-size: 1.5em;
}

.overlay.show .overlay-content {
  transform: scale(1);
}

.overlay-content .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
}

.overlay-content .word {
  display: inline-block;
  margin: 5px 8px;
  padding: 5px 10px;
  border-radius: 5px;
  background: #eee;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.overlay-content .word:hover {
  background: #ddd;
}

.overlay-content .word.selected {
  background: #4CAF50;
  color: #fff;
}

.overlay-content .progress-container {
  width: 100%;
  background: #f0f0f0;
  border-radius: 5px;
  margin-bottom: 15px;
}

.overlay-content .progress-bar {
  height: 20px;
  width: 0%;
  background: #4CAF50;
  border-radius: 5px;
  text-align: center;
  color: white;
  line-height: 20px;
  font-size: 0.9em;
  transition: width 0.3s ease;
}

.overlay-content button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}

.overlay-content button:hover {
  background: #45a049;
}

/* ==========================
   FOOTER FIXO
========================== */
#siteFooter {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  color: #555;
  text-align: center;
  padding: 8px 0;
  font-size: 0.85em;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  z-index: 999;
}

/* ==========================
   DARK MODE
========================== */
body.dark-mode {
  background: #121212;
  color: #f0f0f0;
}

body.dark-mode header, 
body.dark-mode footer {
  background: #1e1e1e;
}

/* ==========================
   RESPONSIVIDADE
========================== */
@media (max-width: 768px) {
  .overlay-content {
    font-size: 1.2em;
    padding: 15px;
  }

  .overlay-content .word {
    margin: 4px 6px;
    padding: 4px 8px;
  }

  .overlay-content button {
    font-size: 0.9em;
    padding: 6px 12px;
  }

  aside {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
  }

  aside nav {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding: 8px 10px;
    background: #f9f9f9;
    scrollbar-width: thin;
    border-bottom: 1px solid #ddd;
  }

  aside nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 8px 10px;
    font-size: 0.9em;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }

  aside nav a:hover,
  aside nav a.active {
    background: #4CAF50;
    color: white;
  }

  main {
    padding-top: 110px;
  }

  .mascote {
    display: none;
  }

  body.dark-mode aside nav {
    background: #121212;
    border-bottom: 1px solid #333;
  }

  body.dark-mode aside nav a {
    background: #1e1e1e;
    color: #ddd;
    box-shadow: 0 1px 3px rgba(255,255,255,0.05);
  }

  body.dark-mode aside nav a:hover,
  body.dark-mode aside nav a.active {
    background: #4CAF50;
    color: white;
  }
}
/* ==========================
   RESET BÁSICO E BODY
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #fff;
  color: #333;
  line-height: 1.6;
  padding-top: 70px; /* espaço para header fixo */
  padding-bottom: 100px; /* espaço para footer fixo */
  transition: background 0.3s, color 0.3s;
}

/* ==========================
   HEADER FIXO
========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

header h1 {
  font-size: 1.5em;
  display: flex;
  align-items: center;
}

.emoji-head {
  width: 32px;
  height: 32px;
  margin-left: 8px;
  vertical-align: middle;
}

#modoBtn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

#modoBtn:hover {
  background: #45a049;
}

/* ==========================
   ASIDE / MENU LATERAL
========================== */
aside {
  position: relative;
  width: 100%;
}

aside nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
}

aside nav a {
  display: block;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  font-size: 1.1em;
  font-weight: 500;
  transition: all 0.3s ease;
}

aside nav a:hover {
  background: #4CAF50;
  color: #fff;
  transform: scale(1.03);
}

aside nav a.active {
  background: #4CAF50;
  color: #fff;
  transform: scale(1.03);
}

body.dark-mode aside nav a {
  background: #1e1e1e;
  color: #ddd;
  box-shadow: 0 3px 6px rgba(255,255,255,0.1);
}

body.dark-mode aside nav a:hover {
  background: #45a049;
  color: #fff;
}

/* ==========================
   MAIN CARDS
========================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.lesson-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================
   OVERLAY MODAL
========================== */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.show {
  display: flex;
  opacity: 1;
}

.overlay-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  text-align: center;
  font-size: 1.5em;
}

.overlay.show .overlay-content {
  transform: scale(1);
}

.overlay-content .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5em;
  cursor: pointer;
}

.overlay-content .word {
  display: inline-block;
  margin: 5px 8px;
  padding: 5px 10px;
  border-radius: 5px;
  background: #eee;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.overlay-content .word:hover {
  background: #ddd;
}

.overlay-content .word.selected {
  background: #4CAF50;
  color: #fff;
}

.overlay-content .progress-container {
  width: 100%;
  background: #f0f0f0;
  border-radius: 5px;
  margin-bottom: 15px;
}

.overlay-content .progress-bar {
  height: 20px;
  width: 0%;
  background: #4CAF50;
  border-radius: 5px;
  text-align: center;
  color: white;
  line-height: 20px;
  font-size: 0.9em;
  transition: width 0.3s ease;
}

.overlay-content button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s;
}

.overlay-content button:hover {
  background: #45a049;
}

/* ==========================
   FOOTER FIXO
========================== */
#siteFooter {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  color: #555;
  text-align: center;
  padding: 8px 0;
  font-size: 0.85em;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  z-index: 999;
}

/* ==========================
   DARK MODE
========================== */
body.dark-mode {
  background: #121212;
  color: #f0f0f0;
}

body.dark-mode header, 
body.dark-mode footer {
  background: #1e1e1e;
}

/* ==========================
   RESPONSIVIDADE
========================== */
@media (max-width: 768px) {
  .overlay-content {
    font-size: 1.2em;
    padding: 15px;
  }

  .overlay-content .word {
    margin: 4px 6px;
    padding: 4px 8px;
  }

  .overlay-content button {
    font-size: 0.9em;
    padding: 6px 12px;
  }

  aside {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
  }

  aside nav {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding: 8px 10px;
    background: #f9f9f9;
    scrollbar-width: thin;
    border-bottom: 1px solid #ddd;
  }

  aside nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 8px 10px;
    font-size: 0.9em;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }

  aside nav a:hover,
  aside nav a.active {
    background: #4CAF50;
    color: white;
  }

  main {
    padding-top: 110px;
  }



  body.dark-mode aside nav {
    background: #121212;
    border-bottom: 1px solid #333;
  }

  body.dark-mode aside nav a {
    background: #1e1e1e;
    color: #ddd;
    box-shadow: 0 1px 3px rgba(255,255,255,0.05);
  }

  body.dark-mode aside nav a:hover,
  body.dark-mode aside nav a.active {
    background: #4CAF50;
    color: white;
  }
}
/* ==========================
   MENU LATERAL FIXO
========================== */
aside {
  position: fixed;
  top: 70px; /* abaixo do header */
  left: 0;
  width: 220px; /* largura do menu */
  height: calc(100% - 70px); /* altura total menos header */
  background: #f9f9f9;
  padding: 20px;
  box-shadow: 2px 0 6px rgba(0,0,0,0.1);
  overflow-y: auto;
  z-index: 999;
}

aside nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

aside nav a {
  display: block;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  font-size: 1.1em;
  font-weight: 500;
  transition: all 0.3s ease;
}

aside nav a:hover,
aside nav a.active {
  background: #4CAF50;
  color: #fff;
  transform: scale(1.03);
}

/* DARK MODE PARA MENU */
body.dark-mode aside {
  background: #1e1e1e;
}

body.dark-mode aside nav a {
  background: #2a2a2a;
  color: #ddd;
  box-shadow: 0 3px 6px rgba(255,255,255,0.05);
}

body.dark-mode aside nav a:hover,
body.dark-mode aside nav a.active {
  background: #4CAF50;
  color: #fff;
}

/* ==========================
   ESPAÇAMENTO DO MAIN
========================== */
main {
  margin-left: 240px; /* mesma largura do menu + padding */
  padding: 20px;
}

/* ==========================
   RESPONSIVIDADE
========================== */
@media (max-width: 992px) {
  aside {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    flex-direction: row;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  aside nav {
    flex-direction: row;
    gap: 8px;
    width: 100%;
  }

  aside nav a {
    flex: 0 0 auto;
    min-width: 90px;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.9em;
    border-radius: 8px;
  }

  main {
    margin-left: 0;
    padding-top: 130px; /* header + menu móvel */
  }
}


/* ===============================
   BOTÕES DE PALAVRAS
=============================== */

.word-btn {
  padding: 8px 14px;
  margin: 5px;
  border-radius: 6px;
  border: none;
  background: #1e88e5;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

/* 🔒 BLOQUEIO REAL (HOSTINGER SAFE) */
.word-btn[disabled],
.word-btn.disabled {
  pointer-events: none !important;
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  background: #999 !important;
  color: #555 !important;
}







/* ===== COOKIE CONSENT (NOVO DO ZERO) ===== */
#cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  background: rgba(30, 136, 229, 0.2);
  backdrop-filter: blur(6px);

  color: #0d47a1;
  font-size: 12px;

  padding: 8px 14px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  gap: 10px;

  max-width: 420px;
  box-shadow: 0 4px 12px rgba(30,136,229,0.25);
  z-index: 99999;
}

#cookie-consent a {
  color: #1565c0;
  font-weight: 600;
}

#cookie-consent button {
  background: #1e88e5;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11px;
  cursor: pointer;
}

#cookie-consent button:hover {
  background: #1565c0;
}

/* Mobile */
@media (max-width: 600px) {
  #cookie-consent {
    flex-direction: column;
    text-align: center;
    max-width: 90%;
  }
}

/* ===== COOKIE CONSENT ===== */
#cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  background: rgba(30, 136, 229, 0.2);
  backdrop-filter: blur(6px);

  color: #0d47a1;
  font-size: 12px;

  padding: 8px 14px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  gap: 10px;

  max-width: 460px;
  box-shadow: 0 4px 12px rgba(30,136,229,0.25);
  z-index: 99999;
}

#cookie-consent a {
  color: #1565c0;
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  gap: 6px;
}

/* Aceitar */
#cookie-accept {
  background: #1e88e5;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11px;
  cursor: pointer;
}

/* Recusar */
#cookie-reject {
  background: transparent;
  color: #0d47a1;
  border: 1px solid #1e88e5;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
}

#cookie-accept:hover {
  background: #1565c0;
}

#cookie-reject:hover {
  background: rgba(30,136,229,0.1);
}

/* Mobile */
@media (max-width: 600px) {
  #cookie-consent {
    flex-direction: column;
    text-align: center;
    max-width: 90%;
  }
}

