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

html {
    height: 100%; 
    scroll-behavior: smooth;
    background-color: black;
}

body {
    font-family: "Press Start 2P", system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    color: azure;
    text-align: center;
    margin: 0;
    padding: 0;
}

#reveal img {
    width: 10%;
    margin: 0 auto; 
}


.image-container {
    max-width: 50%; 
    margin: 0 auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.image-container img {
    position: relative;
    margin: 0 auto;
    display: block;
    max-height: 400px;
    max-width: 90%;
    object-fit: fill;
}

.superpose {
    padding: 3%;
    background-color: black;
    color: azure;
    text-align: center;
}

.gameOver{
    margin: 0 auto;
    font-size: 130%;
    padding: 1.5%;
    color: red;


}

.gameOver a:hover {
    color:rgb(94, 14, 14);

}

p {
    font-size: 90%;
    line-height: 150%;
    margin-bottom: 5%; /* Espace entre le paragraphe et les liens */
}

nav {
    display: flex;
    flex-direction: row; /* Centre les éléments horizontalement */
    text-align: center;
}  

a {
    color: azure;
    text-decoration: none; /* Retire le soulignement des liens */
    font-size: 90%;
    padding: 1% 4%;
    line-height: 1.5;
}

a:hover {
    color: rgb(12, 61, 12); /* Change la couleur du lien au survol */
}

.Button2 {
    display: grid;
    grid-template-columns: repeat(2, auto);
}

.Button3 {
    display: grid;
    grid-template-columns: repeat(3, auto);
}

@media(max-width: 375px) {
      html{
      overflow-y: auto; /* Activer le défilement vertical */
  }
    .image-container {
        width: 100%; /* L'image prend toute la largeur de l'écran */
         height: auto;
        margin-bottom: 10%; /* Espace sous l'image pour séparer du texte */
        max-width: 90%;
        object-fit: cover;
    }

    .image-container img {
        margin-top : 3%;
        width: 100%;
        height: auto; /* Conserve le ratio de l'image */
    }
    
    #reveal img {
        width: 40%; /* Ajustez la largeur selon vos besoins */
        height: auto; /* Conserve le ratio d'aspect */
        display: block; /* Assure que l'image est affichée en tant que bloc */
        margin: 0 auto; /* Centre l'image horizontalement */
    }

    .superpose {
        width: 100%; /* Le texte prend toute la largeur disponible */
        padding: 1%; /* Réduit le padding pour les petits écrans */
        margin-top: 5%; /* Espace entre l'image et le texte */
    }

    p {
        font-size: 100%; /* Adapter la taille du texte */
        padding: 1%; /* Ajuster l'espacement du texte */
        text-align: left;
        font-size: small;
    }

    nav a {
        font-size: 100%; /* Taille de police ajustée pour les liens */
        padding: 2% 1%; /* Réduire le padding des liens */
    }

    nav{
        flex-direction: column; /* Empile les éléments en colonne sur petits écrans */
    }
}
