body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: sans-serif;
    background-color: #333;
    color: #fff;
    font-size: 12px;
}

h1 {
    font-size: 20px;
    text-align: center;
    margin: 0px 0 6px 0;
    padding: 0;
}

input[type="file"] {
    display: none;
}

a {
    color: #fff;
}

.container {
    background-color: #111;
    box-shadow: 4px 4px 32px #000;
    border-radius: 8px;
    padding: 12px 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 330px;
    transform: translate(-50%, -50%);
}

.targetHtml {
    display: block;
    position: relative;
    z-index: 1;
    background-color: #222;
    color: #aaa;
    font-size: 14px;
    font-family: monospace;
    white-space: pre;
    border: none;
    width: 295px;
    height: 160px;
    margin: 4px 0 4px 0;
    z-index: 1;
}

.targetUrl {
    color: #fff;
    background-color: #222;
    border: none;
    padding: 4px 4px 4px 4px;
    margin: 4px 0 4px 0;
    width: 290px;
}

.targetJs {
    display: block;
    position: relative;
    z-index: 1;
    background-color: #222;
    color: #aaa;
    font-size: 10px;
    font-family: monospace;
    white-space: pre;
    border: none;
    width: 295px;
    height: 160px;
    margin: 4px 0 4px 0;
}

#roomId {
    font-size: 20px;
    letter-spacing: 0.15em;
}

#status {
    position: fixed;
    bottom: 8px;
    width: 210px;
    color: #999;
    text-align: left;
}

.warning {
    display: inline;
    color: yellow;
    margin-top: 2px;
    margin-bottom: 8px;
    font-style: italic;
}

.tabs {
    display: flex;
    overflow: hidden;
    background-color: #111;
    margin-bottom: 8px;
}

.tabs .tabLink {
    background-color: inherit;
    border-radius: 6px;
    border: none;
    color: #fff;
    text-decoration: none;
    outline: none;
    cursor: pointer;
    padding: 4px 6px;
    margin: 1px;
    transition: 500ms;
    font-size: 12px;
}

.tabs .tabLink:hover,
.tabs .tabLink:focus {
    background-color: #222;
}

.tabs .tabLink.active {
    background-color: #444;
}

.tabContent {
    display: none;
}

.colors {
    text-align: center;
}

.colorButton {
    border: none;
    border-radius: 6px;
    box-shadow: 2px 2px 3px #111;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    padding: 0;
    margin: 4px 2px 4px 2px;
    transition: transform 250ms;
    touch-action: manipulation;
    width: 90px;
    height: 50px;
    transform: scale(1);
}

.colorButton:hover,
.colorButton:focus {
    outline: 2px solid #fff;
}

.colorButton:active {
    transform: scale(0.9);
}

.docs {
    margin-top: 8px;
    text-align: center;
}



.controlsButton {
    opacity: 75%;
    align-items: center;
    background-color: #000;
    border: 2px solid #666;
    border-radius: 6px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 600;
    justify-content: center;
    padding: 3px 8px 3px 8px;
    margin-bottom: 6px;
    position: relative;
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    width: auto;
}

.controlsButton:hover,
.adminButton:focus {
    opacity: 1;
    border-color: #fff;
    color: #fff;
}

.controlsButton:active {
    opacity: 1;
    background-color: #fff;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px;
    color: #000;
    transform: translateY(3px);
}

.appIconList {
    background-color: #000;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    display: grid;
    grid-auto-columns: 154px;
    grid-auto-flow: column;
    grid-template-rows: 1fr;
    gap: 8px;
    height: 192px;
    margin: 6px 0 8px 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
    scrollbar-color: #777 #151515;
    scrollbar-width: thin;
}

.appIconList::-webkit-scrollbar {
    height: 10px;
}

.appIconList::-webkit-scrollbar-track {
    background-color: #151515;
    border-radius: 999px;
}

.appIconList::-webkit-scrollbar-thumb {
    background-color: #666;
    border: 2px solid #151515;
    border-radius: 999px;
}

.appIconList::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

.appIconButton {
    align-items: center;
    background-color: #111;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font: inherit;
    font-weight: 700;
    gap: 9px;
    height: 154px;
    justify-content: center;
    margin: 0;
    min-width: 0;
    padding: 14px 9px 11px 9px;
    text-align: center;
    touch-action: manipulation;
    transition: background-color 180ms, border-color 180ms, box-shadow 180ms, transform 180ms;
    width: 154px;
}

.appIconButton img {
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(0, 0, 0, 0.45);
    display: block;
    flex: 0 0 auto;
    height: 100px;
    object-fit: contain;
    overflow: hidden;
    padding: 0;
    width: 100px;
}

.appIconButton span {
    display: block;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appIconButton:hover,
.appIconButton:focus {
    background-color: #1c1c1c;
    border-color: #fff;
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.22);
    outline: none;
}

.appIconButton:active {
    border-color: #111;
    transform: translateY(2px);
}

.appFooter {
    position: fixed;
    bottom: 0px;
    right: 6px;
}

.docsLink {
    opacity: 75%;
    align-items: center;
    background-color: #000;
    border: 2px solid #666;
    border-radius: 6px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 600;
    justify-content: center;
    padding: 3px 8px 3px 8px;
    margin-bottom: 6px;
    position: relative;
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    width: auto;
    height: 30px;
}

.docsLink:hover,
.docsLink:focus {
    background-color: #1c1c1c;
    border-color: #fff;
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.22);
    outline: none;
}

.appResetButton {
    width: auto;
    height: 30px;
}

@media (hover: none),
(pointer: coarse) {
    .appIconList {
        scrollbar-width: none;
    }

    .appIconList::-webkit-scrollbar {
        display: none;
    }
}


#commsInfoDiv {
    position: fixed;
    bottom: 6px;
    width: 100%;
    text-align: center;
    color: #555;
    font-family: monospace;
    text-shadow: 0 0 2px black;
    user-select: none;
}

#chunkStatus {
    font-size: 10px;
}

#commsInfoDiv #commsInfo {
    text-decoration: none;
    cursor: pointer;
}

#commsInfoDiv #commsClientCounts {
    margin-left: 4px;
    color: #555;
    text-decoration: none;
    cursor: pointer;
}