robot-talks / static /style.css
ITZane's picture
Initial commit
3fe9a8d
Raw History Blame Contribute Delete
1.66 kB
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: #f4f4f9;
color: #333;
margin: 0;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.container {
width: 100%;
max-width: 600px;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
padding: 20px;
}
h1 {
color: #444;
margin: 0;
}
.title-container {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
#clear-button {
padding: 8px 12px;
border: none;
background-color: #dc3545;
color: white;
border-radius: 4px;
cursor: pointer;
font-size: 0.9rem;
}
#clear-button:hover {
background-color: #c82333;
}
#messages-container {
height: 500px;
overflow-y: auto;
border: 1px solid #eee;
padding: 10px;
margin-bottom: 20px;
border-radius: 4px;
}
.message {
padding: 8px 12px;
background-color: #eefcff;
border-radius: 4px;
margin-bottom: 8px;
width: 80%;
box-sizing: border-box;
}
.robot-message {
background-color: lightyellow;
margin-left: auto;
}
#message-form {
display: flex;
}
#message-input {
flex-grow: 1;
border: 1px solid #ddd;
padding: 10px;
border-radius: 4px;
font-size: 1rem;
}
button {
padding: 10px 20px;
border: none;
background-color: #007bff;
color: white;
border-radius: 4px;
margin-left: 10px;
cursor: pointer;
font-size: 1rem;
}
button:hover {
background-color: #0056b3;
}