/* Basic body and container styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
    color: dimgray;
    background: whitesmoke;
}

h1, h2 {
    color: darkslategray;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

button {
    background-color: steelblue;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin: 5px;
}

button:hover {
    background-color: dodgerblue;
}

#putBtn {
    background-color: darkorange;
}

#putBtn:hover {
    background-color: orange;
}

.controls {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input[type="text"], input[type="number"] {
    padding: 10px;
    border: 1px solid silver;
    border-radius: 5px;
    font-size: 1rem;
}

.form-buttons {
    display: flex;
    justify-content: flex-start;
}

#results {
    background: #fff;
    border: 1px solid gainsboro;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 5px;
    min-height: 100px;
    white-space: pre-wrap; /* Preserve formatting */
    word-wrap: break-word;
}

.post {
    border-bottom: 1px solid whitesmoke;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.post:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.post-title {
    font-weight: bold;
    color: darkslategrey;
}

.error {
    color: red;
    font-weight: bold;
}

.success {
    color: seagreen;
    font-weight: bold;
}

hr {
    border: 0;
    height: 1px;
    background: gainsboro;
    margin: 2rem 0;
}
