@font-face{
  font-family: 'arcadeFont';
  src: url('../fonts/arcade.ttf');
}

.nomeJogo{
  color: white;
  text-decoration: none;
  font-family: 'xhers', Courier, monospace;
  letter-spacing: 3px;
  font-size: 50px;
  position: relative;
  display: inline-block;
  animation: titleGlow 3s ease-in-out infinite alternate;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(102, 126, 234, 0.6),
    0 0 30px rgba(102, 126, 234, 0.4),
    0 0 40px rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.nomeJogo:hover {
  transform: scale(1.1) rotate(2deg);
  animation-play-state: paused;
  text-shadow: 
    0 0 15px rgba(255, 255, 255, 1),
    0 0 25px rgba(102, 126, 234, 0.8),
    0 0 35px rgba(102, 126, 234, 0.6),
    0 0 45px rgba(102, 126, 234, 0.4);
}

.nomeJogo::before {
  content: 'BUG JUMP';
  position: absolute;
  top: 0;
  left: 0;
  color: transparent;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientText 4s ease infinite;
  z-index: -1;
}

@keyframes titleGlow {
  0% {
    text-shadow: 
      0 0 10px rgba(255, 255, 255, 0.8),
      0 0 20px rgba(102, 126, 234, 0.6),
      0 0 30px rgba(102, 126, 234, 0.4);
  }
  100% {
    text-shadow: 
      0 0 15px rgba(255, 255, 255, 1),
      0 0 25px rgba(102, 126, 234, 0.8),
      0 0 35px rgba(102, 126, 234, 0.6),
      0 0 45px rgba(102, 126, 234, 0.4);
  }
}

@keyframes gradientText {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.game-board{
    width: 80%;
    height: 500px;
    /* border: 1px solid white; */
    margin: 0 auto;
    position:relative;
    overflow: hidden;
    
}

.jogo-container {
    display: none;
  }

.jogo-container.mostrar {
    display: flex;
  }

  .obstaculo{
    position:absolute;
    bottom: 0;
    width: 150px;
    right: 200px;
    animation: obstaculo-animation 1.5s infinite linear;
  }

  .personagem {
    width:150px;
    position: absolute;
    bottom: 0;
  }

  .jump{
    animation: jump 500ms  ease-out;
  }


  @keyframes obstaculo-velocidadeaumentada3x {

    from{
        right: -200px;
    }

    to{
        right: 100%;
    }
  }


  @keyframes obstaculo-velocidadeaumentada2x {

    from{
        right: -200px;
    }

    to{
        right: 100%;
    }   
  }

  @keyframes obstaculo-velocidadeaumentada {

    from{
        right: -200px;
    }

    to{
        right: 100%;
    }  
  }

  @keyframes obstaculo-animation {

    from{
        right: -200px;
    }

    to{
        right: 100% ;  
    }  
  }

  @keyframes jump {

    0%{
        bottom:0;
    }

    40%{
        bottom: 180px;
    }
    
    50%{
        bottom: 180px;
    }

    60%{
        bottom: 180px;
    }

    100%{
        bottom: 0;
    }

  }

  .game-board{
    margin-top: 100px;
    display:none;
    background: url(../images/jogo/primeiroMapa.png) center;
    background-size: cover;
    position: relative;
  }

 

  .primeiroMapaSelecionado{
    background: url(../images/jogo/primeiroMapa.png) center;
    background-size: cover;
  }

  .segundoMapaSelecionado{
    background: url(../images/jogo/segundoMapa.jpg) center; 
    background-size: cover;
  }
  
  .terceiroMapaSelecionado{
    background: url(../images/jogo/terceiroMapa.jpg) center; 
    background-size: cover;
  }
  .quartoMapaSelecionado{
    background: url(../images/jogo/quartoMapa.jpg) center; 
    background-size: cover;
  }  
  

  .game-board.mostrargame-board{
    display: flex;
  }

  .select-caracter{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 1500px;
    gap: 30px;
    margin-top: 200px;
    position: relative;    
  }

  .nomePersonagem{
    text-align: center;
    font-size: 26px;
    color: white;
    margin-top: 5px;
    font-family: 'arcadeFont';
    letter-spacing: 5px;
  }

  .select-caracter{
    display:none;
  }

  .select-caracter.mostrarcaracter{
    display: flex;
  }

  .container-principal{
    display: flex;
    flex-direction: row;
    width: 100%;
  }

  .show-personagem{    
    width: 500px;
    height: 500px;
  }

  .tituloPersonagem{
    position: absolute;
    color: white;
    top: -150px;
  }

  .game{
    width: 100%;
  }

  .jogo-container{
    display:flex;
    justify-content: center;
    align-items: center;
    

  }

  .card-caracter{
    width: 200px;
    height: 200px;
    cursor: pointer;
  }

  .card-caracter img{
    width: 100%;
  }

  .contador{
    font-size: 50px;
    padding: 50px;
  }



  .trocarPersonagem{
    position: absolute;
    top: 50px;
    margin: auto;
    right: 50px;
    width: 100px;
    height: 50px;
    cursor: pointer;

  }

  .contador{
    font-family: 'arcadeFont';
  }

  .card-caracter{
    border: 2px solid var(--cor-padrao);
    background-color: var(--cor-padrao);
    /* width: 20%; */
    height: 200px;
    cursor: pointer;
    z-index: 2;
    border-radius: 5px;
    position: relative;
    transition: 0.15s ease-in-out;
    
  }

  .card-caracter.selecionado:hover{

    border: 2px solid var(--cor-azul-media);
    animation: c-glowing-blue .3s ease-in-out infinite;
    animation-direction: alternate;

}

  .card-caracter:hover{
    
    animation: c-glowing-blue .3s ease-in-out infinite;
    animation-direction: alternate;
    transform: scale(1.07);
    z-index: 2;
}

.tituloPersonagem{
  font-family: 'arcadeFont';
  letter-spacing: 2px;
  font-size: 50px;
}

.start{
  position: absolute;
  top: 100px;
  margin: auto;
  right: 0;
  left: 0;
  width: 100px;
  height: 50px;
  cursor: pointer;
  font-family: 'arcadeFont';
  letter-spacing: 5px;
  font-size: 30px;
}



.button a{
  color:black;
  letter-spacing: 3px;
  font-family:'arcadeFont', sans-serif;
  font-weight:bold;
  font-size: 20px;
  text-align: center;
  text-decoration:none;
  background-color:#FFA12B;
  display:block;
  position:relative;
  padding:10px;
  
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-shadow: 0px 1px 0px #000;
  filter: dropshadow(color=#000, offx=0px, offy=1px);
  
  -webkit-box-shadow:inset 0 1px 0 #FFE5C4, 0 10px 0 #915100;
  -moz-box-shadow:inset 0 1px 0 #FFE5C4, 0 10px 0 #915100;
  box-shadow:inset 0 1px 0 #FFE5C4, 0 10px 0 #915100;
  
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

.button a:active{
  top:10px;
  background-color:#F78900;
  
  -webkit-box-shadow:inset 0 1px 0 #FFE5C4, inset 0 -3px 0 #915100;
  -moz-box-shadow:inset 0 1px 0 #FFE5C4, inset 0 -3pxpx 0 #915100;
  box-shadow:inset 0 1px 0 #FFE5C4, inset 0 -3px 0 #915100;
}

.button:after{
  content:"";
  height:100%;
  width:100%;
  padding:4px;
  position: absolute;
  bottom:-15px;
  left:-4px;
  z-index:-1;
  background-color:#2B1800;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}
.divBotaoReset{
  position: absolute;
  margin: auto;
  top: 100px;
  right: 0;
  left: 0;
  width: 110px;
  
}


/* botao trocar personagem*/



.botaoTrocarPersonagem a{
  color:black;
  letter-spacing: 3px;
  font-family:'arcadeFont', sans-serif;
  font-weight:bold;
  font-size: 18px;
  text-align: center;
  text-decoration:none;
  background-color:#FFA12B;
  display:block;
  position:relative;
  padding:10px;
  width: 150px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  text-shadow: 0px 1px 0px #000;
  filter: dropshadow(color=#000, offx=0px, offy=1px);
  
  -webkit-box-shadow:inset 0 1px 0 #FFE5C4, 0 10px 0 #915100;
  -moz-box-shadow:inset 0 1px 0 #FFE5C4, 0 10px 0 #915100;
  box-shadow:inset 0 1px 0 #FFE5C4, 0 10px 0 #915100;
  
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

.botaoTrocarPersonagem a:active{
  top:10px;
  background-color:#F78900;
  
  -webkit-box-shadow:inset 0 1px 0 #FFE5C4, inset 0 -3px 0 #915100;
  -moz-box-shadow:inset 0 1px 0 #FFE5C4, inset 0 -3pxpx 0 #915100;
  box-shadow:inset 0 1px 0 #FFE5C4, inset 0 -3px 0 #915100;
}

.botaoTrocarPersonagem:after{
  content:"";
  height:100%;
  width:100%;
  padding:4px;
  position: absolute;
  bottom:-15px;
  left:-4px;
  z-index:-1;
  background-color:#2B1800;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

.divBotaoTrocarPersonagem{
  position: absolute;
  margin: auto;
  right: 50px; 
}

.divMapas{
  position: relative;
  width: 600px;
  height: 300px;
  /* border: 1px solid white; */
  color: white;
  font-family: 'arcadeFont';
  margin: 100px;
}

.divMapas h3{
  text-align: center;
  letter-spacing: 5px;
  /* position: absolute; */
  margin: 20px;
}

.setaMapa{
  width: 40px;
  position: absolute;
  cursor: pointer;
  bottom: 80px;
}

.setaProximoMapa{
  right: -50px;

}

.setaMapaAnterior{
  transform: rotateY(180deg);
  left: -50px;
  
  
}

.mapa1, .mapa2, .mapa3{
  width: 100%;
  height: 100%;

}

.mapa1, .mapa2, .mapa3{
  display:none;
}

.mostrarMapa{
  display: block;
}

.opacidade {
  opacity: 0.5;
  cursor: default;
}

.msgNovoPersonagem{
  position: absolute;
  text-align: center;
  width: 700px;
  height: 50px;
  cursor: pointer;
  font-family: 'arcadeFont';
  letter-spacing: 5px;
  font-size: 20px;
  margin: auto;
  right: 0;
  left:0;
  top: 50px;
  display: none;
  animation: novoPersonagem 6s ease-in-out;
  z-index: 1;
}
.mostrarMsgNovoPersonagem{
  display: block;
}

@keyframes novoPersonagem{
  0%{
    transform: scale(0);

  }
  30%{
    transform: scale(1.2);
    

  }
  50%{
    transform: scale(1);
    transform: rotate(-5deg);

  }
  100%{
    transform: scale(1.6);
    font-size: 30px;
  }
}

.cardNovoPersonagem{
  display: none;
}

.personagemDesbloqueado{
  display: block;
}

.cardsPersonagem{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 50px;
}


.ranking{
  color: white;
  width: 400px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: rankingFloat 6s ease-in-out infinite;
}

.ranking::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

.ranking:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

@keyframes rankingFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.ranking h3{
  letter-spacing: 2px;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: titlePulse 2s ease-in-out infinite alternate;
}

@keyframes titlePulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

.rankingTable{
  width: 100%;
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.1) 0%, 
    rgba(0, 255, 0, 0.1) 50%, 
    rgba(255, 0, 0, 0.1) 100%);
  border-radius: 15px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nomeRank{
  width: 60%;
  font-weight: 600;
}

tr, td{
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

td{
  padding: 12px 16px;
  font-weight: 500;
  position: relative;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

tr:hover td {
  color: #4ecdc4;
  text-shadow: 0 0 8px rgba(78, 205, 196, 0.5);
}

tr td {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
  color: white;
  font-weight: 500;
}


.disqueteSalvar{
  position: absolute;
  right: 0;
  bottom: 0;
  transform: rotateX(180deg);
  animation: giraDisquete 5s infinite linear;
  display: none;
  cursor: pointer;
}

.mostrarDisqueteSalvar{
  display: block;
}

@keyframes giraDisquete {
  0%{
    transform: rotateY(0);
  }

  50%{
    transform: rotateY(360deg);
  }
  100%{
    transform: rotateY(0);
  }
  
}

.turnYourPhone{
  display: none;
}

.imgPlayPause{
  background-color: white;
  border-radius: 50px;
  border: 2px solid white;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  cursor: pointer;
}

.imgPlayPause{
  display: none;
}

.tutorial{
  height: 100px;
  background-color: black;
  width: 300px;
  text-align: center;
  color: white;
  font-family: 'arcadeFont';
  letter-spacing: 3px;
  font-size: 12px;
  position: absolute;
  top: 200px;
  margin: auto;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  border-radius: 10px;
  align-items: center;

}