/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #d32f2f, #7b1fa2);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
}

/* APP CONTENEDOR */
.app {
  width: 100%;
  max-width: 420px;
}

/* HEADER */
header {
  text-align: center;
  margin-bottom: 15px;
  color: white;
}

/* POKE DISPLAY */
.poke-display {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  height: 600px;
  position: relative;
}

/* VISTAS */
.view {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 20px;
  overflow-y: auto;
  display: none;
}

.view.active {
  display: block;
}

/* 📋 LISTA */
#list {
  list-style: none;
}

/* ITEM */
#list li {
  background: #f5f5f5;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

/* HOVER */
#list li:hover {
  background: #e0e0e0;
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* 📊 DETALLE */
#pokemon-detail {
  text-align: center;
}

/* BOTÓN VOLVER */
#back-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  border: none;
  background: #eee;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

#back-btn:hover {
  background: #ddd;
}

/* CARD */
#details {
  margin-top: 40px;
  background: #fafafa;
  padding: 20px;
  border-radius: 16px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

/* IMAGEN */
#details img {
  width: 180px;
  margin-bottom: 10px;
}

/* NOMBRE */
#details h2 {
  margin-bottom: 10px;
}

/* INFO */
#details p {
  margin: 6px 0;
  font-size: 15px;
}


.type {
  display: inline-block;
  background: #ddd;
  padding: 4px 10px;
  border-radius: 20px;
  margin: 3px;
  font-size: 13px;
}

/* SCROLL BONITO */
.view::-webkit-scrollbar {
  width: 6px;
}

.view::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* ANIMACIÓN SUAVE */
.view {
  animation: fadeIn 0.3s ease;
}

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

h1 a{
    transition: 0.7s;
    text-decoration: none;
}
h1 a:hover{
    position: relative;
    top: 0;
    left: -5px;
}