* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    min-width: 320px;
    font-family: monospace;
    background-color: beige;
    color: #002366;
    display: flex;
    flex-direction: column;
}

.noto-sans-mono-normal {
    font-family: "Noto Sans Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}

header {
    height: 96px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 10px;
    gap: 10px;
}

main {
    flex-grow: 1;
    height: calc(100% - 192px);
    width: 100%;
    overflow-y: auto;
    padding: 10px;
}

.messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.messages p {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.messages p.mine {
    flex-direction: row-reverse;
}

.messages p.their {
    flex-direction: row;
}

.messages p span.picture {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.messages p span.body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: end;
}

.messages p span.body .tag {
    font-size: 12px;
    color: #222;
    margin-right: 8px;
}

.messages p span.body .message {
    background-color: #f1f0f0;
    color: #222;
    padding: 10px 15px;
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 16px;
}

.messages p.mine span.body .message {
    background-color: #d4f8e3;
    border-radius: 20px 20px 0 20px;
}

.messages p.their span.body .message {
    background-color: #e9e9eb;
    border-radius: 20px 20px 20px 0;
}

footer {
    height: 96px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer form {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    width: 100%;
}

footer form input[type="text"] {
    width: 100%;
    height: 32px;
    border: 1px solid #ccc;
    padding: 0 10px;
    font-size: 16px;
}

footer form input[type="submit"] {
    width: 64px;
    height: 32px;
    border: 1px solid #ccc;
}