body {
    margin: 0;
    overflow: auto;
    /* Permettre le défilement global */
    font-family: Arial, sans-serif;
    background: black;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
}

h1 {
    font-family: 'Special Elite', monospace;
    font-size: 4em;
    color: rgb(255, 255, 255);
    text-shadow: 2px 2px 5px black;
}

h2 {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0;
}

h2 {
    font-family: 'Creepster', cursive;
    font-size: 4em;
    color: crimson;
    /* Rouge pour un effet dramatique */
    margin-top: 20px;
    text-shadow: 2px 2px 5px black;
}

h4 {
    font-family: 'Creepster', cursive;
    font-size: 30px;
    color: crimson;
    /* Rouge pour un effet dramatique */
    margin-top: 20px;
    text-shadow: 2px 2px 5px rgb(81, 80, 80);
}

h1 {
    font-size: 2em;
    margin-top: 20px;
    margin-bottom: 20px;
}

.content {
    position: relative;
    z-index: 1;
    width: 60%;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.8);
    /* Fond semi-transparent */
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    /* Légère lueur rouge */
    overflow-y: auto;
    /* Défilement interne pour le contenu */
    height: 600px;
    /* Hauteur fixe du contenu */
    margin-top: 20px;
}

.content p {
    font-size: 1.2em;
    line-height: 1.5em;
    text-align: justify;
}

.content-code-chapitre {
    position: relative;
    z-index: 1;
    width: 50%;
    /* Augmente la largeur à 50% */
    max-width: 400px;
    /* Limite la largeur maximale pour éviter qu'elle devienne trop grande */
    background-color: rgba(21, 20, 20, 0.8);
    /* Fond semi-transparent */
    color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(34, 33, 33, 0.5);
    /* Légère lueur rouge */
    overflow-y: auto;
    /* Défilement interne pour le contenu */
    height: 150px;
    /* Augmente légèrement la hauteur fixe */
    margin: 10px auto;
    /* Centre la div horizontalement avec `auto` */
}

.content-code-chapitre p {
    font-size: 1.2em;
    line-height: 1.5em;
    text-align: justify;
}

#copyright {
    position: relative;
    /* Plus d'absolu pour qu'il défile avec la page */
    bottom: 0;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    width: 100%;
    z-index: 1;
    margin-top: 20px;
    /* Espacement pour le contenu */
}

#copyright p {
    margin: 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    /* Légère lueur rouge */
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

#page-views-counter {
    position: relative;
    /* Plus d'absolu pour qu'il défile avec la page */
    bottom: 0;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    width: 100%;
    z-index: 1;
    margin-top: 20px;
    /* Réduisez la valeur du z-index */
}

h3 {
    z-index: 100;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Évite de serrer les icônes trop près */
    gap: 20px;
}

h3 a {
    color: red;
    /* Couleur rouge des icônes */
    text-decoration: none;
    /* Enlever le soulignement des liens */
    pointer-events: auto;
}

h3 a:hover {
    color: darkred;
    /* Couleur rouge foncé au survol */
}

.like-button {
    background-color: #dd4040;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.like-button:hover {
    background-color: #0056b3;
}

.like-count {
    font-size: 18px;
    color: #ff6b6b;
    margin-left: 10px;
    font-weight: bold;
}

button,
a {
    cursor: pointer;
}

.hidden-enigme {
    position: relative;
    z-index: 1;
    width: 80%;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgb(255, 255, 255);
    overflow-y: auto;
    height: 350px;
    margin-top: 10px;
    text-align: center;
    display: flex;
    /* Active le mode flex */
    flex-direction: column;
    /* Aligne les éléments en colonne */
    align-items: center;
    /* Centre horizontalement */
    justify-content: center;
    /* Centre verticalement */
}