* {
    box-sizing: border-box;
}

body,
html {
    padding: 0;
    margin: 0;
    background-color: black;
    height: 100%;
    color: white;
    font: 13px "Helvetica", sans-serif;
}

body {
    display: flex;
    box-orient: horizontal;
    background: black;
    color: white;
    overscroll-behavior: none;  /* disable scroll chaining */
    touch-action: none;         /* block touch gestures (scroll, pinch, swipe) */
    user-select: none;          /* prevent text selection / hold highlight */
}

.blue { color: rgba(88,150,255,1); }
.blueBg { background-color: rgba(88,150,255,1); }
.green { color: rgb(150, 255, 80); }
.greenBg { background-color: rgb(150, 255, 80); }
.red { color: rgba(255,80,80,1); }
.redBg { background-color: rgba(255,80,80,1); }

aside {
    margin: 1em;
    padding: 1em;
    box-sizing: border-box;
    position: fixed;
    right:0;
    width: 420px;
    background: #444;
    overflow-y: auto;
    z-index: 666;
    max-height: 85%;
    border-radius: 3px;
}

aside > div {
    padding: 0.75em;
    border: thin rgba(127,127,127,0.5) solid;
    border-radius: 5px;
    margin:0.5em 0 ;
    transition: background 0.3s ease;
}

#hotkeysImages div,
#hotkeysVideos div {
    padding: 5px 0;
}

#hotkeysImages div:hover,
#hotkeysVideos div:hover {
    background: #666;
}

label {
    display: block;
    font: 13px "Helvetica", sans-serif;
    color: white;
}

strong {
    font-weight: bold;
    padding: 0 3px;
    user-select: none;
}

code {
    display: inline-block;
    font: 12px "Courier new";
    float: right;
}

#gallery {
    position: absolute;
    height:100%;
    width:100%;
    background-color: black;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

ol {
    padding-inline-start: 1em;
}

video,
select,
button:focus, button:active,
input:focus, input:active {
    outline: none;
}

input::placeholder {
    color:white;
}

button:active {
    filter:invert(1)
}

.scale {
    object-fit: cover;  /* proportionally scale up */
}
.letterbox {
    object-fit:contain;  /* letterbox/pillarbox */
}
.stretch {
    object-fit:fill; /* stretch to fit */
}

select, input, button {
    background: #777;
    width: 100%;
    border: none;
    color: white;
    border-radius: 3px;
}

select {
    padding:8px 12px;
}

input, button {
    appearance: none !important;
    padding:8px 12px;
}

input[type=file] {
    box-sizing: content-box;
}

select:hover, input:hover, button:hover {
    background: #999;
    cursor: pointer;
}

input[type="range"] {
    padding: 0;
}
input[type="range"]:hover {
    cursor: col-resize;
}

.hide {
    display: none !important;
}

button.small {
    width: auto;
}

button.medium {
    width: auto;
    min-width: 50px;
    margin: 0.5em 0;
}

input::-webkit-slider-thumb {
    appearance: none !important;
    width: 32px;
    height: 20px;
    background: #111;
    border-radius: 3px;
}

#currentTimeRange::-webkit-slider-thumb {
    width: 2px;
}

.noScrollbar::-webkit-scrollbar { display: none; }
.noScrollbar { scrollbar-width: none; }

section {
    box-flex: 1;
    padding: 0;
    overflow: hidden;
    width: 100%;
}

video {
    position: absolute;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 2;
}

video.noControls {
    cursor: none;
}

.menu-hidden {
    position: fixed;
    top:0;
    right: 0;
    width: 40px;
    height: 40px;
    z-index: 3;
}

.hotkeys span {
    border: solid grey thin;
    border-radius: 3px;
    padding: 0 .25em;
}

.small {
font-size: 0.75em;
}

/* hide controls in fullscreen*/
.noControls .custom-video-controls {
    z-index: 2147483647;
}

video.noControls::-webkit-media-controls-enclosure {
    display: none !important;
}

video.noControls::-webkit-media-controls {
    display: none !important;
}

.noControls::-webkit-media-controls {
    display: none !important;
}