html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #36d0f7;
    font-family: sans-serif;
    padding: 0;
    margin: 0;
    height: 100%;
    min-width: 1000px;
    min-height: 800px;
    display: flex;
    flex-flow: column;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -o-user-select: none;
}

#outputWindow {
    width: 100%;
    z-index: 100000;
    display: none;
    position: relative;
    height: 100%;
    border: solid black 1px;
    background-color: #ffffff;
    overflow: hidden;
}

#modal {
    display: block;
    visibility: hidden;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 110000;
    text-align: center;
}

h1 {
    font-weight: normal;
    font-size: 140%;
}

.lcdfont {
    font-family: monospace, sans-serif;
}

.move {
    cursor: move;
}

.component {
    top: 50px;
    left: 30px;
    width: auto;
    height: auto;
    position: absolute;
    z-index: 0;
    /* artefacts correction for transform in Chrome */
    -webkit-backface-visibility: hidden;
}

.colorBlock {
    display: inline-block;
    position: relative;
    left: 5px;
    top: 5px;
    width: 18px;
    height: 18px;
    border: solid black 1px;
}

.xcomponent {
    position: relative;
    z-index: 0;
}

.m {
    z-index: 100;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    cursor: move;
    visibility: hidden;
    border: solid black 1px;
}

.button {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
}

.head {
    position: absolute;
    right: 0;
    left: 0;
    height: 20px;
    top: 0;
    background-color: darkblue;
    color: white;
}

.display {
    border: solid black 1px;
    display: inline-flex;
    flex-direction: column;
    background-color: red;
    text-align: right;
    color: black;
    font-weight: bold;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 5px;
    font-size: 14pt;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -o-user-select: none;
}

.display-inner {
    display: block;
    flex: auto;
    width: auto;
    height: auto;
    white-space: pre;
    overflow: auto;
    background-color: black;
    color: white;
    border: solid black 1px;
    padding: 5px;
    text-align: left;
    border-radius: 8px;
}

.label {
    text-align: center;
    display: block;
}

.display-value {
    position: relative;
    display: inline-block;
    background-color: black;
    color: #9090FF;
    font-weight: bold;
    width: 100px;
    padding: 5px;
    border: solid gray 1px;
    border-radius: 8px;
    cursor: default;
}

.codeDialog {
    display: inline-block;
    border: solid black 2px;
    border-radius: 20px;
    background-color: rgba(235, 235, 235, 1.0);
    margin-left: auto;
    margin-right: auto;
    min-width: 700px;
    max-width: 90%;
    min-height: 100px;
    height: auto;
    max-height: 90%;
    overflow: auto;
    margin-top: 2%;
    z-index: 2;
}

.editDialog {
    display: block;
    padding: 10px;
    width: auto;
    min-width: 300px;
    height: auto;
    min-height: 60px;
    border-radius: 5px;
    border: solid black 2px;
    background-color: rgba(235, 235, 235, 1.0);
    position: absolute;
    left: 100px;
    top: 200px;
    z-index: 2;
}

.editComponent {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    font-size: 10pt;
}

.editComponent span {
    display: inline-block;
}

#promptDialog {
    display: block;
    position: absolute;
    top: 100px;
    width: 350px;
    left: 300px;
    height: 80px;
    margin: auto;
    z-index: 100;
    border: solid black 2px;
    background-color: #A0A0A0;
    padding: 10px;
    visibility: hidden;
}

#promptDialog * {
    margin-top: 5px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
}

@font-face {
    font-family: texasled;
    src: url("../fonts/texasled.ttf");
}

#componentsDialog {
    position: absolute;
    background-color: white;
    width: 350px;
    height: 200px;
    border: solid black 2px;
    z-index: 110000;
    left: 800px;
    top: 120px;
    padding: 10px;
    gap: 10px;
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.selComp {
    display: flex;
    gap: 5px;
}

.selComp>div {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    border: solid #C0C0C0 1px;
    text-align: center;
    padding: 3px;
    font: Arial;
    font-weight: bold;
    font-size: 10pt;
    cursor: pointer;
}

.selComp>div:hover {
    border: solid black 1px;
    background-color: #C0FFC0;
}

.selComp>div[data-sel] {
    border: solid black 1px;
    background-color: #70FF70;
}

.buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 0 10px;
}

.fillImage {
    display: block;
    background-size: 100% 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.movementCopy {
    position: absolute;
    top: 100px;
    left: 800px;
    width: 100px;
    height: 100px;
}

#tmpOutput {
    position: absolute;
}