@import url("/cores.css");
@import url("/header.css");
@import url("/main.css");
@import url("/footer.css");

/*RESET*/

html, body, div, span, applet,object, iframe, h1, h2, h3, h4, h5, h6, p, 
blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, 
em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, 
b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, 
table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas,
details, embed, figure, figcaption, footer, header, hgroup, menu, nav, 
output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@media (max-width: 768px) {
  .main-cards-numeros,
  .main-cards-necessidades,
  .main-cards-cores,
  .main-cards-soletrando {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 2rem;
  }

  .btn-jogos-top {
    top: 1rem;
    right: 1rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .footer-sections {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  }

  .section {
    width: 80%;
    margin: 0.5rem 0;
  }

  .apoio {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 2rem;
  }

  .apoio-img,
  .apoio2 {
    width: 80%;
  }
}

/*BODY*/
body {
  min-height: 100vh;
  background-color: #f8f8ff;
  /*só para o desenvolvimento da pagina  */
  /* background-color: black; */
}

/*=================== HEADER ===================*/
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2em;
}

.container {
  display: flex;
  align-items: center;
  padding: 0.5em 4em 0 4em;
  width: 222px;
}

.container img {
  width: 100%;
}

.row {
  background-color: #ffd900;
  height: 70px;
  width: 90%;
  border-radius: 15px 0px 0px 15px;
}

.btn-jogos-top {
  position: absolute;
  top: 28px;
  right: 40px;
  z-index: 999;
  background-color: #4caf50;
  color: white;
  padding: 10px 30px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-jogos-top:hover {
  background-color: #308f35;
}

/*=================== MAIN ===================*/
.main {
  display: flex;
  flex: 1 1 0;
  justify-content: center;
  align-items: center;
  padding-bottom: 8rem;
}

.main-cards-numeros { /*NUMEROS*/
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1200px;
  flex-wrap: wrap;
  gap: 3em;
  padding: 2em 0;
}

.main-cards-necessidades { /*NECESSIDADES*/
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1200px;
  flex-wrap: wrap;
  gap: 5em;
  padding: 1em 0;
}

.main-cards-cores { /*CORES*/
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1400px;
  flex-wrap: wrap;
  column-gap: 6em;
  row-gap: 3em;
  padding: 1em 0;
}

.main-cards-animais { /*ANIMAIS*/
  display: flex;
  flex-wrap: wrap; /* Permite que os itens quebrem linha */
  justify-content: center; /* Centraliza os itens horizontalmente */
  align-items: flex-start; /* Alinha os itens no topo */
  gap: 2rem; /* Espaçamento entre os itens */
  margin-top: 100px; /* Espaçamento entre os botões e as imagens */
  column-gap: 6em;
  row-gap: 3em;
  padding: 1rem 0;
  width: 100%; /* Garante que o contêiner ocupe toda a largura */
}

.main-cards-soletrando { /*SOLETRANDO*/
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem ; /* Centraliza horizontalmente */
  margin-left: 670px; /* Ajuste conforme necessário */
  height: 250px;
  width: 289px;
  border-radius: 15px;
  cursor: pointer;;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 200px;
  width: 189px;
  border-radius: 15px;
  box-shadow: #73b369 0px 4px 30px;
  cursor: pointer;
}

.card-figure {
  display: flex; /* Ativa o Flexbox no contêiner pai */
  align-items: center; 
  justify-content: center; 
}

.audio-verde-img {
  width: 25px;
  position: absolute;
  top: 10px;
  left: 160px;
}

.card-content {
  background-color: #73b369;
  color: #fff;
  height: 35px;
  width: 100%;
  position: absolute;
  top: 11.5em;
  border-radius: 8px 8px 12px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;
}

/* Nomes dos Cards */
a.eu_ouco {
  cursor: pointer;
}

.card_img {
  width: 100%;
  border-radius: 10px;
}

/*=================== CORES ===================*/

.card.primarias,
.card.secundarias,
.card.terciarias {
  display: none;
}

.buttons-cores {
  text-align: center;
  margin: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 200px;
}

button {
  z-index: 999;
  background-color: #4CAF50;
  color: white;
  padding: 10px 30px;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  outline: none;
}

  button:hover {
    background-color: #396b3b;
  }

.card.ativo {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 200px;
  width: 189px;
  border-radius: 15px;
  box-shadow: #73b369 0px 4px 30px;
  cursor: pointer;
}

.amarelo {
  background-color: #ffd74a;
}

.azul {
  background-color: #3413ff;
}

.vermelho {
  background-color: #ff0000;
}

.verde {
  background-color: #10cb00;
}

.rosa {
  background-color: #ff8ddf;
}

.roxo {
  background-color: #913ad8;
}

.laranja {
  background-color: #ff8934;
}

.lilas {
  background-color: #e6bcff;
}

.azul-claro {
  background-color: #56c2ff;
}

.lavanda {
  background-color: #d1b8f1;
}

.turquesa {
  background-color: #04ffff;
}

.vermelho-alaranjado {
  background-color: #e46e42;
}

.amarelo-esverdeado {
  background-color: #c5f700;
}

.azul-arroxeado {
  background-color: #514cdc;
}

.laranja-rosado {
  background-color: #ff9c8a;
}

.amarelo-alaranjado {
  background-color: #fcb034;
}

/* CORES SEM ULTILIZAÇÃO, CASO QUEIRA ULTILIZAR DESCOMENTE E ADICIONE A CLASSE NO HTML
.marrom {
  background-color: #d1795d;
}

.preto {
  background-color: #000000;
}

.branco {
  background-color: #ffffff;
}

.cinza {
  background-color: #d9d9d9;
}*/

/*=================== FOOTER ===================*/
.footer {
  bottom: 0;
  position: fixed;
  width: 100%;
  text-align: center;
}

.footer-sections {
  background-color: #ffd900;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 40px 40px 0px 0px;
  width: 100%;
  height: 100px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 5px 7px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 10px -1px;
}

.footer-sections-separation {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  width: 220px;
  margin: 20px;
  border-radius: 150px;
  background-color: #fff;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #73b369;
}

.section:hover {
  box-shadow: 6px 6px 11px -2px #73b369;
  transition: 0.3s;
  cursor: pointer;
}

.section:active {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset,
    rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
  transition: 2s;
}

.apoio {
  position: relative;
  left: 3%;
  display: flex;
  width: 350px;
  column-gap: 5em;
}

.apoio-img {
  width: 150%;
}

.apoio1 {
  position: relative;
  top: 0px;
}

.apoio2 {
  position: relative;
  top: 9px;
  width: 140%;
}

/*================== SOLETRANDO ==================*/

/* Botões de letras: aparência padrão */
.letra-btn {
  background-color: #73b369;
  color: #fff; 
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 0.6rem 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Estado desativado (feedback visual + cursor) */
.letra-btn.disabled {
  opacity: 0.5;
  transform: scale(0.95);
  cursor: not-allowed;
}

/* Estado de foco para teclado/acessibilidade */
.letra-btn:focus {
  outline: 2px solid #4caf50;
  outline-offset: 2px;
}

/* Hover com aumento visual */
.letra-btn:hover:not(.disabled) {
  background-color: #8eaf89;
  transform: scale(1.1);
}

/* Novo: feedback de clique ativo */
.letra-btn:active:not(.disabled) {
  transform: scale(0.95);
  background-color: #5e9e63;
}

/* Contêiner geral do jogo mais responsivo */
.soletrando-container {
  display: flex;
  flex-direction:column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Largura total do contêiner */
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  margin-top: -10rem;
}

/* Contêiner dos botões de letras */
.soletrando-letras {
  display: flex;
  justify-content: center;
  gap: 10px; /* Espaço entre os botões */
  margin-top: 20px;
}

/* Texto de feedback (resposta correta ou errada) */
.feedback {
  margin-top: 30px;
  font-size: 2rem;
  text-align: center;
}

/* Cor e estilo do feedback correto */
.feedback.correto {
  color: #4caf50;
  font-weight: bold;
  animation: pulse 0.5s ease; /* Animação opcional */
}

/* Cor e estilo do feedback errado */
.feedback.errado {
  color: #ff0000;
  font-weight: bold;
  animation: pulse 0.5s ease; /* Animação opcional */
}

/* Animação visual para feedback */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.card-img {
 display: block;
  height: 110%; /* Faz a imagem ocupar toda a altura do card */
  width: 100%; /* Faz a imagem ocupar toda a largura do card */
  object-fit: cover; /* Garante que a imagem se ajuste sem distorção */
  border-radius: 15px; /* Mantém o arredondamento */
  box-shadow: #73b369 0px 4px 30px;
  cursor: pointer;
  overflow: hidden;
}

/*================== Animais ==================*/

.pagina-animais .grupo .card{
  margin: 10px; 
  display: flex;
  flex-direction: column;
}

.pagina-animais .card-figure img{
  height: 100%;
  width: 100%; 
  object-fit: cover; 
  border-radius: 15px; 
  box-shadow: #73b369 0px 4px 30px;
  cursor: pointer;
  overflow: hidden;
}
/*quebra linha*/
#mar.grupo, #selva.grupo, #fazenda.grupo, #domestico.grupo {
  display: flex;
  flex-wrap: wrap;
  max-width: 940px;
  margin: 0 auto;
  justify-content: center;
  gap: 20px 20px;
}
 
.button-grupo {
  display: flex;
  justify-content: center;
  gap: 50px;
  position: absolute;
  row-gap: 30px;
  padding: 10px;
  top: 130px; 
  left: 50%;
  transform: translateX(-50%); 
}

.button-grupo button{
  padding: 15px 25px;
  font-size: 20px;
  border: none;
  border-radius: 20px;
  background-color: #4caf50;
  color: white;
  cursor: pointer;
}

.button-grupo button:hover {
  background-color: #396b3b;
}

/*================== Memoria ==================*/

#mensagem-parabens{
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  margin: 40px auto;
  width: 100%;
  position: relative;
  z-index: 10;
}

#mensagem-parabens p {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #4caf50;
  margin-bottom: 20px;
}

.memoria-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  padding: 20px;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
  grid-auto-flow: row dense;
  margin-top: 1px;
}

.carta {
  width: 160px;
  height: 160px;
  perspective: 1000px;
  position: relative;
  cursor: pointer;
}

.frente, .atras {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  transition: transform 0.5s ease;
}

.frente {
  transform: rotateY(180deg);
}

.atras {
  background-color: orange;
  font-size: 40px;
  font-weight: bold;
  display: grid;
  place-content: center;
}

.carta-virada .frente {
  transform: rotateY(0deg);
}

.carta-virada .atras {
  transform: rotateY(180deg);
}
    
.tabuleiro {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 20px;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
  margin-top: -30px;
  margin-bottom: 7rem;
}