@import url(fontawesome/css/all.min.css);

html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #ccc;
    overflow-y: hidden;
}

form *:focus,
form *:active,
:hover,
:active {
    outline-style: none !important;
    box-shadow: none !important;
}

#chat {
    height: 100%;
    position: relative;
    width: 100%;
    
}

#chat-toggle {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #fff;
    background-color: #26a69a;
    border-radius: 50%;
    position: absolute;
    bottom: 5vh;
    right: 1vw;
}

#chat-close {
    width: 1em;
    height: 1em;
    color: #000;
    position: absolute;
    top: 0.5em;
    right: 0.5em;
}

#leave-chat {
    width: 1em;
    height: 1em;
    color: #000;
    position: absolute;
    top: 0.5em;
    left: 0.5em;
}



#chat-wrapper {
    width: 20vw;
    background: #fff;
    padding: 1em 0 0 0;
    height: 40vh;
    transition: all 500ms ease-in;
    transform: translateY(100%);
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 10000;
    font-size: 14px;
}

#chat-wrapper.in {
    transform: translateY(0%);
}

@media screen and (max-width: 640px) {
    #chat-toggle {
        bottom: 5px;
        right: 5px;
    }    
    #chat-wrapper {
        width: 100%;
        height: 100%;
    }
}

#chat-info {
    font-weight: bold;
    line-height: 1.6;
}

#chat-join {
    margin: 0;
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

#chat-join input[type=text] {
    border: none;
    border-radius: 0;
    background-color: #eee;
}

#chat-join .btn-outline-secondary {
    background-color: #26a69a;
    border: none;
    border-radius: 0;
    color: #fff;
}

#chat-messages {
    margin: 2em 0;
    width: 100%;
    height: 80%;
    padding: 1em;
    border: 1px solid #ccc;
    overflow-y: scroll;
}

#chat-actions {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

#chat-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

#chat-messages blockquote {
    padding: 1em 1em 1em 40px;
    line-height: 1.5;
    border: 1px solid #ddd;
    position: relative;
}

#chat-messages blockquote img.avatar {
    position: absolute;
    top: 1em;
    left: 5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

#chat-messages blockquote div cite {
    font-style: normal;
    color: #000;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

#chat-messages blockquote div time {
    font-size: 0.85em;
    display: block;
    margin-top: 4px;
}

#message {
    height: 100px;
    width: 100%;
    padding: 1em;
    line-height: 1.6;
    border-width: 1px;
    border-style: solid;
    border-radius: 0;
}