html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    user-select: none; 
    overscroll-behavior-y: none;
    background-color: lightgray;
    font-family: "Console", monospace;
    font-size: 5vmin;
}

#menu {
    position: absolute;
    top: 0;
    left: 2vw;
    height: 4vmax;
    display: flex;
    align-items: center; 
}

.sub_menu {
    position: absolute;
    top: 4vmax;
    left: 2vw;
    height: 4vmax;
    display: none;
    align-items: center;
}

#canvas {
    position: absolute;
    top: 4vmax;
    left: 2vw;
    margin: 0; 
    padding: 0; 
    background-color: black;
    border-radius: 2vmin;
}

#elements {
    position: absolute;
    //top: calc(100vh - env(safe-area-inset-bottom));
    left: 0;
    width: 100vw;
    height: 5vmax;
    bottom: 0; //env(safe-area-inset-bottom);
    display: flex;
    justify-content: center;
    align-items: center;
}

.elem {
    width: 6vmin;
    text-align: center;
    border-radius: 2px;
    margin: 5px;
}

.active_elem, .elem:active {
    background: darkgray;
}

#output {
    position: absolute;
    display: none;
    top: 55vh;
    left: 0;
    //bottom: 1vh;
    bottom: env(safe-area-inset-bottom);
    width: 100vw;
    overflow: hidden;
}

#move {
    height: 3vmax;
    width: 100vw;
    line-height: 3vmax;
    padding-left: 1vmin;
    border: outset;
}

#outtext {
    position: absolute;
    left: 5px;           
    height: calc(100% - 4vmax);
    width: calc(100vw - 10px);
    white-space: pre;   
    overflow: scroll;
    user-select: text;
}

.btn {
    padding: 0 5px 0 5px;
    margin-right: 2px;
}

.active_btn, .btn:active {
    background: darkgray;
    color: white;
}
