@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&display=swap');

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease;
}

#character {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Flexbox-Container für Name und Bild */
.name-image-container {
    display: flex;
    justify-content: space-between; /* Verteilt den Platz zwischen Name und Bild */
    align-items: center; /* Zentriert die Elemente vertikal */
    margin-bottom: 20px; /* Fügt etwas Abstand zum nächsten Element hinzu */
}

h1, h2, h3 {
    color: #bb86fc;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 2.5em;
    border-bottom: 2px solid #bb86fc;
    padding-bottom: 5px;
    margin: 0; /* Entfernt den Standard-Margin, um die Positionierung zu kontrollieren */
}

h2 {
    font-family: "Cinzel Decorative", serif;
    color: #e0e0e0;
    font-size: 1.8em;
    margin-top: 20px;
}

h3 {
    font-family: "Cinzel Decorative", serif;
    color: #e0e0e0;
    font-size: 1.4em;
    margin-top: 15px;
}

img {
    max-width: 40%; /* Passt die Bildgröße an */
    height: auto;
    border-radius: 8px;
    margin: 0; /* Entfernt den Standard-Margin */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 8px;
}

.characteristicsKey {
    font-weight: bold;
    color: #8ab4f8;
}

/* Animationen */
#character > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category {
    margin-top: 20px;
    padding: 10px;
    background-color: #2e2e2e;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.character-image{
    max-width: 20%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsives Design */
@media (max-width: 600px) {
    #character {
        padding: 15px;
        margin: 10px auto;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.2em;
    }

    p {
        font-size: 1em;
    }

    /* Anpassung für kleinere Bildschirme */
    .name-image-container {
        flex-direction: column; /* Stapelt Name und Bild untereinander */
        align-items: flex-start; /* Richtet die Elemente links aus */
    }

    img {
        max-width: 100%; /* Bild nimmt die volle Breite ein */
        margin-top: 10px; /* Fügt etwas Abstand zwischen Name und Bild hinzu */
    }
}

/* Scroll-Effekte (optional - kann mit JS gesteuert werden) */
/* Beispiel: Navbar fixieren */
/*
body {
    position: relative;
    height: 100vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
}
*/

/* Hauptkategorie – dunkles Magenta */
.category-container {
    margin: 15px 0;
    background-color: #6a1b73;  /* dunkles Magenta */
    border: 1px solid #8e2a8e;
    border-radius: 4px;
    padding: 10px;
    color: #ffffff;
}

/* Unterkategorie – dunkles Lila */
.subcategory-container {
    margin-left: 20px;
    margin: 10px 0;
    background-color: #7b1fa2;  /* dunkles Lila */
    border: 1px solid #9c27b0;
    border-radius: 4px;
    padding: 8px;
    color: #ffffff;
}

/* Felder – dunkles Rosa */
.field-container {
    margin: 5px 0;
    background-color: #8e24aa;  /* dunkles Rosa/Lila */
    border: 1px solid #ab47bc;
    border-radius: 4px;
    padding: 5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px; /* Optional: Abstand zwischen den Elementen */
}