body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

canvas {
    display: block;
    width: 100%;
    height: auto;
}

#startButton {
    position: absolute; /* Position the button absolutely within its parent */
    top: 20%; /* Closer to the top */
    left: 55%; /* Slightly offset to the right */
    transform: translate(-50%, -50%); /* Adjust the button to be centered based on new position */
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
}

#chatBox {
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0; /* Lighter grey for better contrast */
    border-top: 2px solid #bbb; /* Solid border for definition */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Subtle shadow for depth */
    padding: 10px; /* Uniform padding */
    box-sizing: border-box; /* Include padding in width calculation */
}

#chatInput, #sendButton {
    margin: 2px;
}

#chatInput {
    flex: 3; /* Allows the input to grow and take more space */
    padding: 10px;
}

#sendButton {
    flex: 1; /* Smaller flex value to make it narrower than the input */
    padding: 10px 20px;
    font-size: 16px; /* Adjusted for better proportion */
    cursor: pointer;
    background: linear-gradient(to right, #6a11cb, #2575fc); /* Gradient background */
    border: none; /* Remove default border */
    color: white; /* Text color for better visibility */
    border-radius: 2px; /* Rounded corners */
    transition: background 0.3s; /* Smooth transition for hover effect */
}

#sendButton:hover {
    background: linear-gradient(to right, #2575fc, #6a11cb); /* Inverted gradient on hover */
}

#chatMessages div {
    margin-bottom: 5px;
    padding: 8px; /* Slightly larger padding for better text readability */
    border-radius: 10px; /* More pronounced rounded corners */
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Soft shadow for each message */
}