/* Basic reset and global enhancements */
body, html {
    margin: 0; /* Reset margin */
    padding: 0; /* Reset padding */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    font-family: 'Arial', sans-serif; /* Set default font family */
    background-color: #f1f1f1; /* Set background color */
    color: #000000; /* Set text color */
    font-size: 16px; /* Set default font size */
    line-height: 1.6; /* Set line height */
   
}

.content {
    padding-top: 2000px; /* Add space at the top */
    max-width: 12000px; /* Set maximum width to prevent text lines from being too long */
    margin: 0 auto; /* Center the content */
    padding: 23px; /* Add padding */
    background-color: rgba(255, 255, 255); /* Semi-transparent background to improve text readability */
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Light shadow to separate content from background */
    text-align: justify; /* Set text alignment to justify */
    width: 70%; /* Damit nicht der ganze Bildschirm ausgefüllt wird */
    margin: 0 auto; /* Zentriert es in der Mitte der Webpage */
}

.list {
    font-size: 1em;
}

main-titel {
    color: #ffffff; /* Modern color for titles */
    margin-bottom: 20px; /* Space after titles */
    font-size: 4.4em; /* Set font size */
    display: block; /* Display as block element */
}

description-title {
    color: #e1e1e1; /* Modern color for titles */
    margin-bottom: -1px; /* Space after titles */
    font-size: 2.2em; /* Set font size */
    display: block; /* Display as block element */
}

text_1 {
    color: black; /* Modern color for titles */
    margin-bottom: 1px; /* Space after titles */
    font-size: 1.9em; /* Set font size */
    display: block; /* Display as block element */
}

h1 {
    color: #000000; /* Modern color for titles */
    font-size: 2.2em; /* Set font size */
    margin-bottom: 10px; /* Space after titles */
    margin-top: -20px; /* Space after titles */
}

h2 {
    color: #000000; /* Modern color for titles */
    font-size: 1.5em; /* Set font size */
    margin-bottom: 10px; /* Space after titles */
    margin-top: -20px; /* Space after titles */
}

h3 {
    color: #000000; /* Modern color for titles */
    font-size: 1.2em; /* Set font size */
    margin-bottom: 10px; /* Space after titles */
    margin-top: -20px; /* Space after titles */
}

h4 {
    color: #3d3d3d; /* Modern color for titles */
    font-size: 1.6em; /* Set font size */
    margin-bottom: 0px; /* Space after titles */
    margin-top: -20px; /* Space after titles */
    text-align: left; /* Align titles to the left */
    margin-left: 10px; /* Add some margin to the left for better alignment */
    
}   

h5 {
    color: #ac0000; /* Modern color for titles */
    font-size: 1.1em; /* Set font size */
    margin-bottom: 0px; /* Space after titles */
    margin-top: 20px; /* Space after titles */
    text-align: center; /* Center align text */
    
}

a, a:visited {
    color: #960000; /* Link color */
    text-decoration: none; /* Remove underline */
}

a:hover, a:focus {
    text-decoration: underline; /* Underline on hover */
}

p {
    font-size: 1em; /* Set font size */
    margin-bottom: 20px; /* Space after paragraphs */
}


.navigation {
    background-color: #d5d5d5;
    width: 100%; /* Volle Breite */
    position: fixed; /* Fixierte Position */
    font-size: 1.3em; /* Schriftgröße festlegen */
    top: 0; /* Position von oben */
    z-index: 10; /* z-Index setzen */
    letter-spacing: 1px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

ul.topnav {
    list-style-type: none; /* Standardlistenstile entfernen */
    margin: 0; /* Rand zurücksetzen */
    padding: 0; /* Abstand zurücksetzen */
    overflow: hidden; /* Überlauf verstecken */
    background-color: #d5d5d5; /* Dunkle Hintergrundfarbe für Navigation */
}

ul.topnav li {
    float: left; /* Elemente links ausrichten */
}

ul.topnav li a {
    display: block; /* Links als Blockelemente anzeigen */
    color: black; /* Linkfarbe */
    text-align: center; /* Text zentrieren */
    padding: 14px 30px; /* Abstand für Links */
    text-decoration: none; /* Unterstreichung entfernen */
    transition: all 0.3s ease; /* Übergangseffekt hinzufügen */
}

ul.topnav li a:hover,
ul.topnav li a.active { /* Stil für aktiven Link hinzufügen */
    font-weight: bold; /* Fettdruck für aktiven Link */
    text-decoration: none; /* Unterstreichung bei Hover und Aktivierung entfernen */
}

ul.topnav li a::after {
    content: ''; /* Leeres Element für die Linie */
    display: block; /* Als Blockelement anzeigen */
    border-bottom: 2px solid transparent; /* Transparente Linie */
    width: 100%; /* Volle Breite */
    transition: all 0.3s ease; /* Übergangseffekt hinzufügen */
}

ul.topnav li a:hover::after,
ul.topnav li a.active::after { /* Stil für aktive Linie hinzufügen */
    border-bottom: 2px solid #bd0000; /* Grüne Linie bei Hover und Aktivierung */
}
/* Responsive Design */
@media (max-width: 768px) {
    ul.topnav li.right, 
    ul.topnav li {
        float: none; /* Reset float */
    }
    
    .navigation, .content {
        margin: 0; /* Reset margin */
    }
}

footer {
   background-color: #f1f1f1; /* Same background color as the actual background */
    text-align: center; /* Center align text */
    left: 0; /* Abstand zum linken Rand */
    bottom: 0; /* Abstand zum unteren Rand */
    width: 55%; /* Volle Breite */
    z-index: 1000; /* Set z-index */
    max-width: 1200px; /* Set maximum width to prevent text lines from being too long */
    margin: 0 auto; /* Center the content */
     padding: 5px; /* Add padding */
    /* box-shadow: 0 0 10px rgba(0,0,0,0.1);  Light shadow to separate content from background */
}

.footer-content {
    color: #555; /* Text color */
}

/* Bilder im Text*/
.image-with-text {
    display: flex;
    align-items: center; /* Vertikal zentriert */
}

.inline-image {
    display: inline;
}

.image-caption {
    margin-left: 0px; /* Fügt einen Abstand zwischen dem Bild und dem Text hinzu */
}

.center-image {
    display: block;
    margin: 0 auto;
}

/* Bilder nebeneinander*/
.image-container {
        width: 100%; /* Breite des Containers anpassen */
        overflow: hidden; /* Überlauf verstecken, falls Bilder zu breit sind */
        display: flex; /* Flexbox verwenden */
        flex-wrap: wrap; /* Umbruch ermöglichen */
    }
    .image-container img {
        width: calc(25% - 20px); /* Verteilt die Breite auf 4 Bilder pro Zeile */
        margin: 10px; /* Abstand zwischen den Bildern */
        box-sizing: border-box; /* Box-Modell anpassen */
    }
    @media (max-width: 600px) { /* Für kleinere Bildschirme */
        .image-container img {
            width: calc(33.33% - 20px); /* 3 Bilder pro Zeile */
        }
    }
    

/* Map Button*/
.map-button {
    display: inline-block; /* Display as button element */
    background-color: #f3cccc; /* pink background color */
    color: black; /* Text color */
    font-size: 1.6em;
    padding: 15px 30px; /* Padding for the button */
    text-decoration: none; /* Remove underline */
    border-radius: 10px; /* Rounded corners */
    margin-top: 20px; /* Space above the button */
    margin-left: auto; /* Horizontally center the button */
    margin-right: auto; /* Horizontally center the button */
    text-align: center; /* Center align text */
    transition: background-color, color; /* Smooth transition for color change */
}

.map-button:hover {
    background-color: white; /* Change background color on hover */
    color:black/* Change text color on hover */
}

/* Im trying to make a custom link for the button but its not working*/

.custom-link, custom-link:visited{
    color: black; /* Set hyperlink text color */
    text-decoration: none; /* Remove underline for hyperlink */
    font-weight: bold; /* Make hyperlink text bold */
}

.custom-link:hover {
    text-decoration: none; /* Remove underline on hover for hyperlink */
}

/*Button to get to the top*/

#scroll-to-top {
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: 40px;
  right: 280px;
  justify-content: center;
  font-size: 30px;
  transition: .2s;
  letter-spacing: 1px;
  text-align: center;
  line-height: 40px;
  color: rgb(0, 0, 0);
  background-color: #ffbaba;
  font-weight: 1000;
  border-radius: 100%;
  border-width: 10px;
  border-color: rgb(0, 0, 0);
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* Schatten hinzufügen */
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 40px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -moz-font-feature-settings: 'liga';
}


/*flip picture*/
.flip-card-list {
  list-style-position: inside;
  text-align: center;
  margin-left: -50px;
}

.flip-card {
  display: inline-block;
  position: relative;
  height: 250px;
  width: 250px;
  background-color: white;
  perspective: 1000px;
  padding-left: 30px;
  padding-right: 30px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

.flip-card-front, .flip-card-back {
  position: absolute;
  padding: 1px;
  border: 1px solid;
  border-color: white;
  border-radius: 5px;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  box-shadow: 0px 0px 10px 10px rgba(0,0,0,.2);
}

.flip-card-back {
  box-shadow: 0px 0px 10px 10px rgba(0,0,0,.2), inset 0 0 0 6px white;
  background-color: #417829;
  transform: rotateY(180deg);
}

.flip-card-back-text {
  text-align: center;
  color: white;
font-size: 18px; /* Größe des Textes anpassen */

}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}
    
/* Stuff for about page */

.team-container {
    display: flex; /* Use flexbox layout */
    flex-wrap: wrap; /* Wrap flex items to new line when necessary */
    justify-content: space-around; /* Distribute items evenly */
    margin-top: 40px; /* Space above team container */
}

.team-member {
    flex-basis: 15%; /* Set flex basis */
    margin: 20px; /* Add margin */
    padding: 20px; /* Add padding */
    background-color: #f2f2f2; /* Light gray background */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Light shadow */
    flex-direction: column; /* Arrange children in a column */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    text-align: center; /* Center text */
}

.team-photo {
    width: 180px; /* Set photo width */
    height: 180px; /* Set photo height */
    border-radius: 50%; /* Make photo circular */
    margin-bottom: 35px; /* Space below photo */
}

/* Adjustments to improve responsiveness */
@media (max-width: 768px) {
    .team-member {
        flex-basis: 100%; /* Set flex basis to 100% on smaller screens */
        margin: 10px 0; /* Adjust margin*/
    }
}

}
.topnav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: none /*rgba(#cdcdcd, 0.5);*/
    overflow: hidden;
    text-align: right;
}

.hero-section {
    min-height: 100vh; /* Mindesthöhe von 100vh */
    background-image: url('../graphics/CO2_Ausstoss.jpg');
    background-size: cover;
    background-position: center; /* Mittelpunkt des Bildes */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertikal zentriert */
    align-items: center; /* Horizontal zentriert */
    text-align: center;
    color: white;
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
}

/* Style for the text container */
.hero-text {
    position: relative;
    z-index: 2;
    margin-top: -0px; /* Shift the entire text block up */
    background-color: rgba(0, 0, 0, 0.6); /* Optional: Add if you want a background for the entire text block */
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.hero-section main-titel, .hero-section description-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    background-color: transparent;
    padding: 15px;
    border-radius: 5px;
    margin: 0; /* Remove margin-top to apply it only to .hero-text */ 
}


/* More for the starting page */

/* Style for the text container */
.number-box-container {
    text-align: center; /* Damit die Felder zentriert sind */
}

.number-box {
    display: inline-block;
    margin: 0 10px;
    opacity: 0; /* Startet unsichtbar */
    animation: fadeIn 0.5s forwards; /* Animation, um einzublenden */
    color: black; /* Textfarbe auf schwarz setzen */
    font-size: 25px; /* Schriftgröße erhöhen */
    width: auto; /* Breite dem Inhalt anpassen */
}

.important-number:nth-child(1) {
    margin-top: 20px;
    animation-delay: 0.5s; /* Erstes Feld erscheint sofort */
}
.important-number:nth-child(2) {
    animation-delay: 1.5s; /* Zweites Feld erscheint nach 0.5 Sekunden */
    margin-top: 20px; /* Füge einen oberen Abstand hinzu */
    display: inline-block; /* Auf neue Zeile setzen */
}
.important-number:nth-child(3) {
    animation-delay: 2.5s; /* Drittes Feld erscheint nach 1 Sekunde */
    margin-top: 40px; /* Füge einen oberen Abstand hinzu */
    display: inline-block; /* Auf neue Zeile setzen */
    background-color: #f96868; /* Hintergrundfarbe auf Hellgrau setzen */
    font-weight: bold; /* Text fett machen */
    font-size: 33px; /* Schriftgröße erhöhen */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px); /* Optional: Startet etwas höher */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.important-number {
    background-color: #ffffff; /* Hintergrundfarbe auf weiß setzen */
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Schatten hinzufügen */
}
.flex-container {
    display: flex;
    justify-content: center;
    }

.body-lower-box {
    background-color: #ffe0c9;
    width: 80%;
    margin-top: 50px;
    border-radius: 0.5rem;
    padding-bottom: 20px;
    justify-content: center; /* Vertikal zentriert */
    align-items: center; /* Horizontal zentriert */
    text-align: center;
 }

/* Map placeholder*/
.map-placeholder {
    height: 80vh; /* Ad esempio, per fare in modo che l'iframe occupi l'80% dell'altezza della viewport */
    width: 100%; /* Usa tutta la larghezza disponibile */
    background-color: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0; /* Azzera i margini per sfruttare tutto lo spazio */
    padding: 0; /* Azzera il padding per sfruttare tutto lo spazio */
}

/* Stil für das Popup-Fenster */
        .popup-container {
           display: none; /* Popup standardmäßig ausblenden */
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.9); /* Schatten hinzufügen */
            text-align: center; /* Text in der Mitte zentrieren */
            font-size: 20px; /* Schriftgröße erhöhen */
            max-width: 80%; /* Maximale Breite des Popups */
            z-index: 9999; /* Damit das Popup über allem anderen liegt */
        }
        
        /* Stil für den Schließen-Button */
        .close-btn {
            margin-top: 10px;
            cursor: pointer;
            color: #bd0000;
            text-decoration: underline;
        }

        /* Stil für den Overlay-Hintergrund */
        .overlay {
            display: none; /* Overlay standardmäßig ausblenden */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5); /* Halbtransparenter Hintergrund */
            z-index: 9998; /* Damit das Overlay unter dem Popup liegt */
        }

.full-width-image {
            width: 90%;
            height: 400px; /* You can adjust the height as needed */
            background: url('../graphics/climateprotest.PNG') center 30% / cover no-repeat;
            
            margin: 15px auto; /* Center the div and add space before and after the image */
            opacity: 0.8; /* Adjust the opacity for transparency */
        }

.caption {
            text-align: center;
            font-size: 14px;
            color: #808080;
            font-style: italic;
            margin-top: 10px; /* Space above the caption */
}
 /* Hypothesis box styling */
    
.hypothesis-box {
    background-color: #e8e8e8;  /* Light grey background */
    border-radius: 10px;        /* Rounded corners */
    padding: 15px;              /* Padding inside the box */
    margin: 10px 0;             /* Margin to separate from other elements */
    list-style-type: none;      /* Remove default list style */
    text-align: center;           /* Left-align text */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Add a slight shadow */

}

 .centered-quote {
            text-align: center;
            font-size: 18px;
            font-style: italic;
            margin-top: 40px; /* Space above the quote */
            margin-bottom: 40px; /* Space below the quote */
            background-color: #e8e8e8;  /* Light grey background */
    border-radius: 10px;        /* Rounded corners */
    padding: 15px;              /* Padding inside the box */
    list-style-type: none;      /* Remove default list style */
    text-align: center;           /* Left-align text */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Add a slight shadow */

        }

