body {
    font-family: 'Poly Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

@font-face {
    font-family: "Poly Sans";
    src: url('fonts/PolySansNeutral.ttf') format('truetype');
}

@font-face {
    font-family: "Poly Sans Bulky";
    src: url('fonts/PolySansBulky.ttf') format('truetype');
}

@font-face {
    font-family: "Poly Sans Slim";
    src: url('fonts/PolySansSlim.ttf') format('truetype');
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.mapboxgl-ctrl-logo {
    display: none !important;
}

.recenter-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1;
    padding: 10px;
    background: white;
    border: none;
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: opacity 0.5s;
}

.recenter-button.invisible {
    opacity: 0;
    pointer-events: none;
}

.speed-limit-sign {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    max-width: 20vw;
    max-height: 20vh;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.hidden {
    opacity: 0;
}

.road-display {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    display: none;
}

/* NEW: Speed display styling */
.speed-display {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 4px;
    font-size: 36px;
    text-align: center;
    font-weight: bold;
}
