@font-face {
    font-family: 'Silkscreen';
    src: url('slkscr-webfont.eot');
    src: url('slkscr-webfont.eot?#iefix') format('embedded-opentype'),
         url('slkscr-webfont.woff') format('woff'),
         url('slkscr-webfont.ttf') format('truetype'),
         url('slkscr-webfont.svg#silkscreennormal') format('svg');
    font-weight: normal;
    font-style: normal;
}

*, *::before, *::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: "Silkscreen";
    color: white;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-size: 1.25vmax;
}

body {
    background-image: url("background.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

h1 {
    font-size: 2rem;
}
h2 {
    font-size: 1.25rem;
    margin-bottom: 0;
}

/* background */
.ui-layer, .dialog, button, select, input, textarea {
    background-color: rgba(11, 16, 22, 0.75);
    background-image: none;
}

/* white border */
.dialog, button, select, input, textarea {
    border: 1px solid #fff;
    border-radius: 0.25rem;
}

.wrapper {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.padded {
    padding: 0.75rem;
}

.ui-layer {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dialog {
    display: block;
    position: absolute;
    top: 35%;
    right: 25%;
    bottom: 35%;
    left: 25%;
}

.dialog h1 {
    margin: 0;
    padding: 0.25rem;
    font-size: 1.25rem;
    background-color: #fff;
    color: #000;
}

.dialog .bottom {
    position: absolute;
    right: 0;
    bottom: 0;
    text-align: right;
}

fieldset {
    border: none;
    outline: none;
}

button, select {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.5rem 0.75rem;
    min-width: 4rem;
    color: white;
    font-size: 1rem;
}

button:hover, select:hover {
    box-shadow: 0 0 0.5rem #fff, inset 0 0 0.5rem #fff;
    text-shadow: 0 0 0.5rem #fff;
    outline: none;
}

button:active, select:active {
    box-shadow: 0 0 0.5rem #2daebf, inset 0 0 0.5rem #2daebf;
    text-shadow: 0 0 0.5rem #2daebf;
    border-color: #2daebf;
    outline: none;
}

select {
    -webkit-appearance: none;
    padding-right: 1.5rem;
}

.select:after {
    content: "\25BE";
    margin-left: -1.5rem;
    z-index: -1;
}

select > option {
    background-color: black;
}

input[type="text"] {
    display: block;
    margin: 0.5rem;
    padding: 0.5rem;
}

textarea {
    display: block;
    width: 90% !important;
    margin: 0.5rem;
    padding: 0.5rem;
    resize: none;
}

#control-panel {
    position: absolute;
    width: 20%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.big-text #dialog-box-message {
    padding-top: 4rem;
    font-size: 2rem;
    text-align: center;
}

#canvas {
    display: block;
    position: absolute;
    width: 80%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 20rem #445;
}
