/* Style global */
body {
    margin: 0;
    overflow: hidden;
    font-family: 'Creepster', cursive;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
}

/* Canvas du jeu */
#gameCanvas {
    display: block;
    width: 100vw; /* Pleine largeur */
    height: 100vh; /* Pleine hauteur */
}

/* Overlay pour le score et le timer */
#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    z-index: 10;
    pointer-events: none;
}

/* Score et Timer */
#score, #timer {
    font-size: 1.5em; /* Ajuste selon la taille souhaitée */
    color: #FF0000; /* Rouge pour l'effet horreur */
    background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
    padding: 8px;
    border-radius: 8px;
    font-family: 'Creepster', cursive; /* Applique la même police */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Ombre du texte */
}

/* Flèches pour déplacer le dino */
.arrow {
    position: absolute;
    bottom: 100px; /* Juste au-dessus de la tête du dino */
    font-size: 3em;
    color: #FF0000; /* Rouge pour le thème horreur */
    opacity: 0.7;
    cursor: pointer;
    z-index: 10;
}

.arrow-left {
    left: 20px;
}

.arrow-right {
    right: 20px;
}

.arrow:hover {
    color: #FF6666; /* Couleur plus claire au survol */
}

/* Bouton Musique */
#musicButton {
    position: absolute;
    top: 60px; /* Positionné en dessous du timer (ajuste cette valeur si nécessaire) */
    right: 5px; /* Aligné à droite */
    font-size: 1em; /* Réduit la taille de la police */
    color: #FF0000; /* Rouge pour l'effet horreur */
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px; /* Plus petit padding */
    border: 1px solid #FF0000;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10;
    font-family: 'Creepster', cursive;
    transition: background-color 0.3s, color 0.3s;
}

#musicButton:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FF6666;
}



/* Boîte de dialogue de fin de jeu */
#endGameDialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.dialog-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5em;
}

.dialog-content button {
    margin-top: 10px;
    padding: 5px 15px;
    font-size: 1em;
    cursor: pointer;
}
#halloweenText {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centre le texte parfaitement */
    font-size: 4em;
    color: #FF0000; /* Rouge pour l'effet horreur */
    font-family: 'Creepster', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Ombre pour un effet effrayant */
    z-index: 15;
}



