body {
    font-family: "Fira Sans","Helvetica Neue",Helvetica,Calibri,Verdana,sans-serif;
    margin: 40px auto;
    padding: 1em;
    max-width: 44em;
    line-height: 1.6;
    font-size: 14pt;
    color: #444;
    background-color: #fff;
}

h1 { text-align: center; }
h1 img { max-width: 1.5em; height: auto; }

a { color: #0d98ba; }
a:hover { color: #0c7090; }

tt, pre, code, kbd, textarea { font-family: "Fira Mono", Inconsolata, monospace; }

#where li { display: inline; margin: 2em; }

#versions li { display: inline; margin: 1em; }

.outputs {
    display: flex;
    width: 100%;
    align-items: center;
    height: 20em;
}

#sample {
    padding: 1em;
}

.code {
    border-radius: 3px;
    border: 1px solid #ddd;
    font-size: 12pt;
    line-height: 1.5;
    margin: 3em auto;
    padding: 0;
    text-align: left;
    text-shadow: none;
    white-space: pre-wrap;
}

.code,
.sourceCode { background-color: #f9fef5; color: #181a19; }

.sourceCode .va,
.sourceCode .fu { color: #181a19; }

.code .comment,
.sourceCode .co { color: #94b996; font-style: italic; }

.code .keyword,
.code .string,
.code .number,
.code .nil,
.code .boolean,
.sourceCode .st,
.sourceCode .fl,
.sourceCode .dv { color: #8e9144; }

.code .symbol.special,
.code .symbol.macro,
.code .symbol.global,
.sourceCode .ex,
.sourceCode .kw { color: #448f22 }

.sourceCode .ex,
.sourceCode .bu,
.code .symbol.special { font-weight: bold; }

.code-flex {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    width: min-content;
}

#fengari-console, #compiled-lua {
    overflow-y: scroll;
    padding: 1em 1.2em;
    display: block;
    flex-grow: 1;
}

#fengari-console pre { margin: 0; }

.fengari-input-container { display: flex; }

.fengari-input-container > * {
    outline: none;
    border: none;
    white-space: pre-wrap;
    font-family: "Fira Mono", Inconsolata, monospace;
    color: #444;
    background: #f0f0f0;
    min-height: 1em;
    padding: 1em;
    margin: 0;
    border-radius: 0 0 3px 3px;
    border-top: 1px solid #ddd;
}

#fengari-input {
    flex: 1;
    font-size: 10pt;
    padding-left: 0;
}

.button-container {
    width: 0;
    flex-grow: 0;
}

#lua-pane {
    display: none;
}

#toggle-compiled-code {
    font-size: 10pt;
    border-radius: 0 0 3px 3px;
    border: 2px solid #ddd;
}

/* see fennel */
#see-fennel .editor {
    display: grid; /* This combined with `grid-column: 1` and `grid-row: 1` gives overlapped elements */
    float: left;
    width: calc(50% - 1em);
    height: 20em;
    margin: 0.5em;
}

#see-fennel .editor textarea,
#see-fennel .editor pre {
    box-sizing: border-box;
    font-size: 13px;
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    line-height: 1.5;
    margin: 0;
    overflow-y: auto;
    padding: 0.4em;
    white-space: pre-wrap;
    width: 100%;
}

#see-fennel .editor textarea {
    border: 1px solid transparent; /* To make dimensions match with pre */
    background: transparent;
    caret-color: #444; /* TODO: Somehow inherit the color from body */
    color: transparent;
    outline: none; /* No focus glow */
    resize: none;
    z-index: 1;
}

#see-fennel .editor pre {
    box-sizing: border-box;
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    margin: 0;
    overflow-y: auto;
    width: 100%;
    z-index: 0;
}

#see-fennel .editor textarea::placeholder {
    opacity: 1;
    color: #94b996; /* Same color as comment */
}

#see-fennel button, #see-fennel select {
    margin: 0.5em;
    width: 48%;
    float: left;
}

#see-fennel select {
    margin-bottom: 3em;
}

hr { margin-top: 2em; clear: both; }

#see-fennel #out {
    clear: both;
    font-size: 80%;
    padding: 1em;
    background-color: #f8f8f8;
    border-radius: 3px;
    border: 1px solid #ddd;
}

h3 code { color: #007020; }
