body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

#chat-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Set min-height to 100vh to ensure it takes at least the full viewport height */
    background-color: rgba(0, 0, 0, 0.1);
}

#message-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 18px !important;
    background-color: rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 100px);
}

.message {
    margin-bottom: 15px;
    padding: 15px;
    background-color: rgba(37, 37, 37, 0.5);
    border: 1px solid rgba(25, 25, 25, 0.5);
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.message strong {
    font-weight: bold;
}

.message span {
    font-size: 14px;
    opacity: 0.5;
}

.message a {
    color: #47c8ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.message a:hover {
    text-decoration: underline;
}

#message-form {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: rgba(37, 37, 37, 0.5);
    border-top: 1px solid #333333;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#message-form input {
    flex-grow: 1;
    margin-right: 0px;
    margin-left: 0px;
    margin: 0px;
    padding: 12px 20px;
    border: none;
    outline: none;
    height: 24px;
    border-left: 1px solid #333333;
    color: #ffffff;
    background-color: #252525;
}

#message-form input {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.send-button svg {
    margin-right: 1px;
    margin-top: 2px;
}

#message-form .send-button {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: none;
    padding: 12px 20px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: none;
}

#message-form .send-button:hover {
    background-color: #dfdfdf;
}

#message-form .send-button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}








#display-name-block {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    z-index: 5000;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.welcome-controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-text {
    position: absolute;
    color: #ff5555;
    margin-top: 110px;
}

#username {
    margin-bottom: 15px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    /*border-top: 1px solid rgba(204, 204, 204, 0.5);*/
    border-radius: 5px;
    outline: none;
    width: 100%;
    border: 1px solid #555555;
    color: #ffffff;
    background-color: #444444;
}

#confirm-username {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

#confirm-username:hover {
    background-color: #dfdfdf;
}

@media (max-width: 1200px) {
    #message-form input {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    #message-form .send-button {
        display: block;
    }
}
