@font-face {
    font-family: 'Cubic'; /* Schriftname für später */
    src: url('cubic.ttf'); /* URL zur Schriftart */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #ffffff; /* Weißer Text */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
    position: relative; /* Damit der Hintergrund die ganze Seite abdeckt */
}

/* Hintergrundanimation */
.background-animation {
    position: absolute; /* Muss hinter dem Inhalt sein */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #111, #222);
    animation: movingBackground 10s linear infinite; /* Hintergrundbewegung */
    z-index: -1; /* Setzt den Hintergrund hinter den Text */
}

@keyframes movingBackground {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Container für den Inhalt */
.container {
    text-align: center;
    z-index: 1; /* Der Inhalt sollte vor dem Hintergrund liegen */
}

/* Titel und Text */
.title {
    font-family: 'Cubic', sans-serif; /* Verwendung der benutzerdefinierten Schriftart */
    font-size: 4rem;
    animation: colorChange 5s ease-in-out infinite; /* Animation für Farbwechsel */
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

@keyframes colorChange {
    0% {
        color: #00ff99; /* Startfarbe (Neonblau) */
    }
    50% {
        color: #39e29e; /* Zwischenfarbe (Lila) */
    }
    100% {
        color: #00ff99; /* Endfarbe (Neonblau) */
    }
}

/* Footer */
footer {
    position: absolute;
    bottom: 10px;
    color: #aaa;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
}