@font-face {
    font-family: 'B612';
    src: url('assets/fonts/B612-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}


@font-face {
    font-family: 'B612';
    src: url('assets/fonts/B612-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}


@font-face {
    font-family: 'B612';
    src: url('assets/fonts/B612-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}


@font-face {
    font-family: 'B612';
    src: url('assets/fonts/B612-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}


@font-face {
    font-family: 'B612 Mono';
    src: url('assets/fonts/B612Mono-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}


@font-face {
    font-family: 'B612 Mono';
    src: url('assets/fonts/B612Mono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}


@font-face {
    font-family: 'B612 Mono';
    src: url('assets/fonts/B612Mono-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}


@font-face {
    font-family: 'B612 Mono';
    src: url('assets/fonts/B612Mono-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}


/* Set html and body to take up the full viewport and remove default spacing */
html,
body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    font-weight: bold;
}


/* Top bar at the top of the page with a tinted background */
.topbar {
    position: fixed;
    width: 100%;
    padding: 7px 35px;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(24, 28, 32, 0.6);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
}


.topbar::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #EEC900;
    opacity: 1.0;
    pointer-events: none;
}



.topbar-title {
    font-family: 'B612', sans-serif;
    font-size: 3.0rem;
    font-weight: 700;
    font-style: italic;
    color: #EEC900;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px #0006;
}



#clock {
    font-family: 'B612 Mono', monospace;
    font-weight: bold;
    font-style: italic;
    margin-right: 80px;
    text-align: right;
    font-size: 2.6rem;
    color: #D6001C;
    text-shadow: 0 2px 4px #0008;
    background: none;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    flex-shrink: 0;
}


@media (max-width: 600px) {
    .topbar {
        padding: 10px 10px;
        font-size: 1.4rem;
    }


    #clock {
        font-size: 1.1rem;
        max-width: 50vw;
    }
}


.leaflet-top {
    top: 90px !important;
}


/* Add top padding to content so it isn't hidden behind the top bar */
.content {
    padding-top: 70px;
}


/* Make the map container fill all available space */
#map {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #272626;
}



/* Create info box*/
.info-box {
    position: absolute;
    left: 20px;
    bottom: 20px;
    min-width: 100px;
    max-width: 340px;
    background: rgba(24, 28, 32, 0.85);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    padding: 8px 11px 0px 10px;
    z-index: 1000;
    font-family: 'B612', sans-serif;
    font-weight: bold;
    font-style: italic;
    font-size: 20px;
    color: #f8fafd;
    border: 2px solid #D6001C;
    letter-spacing: 0.04em;
    line-height: 1.3;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* For Safari */
}



.info-box b {
    color: #f8fafd;
    font-size: 1.25em;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}


.info-box dt {
    color: #D6001C;
    margin-top: 8px;
    margin-bottom: 0;
    letter-spacing: 0.03em;
}


.info-box dd.status.airborne {
    color: #2de32a;
    font-family: 'B612', sans-serif;
    font-weight: bold;
    font-style: italic;
}


.info-box dd.status.onground {
    color: #f8fafd;
    font-family: 'B612', sans-serif;
    font-weight: bold;
    font-style: italic;
}



.chx-label {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: #f8fafd !important;
    font-family: 'B612', sans-serif !important;
    font-weight: bold !important;
    font-style: italic !important;
    font-size: 21px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    pointer-events: none !important;
    white-space: nowrap !important;
    letter-spacing: 0.04em !important;
    text-shadow: 0 1px 4px #222, 0 0 2px #000 !important;
}



.leaflet-tooltip-bottom.chx-label::before {
    display: none !important;
}


.chx-wave {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%) scale(1);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42, 173, 39, 0.23) 60%, rgba(42, 173, 39, 0.01) 100%);
    animation: chx-wave 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 0;
    pointer-events: none;
    will-change: transform, opacity;
    opacity: 0;
    animation-fill-mode: both;
    animation-delay: 250ms;
}


@keyframes chx-wave {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }


    10% {
        opacity: 0.7;
    }


    40% {
        opacity: 0.45;
    }


    70% {
        opacity: 0.18;
    }


    90% {
        opacity: 0.07;
    }


    100% {
        transform: translate(-50%, -50%) scale(2.8);
        opacity: 0;
    }
}



.chx-wave.chx-wave-animate {
    animation: chx-wave 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}


.chx-marker-bg {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #222;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    background: #2AAD27;
}


.chx-marker-label {
    position: absolute;
    width: 36px;
    top: 7px;
    left: 0;
    text-align: center;
    color: #fff;
    font-family: 'B612', sans-serif;
    font-weight: bold;
    font-style: italic;
    font-size: 21px;
    z-index: 2;
    pointer-events: none;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 4px #0008;
}


/* === LEAFLET CONTROL STYLING === */

.leaflet-top {
    top: 105px !important;
}

/* General style for control containers (Zoom & Layer chooser) */
.leaflet-control-container .leaflet-bar,
.leaflet-control-layers {
    background: rgba(24, 28, 32, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
    border-radius: 8px !important;
    border: 2px solid #D6001C !important;
}

/* Style for the buttons inside the controls (e.g., zoom +/-) */
.leaflet-bar a {
    background-color: transparent !important;
    color: #f8fafd !important;
    font-weight: bold !important;
    border-bottom: 1px solid #D6001C !important;

    /* MODIFIED: Increased size of the zoom buttons */
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    font-size: 1.5rem !important;
}

/* Remove bottom border from the last button */
.leaflet-bar a:last-of-type {
    border-bottom: none !important;
}

/* Hover effect for buttons */
.leaflet-bar a:hover {
    background-color: #EEC900 !important;
    color: #181c20 !important;
}

/* Style for the layer control text */
.leaflet-control-layers-base label span,
.leaflet-control-layers-overlays label span {
    font-family: 'B612', sans-serif !important;
    font-weight: bold;
    font-style: italic;
    font-size: 17px;
    color: #f8fafd;
    letter-spacing: 0.04em;
}

/* Ensure a clean look for the layer control content */
.leaflet-control-layers-expanded {
    padding: 10px 14px;
}
