lab6 / style.css
agnesgoransson's picture
Update style.css
bd68b7c verified
Raw History Blame Contribute Delete
1.86 kB
:root {
--primary: #4f46e5;
--primary-hover: #4338ca;
--bg-color: #f3f4f6;
--card-bg: #ffffff;
--text-main: #1f2937;
--text-muted: #6b7280;
--border-color: #d1d5db;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: var(--bg-color);
color: var(--text-main);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
padding: 20px;
box-sizing: border-box;
}
.container {
background: var(--card-bg);
padding: 32px;
border-radius: 12px;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
width: 100%;
max-width: 600px;
}
h1 {
margin-top: 0;
font-size: 1.5rem;
color: var(--text-main);
text-align: center;
margin-bottom: 24px;
}
textarea, .output {
width: 100%;
box-sizing: border-box;
border: 1px solid var(--border-color);
border-radius: 8px;
padding: 12px;
font-size: 1rem;
font-family: inherit;
transition: border-color 0.2s, box-shadow 0.2s;
}
textarea {
min-height: 100px;
resize: vertical;
margin-bottom: 16px;
}
textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
.output {
min-height: 80px;
background-color: #f9fafb;
margin-top: 16px;
}
button {
width: 100%;
background-color: var(--primary);
color: white;
border: none;
border-radius: 8px;
padding: 12px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s;
}
button:hover:not(:disabled) {
background-color: var(--primary-hover);
}
button:disabled {
background-color: #9ca3af;
cursor: not-allowed;
opacity: 0.8;
}
#status {
text-align: center;
font-size: 0.875rem;
color: var(--text-muted);
margin-top: 12px;
min-height: 20px;
}