* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    background-color: midnightblue;
    color: white;
    font-family: monospace;
    font-size: 16px;
}

div {
    /*border: 1px dotted yellow;*/
}

#all {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#top {
    min-height: 80px;
    width: 100%;
    padding: 18px;
}

#main {
    flex: 1;
    width: 100%;
    display: flex;
}

#main #left {
    flex: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
}

#main #right {
    min-width: 300px;
    margin-left: auto;
    padding: 18px;
}

#canvas_top {
    flex-shrink: 0;
    height: 32px;
    display: flex;
    flex-direction: row;
}

#canvas_top > #date_and_time {
    flex: 1;
    border: 1px solid white;
}

#canvas_top > #place {
    flex: 1;
    border: 1px solid white;
}

#canvas {
    width: 100%;
    flex: 1;
    position: relative;
    z-index: 1;
    background-color: white;
    display: flex;
}

#canvas #background{
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: white;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-position: center;
    color: #999;
}

#canvas #cells{
    position: absolute;
    z-index: 3;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    opacity: 0.8;
    /*overflow: hidden;*/
}

#canvas #cells>div{
    display: flex;
    width: 100%;
    flex-shrink: 0;
}

#canvas #cells>div:not(:first-child){
    border-top: 1px dotted gray;
}

#canvas #cells div .cell{
    flex-shrink: 0;
    display: inline-block;
}

#canvas #cells div .cell:not(:first-child){
    border-left: 1px dotted gray;
}

#canvas #cells div .cell.shadow{
    border: 2px solid black;
}

#adjust{
    min-width: 100px;
    margin-bottom: auto;
}

#adjust > div{
    display: inline-block;
    font-size: 12px;
    padding: 8px;
}

#adjust button{
    width: 30px;
    height: 22px;
}

#adjust input{
    width: 40px;
    height: 22px;
}

.sample{
    display:inline-block;
    width:20px;
    height:14px;
    margin: 4px;
    color: black;
    text-align: center;
}