/* Body en flex pour pousser la pagination en bas */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Container principal */
.container {
    flex: 1; /* occupe tout l'espace disponible */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* Titre principal */
h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 30px;
}

/* Barre de recherche */
#searchBar {
    width: 300px;
    padding: 10px;
    margin: 20px auto;
    display: block;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Wrapper images + pagination */
.images-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Conteneur des images */
.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

/* Conteneur d'un Pokémon */
.image-item {
    background-color: #ecf0f1;
    border-radius: 8px;
    padding: 15px;
    width: 200px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Style des images des Pokémons */
.image-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    transition: opacity 0.3s ease-in-out;
}

/* Texte du nom et ID du Pokémon */
.image-item p {
    margin-top: 10px;
    font-size: 1em;
    color: #34495e;
}

/* Style pour le texte "No Picture" */
.no-picture {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
}

/* Style pour le bouton Shiny */
.shiny-button {
    background-color: #2ecc71;
    color: #fff;
    border: none;
    padding: 8px 15px;
    font-size: 1em;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.shiny-button:hover {
    background-color: #27ae60;
}

/* Masquer l'image shiny par défaut */
.shiny-img {
    display: none;
}

/* Pagination */
#pagination {
    margin-top: auto; /* pousse en bas */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Boutons pagination */
#pagination button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#pagination button.active {
    background-color: #2980b9;
    font-weight: bold;
}

#pagination button:hover {
    background-color: #1f6391;
    transform: scale(1.05);
}
