    html,
    body {
        height: 100%;
    }

    body {
        margin: 0;
        font-family: system-ui, sans-serif;
        background: #0b0b0b;
        color: #fff;
    }

    /* ======================
   HOOFDLAYOUT
====================== */

    #container {
        display: flex;
        height: 100vh;
    }

    /* ======================
   LINKERKOLOM
====================== */

    /* 3D */
    #leftColumn {
        flex: 3;
        display: flex;
        flex-direction: column;
    }

    #road {
        flex: 1 1 auto;
        min-height: 0;
        /* heel belangrijk bij flex + canvas */
        /* TEST */
        background: rgb(0, 0, 0);
    }



    #road canvas {
        width: 100%;
        height: 100%;
        display: block;
    }

    /* BEDIENING */
    #controlPanel {
        background: #1a1a1a;
        padding: 12px;
        border-top: 2px solid #333;
        text-align: center;
    }

    .controls {
        display: flex;
        justify-content: center;
        gap: 14px;
        margin: 8px 0;
    }

    .controls button {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .stepInfo {
        font-size: 0.95rem;
        opacity: 0.85;
    }

    /* ======================
   RECHTERKOLOM
====================== */

    /* #side {
        flex: 1;
        background: #141414;
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    } */
    #side {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px;

        height: 100vh;
        box-sizing: border-box;

        background: #111;
    }

    /* INFO */
    #table {
        background: #000;
        border-radius: 12px;
    }

    #graph {
        flex: 0 0 auto;
        padding: 12px;
        border-radius: 12px;
    }

    #moonSpriteContainer {
        width: 200px;
        height: 200px;
        margin: auto;
    }




    #phaseName {
        margin-top: 10px;
        font-size: 1.5rem;
        font-weight: bold;
        text-align: center;
    }

    /* MAAN SPRITE */
    #moonSpriteContainer {
        width: 200px;
        height: 200px;
        margin: 12px auto 0;
        overflow: hidden;
        /* border-radius: 50%; */
        background: #000;
        /* dieper zwart */
        /* correct noordelijk halfrond */
        transform: scaleX(-1);
    }

    #moonSprite {
        width: calc(6 * 200px);
        height: calc(5 * 200px);
        will-change: transform;
    }

    /* RELATIEBLOKKEN (SECUNDAIR) */
    /* .relationBlock {
        background: #2c2c6c;
        padding: 12px 14px;
        border-radius: 12px;
        text-align: center;
    } */
    .relationBlock {
        padding: 10px;
        background: #2e4571;
        border-radius: 12px;

        flex: 0 0 auto;
    }

    .relationBlock h3 {
        font-size: 1rem;
        margin: 0 0 6px 0;
        text-align: center;
    }


    .counterRow {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #2f2f6f;
        gap: 8px;
    }

    .counterRow button {
        width: 36px;
        height: 36px;
        font-size: 16px;
        /* background: #2f2f6f; */
        background: #2e4571;

    }

    .counterRow div {
        min-width: 48px;
        text-align: center;
        font-size: 1.2rem;
        font-weight: bold;
    }

    .unitLabel {
        text-align: center;
        font-size: 0.8rem;
        opacity: 0.8;
        margin-top: 4px;
    }

    #earthCounter,
    #moonCounter {
        min-width: 60px;
        font-size: 1.4rem;
        font-weight: bold;
    }

    /* .unitLabel {
        font-size: 0.85rem;
        opacity: 0.8;
    } */

    #currentPhase {
        margin-top: 8px;
        font-size: 1.4rem;
        font-weight: bold;
        text-align: center;
        color: #ffffff;
    }

    @media (max-height: 800px) {
        #moonSpriteContainer {
            width: 180px;
            height: 180px;
        }
    }