[x-cloak] { display: none !important; }

/* https://stackoverflow.com/questions/2989263/disable-auto-zoom-in-input-text-tag-safari-on-iphone */
input[type="color"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"],
select:focus,
textarea {
  font-size: 16px !important;
}

body {
    background-image: url("/img/Chisme.png");
    background-size: 150px;
    background-attachment: fixed;
    background-position-x: 1em;
    background-position-y: .5em;
}

.conversationListItem {
    display:flex;
    justify-content: space-between;
    align-items: center;
    gap: .5em;
    margin-top: 1rem;
    border-top-width: 1px;
    border-top-style: solid;
    border-color: #dcdcdc;
    padding-top: 1em;
}
.conversationListItem > h3 {
    margin-bottom: 0em;
}
.conversationListItem + form {
    margin-top: 2em;
}
.conversationListItem .nameAndAvatars {
    flex-grow: 4;
}
.conversationListItem .avatarList {
    display: flex;
    gap: .5em;
    flex-wrap: wrap;
}
.conversationListItem img.avatar {
    border-radius: 80%;
    width: 40px;
    height: 40px;
}

.outerMessageContainer {
    display: flex;
    flex-flow: column wrap;
    flex-direction: column-reverse;
}

.outerMessageContainer .message {
    display:flex;
    /*justify-content: space-between;*/
    justify-content: flex-start;
    gap: .5em;
}
.message > img.avatar {
    border-radius: 30px 30px 5px 30px;
    width: 40px;
    height: 40px;
}
.message > p {
    background-color: #e9e9eb;
    padding: 1em 1.5em 1em 1.5em;
    border-radius: 5px 30px 30px 30px;
    color: black;
    /*max-width: 75%;*/
    margin-bottom: .5rem;
}
.message > p.bigEmoji {
    font-size: 4em;
    padding: .15em .25em .15em .25em;
}

.outerMessageContainer .messageSender {
    display:flex;
    justify-content: flex-start;
}
.messageSender.from-me { /* We don't show this anymore */
    /*justify-content: flex-end;*/
    flex-direction: row-reverse;
}
.outerMessageContainer .messageSender > p {
    margin-bottom: .25em;
    margin-left: 4.7em;
}

.message.from-me {
    /*justify-content: flex-end;*/
    flex-direction: row-reverse;
}
.message.from-me > img.avatar {
    border-radius: 30px 30px 30px 5px;
}
.message.from-me > p {
    background-color: #2b97fa;
    color: white;
    border-radius: 30px 5px 30px 30px;
}
.message.from-me > p > a {
    color: #a0d8ff;
    text-decoration-color: #a0d8ff;
}

#messageField {
    margin-top: .5em;
    font-size: 16px;
}
#logoutButton {
    position: absolute;
    top: 1em;
    right: 1em;
}

button.back {
    margin-bottom: 1em;
}