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

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

#pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pokemon-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.pokemon-card:hover {
    transform: translateY(-5px);
}

.pokemon-card.caught {
    border: 2px solid #4CAF50;
}

.pokemon-card img {
    width: 120px;
    height: 120px;
}

.pokemon-card h3 {
    margin: 10px 0;
    text-transform: capitalize;
}

.catch-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.catch-btn.release {
    background: #f44336;
}

.load-more-btn {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

.pokemon-details {
    text-align: center;
}

.pokemon-details img {
    width: 200px;
    height: 200px;
}

.pokemon-details h2 {
    margin: 15px 0;
    text-transform: capitalize;
}

.type-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
}

.type-badge {
    padding: 5px 15px;
    border-radius: 20px;
    background: #4CAF50;
    color: white;
    text-transform: capitalize;
}

.abilities-list {
    margin: 15px 0;
    list-style-position: inside;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}