117 lines
2.0 KiB
CSS
117 lines
2.0 KiB
CSS
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
background-color: #f4f7f9;
|
|
color: #333;
|
|
margin: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.container {
|
|
width: 80%;
|
|
max-width: 900px;
|
|
background-color: #fff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
padding: 2rem;
|
|
}
|
|
|
|
header {
|
|
text-align: center;
|
|
border-bottom: 1px solid #e0e0e0;
|
|
padding-bottom: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
h1 {
|
|
color: #2c3e50;
|
|
margin: 0;
|
|
}
|
|
|
|
p {
|
|
color: #7f8c8d;
|
|
}
|
|
|
|
.editor-container {
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#rules-editor {
|
|
width: 100%;
|
|
height: 400px;
|
|
border: none;
|
|
padding: 1rem;
|
|
font-family: "SF Mono", "Fira Code", "Courier New", monospace;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
resize: vertical;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 1rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
button {
|
|
padding: 0.75rem 1.5rem;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
#save-button {
|
|
background-color: #3498db;
|
|
color: white;
|
|
}
|
|
|
|
#save-button:hover {
|
|
background-color: #2980b9;
|
|
}
|
|
|
|
#run-button {
|
|
background-color: #2ecc71;
|
|
color: white;
|
|
}
|
|
|
|
#run-button:hover {
|
|
background-color: #27ae60;
|
|
}
|
|
|
|
#status-message {
|
|
margin-top: 1rem;
|
|
padding: 0.75rem;
|
|
border-radius: 4px;
|
|
text-align: center;
|
|
font-weight: 500;
|
|
display: none; /* Hidden by default */
|
|
}
|
|
|
|
#status-message.success {
|
|
background-color: #e8f5e9;
|
|
color: #2e7d32;
|
|
display: block;
|
|
}
|
|
|
|
#status-message.error {
|
|
background-color: #ffebee;
|
|
color: #c62828;
|
|
display: block;
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
margin-top: 2rem;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid #e0e0e0;
|
|
color: #bdc3c7;
|
|
}
|