html {
    background-color: #181a1b;
    color: #e8e6e3;
}

body {
    font-family: arial;
    margin: 0;
}


div.emscripten { text-align: center; }
div.emscripten_border { border: 1px solid black; }
/* the canvas *must not* have any border or padding, or mouse coords will be wrong */
canvas.emscripten { border: 0px none; background-color: black; }


.spinner {
    height: 30px;
    width: 30px;
    margin: 0;
    margin-top: 20px;
    margin-left: 20px;
    display: inline-block;
    vertical-align: top;

    -webkit-animation: rotation .8s linear infinite;
    -moz-animation: rotation .8s linear infinite;
    -o-animation: rotation .8s linear infinite;
    animation: rotation 0.8s linear infinite;

    border-left: 5px solid rgb(235, 235, 235);
    border-right: 5px solid rgb(235, 235, 235);
    border-bottom: 5px solid rgb(235, 235, 235);
    border-top: 5px solid rgb(120, 120, 120);

    border-radius: 100%;
    background-color: rgb(189, 215, 46);
}

@-webkit-keyframes rotation {
    from {-webkit-transform: rotate(0deg);}
    to {-webkit-transform: rotate(360deg);}
}
@-moz-keyframes rotation {
    from {-moz-transform: rotate(0deg);}
    to {-moz-transform: rotate(360deg);}
}
@-o-keyframes rotation {
    from {-o-transform: rotate(0deg);}
    to {-o-transform: rotate(360deg);}
}
@keyframes rotation {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}

#status {
    display: inline-block;
    vertical-align: top;
    margin-top: 30px;
    margin-left: 20px;
    font-weight: bold;
    color: rgb(120, 120, 120);
}

#progress {
    height: 20px;
    width: 300px;
}

#controls {
    display: inline-block;
    float: right;
    vertical-align: top;
    margin-top: 30px;
    margin-right: 20px;
}

#canvas {
    display: flex;
    flex: auto;
    max-height: calc(100vh/1.2) ;
    /*height: calc(100vh/1.2);*/
    object-fit: contain;
    image-rendering: pixelated;
}

#output {
    display: none;
    width: 100%;
    height: 200px;
    margin: 0 auto;
    margin-top: 10px;
    border-left: 0px;
    border-right: 0px;
    padding-left: 0px;
    padding-right: 0px;
    background-color: black;
    color: white;
    font-family: 'Lucida Console', Monaco, monospace;
    outline: none;
}

.emscripten {
    display: flex;
    flex: auto
}

.emscripten_border{
    display: flex;
}


.doomAbout { display: block; }
.mobileAbout { display: none; }
.doomMidSpacer { display: none; }
.mobileWarning { display: none; }

@media (max-aspect-ratio: 15/13) {
    .doomAbout { display: none; }
    .mobileAbout { display: block; }
    .doomMidSpacer { display: flex; }
}

@media (max-aspect-ratio: 8/9) {
    .doomHelpContainer { display: none; }
    .doomMidSpacer { display: none; }
    .mobileWarning { display: flex; }
}

.doomHelpContainer{
    flex: 1;
    padding: 1em;
    position: relative;
    justify-content: center;
    min-width: 15em;
    max-width: 15vw;
}

.doomAbout{
    flex: 1;
    width: 10vw;
    padding: 1em;
    min-width: 15em;
    max-width: 15vw;
}

.doomMidSpacer{
    min-width: 15em;
}

.mobileAbout{
    padding: 1em;
}
.mobileWarning{
    padding: 1em;
}


h2{
    justify-self: center;
    text-align: center;
}

a{
    color: #83c1ff;
}