body, html {
    height: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    color: rgb(148, 148, 148); /* Texte clair pour le mode sombre */
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.splash-container {
    text-align: center;
}

.message p {
    font-size: 24px;
    margin: 20px;
    opacity: 1;
    animation: fadeOut 3s forwards;
}

.battery {
    width: 100px;
    height: 40px;
    border: 2px solid white;
    margin: 20px auto;
    position: relative;
    display: inline-block;
}

.battery-level {
    width: 20%; /* Batterie à 20% de charge */
    height: 100%;
    background-color: red;
    position: absolute;
    top: 0;
    left: 0;
    animation: blink 1s infinite;
}

/* Nouveau style pour le texte de la page d'accueil */
h1 {
    color: white; /* Couleur du titre en mode sombre */
    font-size: 36px;
    margin-bottom: 10px;
}

p {
    color: rgb(148, 148, 148); /* Texte clair mais pas trop éclatant */
    font-size: 18px;
    margin-bottom: 20px;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Styles pour les boutons */
.buttons-container {
    display: flex;
    flex-direction: row; /* Affichage des boutons sur une seule ligne */
    gap: 20px; /* Espacement entre les boutons */
    margin-top: 30px;
    justify-content: center; /* Centrer les boutons horizontalement */
}

.action-button {
    background-color: #803f3f;
    color: white;
    border: 1px solid #666;
    padding: 15px;
    font-size: 10px;
    border-radius: 50%; /* Rendre les boutons ronds */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 60px; /* Largeur spécifique pour rendre le bouton rond */
    height: 60px; /* Hauteur spécifique pour rendre le bouton rond */
    display: flex;
    justify-content: center;
    align-items: center;
}

.action-button:hover {
    background: radial-gradient(circle, #8B0000, #2B0000);
    transform: perspective(80px) rotateY(50deg) rotateX(20deg);
    
}

.action-button:active {
    background-color: #333;
    transform: rotateY(180deg) rotateX(40deg); /* Effet de réduction de taille avec rotation */
    box-shadow: 0 0 20px 5px rgba(255, 0, 0, 0.8); /* Halo rouge */
}

