@import url(./_global.css);

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100%;
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
  cursor: default;
  overflow-x: hidden;
}

body[data-status="loading"] #container-jogo {
  display: none;
}

body[data-status="loading"] #boas-vindas {
  display: none;
}

.notificacao-audio {
  position: fixed;
  top: 20px;
  background-color: var(--cor-principal);
  color: var(--cor-texto);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none;
  justify-content: center;
  gap: 10px;
  align-items: center;
  z-index: 1000;
}

.notificacao-audio button {
  background-color: var(--cor-botoes);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.notificacao-audio button:hover {
  background-color: var(--cor-botoes-hover);
}

.container-principal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 500px;
  height: 100%;
  border-radius: 30px;
  padding: 1.8rem 1rem;
  gap: 1rem;
  background-color: var(--cor-principal);
  border: 8px solid var(--cor-borda);
  box-shadow: 9px 10px 23px -4px rgba(0, 0, 0, 0.596);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  margin-top: 2rem;
}

.container-principal h1 {
  font-size: 2rem;
}

.container-principal h2 {
  font-size: 1.5rem;
}

.container-principal p,
.container-principal span {
  font-size: 1.2rem;
}

.container-principal span {
  font-weight: bold;
}

.container-tema .container-config {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  width: 50px;
  height: 50px;
}

.container-tema {
  position: absolute;
  top: 2%;
  right: 4%;
}

.container-config {
  position: absolute;
  top: 2%;
  left: 4%;
}

#botao-tema,
#botao-config {
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  border: none;
  background: none;
  font-size: 1.8rem;
}

.menu-config {
  position: absolute;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background-color: var(--cor-fundo);
  border-radius: 10px;
  font-weight: bold;
  width: 140px;
  height: 140px;
  z-index: 1;
}

#botao-config-fechar {
  position: absolute;
  top: 5%;
  right: 5%;
}

#input-musica,
#input-sons {
  -webkit-appearance: none;
  appearance: none;
  background: var(--cor-principal);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
}

input[type="range"]::-moz-focus-outer {
  border: 0;
}

.jogo-container,
.conteudo-jogo,
.tela-inicial,
#container-jogo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 1rem;
}

.tela-inicial {
  text-align: center;
}

.jogo-container {
  position: relative;
  margin-top: 2.4rem;
}

.conteudo-jogo {
  flex: 1;
}

#container-jogo {
  gap: 1rem;
}

.selecao-bichinhos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.selecao-bichinhos .opcao-bichinho {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  width: 120px;
}

.selecao-bichinhos .opcao-bichinho:hover {
  background-color: var(--cor-bichinho-hover);
  transform: scale(1.05);
}

.selecao-bichinhos .opcao-bichinho.selecionado {
  border-color: var(--cor-borda-bichinho-selecionado);
  background-color: var(--cor-fundo-bichinho-selecionado);
}

.emoji-bichinho {
  font-size: 2.5rem;
  margin-bottom: 5px;
  cursor: pointer;
}

.emoji-bichinho-grande {
  font-size: 6rem;
}

#input-nome {
  padding: 12px;
  border: 1px solid var(--cor-borda);
  border-radius: 20px;
  font-size: 1rem;
  width: 80%;
  margin-bottom: 10px;
  cursor: text;
}

#input-nome.input-erro::-moz-placeholder {
  color: #bb0707;
  font-weight: 600;
}

#input-nome.input-erro::placeholder {
  color: #bb0707;
  font-weight: 600;
}

.botao-acao {
  background-color: var(--cor-botoes);
  color: var(--cor-texto);
  border: none;
  border-radius: 20px;
  padding: 0 1.2rem;
  width: 220px;
  min-height: 60px;
  max-height: 60px;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  flex-grow: 1;
  transition: background-color 0.3s ease;
  box-shadow: 9px 10px 23px -4px rgba(0, 0, 0, 0.596);
}

.botao-acao:hover {
  background-color: var(--cor-botoes-hover);
}

.botao-acao:active {
  box-shadow: inset 9px 10px 23px -4px rgba(0, 0, 0, 0.596);
}

.botao-acao:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.moedas-container {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.tamagotchi-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}

.tamagotchi-container .tamagotchi-bichinho {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  width: 200px;
  border-radius: 50%;
  transition: background-color 0.5s ease-in-out;
}

.status-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
  padding-top: 2rem;
}

.status-container .status-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  width: 100%;
}

.status-container .status-label {
  width: 110px;
}

.status-container .status-barra {
  width: 200px;
  background-color: var(--cor-fundo);
  border-radius: 8px;
  overflow: hidden;
  height: 15px;
  margin-left: 10px;
}

.status-container .status-progresso {
  height: 100%;
  width: 100%;
  transition: width 0.5s ease-in-out;
}

.fome {
  background-color: #ff9800;
}

.felicidade {
  background-color: #22c712;
}

.higiene {
  background-color: #2196f3;
}

.saude {
  background-color: #f44336;
}

.botoes-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.botoes-container .botao-acao {
  margin: 0 .5rem;
  width: 80px;
}

.menu-lateral {
  position: absolute;
  right: -12%;
  top: 30%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  padding: 10px;
  background-color: var(--cor-borda);
  border-radius: 15px;
}

.menu-lateral .botao-menu {
  background-color: var(--cor-de-fundo-menu);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 9px 10px 23px -4px rgba(0, 0, 0, 0.596);
}

.menu-lateral .botao-menu:hover {
  background-color: var(--cor-botoes-hover);
  transform: scale(1.05);
}

.loja-container,
.mini-games-container {
  position: absolute;
  top: 0;
  left: 120%;
  background-color: var(--cor-principal);
  z-index: 100;
  padding: 1rem;
  border-radius: 30px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-width: 500px;
  box-shadow: 5px -17px 45px 13px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 5px -17px 45px 13px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 5px -17px 45px 13px rgba(0, 0, 0, 0.75);
  border-radius: 30px;
}

.mini-games-container .botao-acao{
  margin-top: 2rem;
}

.loja-header,
.mini-games-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: var(--linha);
  padding-bottom: 1rem;
}

.botao-sair {
  background: none;
  color: var(--cor-texto);
  font-size: 1.5rem;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-weight: bold;
}

.opcoes-mini-games,
.acessorios-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow-y: auto;
  padding: 1rem;
  gap: 1rem;
  width: 100%;
  height: 100%;
}

.acessorios-container .acessorio-item,
.opcoes-mini-games .opcao-mini-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 1rem;
  border: 2px solid var(--cor-borda);
  border-radius: 15px;
  transition: all 0.3s ease;
  width: 100%;
  height: 100%;
}

.acessorios-container .acessorio-item:hover,
.opcoes-mini-games .opcao-mini-game:hover {
  transform: translateY(-5px);
  box-shadow: 9px 10px 23px -4px rgba(0, 0, 0, 0.596);
}

.acessorios-container .acessorio-item .acessorio-emoji,
.mini-games-container .opcao-mini-game .imagem-mini-game {
  margin-bottom: 10px;
  font-size: 2.4rem;
}

.acessorios-container .acessorio-item span,
.mini-games-container .opcao-mini-game span {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.acessorios-bichinho {
  position: absolute;
  bottom: 23%;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  font-size: 2.4rem;
}

.acessorio-equipado.laco-equipado {
  position: absolute;
  bottom: 30%;
}

#jogo-da-velha-container,
#jogo-da-memoria-container,
#jogo-pedra-papel-tesoura-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 1.5rem;
}

#jogo-da-velha-board {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 0.8rem;
  background-color: var(--cor-borda);
}

#jogo-da-velha-board .celula {
  width: 100px;
  height: 100px;
  background-color: var(--cor-fundo);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

#jogo-da-velha-board .celula:hover {
  background-color: var(--cor-de-fundo-menu);
}

#jogo-da-velha-board .celula.x,
#jogo-da-velha-board .celula.o {
  color: var(--cor-texto);
}

#jogo-da-memoria-board {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 10px;
}

#jogo-da-memoria-board .carta-memoria {
  width: 100px;
  height: 100px;
  background-color: var(--cor-fundo);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 10px;
  transition: background-color 0.2s ease-in-out, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#jogo-da-memoria-board .carta-memoria:hover {
  background-color: var(--cor-de-fundo-menu);
  transform: scale(1.05);
}

#jogo-da-memoria-board .carta-memoria[data-encontrada='true'] {
  background-color: var(--cor-botoes);
  color: var(--cor-texto);
  cursor: default;
}

.pedra-papel-tesoura-board {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.pedra-papel-tesoura-board .opcao-ppt {
  background-color: var( --cor-fundo);
  color: var(--cor-texto);
  border: none;
  border-radius: 30px;
  padding: 0 1rem;
  width: 180px;
  min-height: 180px;
  max-height: 180px;
  font-weight: bold;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 9px 10px 23px -4px rgba(0, 0, 0, 0.596);
}

.pedra-papel-tesoura-board .opcao-ppt:hover {
  background-color: var(--cor-botoes-hover);
}

.pedra-papel-tesoura-board .opcao-ppt:active {
  box-shadow: inset 9px 10px 23px -4px rgba(0, 0, 0, 0.596);
}

.status-jogo {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.mensagem {
  position: absolute;
  top: 50%;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.2em;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .container-principal {
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    margin-top: 0;
    min-height: 100vh;
    max-height: 100%;
  }

  .botao-acao,
  .menu-lateral .botao-menu {
    box-shadow: none;
  }

  #botao-config,
  #botao-tema {
    font-size: 2rem;
  }

  .menu-config {
    width: 190px;
    height: 200px;
    font-size: 1.2rem;
  }

  .status-label {
    margin-right: 1.5rem;
  }

  .menu-lateral {
    background: none;
    left: 70%;
  }

  .menu-lateral .botao-menu {
    width: 60px;
    height: 60px;
  }

  .loja-container,
  .mini-games-container {
    top:0;
    left: 0;
    min-width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .acessorios-container,
  .opcoes-mini-games {
    grid-template-columns: repeat(1, 1fr);
  }
}






