:root {
    /* Light mode (defaults) */
    --bg-color: #f7f7f7;
    --container-bg: #fff;
    --text-color: #333;
    --bg-secondary: #ecf0f1;
    --bg-accent: #dde4e6;

    /* Allow dark color scheme */
    color-scheme: light dark;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #222;
        --container-bg: #333;
        --text-color: #eee;
        --bg-secondary: #444;
        --bg-accent: #555;
    }
}

/* "patches" to most elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
}

/* Fix the ol element padding */
ol {
    padding: 0 0 0 40px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
}

.container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--container-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2rem;
}

.analyzer form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Keep space between different conjugations */
ol + h3 {
    margin-top: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-group input {
    padding: 0.75rem;
    border: 0;
    outline: none;
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--bg-secondary);
}

/* Button styling */
button {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: var(--bg-accent);
}

/* Results section styling */
.result {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.result:empty {
    display: none;
}

@media (max-width: 600px) {
    .container {
        margin: .5em;
        padding: 1rem;
    }
}