html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
#toolbar {
    width: 100vw;
    height:1cm;
}
#max {
    width: 3em;
}
#main {
    /*on: absolute;
    top: 1cm;
    bottom:0;
    left:0;
    right: 0;*/
    width: 100vw;
    min-height: calc(100vh - 1cm);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 1px;
}
.area {
    flex-grow: 1;
    border: 1px solid #000;
    width: 33%;
}
.word {
    display: inline-block;
    border: 1px solid #c0c0c0;
    border-radius: 4mm;
    font-size: 6mm;
    padding: 3px;
    color: #000;
    user-select: none;
    cursor: pointer;
}
.sjp {
    color: #0f0;
}
@media only screen and (hover: none) and (pointer: coarse) and (orientation: landscape){
}

@media only screen and (hover: none) and (pointer: coarse) and (orientation: portrait){
   #toolbar { height: 1.5cm; }

    #main {
        flex-direction: column;
        min-height: calc(100vh - 1.5cm);
    }
    .area {
        width: 100%;
    }

}
