html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Verdana", sans-serif;
    font-display: swap;
    overflow-x: hidden;  /* prevent horizontal scroll */
    padding: 0 10px;      /* small horizontal padding to avoid full edge */
}

#map_canvas {
    width: 100%;
    max-width: 1800px;
    height: auto;
    max-height: 600px;
    aspect-ratio: 16 / 9;    /* maintain ratio */
    margin: 20px auto;
    background-color: #e0e0e0;
    position: relative;
}

/* Google Maps fills container */
#map_canvas > div {
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100% !important;
    width: 100% !important;
}


/* Mobile adjustment */
@media (max-width: 600px) {
    #map_canvas {
        max-width: 100%;    /* remove max-width on small screens */
        padding-bottom: 56.25%; /* keep ratio */
    }
}

#bottom_menu { 
    width: 100%; 
    max-width: 1200px;
    overflow: hidden;
}

#bottom_menu .stat { 
    width: 300px; 
    margin: 0 1%; 
    display: block; 
    float: left;
}

#bottom_menu #statproto { 
    width: 150px;
}

#bottom_menu #statstat { 
    width: 190px;
}

h1, h2 {
    text-align: center;
}

li {
    font-size: 12px;
}

