* {
    box-sizing: border-box;
}
body {
    color: #fff;
    background: #333;
    margin: 0;
    padding: 0;
    height: 100%;
    font: 16px/1.5 sans-serif;
}
header h4:before {
    display: inline-block;
    content: "";
    background: transparent url(../media/dino.svg) 0 0 no-repeat;
    margin-right: 0.6em;
    width: 45px;
    height: 45px;
    text-align: center;
    vertical-align: middle;
}
header h4 {
    display: inline-block;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}
.user-message {
    display: none;
    position: absolute;
    top: 30px;
    left: 50%;
    background-color: #333;
    color: #fff;
    padding: 0.5em;
    border-radius: 4px;
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.5s;
    z-index: 4;
}
.fade-in {
    animation: fadein 0.5s;
}
.fade-out {
    animation: fadeout 0.5s;
}
.hide {
    opacity: 0;
}
.hidden {
    display: none;
}
.show {
    display: block;
}
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    padding: 0;
    border: 0;
}
@media screen and (min-width: 47.9375em) {
    header h4 {
        font-size: 1.1rem;
    }
}
@media screen and (min-width: 63.9375em) {
    header h4 {
        font-size: 1.4rem;
    }
}
@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes fadeout {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
.editor,
.output {
    font-size: 14px;
}
.editor {
    position: relative;
    margin-bottom: 1em;
}
.output {
    position: relative;
    display: inline-block;
    background-color: #272822;
    color: limegreen;
    margin: 0;
    padding: 0.8em;
    border: 1px solid limegreen;
    box-shadow: 2px 2px 5px -2px rgba(0, 0, 0, 0.1);
    width: 91%;
    height: 190px;
    font-family: courier;
}
.output code {
    width: 100%;
    height: 170px;
    white-space: pre;
    vertical-align: middle;
    word-break: break-word;
    overflow-y: auto;
}
.buttons-container {
    display: inline-block;
    width: 100px;
    vertical-align: top;
}
.button {
    display: block;
    background-color: limegreen;
    color: #333;
    padding: 0.5em;
    border: 2px solid #222;
    width: 100px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.1s;
}
.button:first-child {
    margin-bottom: 0.5em;
}
.button:hover {
    background-color: green;
    color: #fff;
    transition: 0.1s;
}
.js .editor {
    min-height: 280px;
}
.CodeMirror {
    border: 10px solid #222;
    border-left: 5px solid limegreen;
    height: 280px;
}
.js .editor.taller,
.js .editor.taller .CodeMirror {
    height: 720px;
}
.js .editor.shorter,
.js .editor.shorter .CodeMirror {
    height: 200px;
    min-height: 200px;
}
@supports (display: flex) {
    .buttons-container {
        align-self: flex-start;
        width: auto;
    }
    .output-container {
        display: flex;
        align-items: center;
    }
    .run {
        margin-right: 10px;
    }
    .output {
        display: flex;
        flex: 10 150px;
        align-items: center;
    }
}
