@import "../css/dom.css";

/*
    palettes

    default: http://paletton.com/#uid=13v0u0kowGPe6RJjLLZtQC8zSsh
    #86BFE4
    #59A3D4
    #378DC5
    #1678B8
    #075A90

    gray: http://paletton.com/#uid=13v0u0kcglL4Zvw8Eq6eXhmkwen
    #8997A1
    #637885
    #475F6F
    #324958
    #1D3849

    complement
    #FFCD8F
    #FFB962
    #FFA93C
    #FF9611
    #E17E00 
*/

* {
    box-sizing: border-box;
    font-family: 'Lato', sans-serif, Verdana, Arial;
    font-size: inherit;
}

body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    font-size: 100%;
    color: white;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Chrome/Safari/Opera */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently not supported by any browser */
    cursor: default;
    background-color: black;
}

textarea {
    resize: none;
}

.selectable {
    -webkit-touch-callout: initial; /* iOS Safari */
    -webkit-user-select: text; /* Chrome/Safari/Opera */
    -moz-user-select: text; /* Firefox */
    -ms-user-select: text; /* Internet Explorer/Edge */
    user-select: text; /* Non-prefixed version, currently not supported by any browser */
    cursor: text;
}

.clearfix:before {
    content: " "; /* Older browser do not support empty content */
    display: table;
    box-sizing: border-box;
}

.clearfix:after {
    content: " "; /* Older browser do not support empty content */
    display: table;
    clear: both;
    box-sizing: border-box;
}

.fa-rotate-45 {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.pointer {
    cursor: pointer;
}

.view {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
}

.background {
    background-color: rgba(0,0,0,0.8);
}

.nopadding {
    padding: 0;
}

.loading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.fill {
    width: 100%;
    height: 100%;
}

.crop {
    overflow: hidden;
}

.container {
    position: absolute;
    margin: auto;
}

/*
    font size
*/
.font-xs {
    font-size: 0.6em;
}

.font-sm {
    font-size: 0.8em;
}

.font-md {
    font-size: 1em;
}

.font-lg {
    font-size: 1.2em;
}

.font-xl {
    font-size: 1.6em;
}

/*
    focus
*/

.focus-keyboard {
    outline-color: rgb(55,140,197);
    outline-style: auto;
    outline-width: 5px;
    outline-offset: -2px;
}

/*
    animation
*/
.animate-opacity {
    transition: opacity 0.3s ease-in-out;
    -webkit-transition: opacity 0.3s ease-in-out;
}

.animate {
    transition: padding 0.1s ease-in-out, width 0.1s ease-in-out, height 0.1s ease-in-out;
    -webkit-transition: padding 0.1s ease-in-out, width 0.1s ease-in-out, height 0.1s ease-in-out;
}

.animate-all {
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
}

/*
    controls
*/
.background {
    background-color: rgba(0,0,0,0.6);
    width: 100%;
    height: 100%;
}

/*
    header
*/
.header {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 3.4em;
    padding: 0.7em;
    border-bottom: solid 2px #666666;
    color: #cccccc;
    white-space: nowrap;
}

    .header .icon-crown {
        display: none;
        color: #808080
    }

.moderated .header .icon-crown {
    display: inline;
}

.moderated .header .icon-chat-large {
    display: none;
}

/* 
    togglebar 
*/
.togglebar {
    display: inline-block;
}

.notificationtoggle.btn-icon {
    color: #808080;
    border-bottom: 2px solid transparent;
}

.notificationtoggle.active {
    color: #cccccc;
    border-bottom: 3px solid #378DC5;
}

button.notificationtoggle {
    margin-right: 1em;
    padding-bottom: .45em;
}

.notificationtoggle-count {
    font-size: .5em;
    padding: 0 1.4em;
}

    .notificationtoggle-count .fa-circle {
        color: #378DC5;
    }

    .notificationtoggle-count .fa-stack-1x {
        color: white;
    }

/*
    body
*/
.body {
    position: absolute;
    top: 3.4em;
    bottom: 0;
    width: 100%;
}

.scrollcontainer {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    overflow-y: scroll;
}

.listitem {
    border-bottom: 1px solid #292929;
}

.chatview .scrollcontainer {
    bottom: 5em;
}

.private .chatview .scrollcontainer {
    top: 3em;
}

.private .header {
    border-bottom: solid 2px #292929;
}

.chatview .private {
    display: none;
    border-bottom: solid 2px #666666;
    height: 3em;
}

.private .chatview .private {
    display: block;
}

.chatview .private .participants {
    padding: .8em 1em;
}

.chatview .private button {
    padding: .5em .5em;
}

.bubble {
    padding: 1em 0.5em;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.bubble-icon {
    display: inline-block;
    padding: 0 .5em;
}

.bubble-body {
    display: inline-block;
    vertical-align: top;
    padding-left: .5em;
    padding-right: .5em;
    width: calc(100% - 3em);
    white-space: pre-wrap;
}

.moderated .them .bubble-body {
    width: calc(100% - 5.13em);
}

.bubble-moderator-indicator {
    visibility: hidden;
}

.moderator .bubble-moderator-indicator {
    visibility: visible;
    left: 20%;
    top: 35%;
    font-size: .7em;
}

.bubble-menu-btn {
    display: none;
    color: #666666;
    font-size: 1.5em;
    float: right;
}

.moderated .bubble-menu-btn {
    display: inline-block;
}

.bubble-header {
    padding-right: .5em;
}

.bubble-message {
    color: gray;
    word-break: initial;
}

.me .fa-circle {
    color: #FFA93C;
}

.them .fa-circle {
    color: #378DC5;
}

.bubble-senttopresenter {
    color: #378DC5;
}

/*
    footer
*/
.footer-left {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 8em;
    padding: 0.45em;
}

.footer-right {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 8em;
    padding: 0.45em;
}

.footer {
    white-space: nowrap;
    position: absolute;
    height: 5em;
    bottom: 0px;
    left: 0px;
    right: 0px;
    padding: .6em;
    border-top: solid 2px #666666;
}

.form-control {
    width: 100%;
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255,255,255,0);
    background-color: rgba(255,255,255,.2);
    color: white;
    height: 2.5em;
    padding: 0.2em .4em;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
    padding-right: 2.4em;
}

.messagebox {
    white-space: normal;
    display: inline-block;
    width: 100%;
    height: 100%;
    margin: 0;
    -ms-overflow-style: none;
}

    .messagebox button {
        font-size: 1.5em;
        margin: 0;
        padding: 0;
        width: 2em;
        margin-left: -2em;
        height: 100%;
    }

    .messagebox textarea {
        border-width: 1px;
        border-style: solid;
        border-color: rgba(255,255,255,0);
        background-color: rgba(255,255,255,.2);
        width: 100%;
        height: 100%;
        padding: 0.2em;
        padding-right: 3em;
        margin: 0;
        color: white;
        overflow: hidden;
    }

/*
    btn
*/
.btn {
    cursor: pointer;
}

    .btn:focus {
        outline: none;
    }

    .btn:disabled {
        cursor: not-allowed;
    }

    .btn.focus-keyboard {
        outline-color: white;
        outline-style: auto;
        outline-width: 5px;
        outline-offset: -2px;
    }

.btn-icon {
    background: none;
    color: inherit;
    border: none;
    padding: 0.15em;
}

    .btn-icon:active {
        color: rgb(55,140,197);
    }

    .btn-icon.focus-keyboard {
        outline-color: rgb(55,140,197);
        outline-style: auto;
        outline-width: 5px;
        outline-offset: -2px;
    }


.btn-default {
    background-color: #378DC5;
    border: 0;
    padding: 0.15em 0.5em;
    color: white;
}

    .btn-default:active {
        background-color: #075A90;
    }

    .btn-default:disabled {
        background-color: #075A90;
        color: darkgray;
    }

.btn-scroll {
    width: 100%;
    border-bottom: 1px solid #292929;
}


/* menu */
.menu {
    position: absolute;
    right: 5em;
    font-size: .8em;
    background-color: #f4f4f4;
}

    .menu button {
        display: block;
        width: 100%;
        background: none;
        border: none;
        text-align: left;
        padding: .4em 0;
        padding-right: 2em;
        cursor: pointer;
    }


        .menu button span {
            padding: 0 .8em;
            padding-right: 1em;
        }

    .menu .underline {
        border-bottom: 1px solid #c5c4c5;
    }

    .menu > div {
        padding: .8em .4em;
    }

.menu-triangle {
    position: absolute;
    display: block;
    width: 0;
    top: 0;
    right: 3.5em;
    bottom: auto;
    left: auto;
    border-width: .5em 0 .5em .5em;
    border-color: transparent #f4f4f4;
    border-style: solid;
}

/* notification */
.notifications {
    position: absolute;
    width: 100%;
    top: calc(3.25em - 2px);
    left: 0;
}

.notification {
    padding: .6em 1em;
    background-color: #378DC5;
    width: 100%;
}

.userlist {
    padding-left: 3.7em;
}

.userlist-label {
    padding: .3em 1em;
    padding-top: 1em;
}

    .userlist-label .label {
        padding: 0 1em;
        font-size: .9em;
    }

.connectedmoderators {
    color: gray;
}

.privateroom {
    padding: 1em;
    position: relative;
    cursor: pointer;
}

    .privateroom .left {
        width: 80%;
    }

    .privateroom .message {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        color: gray;
    }

    .privateroom .bubble-header {
        color: white;
    }

    .privateroom .right {
        position: absolute;
        height: 100%;
        top: 0;
        right: 0;
        padding: 0 1em;
        color: gray;
    }

.participants {
    color: #1b75af;
    padding-bottom: .5em;
}

    .participants span {
        padding-right: .5em;
    }
