body {
    background-image: url('../../../assets/images/fond~2.jpg');
    background-size: cover;
    background-repeat: repeat-y;
}

.client-message {
    background-color: #eee;
    padding: 1rem 0.7rem;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

.server-message {
    background-color: antiquewhite;
    padding: 1rem 0.7rem;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

.client-message .author,
.server-message .author
{
    font-size: 0.8rem;
    font-weight: 700;
}

.client-message .published-date,
.server-message .published-date
{
    font-size: 0.8rem;
    font-style: italic;
}

.discussionQuit {
    background-color: rgb(239, 103, 82);
    padding: 2rem 0.3rem;
    font-size: 1.25rem;
    color: #fff;
    text-align: center;
}

#messagesClient {
    height: 30vh;
    max-height: 60vh;
    overflow-y: auto;
    position: relative;
}

.write-panel {
    position: absolute;
    bottom: 2%;
    left: 2%;
    right: 2%;
}

#start-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#start-message h4 {
    text-align: center;
    font-size: 2.2rem;
    color: rgba(0, 0, 0, 0.219);
    font-style: italic;
}

.card-footer {
    background-color: #fff;
}

.admin-writing {
    display: none;
    width: fit-content;
    background-color: rgba(9, 138, 213, 0.333);
    padding: 0.7rem 0.5rem;
    border-radius: 5px;
    font-style: italic;
    animation-name: animateWriting;
    animation-duration: 4s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

@keyframes animateWriting {
    0% {
        margin-left: -0.7rem;
    }
    25% {
        margin-left: 1.5rem;
    }
    50% {
        margin-left: -0.7rem;
    }
    75% {
        margin-left: 1.5rem;
    }
    100% {
        margin-left: 0;
    }
}
