#message-container {
    height: calc(100% - 70px);
    width: 90%;
    margin: 0 auto;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
}

#pinned-message-wrapper {
    height: 90%;
    width: 95%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#pinned-message-container {
    height: calc(100% - 100px);
    width: 90%;
    margin: 0 auto;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
}

#message-box-container {
    background: #01161E;
    display: flex;
    height: 65px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 10px;
    border-radius: 1rem;
    position: fixed;
    bottom: 5px;
}

#message-input {
    width: 95%;
    height: 90%;
    font-size: 1rem;
}

.message-bar-button {
    background: none;
    border: none;
    padding: 0;
    stroke: #fafafa;
    fill: #fafafa;
    height: 28px;
    width: 28px;
}

.message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    background-color: #fafafa;
    padding: 3px 5px;
}

.message-upper {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.message-base {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 15px;
}

.message-image .message-base {
    align-items: start;
}

.message-on-hover {
    display: none;
    justify-content: end;
    align-items: center;
    gap: 5px;
    padding-right: 10px;
}

.message:hover,
.message:focus-within {
    filter: brightness(95%);
    border-radius: 1rem;
}

.message:hover .message-on-hover,
.message:focus-within .message-on-hover {
    display: flex;
}

.message-button {
    background: none;
    border: none;
    padding: 0;
    height: 24px;
    width: 24px;
    stroke: darkgrey;
    fill: darkgrey;
}

.message-button:active {
    filter: brightness(75%);
}

.message-delete-button:hover,
.message-delete-button:focus {
    stroke: #e3401b;
    fill: #e3401b;
}

.message-edit-button:hover,
.message-edit-button:focus {
    stroke: #5c5c5c;
    fill: #5c5c5c;
}

.message-pin-button:hover,
.message-pin-button:focus {
    stroke: #206e46;
    fill: #206e46;
}

.pinned .message-pin-button:hover,
.pinned .message-pin-button:focus {
    stroke: #6e2320;
    fill: #6e2320;
}

.message-spacer {
    flex: 1 1 auto;
}

.message-profile-picture-container {
    overflow: hidden;
    height: 38px;
    width: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.message-profile-picture-placeholder {
    height: 100%;
    width: 100%;
    background-color: pink;
    display: flex;
    justify-content: center;
    align-items: center;
}

.message-profile-picture-letter {
    padding: 0;
    margin: 0;
    font-weight: bold;
    user-select: none;
}

.message-profile-picture {
    height: 100%;
    width: 100%;
    padding: 0;
}

.message-image .message-profile-picture-container {
    margin-top: 7px;
}

.message-author-timestamp {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: baseline;
    gap: 7px;
}

.message-timestamp {
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    color: grey;
}

.message-user-name {
    font-weight: bold;
    text-decoration: none;
    color: black;
    margin: 0;
}

.message-user-name:hover {
    color: blue;
    cursor: pointer;
}

.message-user-name:active {
    color: grey;
}

.message-content {
    margin: 0;
}

.message-placeholder {
    text-align: center;
    width: 100%;
    color: grey;
    padding: 15px 0;
}

.message-reactions {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
}

.message-reaction {
    display: none;
    flex-direction: row;
    justify-content: center;
    gap: 7px;
    border-radius: 25%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    height: 25px;
    padding: 3px 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.message-reaction.reacted {
    background: rgba(0, 0, 255, 0.3);
}

.message:hover .message-reaction,
.message:focus-within .message-reaction,
.message-reaction.show-reaction {
    display: flex;
}

.message-reaction:hover,
.message-reaction:focus {
    filter: brightness(95%);
}

.message-image-content {
    width: 35%;
    height: auto;
}

#send-image-modal {
    height: 35%;
}

#image-carousel-outer {
    height: 70%;
}

#image-carousel-inner {
    height: 100%;
    width: auto;
    margin: 0 auto;
}

.carousel-control {
    background-color: black;
}

.carousel-item {
    height: 100%;
    width: 100%;
}

.carousel-item > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 650px) {
    #message-container {
        height: calc(100% - 100px);
    }

    .message-button {
        height: 20px;
        width: 20px;
    }

    .message-button > svg {
        height: 20px;
        width: 20px;
    }

    .message-on-hover {
        flex-direction: column;
        justify-content: center;
        align-items: end;
    }

    .message-image-content {
        width: 70%;
    }
}