.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.dialog {
    position: absolute;
    background-color: #fff;
    border: 1px solid #bbb;
    border-radius: 5px;
    box-shadow: 0px 0px 8px 1px rgba(0, 0, 0, 0.3);
    padding: 1em;
    /*overflow: auto;*/
    box-sizing: border-box;
}

.dialog h2.title {
    text-align: center;
    font-size: 1.2em;
}

.dialog input, .dialog select {
    flex: 0.5;
}

.dialog input[type="number"] {
    text-align: right;
}

.dialog input[type="checkbox"] {
    flex: none;
}

.dialog .close-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 16px;
    background-color: #666;
    color: #fff;
    vertical-align: middle;
    line-height: 14px;
    display: inline-block;
    width: 16px;
    height: 16px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
}

.dialog .fields-container {
    overflow: auto;
}

.dialog .field {
    margin-bottom: 0.5em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
}

.dialog .field.hidden {
    display: none;
}

.dialog .field label {
    display: inline-block;
    min-width: 7em;
    font-weight: bold;
    color: #444;
    flex: 0.3;
}

.dialog input[type="checkbox"]+label {
    font-weight: normal;
}


.dialog .actions {
    position: absolute;
    bottom: 0;
    padding-bottom: 0.5em;
    text-align: center;
    left: 0;
    right: 0;
    width: 100%;
}

ul.tabbar {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-evenly;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

li.tabbar-item {
    list-style-type: none;
    text-align: center;
    cursor: pointer;
    color: #666;
    flex: 1;
    border-left: 1px solid #aaa;
}

li.tabbar-item:first-of-type {
    border-left: 0 none;
}

li.tabbar-item.selected {
    color: #000;
}

.tabbar-item label {
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.95em;
    font-weight: bold;
}

.joypad {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: grid;
    align-content: space-between;
    justify-items: center;
    align-items: center;
}

.joypad .key {
    color: #fff;
    font-weight: bold;
}

.joypad .key.active {
    color: #68e6ef;
}

.joypad .key.up {
    grid-row: 1;
    grid-column: 2;
}

.joypad .key.down {
    grid-row: 3;
    grid-column: 2;
}

.joypad .key.left {
    grid-row: 2;
    grid-column: 1;
}

.joypad .key.right {
    grid-row: 2;
    grid-column: 3;
}
