body {
    margin: 0;
    padding: 0;
    background-image: url('images/background.jpg'); /* Remplacez 'background.jpg' par le chemin vers votre image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

h1 {
    font-size: 36px;
    color: #FFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-top: 20px;
    text-align: center;
}

.game-container {
    margin: 20px; /* Réduisez la marge pour garder un espacement minimal */
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    padding: 20px;
    text-align: center;
    color: #FFF;
}

.monster-name {
    font-size: 60px;
    color: #ffffff;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Au moins 3 colonnes, avec une largeur minimale de 200px */
    gap: 10px;
    justify-content: center;
    grid-auto-rows: 1fr; /* Les lignes de la grille s'ajusteront automatiquement pour combler les trous */
}

.grid-item {
    position: relative;
    overflow: hidden;
}

.grid-item img {
    width: 90%; /* Réduisez la largeur à 80% de la largeur disponible */
    height: auto; /* Laissez la hauteur s'ajuster automatiquement pour conserver les proportions */
    object-fit: cover;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    border-radius: 10px;
}