body {
    background-image: url('../images/ciel_etoile.jpg');
    background-size: cover;
    font-family: 'Dancing Script', cursive;
    color: #C0C0C0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

#pseudo-container {
    position: absolute;
    top: 50px;
    left: 25px;
    z-index: 900;
}

#pseudo-mithril {
    color: #58f0f3;
	text-align: center;
}

#pseudo-demon {
    color: #FF0000;
	text-align: center;
}

.chrono-container {
    position: absolute;
    top: 50px;
    left: 25%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 1.5rem;
    color: #C0C0C0;
}

#start-message {
    color: #C0C0C0;
    font-size: 1.5rem;
}

#minerai-counter {
    color: #58f0f3;
    font-size: 1.5rem;
    display: none;
}

#redmoon-counter {
    color: #FF0000;
    font-size: 1.5rem;
    display: none;
}

#redmoon-counter img {
    width: 100px; /* Taille de la lune rouge */
    margin-bottom: 10px;
}

.grotto-image {
    display: block;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
}

.mithril-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.mithril-image {
    width: 100px;
    height: auto;
    z-index: 1001;
}

/* Effet de tremblement amélioré */
.shake {
    animation: shake 0.08s;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}


.leaderboard-container {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: left;
    color: #C0C0C0;
    z-index: 1000;
}


.leaderboard-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.leaderboard-list li {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.puce-icon {
    width: 12px;
    height: auto;
    margin-right: 5px;
}

#animation-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 100;
}

/* Style pour le Roi Démon avec image */
#roi-demon {
    display: none;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
}

#characters, #soldiers, #heroes {
    display: flex;
    gap: 20px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.character {
    width: 64px;
    height: auto;
    display: block;
}

#dark-filter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1000;
}

#message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    text-align: center;
    display: none;
}
/* Paysan : animation de marche vers le bas */
@keyframes walkDown {
    0% { content: url('../images/wait/paysan_bas1.png'); }
    25% { content: url('../images/wait/paysan_bas2.png'); }
    50% { content: url('../images/wait/paysan_bas1.png'); }
    75% { content: url('../images/wait/paysan_bas3.png'); }
    100% { content: url('../images/wait/paysan_bas1.png'); }
}
.paysan-walk-down {
    animation: walkDown 0.8s steps(4) infinite;
}

/* Paysan : animation de marche vers le haut */
@keyframes walkUp {
    0% { content: url('../images/wait/paysan_haut1.png'); }
    25% { content: url('../images/wait/paysan_haut2.png'); }
    50% { content: url('../images/wait/paysan_haut1.png'); }
    75% { content: url('../images/wait/paysan_haut3.png'); }
    100% { content: url('../images/wait/paysan_haut1.png'); }
}
.paysan-walk-up {
    animation: walkUp 0.8s steps(4) infinite;
}

/* Paysan : animation de marche vers la gauche */
@keyframes walkLeft {
    0% { content: url('../images/wait/paysan_gauche1.png'); }
    25% { content: url('../images/wait/paysan_gauche2.png'); }
    50% { content: url('../images/wait/paysan_gauche1.png'); }
    75% { content: url('../images/wait/paysan_gauche3.png'); }
    100% { content: url('../images/wait/paysan_gauche1.png'); }
}
.paysan-walk-left {
    animation: walkLeft 0.8s steps(4) infinite;
}

/* Paysan : animation de marche vers la droite */
@keyframes walkRight {
    0% { content: url('../images/wait/paysan_droit1.png'); }
    25% { content: url('../images/wait/paysan_droit2.png'); }
    50% { content: url('../images/wait/paysan_droit1.png'); }
    75% { content: url('../images/wait/paysan_droit3.png'); }
    100% { content: url('../images/wait/paysan_droit1.png'); }
}
.paysan-walk-right {
    animation: walkRight 0.8s steps(4) infinite;
}

/* Soldat : animation de marche vers le bas */
@keyframes soldierWalkDown {
    0% { content: url('../images/wait/soldat_bas1.png'); }
    25% { content: url('../images/wait/soldat_bas2.png'); }
    50% { content: url('../images/wait/soldat_bas1.png'); }
    75% { content: url('../images/wait/soldat_bas3.png'); }
    100% { content: url('../images/wait/soldat_bas1.png'); }
}
.soldat-walk-down {
    animation: soldierWalkDown 0.8s steps(4) infinite;
}

/* Soldat : animation de marche vers le haut */
@keyframes soldierWalkUp {
    0% { content: url('../images/wait/soldat_haut1.png'); }
    25% { content: url('../images/wait/soldat_haut2.png'); }
    50% { content: url('../images/wait/soldat_haut1.png'); }
    75% { content: url('../images/wait/soldat_haut3.png'); }
    100% { content: url('../images/wait/soldat_haut1.png'); }
}
.soldat-walk-up {
    animation: soldierWalkUp 0.8s steps(4) infinite;
}

/* Soldat : animation de marche vers la gauche */
@keyframes soldierWalkLeft {
    0% { content: url('../images/wait/soldat_gauche1.png'); }
    25% { content: url('../images/wait/soldat_gauche2.png'); }
    50% { content: url('../images/wait/soldat_gauche1.png'); }
    75% { content: url('../images/wait/soldat_gauche3.png'); }
    100% { content: url('../images/wait/soldat_gauche1.png'); }
}
.soldat-walk-left {
    animation: soldierWalkLeft 0.8s steps(4) infinite;
}

/* Soldat : animation de marche vers la droite */
@keyframes soldierWalkRight {
    0% { content: url('../images/wait/soldat_droit1.png'); }
    25% { content: url('../images/wait/soldat_droit2.png'); }
    50% { content: url('../images/wait/soldat_droit1.png'); }
    75% { content: url('../images/wait/soldat_droit3.png'); }
    100% { content: url('../images/wait/soldat_droit1.png'); }
}
.soldat-walk-right {
    animation: soldierWalkRight 0.8s steps(4) infinite;
}

/* Héros : animation de marche vers le bas */
@keyframes heroWalkDown {
    0% { content: url('../images/wait/heros_bas1.png'); }
    25% { content: url('../images/wait/heros_bas2.png'); }
    50% { content: url('../images/wait/heros_bas1.png'); }
    75% { content: url('../images/wait/heros_bas3.png'); }
    100% { content: url('../images/wait/heros_bas1.png'); }
}
.heros-walk-down {
    animation: heroWalkDown 0.8s steps(4) infinite;
}

/* Héros : animation de marche vers le haut */
@keyframes heroWalkUp {
    0% { content: url('../images/wait/heros_haut1.png'); }
    25% { content: url('../images/wait/heros_haut2.png'); }
    50% { content: url('../images/wait/heros_haut1.png'); }
    75% { content: url('../images/wait/heros_haut3.png'); }
    100% { content: url('../images/wait/heros_haut1.png'); }
}
.heros-walk-up {
    animation: heroWalkUp 0.8s steps(4) infinite;
}

/* Héros : animation de marche vers la gauche */
@keyframes heroWalkLeft {
    0% { content: url('../images/wait/heros_gauche1.png'); }
    25% { content: url('../images/wait/heros_gauche2.png'); }
    50% { content: url('../images/wait/heros_gauche1.png'); }
    75% { content: url('../images/wait/heros_gauche3.png'); }
    100% { content: url('../images/wait/heros_gauche1.png'); }
}
.heros-walk-left {
    animation: heroWalkLeft 0.8s steps(4) infinite;
}

/* Héros : animation de marche vers la droite */
@keyframes heroWalkRight {
    0% { content: url('../images/wait/heros_droit1.png'); }
    25% { content: url('../images/wait/heros_droit2.png'); }
    50% { content: url('../images/wait/heros_droit1.png'); }
    75% { content: url('../images/wait/heros_droit3.png'); }
    100% { content: url('../images/wait/heros_droit1.png'); }
}
.heros-walk-right {
    animation: heroWalkRight 0.8s steps(4) infinite;
}
