body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Rubik', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.4;
    height: 100vh; /* Die Höhe des Viewports */
    overflow-y: auto; /* Automatisches Scrollen aktivieren, wenn der Inhalt den Viewport überschreitet */
}

main {
    margin-top: 350px; /* Erhöhe den oberen Abstand, um Platz für den Header zu schaffen */
    max-height: calc(100vh - 250px); /* Berücksichtige die Höhe des Headers */
    overflow-y: auto; /* Automatisches Scrollen aktivieren, wenn der Inhalt den Viewport überschreitet */
    padding: 20px;
    font-size: 18px;
}


.main-content {
    margin-top: 300px; /* Erhöhe den oberen Abstand des Hauptinhalts */
    padding: 20px; /* Füge einen Innenabstand hinzu, um den Text lesbar zu machen */
}



#mynetwork {
    width: 80%; /* Ändere die Breite nach Bedarf */
    height: 80%; /* Ändere die Höhe nach Bedarf */
    border: 1px solid lightgray;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px; /* Beispielhafte Höhe des Headers */
    background-color: #f8f9fa;
    z-index: 1000; /* Eine hohe Z-Koordinate sicherstellen, um den Header über anderen Inhalten zu positionieren */
}

.container {
    max-width: 70%; /* Setze die maximale Breite auf 70% der Bildschirmbreite */
    margin: 0 auto; /* Zentriere den Container horizontal */
}




h1, h2 {
    text-align: center;
}

h1 {
    font-size: 50px;
}

h2 {
    font-size: 30px;
    font-weight: bold; /* Ändere die Schriftgewichtung auf fett */
}


h3 {
    font-size: 25px;
    font-weight: 500;
}


.title h1 {
    margin-bottom: 0px; /* Den Abstand zwischen der h1 und der darüberliegenden Elemente einstellen */
}


/* Zusätzlicher Stil für den Zurück-Button */
button {
    margin-top: 10px;
    background-color: transparent;
    border: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    padding: 5px 10px;
    transition: color 0.3s;
}

/* Ändern der Farbe beim Hover */
button:hover {
    color: #de78f0;
}

.verification-label {
    position: absolute;
    margin-top: 2px;
    top: 10px; /* Abstand zum oberen Rand des Porträts */
    left: 10px; /* Abstand zum linken Rand des Porträts */
    background-color: rgb(0, 0, 0); /* Halbtransparente Hintergrundfarbe des Labels */
    color: rgba(255, 255, 255, 0.8); /* Leicht transparente Textfarbe des Labels */
    padding: 3px 8px; /* Kleinerer Innenabstand des Labels */
    border-radius: 3px; /* Weniger abgerundetes Label */
    font-size: 12px; /* Kleinere Schriftgröße für das Label */
}


.politician {
    display: inline-block;
    text-align: center;
    margin: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative; /* Position relativ für die absolute Positionierung des Labels */
}

.politician img {
    width: 200px;
    height: auto;
}

.politician:hover {
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 30px;
}

.politician a:hover img {
    opacity: 0.7;
}

#interests {
    position: relative;
    width: 300px;
    height: 300px;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
}

.active {
    background-color: #f0f0f0;
}

.logo {
    float: left;
}

.logo img {
    height: 75px;
    width: auto;
    margin-top: 5px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: rotate(180deg);
}

.influence {
    display: inline-block;
    background-color: #64e1dc;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

.politician:hover .influence {
    background-color: #fff;
    color: #000;
}

nav {
    position: absolute;
    top: 100px;
    left: 50%; /* Die linke Kante auf 50% der Breite des übergeordneten Elements setzen */
    transform: translateX(-50%); /* Die Navigation um die Hälfte ihrer eigenen Breite nach links verschieben, um sie horizontal zentriert zu positionieren */
    width: fit-content; /* Die Breite des Elements an den Inhalt anpassen */
    background-color: #f8f9fa;
    z-index: 1001;
    margin-top: 100px;
}


nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px; /* Füge horizontalen Abstand zwischen den Elementen hinzu */
}

nav ul li a {
    text-decoration: none;
    color: #fff; /* Ändere die Schriftfarbe auf Weiß, um sie besser lesbar zu machen */
    font-size: 18px; /* Ändere die Schriftgröße nach Bedarf */
    padding: 8px 15px; /* Füge Innenabstand hinzu, um die Größe der Rechtecke anzupassen */
    border-radius: 20px; /* Füge abgerundete Ecken hinzu */
    transition: background-color 0.3s, color 0.3s; /* Übergangseffekt für Hintergrundfarbe und Schriftfarbe */
}

nav ul li:nth-child(1) a {
    background-color: #ffe733; /* Farbe für das erste Navigationselement */
}

nav ul li:nth-child(2) a {
    background-color: #de78f0; /* Farbe für das zweite Navigationselement */
}

nav ul li:nth-child(3) a {
    background-color: #64e1dc; /* Farbe für das dritte Navigationselement */
}

nav ul li a:hover {
    background-color: #fff; /* Ändere die Hintergrundfarbe beim Hover */
    color: #333; /* Ändere die Schriftfarbe beim Hover */
}



.quote-container {
    background-color: #f8f9fa; /* Hintergrundfarbe des Zitatcontainers */
    border-left: 5px solid #64e1dc; /* Linke Seitenlinie in der Farbe einer Designfarbe */
    padding: 20px; /* Innenabstand des Zitatcontainers */
    margin-bottom: 20px; /* Abstand zwischen den Zitaten */
    border-radius: 10px; /* Abrundungsradius des Zitatcontainers */
}

.quote {
    font-style: italic; /* Kursivschrift für das Zitat */
    font-size: 18px; /* Schriftgröße des Zitats */
    margin-bottom: 10px; /* Abstand unterhalb des Zitats */
}

.author {
    font-weight: bold; /* Fettschrift für den Autor */
    font-size: 16px; /* Schriftgröße des Autors */
    color: #555; /* Farbe des Autors */
}


.sources {
    margin-top: 20px; /* Abstand nach oben */
    font-style: italic; /* Kursiver Textstil */
    font-size: 14px; /* Schriftgröße */
    color: #666; /* Farbe des Textes */
}


.content-container {
    margin-top: 300px; /* Erhöhe den oberen Abstand des Inhalts weiter */
    max-height: calc(100vh - 250px); /* Berücksichtige die Höhe des Headers */
    overflow-y: auto; /* Automatisches Scrollen aktivieren, wenn der Inhalt den Viewport überschreitet */
    padding: 20px;
    max-width: 70%; /* Setze die maximale Breite auf 70% der Bildschirmbreite */
    margin: 0 auto; /* Zentriere den Container horizontal */
}



.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.overlay-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 60%; /* Hier wird die Breite auf 60% festgelegt */
}
