#preloader {
    transition: opacity 0.5s ease;
}
#app{

    z-index: 100;
}
@font-face {
    font-family: 'Roboto Mono';
    src: url('RobotoMono-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 700; /* Bereich der unterstützten Gewichte */
    font-style: normal;
}
body {
    font-family: Arial, sans-serif;
    background: black;
    color: white;
    margin: 0;
    padding: 0;
    text-align: center;
}
#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Make sure the map is behind the countdown */
}
.countdown {
    position: absolute; /* Ensures it can be centered within its parent */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers it both horizontally and vertically */
    z-index: 100; /* Ensures it is on top of the map */
    font-family: 'Roboto Mono', monospace; /* Monospace font */
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
    user-select: none;
    pointer-events: none;
    text-align: center; /* Center-align the text */
}
#currentTime{
    position: relative;
    z-index: 100; /* Make sure the countdown is on top of the map */
    user-select: none;
    pointer-events: none;
}
/* Hochformat */
@media (orientation: portrait) {
    .countdown {
        font-size: 7vw;

    }
}

/* Querformat */
@media (orientation: landscape) {
    .countdown {
        font-size: 45px; /* Passt die Schriftgröße an die Höhe des Bildschirms an */
    }
}
#settings{
    position: relative;
    z-index: 102; /* Make sure the countdown is on top of the map */
}

.settings {
    display: none;
}
.settings.active {
    display: block;
}

#firework{
    position: fixed; /* Sticks the overlay to the viewport */
    top: 0;
    left: 0;
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    z-index: 1000; /* Ensure it stays above other elements */
    user-select: none;
    pointer-events: none;
}

#linkcontainer {
    position: fixed; /* Keeps the container at a fixed position on the page */
    bottom: 10px; /* Adjust distance from the bottom */
    left: 10px; /* Adjust distance from the left */
    display: flex; /* Aligns child elements in a row */
    align-items: center; /* Ensures the QR code and badges are aligned vertically */
    gap: 10px; /* Adds spacing between the QR code and badges */
    z-index:10;
}
#badges {
    display: flex; /* Flexbox for the badges container */
    flex-direction: column; /* Stacks the badges vertically */
    gap: 5px; /* Adds spacing between the badges */
    user-select: none;
}
#QR {
    width: 100px; /* Adjust the size of the images */
    height: auto; /* Maintains aspect ratio */
    user-select: none;
    pointer-events: none;
}
#badges img{
    width: 120px; /* Adjust the size of the images */
    height: auto; /* Maintains aspect ratio */
}
#blink {
    position: fixed; /* Ensures the overlay is fixed to the viewport */
    top: 0;
    left: 0;
    width: 100%; /* Full width, compatible with older browsers */
    height: 100%; /* Full height, compatible with older browsers */
    z-index: 10;
    pointer-events: none; /* Prevents user interaction */
}

.blinking {
    animation: blink 1s infinite; /* Infinite blinking animation */
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; /* Ensures consistent gradient scaling */
}

/* Define keyframes with percentages for maximum browser support */
@keyframes blink {
    0%, 100% {
        opacity: 0; /* Fully transparent */
    }
    20% {
        opacity: 1; /* Fully visible */
    }
}

.leaflet-popup-content-wrapper{
     user-select: none;
 }
#debug{
    position: fixed; /* Sticks the overlay to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    border: 1px solid #ccc;
    overflow-y: scroll;
    background-color: #f9f9f944;
    padding: 10px;
    font-family: monospace;
    z-index: 5000;
    color:#ff0000;
    display: none;

}
#debug.show {
    display: block!important;
}
.hidden {
    display: none!important;
}
.fullscreen-icon {
    position: fixed;
    top: 80px; /* Adjust to place below the settings icon */
    right: 20px;
    cursor: pointer;
    z-index: 101; /* Ensure it is on top of the map */
    font-size: 2em; /* Adjust size */
    width:2.5em;
    height:2.5em;
    display: flex;
    align-content: center;
    justify-content: space-around;
    align-items: center;
}

.gear {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 101; /* Ensure the gear icon is on top */
    font-size: 2em;
    width:2.5em;
    height:2.5em;
    display: flex;
    align-content: center;
    justify-content: space-around;
    align-items: center;
}
}