body {
    font-family: sans-serif;
    margin: 2em;
    background-color: #f6f7fb;
    background-image: url('bg.png');
    display: flex;
    justify-content: center;
}

.container {
    max-width: 400px;
    width: 100%;
}

/* Style for the new title image */
.title-image {
    width: 100%;
    height: auto;
    margin-bottom: 1em; /* Adds some space below the image */
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

fieldset {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
}

label, legend {
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
}

input, select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

button {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.2s;
}

button:hover {
    background: #2563eb;
}

#results-container {
    margin-top: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#results {
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}