/* Globale Stile & Basis-Setup */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0c0c0c; /* Ein sehr dunkler Hintergrund für starke Kontraste */
    color: #fff;
    overflow: hidden; /* Verhindert Scrollbalken durch fliegende Elemente */
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

/* --- Stile für index.html --- */

.heart-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.heart {
    width: 250px;
    height: 250px;
    fill: #ff2e2e; /* Leuchtendes Rot */
    /* Animationen: Pulsieren und Glühen */
    animation: 
        pulse 1.8s infinite ease-in-out,
        glow 2.5s infinite alternate ease-in-out;
}

/* Keyframes für die Puls-Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Keyframes für die Glüh-Animation des Herzens */
@keyframes glow {
    from {
        filter: drop-shadow(0 0 8px #ff2e2e) drop-shadow(0 0 16px #ff2e2e);
    }
    to {
        filter: drop-shadow(0 0 20px #ff4848) drop-shadow(0 0 35px #ff4848);
    }
}

.cta-button {
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 75, 43, 0.6);
}

/* Stil für die Signatur-Box (AKTUALISIERT) */
.signature-box {
    position: fixed;
    bottom: 20px;
    left: 50%; /* Zentriert die Box horizontal */
    transform: translateX(-50%); /* Korrigiert die Position, damit der Mittelpunkt der Box zentriert ist */
    padding: 13px 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(3px);
    font-size: 0.7rem;
    color: #ccc;
}


/* --- Stile für birthday.html --- */

#sparkle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Legt die Leinwand hinter allen anderen Inhalt */
}

#message-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Container fängt keine Mausklicks ab */
}

.message-box {
    position: absolute;
    padding: 12px 22px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(5px); /* Milchglas-Effekt */
    font-size: 1.2rem; /* Schriftgröße reduziert als Teil der Größenanpassung */
    font-weight: bold;
    color: #fff;
    white-space: nowrap; /* Verhindert Textumbruch */
    /* Glüheffekt für die Boxen */
    animation: box-glow 4s infinite alternate ease-in-out;
}

/* Keyframes für das Glühen der Nachrichtenboxen */
@keyframes box-glow {
    from {
        box-shadow: 0 0 10px #00aaff, 0 0 20px #00aaff, inset 0 0 5px #00aaff;
    }
    to {
        box-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff, inset 0 0 10px #ff00ff;
    }
}

/* Styling für den Zurück-Button */
.back-button {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 100; /* Stellt sicher, dass der Button über den Nachrichten liegt */
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%) scale(1.05);
}