html,
body {
    min-height: 100%;
    margin: 0;
    background: #152025;
    color: #eef4f4;
    font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    padding: 12px 12px 76px;
}

button,
input {
    font: inherit;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

#appName {
    margin: 0 0 3px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
}

#commsInfo,
#backToAppsButton {
    color: #93d6d7;
    font-size: 13px;
    text-decoration: none;
}

#backToAppsButton {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    line-height: 36px;
}

main {
    max-width: 560px;
    margin: 0 auto;
}

section {
    margin-bottom: 12px;
}

#filePanel,
#pointerPanel {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: #203036;
}

#pdfFile {
    display: none;
}

#selectFileButton {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: #ffd34d;
    color: #151515;
    cursor: pointer;
    font-weight: 700;
}

#fileName,
#chunkStatus {
    margin-top: 9px;
    overflow: hidden;
    color: #c6d5d6;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#viewControls {
    display: flex;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: #203036;
}

#displayControls {
    display: flex;
    margin-top: 10px;
}

#displayControls button {
    flex: 1 1 100%;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: #93d6d7;
    color: #071013;
    cursor: pointer;
    font-weight: 700;
}

#viewControls button {
    flex: 1 1 80px;
    min-height: 64px;
    border: 0;
    border-radius: 8px;
    background: #2f474f;
    color: #eef4f4;
    cursor: pointer;
    font-weight: 700;
}

#viewControls svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
    vertical-align: middle;
}

#touchPad {
    position: relative;
    height: 280px;
    min-height: 34vh;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: #101a1e;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

#touchPad.active {
    border-color: #ffd34d;
    background: #17262b;
}

#padCrossH,
#padCrossV {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
}

#padCrossH {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
}

#padCrossV {
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
}

#padHint {
    position: absolute;
    top: 50%;
    right: 14px;
    left: 14px;
    margin-top: -10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

#touchPad.active #padHint {
    opacity: 0.25;
}

#bottomPanel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: #101a1e;
}

.bottomPanelCell {
    min-width: 0;
}

.bottomPanelCell:first-child {
    flex: 1 1 auto;
}

.roomCell {
    flex: 0 0 auto;
    text-align: right;
}

.bottomPanelLabel {
    display: block;
    margin-bottom: 2px;
    color: #809598;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

#statusLine,
#roomLabel {
    display: block;
    overflow: hidden;
    color: #d7e2e3;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#roomLabel {
    max-width: 120px;
}

@media (max-width: 360px) {
    body {
        padding-right: 8px;
        padding-left: 8px;
    }

    #touchPad {
        height: 270px;
    }

}
