@import "lightdark.css";

/* MAIN */

main {
    display: grid;
    gap: 2rem;
    max-height: 100%;
}

.main-flex {
    display: grid;
    gap: 1rem;
    /* width: 100%; */
    max-height: 100%;
    /*align-items: stretch;*/
    grid-template-columns: 6.5fr 3.5fr;
    /* margin-bottom: -20px; */
    margin-right: 1rem;
    margin-left: .5rem;
}

.aerial {
    display: flex;
    min-height: 0;
    overflow: hidden; /* prevents image from pushing height */
    max-height: calc(100vh - 120px - 30px - 20px);

}

    .aerial img {
        display: block;
        height: 100%;
        width: 100%;
        border-radius: 10px;
    }

.aerial-map {
    position: relative;
    width: 100%;
    /* flex: 2;  Ensure it's stretching */
}

.aerial-background {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    /* object-fit: cover; */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* allows mouse events through except on interactive areas */
}

.shop-zone {
    position: relative;
    fill: transparent;
    stroke: transparent;
    stroke-width: 2;
    pointer-events: all; /* enable hover/click */
    transition: fill 0.3s, stroke 0.3s;
    cursor: pointer;
}

    .shop-zone:hover {
        fill: transparent;
        stroke: white;
    }


/*VERTICAL*/
.kpi-panel {
    /* flex: 1;
    display: flex;
    flex-direction: column; */
    display: flex;
    gap: 1rem;
    text-align: center;
    align-items: center;
    border-radius: 10px;
    color: black;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    /* position: relative; */
    /*max-width: 100%;*/
    padding: 2vh; /*scales with screen */
}

.kpi-block-row {
    display: grid;
    grid-template-rows: (auto-fit, minmax(0, 1fr)); 
    height: 100%;
    width: 100%; 
    row-gap: 10px;
}



.kpi-block-column {
    grid-template-columns: repeat(auto-fit, minmax(0, .33fr));
    /* grid-template-columns: 1fr 1fr 1fr; */
    justify-content: center;
    display: grid;
}

voca-date {
    font-size: 1em;
    color: white;
    text-align: center;
}

h3 {
    font-size: 1em;
    color: white;
    text-align: center;
    /* padding-bottom: 0.3em; */
}

.kpi-content {
    display: grid;
    grid-template-rows: auto auto;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.kpi-seperator {
    display: grid;
    grid-template-rows: auto auto;
    height: 100%;
    width: 100%;
}

.voca-meta {
    font-size: .8em;
    font-weight: bold;
    color: white;
    text-align: center;
    justify-self: center;
}

.gauge {
    display: flex;
    height: 100%;
    /* width: 1rem; */
}

.tooltip {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    pointer-events: none;
    white-space: nowrap;
    z-index: 999;
    transition: opacity 0.2s ease;
}

/* Responsive: stack on smaller screens */
@media (max-width: 900px) {
    .main-flex {
        flex-direction: column;
    }

    .aerial,
    .kpi-panel {
        width: 100%;
        height: auto; /* allow natural height on stack */
    }
}

.map-pin {
    width: 20px;
    height: 20px;
    background-color: blue;
    border-radius: 50%;
    position: absolute;
    cursor: pointer;
    z-index: 10;
    /*box-shadow: 0 0 5px 2px rgba(255, 0, 0, 0.5);*/
    animation: flicker 1.5s infinite ease-in-out;
    transition: transform 0.2s ease;
}

    .map-pin:hover {
        transform: scale(1.3);
    }

@keyframes flicker {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/** {
    outline: 1px solid red;*/ /* shows bounding boxes */
/*}*/

/*footer p {

    margin-top: -20px;
}*/



.news-ticker-container {
    height: 30px;
    line-height: 30px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
}



.news-ticker-content {
    display: inline-block; /* Allows content to flow horizontally */
    color: white;
    animation: scroll-left 40s linear infinite; /* Apply the animation */
}

    .news-ticker-content span {
            line-height: inherit;
; /* Space between news items */
    }

@keyframes scroll-left {
    0% {
        transform: translateX(100%); /* Start off-screen to the right */
    }

    100% {
        transform: translateX(-100%); /* End off-screen to the left */
    }
}

