/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: monospace;
    font-size: 13px;
    border-radius: 2px;
    overflow:hidden;
}

html, body {
    height: 100%;
}

nav {
    height: 30px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc;
    background-color: white;
    z-index: 1000;
}

main {
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 10px;
    right: 10px;
}



footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    color: #ccc;
    font-size: 12px;
    background-color: #444;
    border-top: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
*/


/* Page layout: header (nav) + main + footer.
   Nav/footer height = content-driven.
   Main fills remaining space.
   Main content scrolls (not the whole page). */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: monospace;
    font-size: 13px;
    border-radius: 2px;
}

/* Let the page be a 3-row grid */
html, body {
    height: 100%;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto; /* nav, main, footer */
    min-height: 100vh;
    overflow: hidden; /* prevent body scrolling; main scrolls instead */
    background: #fff;
}

/* Nav: height comes from its child/content */
nav {
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid #ccc;
    background-color: white;
    z-index: 1000;
    overflow: visible; /* allow dropdowns if needed */
}

/* Main fills the available space. Use padding instead of absolute left/right. */
main {
    min-height: 0;
    min-width: 0;
    overflow: hidden; /* main itself does NOT scroll */
    display: flex;
    flex-direction: column;
}

    /* Footer: height comes from its child/content */
    footer {
    color: #ccc;
    font-size: 12px;
    background-color: #444;
    border-top: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: visible;
}


