body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    cursor: none; /* Oculta o cursor padrão */
}
@font-face {
		font-family: 'Cyberpunks';
		src: url('Cyberpunks.ttf') format('truetype'); 		
}

p{
		font-family: 'Cyberpunks', sans-serif;
		font-size: 2vw;
		text-align: center;
}
h1{
		font-family: 'Cyberpunks', sans-serif;
		font-size: 3vw;
		text-align: center;
}
button{
		font-family: 'Cyberpunks', sans-serif;
		font-size: 3vw;
		text-align: center;
}

#gameCanvas {
    display: block;
   # background-color: #87CEEB; // background recebe imagem 
}

.mira {
    position: absolute;
    width: 40px;
    height: 40px;
    background: url('imgs/mira.png') no-repeat center center;
    background-size: contain;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

#hud {
    position: absolute;
    top: 0;
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    color: black;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1000; /* Garante que o HUD esteja acima dos alvos */
}

#timeBar {
    width: 70%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

#timeRemaining {
    height: 100%;
    background-color: #4CAF50; /* Verde mais suave */
    width: 100%; /* Inicialmente 100%, depois diminuirá */
    transition: width 1s linear;
}

#scoreDisplay {
    font-size: 20px;
}

#result {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
}

.hit {
    animation: hitFlash 0.3s;
}

@keyframes hitFlash {
    0% { filter: brightness(1); }
    50% { filter: brightness(3); }
    100% { filter: brightness(1); }
}
