body{
    background: linear-gradient(135deg, #2d2839 0%, #1a1625 100%);
    text-align: center;
    flex: auto;
    font-family: Georgia, 'Times New Roman', Times, serif;
    min-height: 100vh;
    margin: 0;
    padding: 10px;
}

input{
    border-radius: 15px;
    width: 300px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
}

input:focus {
    outline: none;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.pokemon-card {
  background: linear-gradient(135deg, #a7b3e8 0%, #39264d 100%);
  border-radius: 20px;
  padding: 30px;
  margin: 50px auto;
  width: fit-content;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.pokemon-card.show {
  opacity: 1;
  transform: translateY(0);
}

.pokemon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.specs-card {
  background: linear-gradient(135deg, #30a7d7 0%, #4fc3f7 100%);
  border-radius: 20px;
  padding: 20px;
  margin: 20px auto;
  width: 300px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  color: #17192b;
  text-align: left;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.specs-card.show {
  opacity: 1;
  transform: translateY(0);
}

.specs-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.specs-card h3 {
  margin-top: 0;
  font-size: 1.5rem;
  text-transform: capitalize;
}

.specs-card p {
  margin: 10px 0;
  font-size: 1.1rem;
}

img{
  display: block;
  width: 500px;
  height: 500px;
  transition: all 0.3s ease;
  border-radius: 15px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

img:hover {
  transform: scale(1.02);
}

.loading-spinner {
  margin: 30px auto;
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(102, 126, 234, 0.3);
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner p {
  color: #ffffff;
  font-size: 18px;
  margin: 0;
}

.search-container {
  position: relative;
  display: inline-block;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.suggestion-item {
  padding: 10px 15px;
  cursor: pointer;
  color: #333;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.suggestion-item:hover {
  background: rgba(102, 126, 234, 0.2);
}

.error-message {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin: 20px auto;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.welcome-message {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border-radius: 20px;
  padding: 30px;
  margin: 30px auto;
  max-width: 500px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-message h2 {
  color: #ffffff;
  margin: 0 0 15px 0;
  font-size: 2rem;
}

.welcome-message p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 20px 0;
  font-size: 1.1rem;
}

.animated-pokeball {
  font-size: 3rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@media (max-width: 480px) {
    img {
        width: 200px;
        height: 200px;
    }
    
    input {
        width: 95%;
        height: 45px;
        font-size: 16px;
    }
    
    button {
        width: 48%;
        height: 45px;
        font-size: 14px;
    }
    
    .welcome-message h2 {
        font-size: 1.3rem;
    }
    
    .welcome-message p {
        font-size: 1rem;
    }
}

h1{
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

h1:hover {
    transform: scale(1.05);
    text-shadow: 0 6px 12px rgba(0,0,0,0.5);
}


button{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 150px;
    height: 50px;
    font-size: 17px;
    border-radius: 20px;
    margin: 5px;
    border: none;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.button-group {
    margin: 20px 0;
}

.random-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.random-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    box-shadow: 0 6px 20px rgba(255, 82, 82, 0.5);
}

button:hover{
    background: linear-gradient(135deg, #30a7d7 0%, #5fb4dd 100%);
    transform: scale(1.05);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(48, 167, 215, 0.5);
}


@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    input {
        width: 90%;
        max-width: 300px;
        margin-bottom: 10px;
    }
    
    button {
        width: 45%;
        max-width: 140px;
        margin: 5px 2%;
        font-size: 15px;
    }
    
    .button-group {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    h1 {
        font-size: 2rem;
        margin: 10px 0;
    }
    
    .welcome-message {
        margin: 20px 10px;
        padding: 20px;
    }
    
    .welcome-message h2 {
        font-size: 1.5rem;
    }
    
    .specs-card {
        width: 90%;
        max-width: 350px;
        margin: 15px auto;
    }
    
    .pokemon-card {
        margin: 30px auto;
        padding: 20px;
    }
}


