/* Allgemeine Stile */
body {
    margin: 0;
    height: 100vh;
    background-color: black; /* Schwarzer Hintergrund */
    display: flex;
    justify-content: center; /* Zentriert horizontal */
    align-items: center; /* Zentriert vertikal */
    cursor: none; /* Standard-Cursor wird ausgeblendet */
}

/* Animierter Cursor */
#animatedCursor {
    width: 10px;
    height: 10px;
    position: absolute; /* Cursor positionieren */
    background-color: white;
    border-radius: 50%; /* Rund */
    pointer-events: none; /* Nicht anklickbar */
    animation: cursorBlink 2s infinite alternate; /* Kontinuierliches Blinken */
    z-index: 100; /* Sicherstellen, dass der Cursor über allen Inhalten bleibt */
}

/* Pixel */
#pixel {
    width: 10px;
    height: 10px;
    background-color: white; /* Weißer Pixel */
    border-radius: 50%; /* Rund */
    position: fixed; /* Erlaubt Bewegung */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Sanfte Bewegungs- und Flackerübergänge */
}

/* Animation: Pixel ist bereit */
.pixel-ready {
    animation: readyAnimation 1s infinite alternate, colorChange 1s infinite; /* Intensivere Animation */
}

/* Keyframes für die Bereit-Animation */
@keyframes readyAnimation {
    0% {
        transform: scale(1); /* Ursprüngliche Größe */
        opacity: 1; /* Voll sichtbar */
    }
    50% {
        transform: scale(1.2); /* Leicht größer */
        opacity: 0.7; /* Halbtransparent */
    }
    100% {
        transform: scale(1); /* Zurück zur ursprünglichen Größe */
        opacity: 1; /* Voll sichtbar */
    }
}


/* Keyframes für das Blinken des Cursors */
@keyframes cursorBlink {
    0% {
        transform: scale(1); /* Ursprüngliche Größe */
        opacity: 1; /* Voll sichtbar */
    }
    50% {
        transform: scale(0.8); /* Leicht kleiner */
        opacity: 0; /* Unsichtbar */
    }
    100% {
        transform: scale(1); /* Zurück zur ursprünglichen Größe */
        opacity: 1; /* Voll sichtbar */
    }
}

/* Keyframes für Farbwechsel */
@keyframes colorChange {
    0% {
        background-color: white; /* Startfarbe */
    }
    50% {
        background-color: yellow; /* Auffälliger Farbwechsel */
    }
    100% {
        background-color: white; /* Zurück zur Startfarbe */
    }
}

@keyframes fillBar {
    0% {
        width: 0%; /* Start bei 0% Breite */
        background-color: darkgray; /* Farbe zu Beginn */
    }
    100% {
        width: 100%; /* Ende bei 100% Breite */
        background-color: black; /* Farbe am Ende */
    }
}

#progressBar {
    height: 20px; /* Höhe des Balkens */
    position: fixed; /* Fixierte Position */
    bottom: 100px; /* Abstand vom unteren Rand */
    left: 0; /* Start am linken Bildschirmrand */
    z-index: 999; /* Sichtbarkeit */
    animation: none; /* Animation initial deaktiviert */
    display: none; /* Balken standardmäßig unsichtbar */
}

.bar-active {
    width: 100%; /* Balken füllt sich vollständig */
    background-color: black; /* Farbe ändert sich zu Schwarz */
}


@keyframes pixelPulse {
    0% {
        transform: scale(1); /* Normale Größe */
    }
    50% {
        transform: scale(1.2); /* Vergrößerung */
    }
    100% {
        transform: scale(1); /* Zurück zur normalen Größe */
    }
}

@keyframes pixelShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}


