html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: black;
}

#gameCanvas {

    display: block;

    position: fixed;

    top: 0;
    left: 0;

    z-index: 1;
}

#assetPalette {

    position: fixed;

    top: 0;
    right: 0;

    width: 220px;
    height: 100vh;

    background: rgba(20,20,20,0.95);

    border-left:
        1px solid #444;

    color: white;

    font-family: Arial;

    overflow-y: auto;

    z-index: 1000;
}

.paletteHeader {

    padding: 10px;

    font-weight: bold;

    border-bottom:
        1px solid #444;
}

.paletteCategory {

    padding: 8px 10px;

    font-weight: bold;

    color: #8fc8ff;

    background:
        rgba(255,255,255,0.05);

    border-top:
        1px solid #444;

    border-bottom:
        1px solid #333;
}

.categoryContent {

    display: block;
}

.assetItem {

    padding: 10px;

    cursor: pointer;

    border-bottom:
        1px solid #333;
}

.assetItem:hover {

    background:
        rgba(255,255,255,0.15);
}

.assetItem.selected {

    background:
        rgba(0,150,255,0.4);
}

#gameCanvas {

    display: block;

    position: relative;

    z-index: 1;
}

#cancelPlacement {

    padding: 10px;

    cursor: pointer;

    border-bottom:
        1px solid #333;

    background:
        rgba(150,0,0,0.3);
}

#cancelPlacement:hover {

    background:
        rgba(255,0,0,0.3);
}

.paletteButton {

    padding: 10px;

    cursor: pointer;

    border-bottom:
        1px solid #333;

    text-align: center;
}

.paletteButton:hover {

    background:
        rgba(255,255,255,0.15);
}

.roomHeader {

    margin-top: 12px;
    margin-bottom: 4px;

    text-align: center;

    font-weight: bold;
}

#roomId {

    width: 90%;

    margin: 0 auto 8px auto;

    display: block;

    box-sizing: border-box;
}

.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.modalDialog {
    position: absolute;
    left: 50%;
    top: 100px;
    width: 500px;
    transform: translateX(-50%);
    background: #202020;
    border: 2px solid #808080;
    color: white;
    z-index: 1000;
    box-shadow: 0 0 15px black;
}

.visibilityDialog {
    position: absolute;
    left: 50%;
    top: 120px;
    width: 280px;
    transform: translateX(-50%);
    background: #202020;
    border: 2px solid #808080;
    color: white;
    z-index: 1000;
    box-shadow: 0 0 15px black;
}

.modalTitleBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #404040;
    font-weight: bold;
}

.modalContent {
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.commandMenu {
    position: absolute;
    display: none;
    min-width: 220px;
    background: #202020;
    color: white;
    border: 1px solid #808080;
    z-index: 1000;
    box-shadow: 4px 4px 10px rgba( 0, 0, 0, 0.5 );
}

.commandMenuItem {
    display: block;
    padding: 6px 12px;
    white-space: nowrap;
    cursor: default;
    user-select: none;
}

.commandMenuItem:hover {
    background: #3A6EA5;
    color: white;
}

.commandMenuSeparator {
    border-top: 1px solid #808080;
    margin: 4px 0;
}

#participantsTable {
    width: 100%;
    border-collapse: collapse;
}

    #participantsTable th,
    #participantsTable td {
        padding: 6px;
        border-bottom: 1px solid #555;
        text-align: left;
    }