:root {
    --bright-yellow: #FFEB3B;
    --dark-text: #212121;
    --lighter-yellow: #FFF176;
    --golden-yellow: #FBC02D;
    --medium-yellow: #FFEE58;
    --soft-yellow: #FFF59D;
}

svg {
    position:relative;
    z-index: 1000; /* Ensure SVG is above other elements */
}

body {
    background-color: var(--bright-yellow); /* Bright yellow background */
    color: var(--dark-text); /* Dark text for contrast */
    font-size: 2em; font-family: Charter Arial
}

h1 {
    background-color: var(--golden-yellow); /* Golden yellow for headings */
}

ul {
    background-color: var(--lighter-yellow); /* Lighter yellow for the list background */
    border: 2px solid var(--golden-yellow); /* Golden yellow border */
}

li {
    background-color: var(--medium-yellow); /* Medium yellow for list items */
    color: var(--dark-text); /* Dark text for readability */
    border: 1px solid var(--golden-yellow); /* Golden yellow border */
    padding: 1em;
    list-style: none;
}

input {
    background-color: var(--soft-yellow); /* Soft yellow for input fields */
    color: var(--dark-text); /* Dark text for input */
    border: 2px solid var(--golden-yellow); /* Golden yellow border */
    font-size: 2em;
}

body {
    font-size: 36px;
}

ul {
    /* background: rgba(255,255,255,0.5); */
    display: flex;
    flex-direction: row;

}








/* CHATROOM STY:ES */

.chat-container {
    max-width: 800px;
    margin: 0px auto;
    border: 3px solid var(--golden-yellow);
    background-color: var(--lighter-yellow);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.chat-header {
    background-color: var(--golden-yellow);
    color: var(--dark-text);
    padding: 0.5em 1em;
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 2px solid var(--golden-yellow);
}

.chat-box {
    height: 400px;
    padding: 1em;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    background-color: var(--lighter-yellow);
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 1em;
    background-color: var(--soft-yellow);
    border-top: 3px solid var(--golden-yellow);
}

.chat-inputs {
    display: flex;
    gap: 0.5em;
}

.chat-form input[type="text"] {
    background-color: var(--bright-yellow);
    color: var(--dark-text);
    border: 2px solid var(--golden-yellow);
    padding: 0.4em 0.6em;
    font-size: 0.8em;
}

#chatMessage {
    flex-grow: 1;
}

.chat-form button {
    background-color: var(--golden-yellow);
    color: var(--dark-text);
    border: 2px solid var(--dark-text);
    padding: 0.4em 1em;
    font-size: 0.8em;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}

.chat-form button:hover {
    background-color: var(--bright-yellow);
}

.chat-form button:active {
    background-color: var(--medium-yellow);
}



.chat-message {
    box-sizing: border-box;
    background: var(--medium-yellow);
    color: var(--dark-text);

    border: 1px solid var(--golden-yellow);
    border-radius: 0.85em 0.85em 0.85em 0.2em;

    padding: 0.75em 1em;
    margin: 0.35em 0;

    width: fit-content;
    max-width: min(85%, 48rem);
    min-width: 0;
    align-self: flex-start;

    display: flex;
    flex-direction: column;
    gap: 0.5em;

    text-align: left;
    overflow-wrap: anywhere;
    line-height: 1.5;

    box-shadow: 0 2px 4px rgb(46 0 65 / 6%);
}

.chat-message .message-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.6em;

    font-size: 0.75em;
    line-height: 1.3;
    color: var(--dark-text);
    opacity: 0.7;
}

.chat-message .username {
    font-weight: 700;
    color: var(--dark-purple, #390050);
    letter-spacing: 0.015em;
}

.chat-message .timestamp {
    font-size: 0.9em;
    font-variant-numeric: tabular-nums;
}

.chat-message .message-body {
    min-width: 0;
    font-size: 0.95em;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.55;
}
