@font-face {
    font-family: Play;
    src: url(/assets/fonts/Play.ttf);
}

* {
    padding: 0;
    margin: 0;
    font-family: Play;
}

header{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5em; 
}

header img {
    height: 64px;
    max-width: 100%;
}

.tabs {
    display: flex;
    background-color: #ebebeb;
    width: 100vw;
    box-sizing: border-box;
    border-top: solid 1px #d9dce0;
    border-bottom: solid 1px #d9dce0;
}
.tabs > * {
    padding: 1em 1.25em;
    position: relative;
    cursor: pointer
}

.tabs > *.active {
    background-color: #fafbfc;
}

.tabs > *.active::after {
    content: "";
    width: 10px;
    height: 10px;
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%) rotate(45deg);
    border-top: solid #d9dce0 1px;
    border-left: solid #d9dce0 1px;
    background-color: #fff;
}

.wrapper {
    padding: 2em;
}

.wrapper > *{
    display: none;
    flex-direction: column;
    gap: 2em;
}

.wrapper > *.active{
    display: flex;
    height: calc(100vh - 13em);
}

.wrapper .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

.wrapper input:not([type=checkbox]), .wrapper textarea {
    width: 375px;
    max-width: 375px;
    padding: 0.75em;
    box-sizing: border-box;
    border-radius: 6px;
    border: solid 1px #645d5d;
    transition-duration: 0ms;
}

.wrapper input.error, .wrapper textarea.error {
    border-color: red;
}

.wrapper .content span {
    color: red;
}

.wrapper .content textarea {
    height: 140px;
}

.wrapper button {
    padding: 0.75em;
    border-radius: 6px;
    border: none;
    background: #554b4b;
    color: #fff;
    max-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrapper button svg{
    fill: #e5e4e4;
}

button {
    cursor: pointer;
}

.chatDiv{
    flex-grow: 1;
    overflow: auto;
    padding: 0 1em;
}

.chatFooter {
    display: flex;
    gap: 1em;
    align-items: flex-end;
}

.chatFooter > div{
    flex-grow: 1;
    position: relative;
}

.chatFooter textarea{
    width: 100%;
    max-width: unset;
    max-height: 20em;
    position: relative;
    z-index: 10;
    background: #fff;
}

.chatFooter > div::before{
    content: 'Schreibt....';
    position: absolute;
    top: 0em;
    left: 0;
    color: #2b2b2b;
    border: solid 1px #645d5d;
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    width: 100%;
    padding: 0.5em;
    box-sizing: border-box;
    background: #dbdbdb;
    transition-duration: 200ms;
}

.chatFooter > div.writing::before{
    top: -2em;

}

.message {
    text-align: right;
}
.message.own {
    text-align: left;
}

.message .header {
    font-size: 11px;
    color: #645d5d;
    margin-bottom: 4px;
}

.message {
    margin-bottom: 0.75em;
}

.message .messageContent span{
    display: inline-block;
    padding: 0.5em 1.25em;
    background: #f8dbe0;
    border-radius: 8px;
    position: relative;
    border-top-right-radius: 3px;
    max-width: 80%;
    text-align: left;
}

.message.own .messageContent span{
    border-top-left-radius: 3px;
    background-color: #f8e6d0;
}

.message .messageContent span::before{
    content: "";
    height: 10px;
    width: 10px;
    z-index: 100;
    background-color: #f8dbe0;
    position: absolute;
    right: -5px;
    transform: rotate(45deg);
    top: 3px;
}

.message.own .messageContent span::before{
    left: -5px;
    background-color: #f8e6d0;
}

.message .messageContent span img {
    width: 100%;
    margin: 0.7em 0;
    border-radius: 10px;
    max-height: 200px;
}

.endConversation {
    text-align: center;
    color: gray;
}

#tab_livechat{
    position: relative;
}

#tab_livechat::before{
    content: "";
    width: 10px;
    height: 10px;
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    background-color: limegreen;
    border-radius: 50%;
}

#tab_livechat.offline::before{
    background-color: red;
}