* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#content {
    position: absolute;
    top: 25%;
    left: 50%;
    width: 49%;
    transform: translate(-50%, -50%); /* Zentriert das Element horizontal und vertikal */
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.0); /* Halbtransparenter Hintergrund */
    padding: 20px;
    /* border-radius: 10px; */
    text-align: center;
    border-radius: 18px;
}
#countryInput {
    width: 100%;
    padding: 10px 40px 10px 20px;
    border-radius: 18px;
    background-color: #bae4f5; /* Set the background to black */
    border: 2px solid; /* Make the border thicker */
    border-color: #00acee; /* Match the color of the glowing h1 text */
    color: rgb(0, 0, 0); /* Set the text color to white */
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    box-shadow: 0 0 3px #00acee, 0 0 3px #00acee, 0 0 30px #00acee; /* Permanent glowing effect, same as input */
}

#suchen {
    position: absolute;
    right: 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
}

#suchen img {
    width: 20px;
    height: 20px;
}

#form-container {
    display: flex;
    flex-direction: row; /* Elemente nebeneinander platzieren */
    align-items: center; /* Vertikale Ausrichtung */
}

input, button {
    padding: 8px;
    margin: 5px;
    font-size: 16px;
}

h1 {
    margin-bottom: 20px;
}

#fly {
    display: block;
    position: relative;
    margin: 0px auto;
    width: 50%;
    height: 40px;
    padding: 10px;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    text-align: center;
    color: #fff;
    background: #ee8a65;
}

#torchButton {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100; /* Ensure the button stays on top */
    background-color: rgb(83, 83, 83);
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

body.blended {
    background-color: #2E3537;
    cursor: none;
    margin: 0;
}

:root {
    --pointerX: 50vw;
    --pointerY: 50vh;
}

body.blended:before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 10vmax at var(--pointerX) var(--pointerY), rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 80%, rgba(0,0,0,0.95) 100%);
    z-index: 99; /* Make sure the torchlight effect is above the content */
}

.content {
    padding: 5em;
    color: white;
    font-size: 20px;
}

#chart-container {
    position: absolute;
    top: 53%;
    left: 75%;
    transform: translate(-50%, -50%);
    width: 550px; /* Adjust width to ensure enough space for the chart */
    height: 250px; /* Adjust height to ensure enough space for the chart */
    background-color: #bae4f5;
    z-index: 1; /* Ensure the chart is above other content */
    border-radius: 10px;
    padding: 10px; /* Add some padding for better presentation */
    box-shadow: 0 0 3px #00acee, 0 0 3px #00acee, 0 0 30px #00acee; /* Glowing effect */
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

#disclaimer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(255, 255, 255, 0); /* Semi-transparent background */
    padding: 10px;
    font-size: 14px;
    color: #000000; /* Text color */
    z-index: 10;
}

#helloText {
    color: rgb(0, 0, 0); /* Set text color to white to match the glowing effect */
    font-family: 'Lato', sans-serif;
}

.text-animation {
    position: absolute;
    top: 15%; /* Keep the title higher up */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-animation h1 {
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-size: 72px; /* Reduce font size by 10% (was 80px) */
    letter-spacing: 5px; /* Reduce letter-spacing for closer letters (was 10px) */
    text-transform: uppercase;
}

.text-animation h1 span {
    animation: glow 2.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        color: #eee;
        text-shadow: 0 0 10px #00acee, 0 0 50px #00acee, 0 0 80px #00acee;
    }
    10%, 90% {
        color: #111;
        text-shadow: none;
    }
}

#form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 0 auto;
    position: relative;
}

#countryInput {
    width: 100%;
    padding: 10px 40px 10px 20px;
    border-radius: 18px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
}

#text-container {
    position: absolute;
    top: 60%;
    left: 35%;
    transform: translate(-50%, -50%);
    padding: 10px;
    background-color: #bae4f5; /* Background color as before */
    z-index: 1;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 3px #00acee, 0 0 3px #00acee, 0 0 30px #00acee; /* Glowing effect */
    font-family: 'Nunito', sans-serif;
    display: none;
    width: auto;
    height: auto;
    max-width: 300px;
}

#flagImage {
    display: none; /* Initially hidden until loaded */
    margin: 0 auto;
    width: 75px; /* Smaller size */
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px; /* Space between flag and text */
}

#loadingPlaceholder {
    background-color: rgba(255, 255, 255, 0); /* Transparent background */
    padding: 10px;
    border-radius: 5px;
}

#loadingText {
    margin: 0;
    color: #000; /* Text color */
    font-size: 18px; /* Font size for loading text */
}

#helloText {
    color: rgb(0, 0, 0); /* Text color */
    font-family: 'Lato', sans-serif;
    display: none; /* Initially hidden until loaded */
}
/* Marker styling with circular wave animation */
.custom-marker {
    width: 20px;
    height: 20px;
    background-color: #bae4f5; /* Match the text container color */
    border-radius: 50%;
    box-shadow: 0 0 3px #00acee, 0 0 3px #00acee, 0 0 30px #00acee; /* Glowing effect */
    position: relative;
    animation: pulse 1.5s infinite;
}

/* Pulsing effect around the marker */
.custom-marker::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 172, 238, 0.5); /* Glowing blue */
    border-radius: 50%;
    animation: wave 2.5s infinite; /* Add wave animation */
    z-index: -1;
}

/* Wave animation for the expanding circle around the marker */
@keyframes wave {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Custom styles for text container elements */
.custom-text-container {
    position: absolute;
    top: 60%;
    left: 35%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #bae4f5;
    z-index: 1;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 3px #00acee, 0 0 3px #00acee, 0 0 30px #00acee;
    font-family: 'Nunito', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    height: auto;
    max-width: 300px;
}

/* Custom loading placeholder */
.custom-loading {
    background-color: rgba(255, 255, 255, 0);
    padding: 10px;
    border-radius: 5px;
}

/* Text for the loading placeholder */
.custom-loading p {
    margin: 0;
    color: #000;
    font-size: 18px;
}

/* Capital text styling */
.custom-capital {
    color: rgb(0, 0, 0);
    font-family: 'Lato', sans-serif;
    display: none;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Country flag styling */
.custom-flag {
    display: none;
    width: 75px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}


/* Additional styling to control text arrangement */
.custom-text-container p {
    margin: 5px 0;
}

#capitalLabel {
    font-weight: normal;
    color: #000; /* Text color for the label */
}

#capitalName {
    font-style: normal; /* Style for the capital name */
    color: #000000; /* Text color for the capital name */
}

.custom-capital {
    color: rgb(0, 0, 0);
    font-family: 'Lato', sans-serif;
    display: none;
    font-size: 18px;
    margin-bottom: 10px;
}

.capital-name {
    font-weight: bold;  /* Text fett darstellen */
    color: rgb(0, 0, 0);  /* Textfarbe */
    font-size: 18px;  /* Schriftgröße */
    font-family: 'Lato', sans-serif;
    margin: 0;  /* Kein zusätzlicher Abstand */
    display: none;  /* Wird erst sichtbar, wenn geladen */
}

#countryNameText {
    font-size: 25px; /* Increase font size */
}

.population-style {
    font-weight: bold; /* Fettgedruckter Text */
    font-size: 18px; /* Größere Schriftgröße */
    color: #000000; /* Blaue Textfarbe */
    margin-top: 10px; /* Etwas Abstand nach oben */
}
