/* Wrapper para o menu */
#menu-wrapper {
  position: absolute; /* Mantém o wrapper absoluto */
  bottom: 0; /* Alinha o wrapper na parte inferior */
  width: 100%; /* Ajusta a largura ao contêiner */
  height: 15%; /* Altura do menu escondido */
  overflow: hidden; /* Evita que o menu transborde */
  z-index: 1; /* Mantém o wrapper acima de outros elementos */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Estilo da seta */
#menu-arrow {
  position: absolute;
  bottom: 2px;
  cursor: pointer;
  font-size: 2rem;
  background-color: var(--azul_escuro);
  clip-path: circle();
  color: white;
  padding: 1rem;
  z-index: 1; /* Garante que a seta fique acima de tudo */
}

/* Menu escondido inicialmente */
#menu {
  position: absolute;
  z-index: 2;
  width: 50%;
  height: 100%; /* Mesma altura do wrapper */
  background-color: rgba(0, 0, 0, 0);
  /*
  transform: translateY(100%); 
  transition: transform 0.5s ease-in-out;  */
}

/* Quando o mouse está sobre o wrapper ou a seta */


/* Esconde a seta ao passar o mouse */
#menu-wrapper:hover #menu-arrow,
#menu-arrow:hover {
  opacity: 0; /* Torna a seta invisível */
}

/* Estilo do container dentro do menu */
#menu_container {
  width: 90%;
  height: 90%;
  background-image: url('../../../Assets/Utils/paperTexture.webp');
  background-size: 100%;
  border: 5px solid  var(--azul_escuro);
  border-radius: 5px;
  display: flex;
  justify-content: space-around;
}


  .botoes{
    width: 10%;
    height: 80%;
    border-radius: 1rem;
    background-color: var(--azul_escuro);
    display: flex;
    align-items: end;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: .7;
    transition: opacity 1s ease;
  }

  .botoes.active{
    opacity: 1;
  }

  .botoes:hover{
    cursor: pointer;
    opacity: 1;
  }

  #inventario{
    background-image: url('../../../Assets/Utils/menu/inventario.png');
  }
  #dicas{
    background-image: url('../../../Assets/Utils/menu/dicas.webp');
  }
  #mapa{
    background-image: url('../../../Assets/Utils/menu/mapa.png');
  }
  #pedras{
    background-image: url('../../../Assets/Utils/menu/pedras.png');
  }
  #opcoes{
    background-image: url('../../../Assets/Utils/menu/opcoes.png');

  }

  #oraculo,#ajuda{
    background-image: url('../../../Assets/Utils/menu/ajuda.webp');

  }



  .options-botton{
    font-size: 60px;
    user-select: none;
  }
  .options-botton:hover{
    cursor: pointer;
  }

  #volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 30%; /* Largura do slider */
    height: 10%; /* Altura da barra */
    background: linear-gradient(to right, #e63946, #f4a261, #2a9d8f); /* Gradiente temático */
    border-radius: 5px; /* Arredondamento da barra */
    outline: none; /* Remove o contorno ao focar */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5); /* Sombra interna */
    cursor: pointer;
  }
  
  /* Estilo do botão do slider */
  #volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: calc(10%); /* Tamanho do botão */
    height: 10%;
    background: #000; /* Cor principal do botão */
    border: 2px solid #e9c46a; /* Detalhe dourado */
    border-radius: 50%; /* Arredondado */
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* Sombra externa */
  }
  
  #volume-slider::-moz-range-thumb {
    width: calc(10%);
    height: 100%;
    background: #000;
    border: 2px solid #e9c46a;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  }
  
  /* Barra de progresso compatível com navegadores */
  #volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, #e63946, #f4a261, #2a9d8f);
    border-radius: 5px;
  }
  


  .menu_modal_container{
    width: 80%;
    height: 65%;
    background-image: url('../../../Assets/Utils/paper.webp');
    background-size: cover;
    background-position: center;
  }

  .body-elementos-centralizados {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }



  .container-menu > .header-container-cobre-tela > .texto-Header{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


#dica-body,#inventario-body,#ajuda-body{
  display: flex;
  overflow-y: auto;
  max-height: 85%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}


#inventario-items-container> * {
    perspective: 1000px; /* Define a perspectiva para o efeito 3D */
    box-sizing: border-box; /* Inclui padding e borda no tamanho total */
    flex: 0 0 calc(33.33% - 16px); /* Ajusta para 3 itens por linha */
    height: calc((100% - 16px) / 2); /* Ajusta para caber 2 linhas no contêiner */
}


#dicas-cards-container,#inventario-items-container,#ajuda-botoes-container{
  width: 95%;
  justify-content: flex-start; /* Distribui os itens uniformemente */
  display: flex;
  flex-wrap: wrap; /* Permite quebrar linha */
  gap: 16px; /* Espaçamento entre os itens */
  height: 100%;
}
#dicas-cards-container > *{
  background-image: url('../../../Assets/Utils/Icones/dicas.webp'),url('../../../Assets/Utils/textura.webp');
  background-size: contain,cover;
  background-position: center,center;
  background-repeat: no-repeat,no-repeat;
  perspective: 1000px; /* Define a perspectiva para o efeito 3D */
    box-sizing: border-box; /* Inclui padding e borda no tamanho total */
    flex: 0 0 calc(20% - 16px); /* Ajusta para 5 itens por linha */
    height: calc((80% - 16px)); /* Ajusta para caber 1 linhas no contêiner */
    background-color: #000;
  display: flex;
  justify-content: center;
  align-items: end;
}

#ajuda-botoes-container > *{
  background-image: url('../../../Assets/Utils/botao.webp');
  background-size: cover;
  background-position: center,center;
  background-repeat: no-repeat,no-repeat;
  perspective: 1000px; /* Define a perspectiva para o efeito 3D */
  box-sizing: border-box; /* Inclui padding e borda no tamanho total */
  flex: 0 0 calc(33% - 16px); /* Ajusta para 5 itens por linha */
  height: calc((33% - 16px)); /* Ajusta para caber 1 linhas no contêiner */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: .7;
  transition: opacity .5s ease-in-out;
}

#texto_ajuda_modal > h2{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  
}
#botao-voltar-ajuda:hover{
  cursor: pointer;
}

#ajuda-botoes-container > *>*{
  margin:  0;
  color: white;
}

#ajuda-botoes-container > *:hover{
  cursor: pointer;
  opacity: 1;
}

#dicas-cards-container > * > *{
  margin: 0;
  color: white;
  display: flex;
  width: 100%;
  height: 10%;
  font-size: 1vw;
  justify-content: center;
  align-items: center;
  background-color: green;
}



#dicas-cards-container > *{
  cursor: pointer;
}
#dicas-cards-container > .inactive{
  cursor:default
}

#dicas-cards-container > .inactive{
 filter: grayscale(100%);
}


.inventario-item{
    background-color: var(--azul_escuro);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
    position: relative;
   /* transform-style: preserve-3d; /* Habilita transformações 3D */
   /* transition: transform 0.6s ease-in-out; /* Animação da rotação */
}


.inventario-item.inactive{
  filter: grayscale(1);
}

/*
.inventario-item:not(.inactive):hover {
    transform: rotateY(180deg);

}
*/



.inventario-item .front, .inventario-item .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Esconde o lado de trás enquanto não está visível */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.inventario-item .front {
    background-color: var(--azul_escuro); /* Frente do item */
    flex-direction: column;
}

.inventario-item .back {
    background-color: var(--azul_escuro); /* Cor de fundo para o lado de trás */
    transform: rotateY(180deg); /* Gira o lado de trás para ser visível quando o item roda */
}

.inventario-item-image{
    width: 100%;
    height: 60%;
    background-image: url('../../../../Assets/Utils/Icones/alimento-compra.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.inventario-item-desc{
    width: 90%;
    height: 30%;
    border-top: 2px solid white;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}


/* INVENTARIO */


#containerItensDescricao{
  width: 30%;
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-image: url('../../../Assets/Utils/Pagina_inicial/pergaminho-vertical.webp');
  width: 30%;
  height: 80%;
  gap: 5%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;


}

#topo_descricao{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 20%;
  position: relative;


}
#nome_item{
  width: 70%;
}
#bandeira_div{
  position: absolute;
  right: 0;
  background-image: url('../../../Assets/Utils/bandeira-topo-direita.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
  width: 40%;
  height: 100%;

}

#corpo_descricao{
  height: 50%;
  width: 80%;
  overflow-y: auto;
}

#descricao{
  text-align: justify;
}


#footer_descricao{
  display: flex;
  justify-content: center;
  align-items: center;
}


#botao_exterior_fecha_descricao{
  padding: .1rem;
  background-color: #e01b24;
  border-radius: 5px;
}
#botao_exterior_fecha_descricao:hover{
  cursor: pointer;
}

#botao_interior_fecha_descricao{
  border: 2px solid #FFD700;
  border-radius: 5px;
}

#botao_interior_fecha_descricao > *{
  margin: 1rem;
  color: white;
}



.menu-toggle {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  background-color: #333;
  color: white;
  padding: 10px;
  border-radius: 50%;
  font-size: 20px;
  z-index: 10;
}

