body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
}

#chat-container {
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 70vh;
    min-height: 400px;
}

#chat-header {
    background-color: #007bff;
    color: white;
    padding: 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    text-align: center;
}

#chat-header h2 {
    margin: 0;
    font-size: 1.2em;
}

#chat-log {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    border-bottom: 1px solid #eee;
}

.chat-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.4;
}

.chat-message img.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.speaker-alex {
    background-color: #e9e9eb;
    color: #000;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.speaker-system {
    background-color: #fff3cd;
    color: #664d03;
    font-style: italic;
    text-align: center;
    align-self: center;
    border-radius: 4px;
}

#options-area {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 18px;
    cursor: pointer;
    text-align: left;
    font-size: 0.95em;
    transition: background-color 0.2s ease;
}

.option-button:hover {
    background-color: #0056b3;
}

body.background {
    background-image: url('backgroundbild.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
