body {
  font-family: 'Press Start 2P', sans-serif;
  background: #c0c0c0;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
h1 {
  font-family: 'Press Start 2P', sans-serif;
  font-size: 2rem; 
  text-align: center;
  margin-bottom: 20px;

 
  background: linear-gradient(45deg, #eebf03, #3b4cca, #685fe7, #1bec08);
  background-size: 400% 400%;
  background-clip: border-box;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gbaGlow 7s ease infinite;
  

  text-shadow:
    2px 2px 0 #000,
   -2px 2px 0 #000,
    2px -2px 0 #000,
   -2px -2px 0 #000;
}

@keyframes gbaGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.generation-select {
  margin-top: 10px;
  padding: 6px;
  border-radius: 8px;
  border: 2px solid #edf39f;
  background-color: #f7f7f7;
  font-weight: bold;
}

.pokedex-device {
  background: linear-gradient(145deg, #801b1b, #641818);
  padding: 25px;
  border-radius: 25px;
  max-width: 1200px;
  width: 95%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 15px 30px rgba(15, 2, 2, 0.6), inset 0 5px 15px rgba(0,0,0,0.4), inset 0 -5px 15px rgba(255,255,255,0.1);
  border: 4px solid #252424;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

header h1 {
  margin: 0;
  color: #e6e6e6;
  font-size: 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

header input {
  padding: 10px;
  border-radius: 8px;
  border: none;
  width: 220px;
  font-size: 0.8rem;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}

.music-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-round {
  position: relative;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  background: linear-gradient(145deg, #f8f8f8, #d9d9d9);
  color: #333;
  font-weight: bold;
  box-shadow: 0 4px #666, inset 0 2px rgba(206, 195, 195, 0.2);
  transition: all 0.1s ease-in-out;
}

.btn-round:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px #c79a9a, inset 0 2px rgba(255,255,255,0.2);
}

.btn-round:active {
  transform: translateY(3px);
  box-shadow: 0 2px hsl(0, 12%, 79%), inset 0 1px rgba(255,255,255,0.1);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #222;
  padding: 5px 10px;
  border-radius: 12px;
  box-shadow: inset 0 3px 6px #382c2c;
}

.volume-control input[type="range"] {
    background-clip: text;
  -webkit-background-clip: text;
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0be666;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  margin-top: -6px;
}

.volume-control input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0be666;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.volume-control input[type="range"]::-ms-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0be666;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.volume-control input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: #ccc;
  border-radius: 4px;
}

.volume-control input[type="range"]::-moz-range-track {
  height: 8px;
  background: #ccc;
  border-radius: 4px;
}

.volume-control input[type="range"]::-ms-track {
  height: 8px;
  background: #ccc;
  border-radius: 4px;
  border-color: transparent;
  color: transparent;
}

.pokedex-screen {
  background: #302f2f;
  width: 100%;
  border-radius: 20px;
  padding: 25px;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 500px;
  box-shadow: inset 0 10px 20px rgba(0,0,0,0.6), inset 0 -10px 20px rgba(255,255,255,0.1), 0 8px 25px rgba(0,0,0,0.7);
  position: relative;
  border: 4px solid #222121;
}

.pokedex-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.05), transparent 70%);
  pointer-events: none;
}

#pokedex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.card {
  width: 150px;
  padding: 15px;
  background: linear-gradient(145deg, #c5bbbb, #bbecea);
  border-radius: 15px;
  box-shadow: 0 8px 15px rgba(0,0,0,0.5), inset 0 0 10px rgba(255,255,255,0.1);
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(7, 0, 0, 0.15);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  opacity: 0;
}

.card:hover::before {
  animation: shineOnce 1s linear forwards;
}

@keyframes shineOnce {
  0% { left: -75%; opacity: 1; }
  100% { left: 125%; opacity: 0; }
}

.card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Modal atualizado com stats, tipos, habilidades, movimentos e botão Shiny */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(8, 8, 8, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: linear-gradient(145deg, #222, #444);
  color: rgb(255, 248, 248);
  padding: 1.5rem;
  border-radius: 15px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-content img {
  width: 120px;
  height: 120px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255,255,255,0.5);
  margin-bottom: 10px;
}

.modal-content h2 {
  margin: 0 0 10px 0;
}

.modal-content p {
  margin: 5px 0;
  font-size: 0.7rem;
}

.stat-bar-container {
  width: 100%;
  background: #555;
  border-radius: 8px;
  margin: 5px 0;
  height: 12px;
  overflow: hidden;
}

.stat-bar {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  width: 0;
  transition: width 0.5s ease-in-out;
}

.stat-label {
  font-size: 0.65rem;
  text-transform: capitalize;
  margin-bottom: 2px;
  display: block;
}

.shiny-btn {
  margin-top: 10px;
  padding: 5px 12px;
  font-size: 0.7rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(145deg, #ffef7b, #ffd700);
  color: #222;
  font-weight: bold;
  box-shadow: 0 3px #999, inset 0 1px rgba(255,255,255,0.2);
  transition: 0.2s;
}

.shiny-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px #777, inset 0 1px rgba(255,255,255,0.2);
}
/* Modal sprites */
.sprites-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* espaço entre normal e shiny */
  margin-bottom: 20px;
}

.sprites-container .sprite {
  width: 150px;  /* aumenta o tamanho do GIF */
  height: 150px; /* altura proporcional */
  border-radius: 10%; /* mantém cantos arredondados */
  background: #2c2c2c; /* cor de fundo suave */
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  object-fit: contain; /* garante que o GIF não distorça */
}


.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffcb05;
}

.nav-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: linear-gradient(145deg, #f8f8f8, #d9d9d9);
  color: #333;
  box-shadow: 0 4px #666, inset 0 2px rgba(255,255,255,0.2);
  transition: all 0.1s ease-in-out;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px #444, inset 0 2px rgba(255,255,255,0.2);
}

.nav-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px #222, inset 0 1px rgba(255,255,255,0.1);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: 0 2px #666, inset 0 1px rgba(255,255,255,0.1);
}

.type-filter-container {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #333;
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.type-btn {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: #f1f1f1;
  cursor: pointer;
  font-weight: bold;
  text-transform: capitalize;
  transition: 0.2s;
}

.type-btn:hover {
  background: #ffcb05;
  color: #2a75bb;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  header input {
    width: 100%;
  }

  .music-controls {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
  }

  .btn-round {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .volume-control {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 5px;
  }

  .volume-control input[type="range"] {
    width: 80px;
  }

  .card {
    width: 120px;
    padding: 8px;
  }

  .card img {
    width: 80px;
    height: 80px;
  }

  .modal-content img {
    width: 100px;
    height: 100px;
  }

  .pokedex-screen {
    min-height: 400px;
    padding: 15px;
  }

  .nav-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}
