body {
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    font-family: sans-serif;
}

.app-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

h2 {
    margin: 0;
    text-align: center;
}

#usernameDisplay {
    text-align: center;
    font-weight: bold;
    font-size: 0.9em;
}

.chat-window {
    height: 250px;
    border: 2px solid #000;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    border: 1px solid #000;
    padding: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.message.self {
    align-self: flex-end;
}

.message.other {
    align-self: flex-start;
}

textarea {
    height: 80px;
    padding: 10px;
    border: 2px solid #000;
    resize: none;
}

.shake-meter {
    width: 100%;
    height: 30px;
    border: 2px solid #000;
}

.progress {
    height: 100%;
    width: 0%;
    background: #000;
    transition: width 0.1s;
}

button {
    padding: 15px;
    border: 2px solid #000;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
}

button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}