body,
html {
    background-color: #151518;
    margin: 0px;
    padding: 0px;
    height: 100%;
    box-sizing: border-box;
}

body {
    justify-content: center;
    align-items: start;
    text-align: center;
    display: flex;
    padding: 5px;
}

.chat-container {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-flow: column;
}


/* SHORTCUTS */

.w100p {
    width: 100%;
}

.w50p {
    width: 50%;
}

.w60p {
    width: 60%;
}

.inline {
    display: inline;
}

.inline-flex {
    display: inline-flex;
}

.justify-content-center {
    justify-content: center;
}

.display-none {
    display: none
}




/* TTS (Text to speach) */

#speechSynthesisNotSupportedMessage{
    color: rgb(121, 121, 121);
    font-size: medium;
    text-align: start;
    padding-left: 0.75rem;
    margin-bottom: 1px;
    margin-top: -4px;
    cursor: pointer;
}

.tts {
    width: 100%;
    color: white;
    text-align: start;
    transition: "padding" 0.3 ease-in-out;
}

#tts-fieldset {
    border: 1px solid white;
    transition: border 0.3s ease-in-out,
        margin-bottom 0.3s ease-in-out,
        padding-bottom 0.3s ease-in-out,
        padding-top 0.3s ease-in-out;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow-y: hidden;
}

#tts-fieldset[class*="tts-closed"] {
    border: 1px solid transparent;
    margin-bottom: 0px;
    padding-bottom: 0;
    padding-top: 0;
}

#tts-content {
    /* max-height is changed in code as well */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    text-align: center;
}


#tts-arrow {
    vertical-align: bottom;
    padding-left: 6px;
    padding-right: 6px;
    font-size: small;
}

#tts-arrow:hover {
    cursor: pointer;
}

#tts-active {
    vertical-align: bottom;
    margin-left: -1px;
}

#tts-content {
    display: grid;
    grid-template-columns: 50% 50%;
}

#tts-content label {
    margin-left: 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

#tts-content>div {
    display: grid;
    grid-template-columns: 1.3em auto;
    text-align: start;
}

@media (min-width: 450px) {

    .tts {
        width: 450px;
    }

    .chat-container {
        width: fit-content;
    }
}






/* CHAT */


.chat {
    display: block;
    border: 1px solid white;
    width: 100%;
    height: 100%;
    padding: 6px;
    box-sizing: border-box;
    color: white;
    border-radius: 15px;
    overflow: hidden;
}

.title {
    border-bottom: 1px solid white;
    width: 100%;
    height: 32px;
    display: block;
    font-size: x-large;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;

    display: flex;
    flex-wrap: nowrap;
    flex-flow: row;
    justify-content: space-between;
}

.title-chat {
    align-self: center;
}

.title-channel {
    color: white;
    text-decoration: none;

    font-size: x-large;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    justify-self: center;
    align-self: center;
}

.title-channel:hover {
    text-decoration: underline;
}

.title-form-submit-button {
    background-color: #4CAF50;
    color: white;
    border-width: 0px;
    border-bottom: green solid 1px;
    border-top: green solid 1px;
    border-right: green solid 1px;
}

.title-form-submit-button:hover {
    cursor: pointer;
}

#title-gear {
    text-decoration: none;
    overflow: visible;
    font-size: x-large;
    align-self: center;
    justify-self: center;
}

#title-gear:hover {
    cursor: pointer;
}


@media (min-width: 450px) {
    .chat {
        width: 450px;
    }
}





/* messages styles starts now */

.messages {
    padding: 3px;
    text-align: left;
    overflow-y: auto;
    height: calc(100% - 30px);
    overflow-wrap: break-word;
}

.message-line {
    padding-bottom: 6px;
}

.chatter {
    color: lightgreen;
    font-weight: 900;
}

.chatter::after {
    content: ":\00a0";
    color: white
}

.chatter-message {}





/* SCROLL BAR */


/* Firefox */
.messages {
    scrollbar-width: thin;
    scrollbar-color: #3a3f42 #0C0C0C;
}

/* Chrome, Edge and Safari */
.messages::-webkit-scrollbar {
    width: 10px;
    width: 10px;
}

.messages::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: #0C0C0C;
}

.messages::-webkit-scrollbar-track:hover {
    background-color: #0C0C0C;
}

.messages::-webkit-scrollbar-track:active {
    background-color: #0C0C0C;
}

.messages::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: #3a3f42;
}

.messages::-webkit-scrollbar-thumb:hover {
    background-color: #3a3f42;
}

.messages::-webkit-scrollbar-thumb:active {
    background-color: #3a3f42;
}