/* Blue: #00c0f0 
	Green: #d30a1f;
*/

* {box-sizing: border-box;}
input, button {outline: none;}
html { height: 100%;}
body { height: 100%; margin: 0; padding: 0; font-family: "Segoe UI",Helvetica,Arial,sans-serif; font-size: 16px; background: #fff; color: #000;}
body.logged-in {background: #fff; color: #000;}
body.dark-mode {background: #000;}
body.viewer .mod-only {display: none;}

.mobile-only {display: none;}
.desktop-only {display: block;}

body.fullscreen #branding {display: none;}
body.fullscreen #stream-info {display: none;}
body.fullscreen #bg {background: #000;}


#bg1 {position: fixed; top: 0; bottom: 0; left: 0; right: 0; background-image: url(../img/bg1.jpg); background-size: cover; background-position: center center; z-index: -1; opacity: 0.3;}
#bg2 {position: fixed; top: 0; bottom: 0; left: 0; right: 0; background-image: url(../img/bg1.jpg); background-size: cover; background-position: center center; z-index: -1; opacity: 0.3;}
#grid0 { display: grid; grid-template-columns: 1fr; height: 100%; align-items: center; justify-content: center; }
#grid2 { display: grid; grid-template-columns: 2fr 1fr; grid-gap: 15px;}

#stream { padding: 0; transition: all 0.25s ease;}
.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; /*border: 8px solid #800;*/} 
.embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/*.embed-container iframe, .embed-container object, .embed-container embed { width: 200%; margin-left: -50%; } Hide branding */
#stream-info {}
#stream-info h1 { font-size: 30px; margin-top: 0; margin-bottom: 5px; font-weight: 400; }
#stream-info h2 { font-size: 20px; margin-top: 0; margin-bottom: 10px; font-weight: 400; }

#sidebar { position: fixed; top: 0; bottom: 0; right: 0; transform: translateX(100%); width: 350px; max-width: 100%; display: flex; flex-direction: column; background: rgba(255,255,255,0.85); color: #000; transition: all 0.25s ease; border-left: 1px solid #000; border-right: 1px solid #000;}
body.show-sidebar #sidebar {transform: translateX(0%);}
#sidebar-toggle {position: fixed; top: 0; right: 0; font-size: 22px; margin: 10px; z-index: 2; cursor: pointer; padding: 7px 9px; border-radius: 50px; background: #000; color: rgba(255,255,255,0.85);}

#user-info { padding: 15px; }
#user-info .user-name {font-weight: bold; margin: 0;}
#user-info .user-role {font-size: 12px; margin: 0; text-transform: capitalize;}

#toolbar { display: flex; flex-direction: row; }
#toolbar>div, #toolbar button { font-size: 20px; width: 50px; border: none; border-radius: 0; padding: 10px; cursor: pointer; background: none; text-align: center; }
#toolbar>*:not(.active) {border-bottom: 1px solid #000;}
#toolbar>div.active {border-top: 1px solid #000; border-left: 1px solid #000; border-right: 1px solid #000;}
#toolbar>div.active:first-child {border-left: none;}
#toolbar>form {margin: 0;}
#toolbar>form button { color: #000;}

#sidebar .tabs {flex-grow: 1; display: flex; flex-direction: column; overflow: hidden;}
#sidebar .tabs .tab {display: none; flex-grow: 1; overflow: hidden;}
#sidebar .tabs .tab.active { display: flex; flex-direction: column;}
#sidebar .tabs .tab .title { font-size: 14px; font-weight: bold; text-align: center;}

#chat-tab.active {display: flex!important; flex-direction: column;}
#messages {flex-grow: 1; padding: 15px 15px 0 15px; overflow-y: auto;}
.message {margin-bottom: 20px; font-size: 14px; color: #606060; position: relative;}
/*.message.moderator:before {display: block; content: ""; position: absolute; left: -8px; top: 0; bottom: 0; width: 2px; background: #f00;}*/
.message {color: #000;}
.message.moderator {color: #800;}
.message .meta { color: #000; font-size: 12px; margin-bottom: 3px; display: grid; grid-template-columns: 1fr 100px;}
.message.moderator .meta {color: #800;}
.message .meta .actions {text-align: right;}
.message .meta .actions button {border: none; background: none; margin: 0 0 0 10px; padding: 0; cursor: pointer; color: #000; opacity: 0.5;}
.message .meta .actions button:hover { opacity: 1;}
.message .meta .rid {opacity: 0.5;}

#polls {padding: 0 15px; flex-grow: 1; overflow-y: auto;}
.poll { padding: 15px 0;}
.poll:not(:last-child) { border-bottom: 1px solid #d30a1f;}
.poll .question {font-weight: bold; cursor: pointer;}
.poll .answer {font-size: 14px; margin-top: 5px;}
.poll .poll-answer {cursor: pointer;}
.poll .bar-container {display: flex; flex-direction: row; align-items: center;}
.poll .fill {height: 10px;}
.poll .bar {border: 1px solid #000; flex-grow: 1;}
.poll .fill {background: #000;}
.poll .count {text-align: center; width: 20%;}
.poll button { background: #000; color: #fff; border: none; margin-top: 5px; padding: 5px 10px; cursor: pointer;}
.poll .poll-stop {background: #800;}
.poll .poll-reset {background: #800;}


#settings {padding: 0 15px; flex-grow: 1; overflow-y: auto;}

.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-gap: 30px; }
.container {width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 15px; }
.iframe-container {width: 100%; max-width: 1000px; margin: 0 auto; padding: 0;}

.form { margin: 0; padding: 0;}
.form-group { margin-bottom: 10px; }
.form-label { display: block; margin-bottom: 5px; font-size: 12px; text-transform: uppercase;}
.form-input { width: 100%; padding: 10px 10px; border: none; border-radius: 0; border-bottom: 2px solid #000; background: rgba(0,0,0,0.25); color: #fff;}
.form-input:active, .form-input:focus { border: none; border-bottom: 2px solid #c00; outline: none;}
.form-input option {background: #fff;}
.form-input.red, .form-input.red option { color: #d30a1f;}
.form-button { font-size: 16px; width: 100%; padding: 10px; border-radius: 0; border: none; cursor: pointer; background: #000; color: #fff;}
.form-button:active, .form-button:hover, .form-button:focus { background: #c00; color: #fff; outline: none;}

#sidebar .form-input {background: none; color: #000; border: 1px solid #000;}
#sidebar .form-input:active, #sidebar .form-input:focus { border: 1px solid #000; background: rgba(255,255,255,0.25);}
#sidebar .form-button {background: #000; color: #fff;}

#send-message-form { margin: 15px; }
#send-message-form #reply { display: none; background: rgba(0,0,0,0.15); padding: 5px 15px; font-size: 14px;}
#send-message-form #reply.active { display: block; }
#send-message-form #btn-cancel-reply { float: right; cursor: pointer; }
#send-message-form .flex { display: flex; flex-direction: row; border: 1px solid #000; }
#send-message-form input, #send-message-form button {font-size: 14px; padding: 15px; border-radius: 0; border: none; background: none;  color: #000;}
#send-message-form input { flex-grow: 1;}
#send-message-form button { cursor: pointer; font-size: 18px;}
#send-message-form button:hover { background: rgba(255,255,255,0.25); }

#notification { position: fixed; top: 0; left: 0; right: 0; padding: 30px; background: #000; color: #fff; text-align: center; transform: translateY(-100%); transition: all 0.25s ease;} 
#notification.active { transform: translateY(0%);}

.tab {display: none;}
.tab.active {display: block;}
.tab-button {cursor: pointer;}

.expand {display: none;}
.expand.active {display: block;}
.expand-toggle {cursor: pointer;}
.expand-toggle.active .fas { transform: rotate(180deg);}

a { color: #d30a1f; }


body.dark-mode { display: flex; flex-direction: column; justify-content: center; }
body.dark-mode #bg2,
body.dark-mode #branding,
body.dark-mode #stream-info { display: none; }
body.dark-mode .iframe-container {width: 100%; width: calc(16*100vh/9); max-width: 100%; padding: 0; margin: 0;}
body.dark-mode .embed-container {border: none;}


@media only screen and (max-width: 768px) {
    .row.sm { display: block;}
	.mobile-only {display: block;}
	.desktop-only {display: none;}
}


@media only screen and (max-width : 992px) {
    .row.md { display: block;}
    #grid1 {display: block;}
    #grid2 {display: block;}
}
@media only screen and (min-width : 992px) {
    body.show-sidebar #stream { padding-right: 350px; }
}

@media only screen and (max-width : 1200px) {
    .row.lg { display: block;}
}