html {
    box-sizing: border-box;
    height: 100%;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#canvas-container {
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

#canvas {
    flex-shrink: 0;
    display: block;
    width: 100%;
    height: auto;
}

#editor-container {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    padding: 5px;
    display: flex;
    flex-direction: column;
}

#editor {
    width: 100%;
    height: 100%;
    resize: none;
    font-family: monospace;
    font-size: 20px;
    padding: 10px;
    line-height: 22px;
    border: 4px solid black;
    overflow-y: scroll;
}

#editor:focus {
    outline: none;
}

#buttons-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.control-button {
    min-width: 100px;
    font-size: 20px;
    font-family: monospace;
    font-weight: 800;
    padding: 10px;
    margin: 5px 5px 10px 0px;
}

#next-button[disabled] {
    color: lightgrey;
}

#level-title {
    font-family: monospace;
    margin: 0px 0px 8px 5px;
}
