* {
    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: 100vw;
    height: 100vh;
    z-index: 0;
}

#content {
    position: absolute;
    top: 25vh;
    left: 50vw;
    width: 50%;
    max-width: 600px;
    transform: translate(-50%, -50%);
    z-index: 1;
    background-color: rgba(255, 255, 255, 0);
    padding: 20px;
    text-align: center;
    border-radius: 18px;
}

#countryInput {
    width: 100%;
    padding: 10px 40px 10px 20px;
    border-radius: 18px;
    background-color: #bae4f5;
    border: 2px solid;
    border-color: #00acee;
    color: rgb(0, 0, 0);
    font-size: 1rem;
    box-shadow: 0 0 3px #00acee, 0 0 3px #00acee, 0 0 30px #00acee;
}

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

#iconLupe {
    width: 20px;
    height: 20px;
}

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

input, button {
    padding: 1vw;
    margin: 0.5vw;
    font-size: 1rem;
}

h1 {
    margin-bottom: 2vh;
}

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

#torchButton {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    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;
}

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

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

#disclaimer {
    position: fixed;
    font-family: 'Lato', sans-serif;
    bottom: 0;
    width: 100%;
    text-align: center;
    font-size: 13px;
    padding: 10px;
    color: #9a9a9a;
    z-index: 10;
}

#helloText {
    color: rgb(0, 0, 0);
    font-family: 'Lato', sans-serif;
    display: none;
}

.text-animation {
    position: absolute;
    top: 15vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-animation h1 {
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-size: 72px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.text-animation h1 span {
    animation: glow 3s 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;
    }
}

#flagImage {
    display: none;
    margin: 0 auto;
    width: 75px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

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

#loadingText {
    margin: 0;
    color: #9a9a9a;
    font-size: 18px;
}

.custom-marker {
    width: 20px;
    height: 20px;
    background-color: #bae4f5;
    border-radius: 50%;
    box-shadow: 0 0 3px #00acee, 0 0 3px #00acee, 0 0 30px #00acee;
    position: relative;
    animation: pulse 1.5s infinite;
}

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

@keyframes wave {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.custom-text-container {
    position: absolute;
    top: 75vh;
    left: 20vw;
    transform: translate(-50%, -50%);
    padding: 10px;
    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: none;
    width: auto;
    height: auto;
    max-width: 300px;
}

.custom-loading {
    background-color: rgba(255, 255, 255, 0);
    padding: 10px;
    border-radius: 5px;
    margin: 0;
    font-size: 18px;
}

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

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

.custom-text-container p {
    margin: 5px 0;
}

#capitalLabel {
    font-weight: normal;
    color: #000;
}

#capitalName {
    font-style: normal;
    color: #000000;
}

.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;
    color: rgb(0, 0, 0);
    font-size: 18px;
    font-family: 'Lato', sans-serif;
    margin: 0;
    display: none;
}

#countryNameText {
    font-size: 25px;
}

.population-style {
    font-weight: bold;
    font-size: 18px;
    color: #000000;
    margin-top: 10px;
}

.custom-hello {
    font-size: 18px;
}

.error-message {
    color: #9a9a9a;
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    margin-top: 10px;
    text-align: center;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    border-radius: 8px;
    z-index: 100;
    width: 500px;
}

body.blended:before {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 5vmax at var(--pointerX) var(--pointerY), rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 1) 100%);
    z-index: 99;
}

.stecker-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    width: 35px;
    height: auto;
    cursor: pointer;
    filter: drop-shadow(0 0 10px rgba(0, 172, 238, 1));
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stecker-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(0, 172, 238, 1));
}

.quote-popup {
    display: none;
    font-size: 25px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.0);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    text-shadow: 0 0 10px #00acee, 0 0 50px #00acee, 0 0 80px #00acee;
    z-index: 1;
}

#chartError {
    position: absolute;
    font-family: 'Lato', sans-serif;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.0);
    color: #9a9a9a;
    font-size: 18px;
    z-index: 1;
    padding: 10px;
}

#chart-container {
    position: absolute;
    top: 75vh;
    left: 58vw;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 900px;
    height: 230px;
    background-color: #bae4f5;
    z-index: 1;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 3px #00acee, 0 0 3px #00acee, 0 0 30px #00acee;
}

#text-container {
    position: absolute;
    top: 75vh;
    left: 18vw;
    transform: translate(-50%, -50%);
    padding: 10px;
    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: none;
    width: auto;
    height: autos;
    max-width: 300px;
}

@media screen and (max-width: 1400px) {

    #chart-container {
        width: 60%;
    }
}

@media screen and (max-width: 768px) {
    #content {
        width: 90%;
        padding: 5vw;
    }

    #chart-container {
        width: 90%;
        left: 50vw;
        height: 190px;
    }

    #text-container {
        height: auto;
        width: auto;
        max-height: 160px;
        left: 22vw;
        top: 45vh;
    }

    #countryNameText, #capitalLabel, #capitalName, #helloText, #populationText, #capitalText {
        font-size: 12px;
        margin: 2px;
    }

    #loadingText {
        font-size: 8px;
    }

    #flagImage {
        width: 50px;
        margin-bottom: 0px;
    }

    #fly {
        width: 70%;
    }

    input, button {
        padding: 2vw;
        font-size: 0.9rem;
    }

    .text-animation h1 {
        font-size: 43px;
    }

    #suchen {
        right: 35px;
    }

    #disclaimer {
        font-size: 10px;
    }
    
    .stecker-icon {
        position: absolute;
        top: 18px;
        left: 18px;
        z-index: 100;
        width: 25px;
        height: auto;
        cursor: pointer;
        filter: drop-shadow(0 0 10px rgba(0, 172, 238, 1));
        border-radius: 50%;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
}

@media screen and (max-width: 425px) {
    #content {
        width: 95%;
        padding: 7vw;
    }

    .text-animation h1 {
        font-size: 30px;
    }

    input, button {
        font-size: 0.8rem;
        padding: 3vw;
    }
   
    #suchen {
        right: 30px;
    }

    .stecker-icon {
        position: absolute;
        top: 18px;
        left: 18px;
        z-index: 100;
        width: 20px;
        height: auto;
        cursor: pointer;
        filter: drop-shadow(0 0 10px rgba(0, 172, 238, 1));
        border-radius: 50%;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    #quoteText {
        font-size: 12px;
    }

    #chart-container {
        height: 180px;
        left: 50vw;
        top: 73vh;
        padding: 5px;
    }

    #chartError {
        font-size: 12px;
    }

    #disclaimer {
        font-size: 8px;
    }

}
