body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364); /* Cool gradient background */
    color: white;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364); /* Cool gradient background */
}

.chat-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center alignment for all child elements */
    width: 90%;
    max-width: 500px;
    background-color: rgba(51, 51, 51, 0.9); /* Semi-transparent black */
    border-radius: 8px;
    padding: 70px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5); /* Soft shadow */
}

.title {
    margin: 0px 0 30px 0; /* Adjusted bottom margin for better spacing */
    font-size: 26px; /* Large font size for visibility */
    font-weight: bold; /* Bold font for emphasis */
}

header {
    width: 100%;
    text-align: center;
    font-size: 17px;
    margin-bottom: 40px; /* Increased spacing to separate header from inputs */
}

.chat-inputs {
    width: 100%; /* Full width of container */
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px; /* Space before the chat-messages */
}

input[type="text"], input[type="number"] {
    flex: 1 1 40%; /* Flex grow and basis adjusted */
    padding: 12px; /* Comfortable padding */
    border: 1px solid #444; /* Subtle border */
    border-radius: 5px;
    background: #222;
    color: white;
    margin-right: 8px; /* Right margin for spacing between fields */
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    background-color: #0d6efd;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0a58ca;
}

.chat-messages {
    width: 100%; /* Full width for chat messages */
    max-height: 150px; /* Controlled height for message area */
    overflow-y: auto;
    background: #222;
    border-radius: 5px;
    padding: 8px;
    font-size: 16px;
}

.message {
    margin-bottom: 10px; /* Spacing between messages */
    font-size: 16px; /* Normal font size */
    color: white; /* Default text color */
    white-space: pre-wrap; /* Ensures that whitespace is preserved and text wraps */
}

.message.red {
    color: red; /* Red text for specific conditions */
    font-size: 18px; /* Larger font size */
}

.message.green {
    color: green; /* Green text for specific conditions */
    font-size: 18px; /* Larger font size */
}

.message.yellow {
    color: yellow; /* Yellow text for specific conditions */
    font-size: 18px; /* Larger font size */
}
