#chatbody {
    height: 100%;
    overflow-y: scroll;
    position: relative;
}/*to register scrolls*/

#create-message {
    position: absolute;
    top: 20px;
    right: 5px;

    height: 25px;
}

#compose-box {
    position: absolute;
    top: 60px;

    width: 100%;
    height: 400px;
    background: rgb(100,100,100)
}

#chat-container {
    margin-bottom: 64px;/*for nav buttons*/
    margin-top: 10px;
}

.chat-box {
    width: 100%;
    height: fit-content;
    display: flex;
    gap: 20px;
    align-items: center;
    border: none;
    background: none;
    padding: 10px;
    position: relative;
}

.chatbox-text-cont {
    width: 80%;
}

.chatbox-pfp {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.chatbox-name {
    font-family: "Helvetica Neue", sans-serif;
    font-size: 1rem;
    font-weight: bold;
    width: fit-content;
}

.chatbox-text-prev {
    font-family: "Helvetica Neue", sans-serif;
    font-size: 1rem;
    margin-top: 5px;
    color: white;
    width: fit-content;

    /*hide text overflow*/
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chatbox-timestamp {
    font-family: "Helvetica Neue", sans-serif;
    font-size: 1rem;
    font-weight: normal;
    color: rgb(153, 153, 153);

    position: absolute;
    top: 10px;
    right: 5px;
}

.chatbox-read-image {
    position: absolute;
    right: 10px;
    height: 15px;
}

.message-viewer {
    margin-bottom: 64px;
}

.chat-top-sticky {
    background: rgb(100,100,100);
    position: sticky;
    top: 0;
    width: 100%;
}

.chat-usertag {
    width: fit-content;
    height: fit-content;
    display: inline-flex;
    gap: 0;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    border: none;
    background: none;
    padding: 0;
}

.chat-usertag-backbutton {
    width: 40px;
    height: 50px;
    background: none;
    border: none;
    padding: 0;
    margin-top: 10px;
    margin-bottom: 10px;
    vertical-align: top
}

.chat-usertag-backimg {
    height: 18px;
}

.chat-usertag-pfp {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.chat-usertag-name {
    font-family: "Helvetica Neue", sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    margin-left: 15px;
}

.chat-message-cont {
    width: 100%;
    overflow: scroll;
    scrollbar-width: none;
    margin-bottom: 106.5px;
}

.chat-message-box {
    width: 98%;
    margin: 0 auto;
    margin-top: 2px;
    display: flex;
    flex-direction: column;
}

.chat-right-align {
    align-items: flex-end;
}

.chat-message-text {
    font-family: "Helvetica Neue", sans-serif;
    font-size: 1rem;
    font-weight: normal;
    color: white;
    overflow-wrap: break-word;
    padding: 8px;
    box-sizing: border-box;

    width: fit-content;
    max-width: 60%;
    border-radius: 15px;
}

.chat-message-text-self {
    background: rgb(61, 131, 175);
}

.chat-message-text-others {
    background: rgb(100,100,100);
}

.chat-message-labels {
    font-family: "Helvetica Neue", sans-serif;
    font-size: 0.8rem;
    font-weight: normal;
    color: white;
    overflow-wrap: break-word;

    padding: 3px;
    width: fit-content;
}

.chat-message-header {
    font-family: "Helvetica Neue", sans-serif;
    font-size: 0.8rem;
    font-weight: normal;
    color: white;
    text-align: center;

    margin-bottom: 5px;
    margin-top: 8px;
    width: 100%;
}

.chat-bottom-sticky {
    position: fixed;
    bottom: 64px;
    z-index: 100;

    width: 100%;
    max-width: 440px;

    background: black;
}

.chat-message-input {
    background: rgb(100,100,100);
    border: none;
    outline: none;
    width: calc(99% - 40.5px);
    max-height: 60vh;
    overflow-y: scroll;
    margin-left: 40.5px;

    font-size: 1rem;
    font-family: "Helvetica Neue", sans-serif;
    color: white;
    padding: 9.5px;
    padding-right: 40px;
    box-sizing: border-box;
    border-radius: 15px;

    user-select: text;
    overflow-wrap: break-word;
}

.chat-message-input-image {
    max-width: 60%;
    max-height: 50vh;
    margin-top: 5px;
    margin-bottom: 5px;
    display: block;
}

.voice-note-container {
    margin: 0 auto;
    width: 98%;
    height: 37.5px;
    border-radius: 15px;
    background: rgb(100,100,100);
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

.voice-note-button {
    height: 30px;
    background: none;
    border: none;
    padding: 0;
    margin-left: 4px;
}

.voice-note-img {
    height: 30px;
}

.voice-note-play-img {
    height: 13px;
}

.voice-note-animation {
    height: 30px;
    width: 70%;
}

.voice-note-send {
    position: absolute;
    right: 4px;
    bottom: 4px;
    height: 30px;

    border-radius: 40%;
    border: none;
    background: rgb(61, 131, 175);
    padding: 3px;
    padding-bottom: 1.5px;
    padding-left: 2px;
}

.chat-message-input:empty::before {
    content: "Message";
    color: rgb(40,40,40);
    font-family: "Helvetica Neue", sans-serif;
}/*placeholder*/

.chat-send-button {
    position: absolute;
    right: 8px;
    bottom: 4px;
    height: 30px;

    border-radius: 40%;
    border: none;
    background: rgb(61, 131, 175);
    padding: 3px;
    padding-bottom: 1.5px;
    padding-left: 2px;
}

.chat-send-button-img {
    height: 17px;
}

.chat-attachment-button {
    position: absolute;
    left: 0;
    bottom: 2px;
    height: 33.5px;

    border: none;
    background: none;
    padding: 0;
}

.chat-attachment-button-img {
    height: 33.5px;
}

.chat-attachment-popup {
    position: absolute;
    bottom: 42.5px;
    left: 0;
    width: fit-content;

    background: rgb(61, 131, 175);
    padding: 10px;
    border-radius: 10px;

    flex-direction: column;
    gap: 10px;
}

.chat-attachment-popup-select {
    display: flex;
    background: none;
    align-items: center;
    gap: 10px;
}

.chat-attachment-popup-icon {
    height: 30px;
}

.chat-attachment-popup-text {
    font-family: "Helvetica Neue", sans-serif;
    font-weight: bold;
    color: white;
}
