body {
    background-color: #fff; /*#f6f6f6, EBEBD3, fafafa*/
    font-family: 'Bungee Outline', cursive;
    font-weight: 900;
    overflow: hidden;
    animation: blur 0.5s ease-out;
}

* {
    outline: none;
    border: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

#title_container {
    width: 100%;
    height: 125px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-bottom: 5px solid #fff;
    box-shadow: 0 15px 30px -18px black;
    border-radius: 7px;
    border: 3px solid #a8a8a8;
}

#title_inner_container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 200px;
}

#title {
    display: inline-block;
    color: black;
    font-size: 40px; /* Reduced size for smaller title */
    letter-spacing: 2px;
    user-select: none;
}

#join_container {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
}

#join_inner_container {
    width: 50%;
    height: 100%;
}

#join_input_container {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#join_input {
    width: 60%;
    height: 40px;
    color: black;
    font-family: 'Varela Round', sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    background-color: transparent;
    border-bottom: 2px dashed #1D3354;
}

#join_input:focus {
    box-shadow: 0 10px 30px -17px #1D3354;
}

#join_button_container {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#join_button {
    width: 60%;
    height: 40px;
    font-family: 'Varela Round', sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    color: black;
    background-color: white;
    border: 3px solid #a8a8a8;
    cursor: pointer;
}

#chat_container {
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 40px;
    animation: fadeIn 1s linear;
}

#chat_inner_container {
    width: 100%;
    height: 100%;
}

#chat_content_container {
    width: 100%;
    height: 90%;
    overflow-y: auto;
    font-family: 'Varela Round', sans-serif;
    padding: 10px;
}

#chat_input_container {
    width: 100%;
    height: 7%; /* This makes the input container taller */
    border: 2px solid #a8a8a8;
    background-color: white;
    padding: 10px 15px;
    font-family: 'Varela Round', sans-serif;
    margin-top: auto; /* Push it to the bottom of the container */
    display: flex;
    border-radius: 10px;
    position: absolute; /* Use absolute positioning */
    bottom: 3; /* Stick it to the bottom */
}

#chat_input {
    width: 95%;
    height: 100%;
    background-color: transparent;
    color: #1D3354;
    font-size: 15px;
    border: none;
    outline: none;
}

#chat_input_send {
    width: 5%;
    height: 100%;
    font-size: 18px;
    background-color: transparent;
    text-align: right;
    color: #ccc;
    cursor: pointer;
}

#chat_input_send.enabled {
    color: black;
    cursor: pointer;
}

#chat_logout_container {
    position: absolute; /* Make it absolute */
    top: 10px; /* Adjust the distance from the top */
    right: 20px; /* Adjust the distance from the right */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10; /* Ensure it stays on top of other elements */
}

#chat_logout {
    font-family: 'Varela Round';
    font-weight: 700;
    color: #a8a8a8;
    font-size: 18px;
    cursor: pointer;
    background-color: transparent; /* Makes the background transparent */
    border: none; /* Removes the border */
}

#chat_logout:hover {
    text-decoration: none;
}

.message_container {
    width: 100%;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    margin-bottom: 20px;
    border-radius: 8px;
    border: 2px solid #a8a8a8;
    padding: 15px; /* Increase padding for a larger container */
    box-shadow: 0px 15px 10px rgba(0, 0, 0, 0.06);
}

.message_inner_container {
    width: 100%;
    color: #1D3354;
    display: flex;
    flex-direction: column; /* Ensure elements are stacked vertically */
}

.message_user_container {
    display: flex;
    align-items: center; /* Align the image and name horizontally */
    margin-bottom: 5px; /* Space between name and message */
}

.message_user {
    font-weight: bold;
    font-size: 16px; /* Larger name font size */
    color: black;
    margin-left: 10px; /* Space between image and name */
    vertical-align: middle; /* Align name at the same vertical position as image */
}

.message_content_container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.message_content {
    font-weight: normal;
    font-size: 14px;
    margin-top: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.user_image_container {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle; /* Align image vertically with name */
}

.user_image {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Circular image */
    object-fit: cover;
}

.loader_container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    border-top: 6px solid blueviolet;
    border-bottom: 6px solid #1D3354;
    border-left: 6px solid #E9FFF9;
    border-right: 6px solid #E9FFF9;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes blur {
    0% { filter: blur(5px); }
    100% { filter: blur(0); }
}

::selection {
    background-color: black;
    color: #fff;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #ccc;
}

::-webkit-scrollbar-thumb {
    background: black;
    border-radius: 5px;
}
