body {
    margin: 0;
    padding: 0;
    background-color: #181818;
    color: #fbf1c7;
    font-family: "Droid Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 14px;
}

#ROOT {
    display: flex;
    width: 100%;
    height: 100%;
}

a {
    color: #458588;
}

a:visited {
    color: #83a598;
}

#loginOverlay {
    display: flex;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    align-items: center;
    justify-content: center;
    flex-flow: column;
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 20px 5px;
    background-color: #181818;
}

#loginForm label {
    margin-top: 20px;
    text-align: center;
    font-size: 28px;
    color: #d79921;
}

#loginForm button {
    font-size: 16px;
}

#loginForm input {
    font-size: 16px;
}

#kinobox {
    flex: 3 3 auto;
}

#kinopanel {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 340px;
    word-wrap: break-word;
    scrollbar-color: #222222 #181818;
    overflow: auto;
}

.panelBox {
    flex-grow: 1;
}

.messageInput {
    margin-top: 0px;
    margin-bottom: 5px;
}

.messageEvent, .emptyPlaylistText {
    color: #b7ad94;
}

.currentMovieText {
    font-weight: bold;
    margin-bottom: 10px;
}

.messageName {
    display: inline-block;
    font-weight: bold;
    white-space: pre-wrap;
}

.overlayBox {
    width: 50ch;
    float: left;
    position: absolute;
    top: 5px;
    left: 5px;
}

.ovMessage {
   user-select: none;
   -moz-user-select: none;
}

.ovMessage, #ovInput, .ovInput > label {
    font-size: 1.3em;
    margin-bottom: -8px;
    overflow-wrap: break-word;
}

.ovInput > label {
    margin-bottom: -12px;
}

.ovInput {
    display: flex;
}

#ovInput {
    width: 100%;
    background-color: transparent;
    border-style: none;
    outline: 0;
}

#ovInput, .overlayBox {
    color: #c9c2a4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4),
                 1px -1px 2px rgba(0, 0, 0, 0.4),
                 -1px 1px 2px rgba(0, 0, 0, 0.4),
                 -1px -1px 2px rgba(0, 0, 0, 0.4),
                 1px 0px 1px rgba(0, 0, 0, 0.4),
                 0px 1px 2px rgba(0, 0, 0, 0.4),
                 -1px 0px 2px rgba(0, 0, 0, 0.4),
                 0px -1px 2px rgba(0, 0, 0, 0.4);
}

.movieElem {
    display: flex;
    background-color: #282828;
    padding: 7px;
    align-items: center;
    height: 20px;
}

.movieSource {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movieElem:nth-of-type(odd) {
    background-color: #32302f;
}

.tabBox {
    flex-grow: 1;
    overflow-x: hidden;
    overflow-y: scroll;
    margin: 5px;
}

.tabButtonsGroup {
    display: flex;
    width: 100%;
}

.tabButton {
    width: 100%;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
}

#resizeHandle {
    width: 8px;
    height: 100%;
    background-color: #282828;
    cursor: ew-resize;
}

.activeTabButton {
    color: #d79921;
    border-bottom-style: solid;
    border-bottom-color: #d79921;
}

.actionBtn {
    padding: 2px 8px;
    margin: 5px;
    font-size: 12px;
    border-radius: 2px;
    align: right;
}

button {
    background-color: #222222;
    color: #fbf1c7;
    border-radius: 0;
    border: none;
    outline: 0;
    padding: 0;
}

button:focus {
    color: #d79921
}

button::-moz-focus-inner {
    border: 0;
}

input {
    background-color: #222222;
    border: 1px solid #282828;
    box-shadow: none;
    padding: 2px;
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    margin: 0px 5px 0px 5px;
}

input:focus {
    outline: 1px solid #d79921;
}

#kinobox > .plyr {
    height: 100%;
}

.plyr__video-embed {
    aspect-ratio: unset !important;
}

/* fixes fullscreen bug introduced in plyr 3.6.6
 * https://github.com/sampotts/plyr/compare/v3.6.5...v3.6.6#diff-b5690d0640cd5edb7708aad664918313b2ee998e73fdf44bb2112a88bd6f92f4
 **/
.plyr--youtube.plyr--paused.plyr__poster-enabled:not(.plyr--stopped) .plyr__poster {
    display: unset !important;
}

::-webkit-scrollbar {
    max-width: 10px;
    max-height: 10px;
    background: #222222;
}

::-webkit-scrollbar-track, ::-webkit-scrollbar-corner {
    background: #181818;
}

::-webkit-scrollbar-thumb {
    background: #222222;
}

::-webkit-scrollbar-thumb:hover {
    background: #075894;
}

@media screen and (max-width: 800px) {
    #ROOT {
        flex-direction: column-reverse;
    }

    #kinopanel {
        width: 100%;
        height: 360px;
    }

    #resizeHandle {
        width: 100%;
        height: 8px;
        cursor: ns-resize;
    }
}
