/* Reset bàsic */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #f4f6f8;
    color: #222;
    max-width: 700px;
    margin: 40px auto;
    padding: 0 16px 80px;
    /* espai pel footer */
}

/* Inputs i botons */
input {
    display: block;
    margin: 6px 0;
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

button {
    margin-top: 12px;
    padding: 10px;
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #2563eb;
}

/* Score */
.score {
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 18px;
}

/* Feedback */
p {
    margin-top: 10px;
}

/* Errors */
.errors {
    margin-top: 25px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 12px;
    border-radius: 8px;
}

.error-item {
    font-size: 14px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #ddd;
}

/* Footer */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 10px;
    font-size: 13px;
}

#footer a {
    color: #60a5fa;
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

/* Versió */
#version {
    color: #fff;
    font-weight: bold;
}