html, body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #201f1f;
  font-family: Arial, sans-serif;
}

.pokedex-title {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #2ceb2c, #174af0, #f8fc03);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(155, 132, 132, 0.7),
               0 0 5px rgba(230, 226, 226, 0.3);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.pokedex-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 3%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(138, 4, 4, 0) 0%, 
    rgba(255,255,255,0.3) 30%, 
    rgba(255,255,255,0.6) 50%, 
    rgba(255,255,255,0.3) 70%, 
    rgba(255,255,255,0) 100%
  );
  filter: blur(20px);
  transform: skewX(-25deg);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% { left: -125%; }
  100% { left: 100%; }
}

.tablet-container {
  width: 95%;
  max-width: 520px;
  background: #5f0505;
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto; 
}

.pokedex-screen {
  width: 93%;
  background-color: rgba(66, 66, 66, 0.95);
  border-radius: 12px;
  padding: 20px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  flex-direction: column;
  height: auto; /* desktop */
}

.filter-sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

#filterSelect,
#sortBtn {
  padding: 8px 12px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  background-color: #a71818;
  color: #ffffff;
  transition: background-color 0.2s, transform 0.1s;
}

#filterSelect:hover,
#sortBtn:hover {
  background-color: #272727;
  transform: scale(1.05);
}

#searchInput {
  flex: 1;
  margin: 10px 0;
  padding: 10px 140px;
  font-size: 15px;
  border-radius: 25px;
  border: none;
  outline: none;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
  background-color: #ffffff;
  color: #000;
  transition: box-shadow 0.2s;
}

#searchInput:focus {
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8);
}

#results {
  overflow-y: auto;
  flex-grow: 0;       
  flex-shrink: 1;     
  max-height: 550px;  
  margin-bottom: 10px;
}


.pokemon-card {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(17, 1, 1, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pokemon-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(2, 0, 0, 0.7);
}

.pokemon-card img {
  width: 70px;
  height: 70px;
  margin-right: 12px;
  border-radius: 5px;
  background-color: rgba(224, 220, 220, 0.2);
  padding: 2px;
}

.pokemon-info {
  display: flex;
  flex-direction: column;
}

.pokemon-info strong {
  font-size: 16px;
  margin-bottom: 3px;
}

.pokemon-info span {
  font-size: 13px;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
}

.pokemon-details {
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
  text-align: center;
}

.pokemon-details img#pokemonGif {
  width: 100px;
  height: 120px;
  margin-bottom: 10px;
  border-radius: 10px;
  object-fit: contain;
}

.pokemon-details .pokemon-info-details p {
  margin: 5px 0;
}

.pokemon-details .close-details {
  padding: 8px 12px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  background-color: #a71818;
  color: #ffffff;
  transition: background-color 0.2s, transform 0.1s;
}

.pokemon-details .close-details:hover {
  background-color: #272727;
  transform: scale(1.05);
}

.tablet-base {
  width: 95%;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #493c3c;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.music-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.music-controls button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: #c3c2ca;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px #816f6f;
  transition: transform 0.1s, box-shadow 0.1s;
}

.music-controls button:active {
  transform: translateY(2px);
  box-shadow: 0 2px #000000;
}

.volume-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

#volumeIcon {
  font-size: 22px;
}

#volumeSlider {
  width: 120px;
  cursor: pointer;
}

@media (max-width: 600px) {
  body {
    padding: 0;
    justify-content: center;
    align-items: center;
  }

  .tablet-container {
    width: 200%;
    max-width: 700px;
    height: auto; 
    padding: auto;
    box-sizing: border-box;
  }
  #searchInput {
    padding: 8px 100px;
    font-size: 14px;
    border-radius: 10px;
    margin: 5px 0;
    width: 95%;
}
  .filter-sort {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

#filterSelect{
  padding: 3px 3px;
  border-radius:10px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  background-color: #a71818;
  color: #ffffff;
  transition: background-color 0.2s, transform 0.1s;
}
#sortBtn {
  padding: 3px 3px;
  border-radius:10px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  background-color: #a71818;
  color: #ffffff;
  transition: background-color 0.2s, transform 0.1s;
}

  .pokedex-screen {
    width: 90%;
    flex: 1;
    padding: 10px;
    overflow-y: auto; 

  #results {
    max-height: 400px; 
  }

  .filter-sort {
    width: 95%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 5px;
  }

  #searchInput {
    padding: 8px;
    font-size: 14px;
  }

  .tablet-base {
  width: 80%;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #493c3c;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
}
}
