body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 720px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
}

label {
    display: block;
    margin: 10px 0 5px;
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

.output {
    margin-top: 20px;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 4px;
    font-weight: bold;
}

.output-row {
    position: relative;
    min-height: 2.2em;      /* Increased for more space */
    margin: 12px 0;         /* More vertical margin */
    padding-bottom: 4px;    /* Padding below each row */
    padding-top: 4px;       /* Padding above each row */
}

.output-label {
    position: absolute;
    left: 0;
    width: 50%;
    text-align: left;
    color: #333;
    font-weight: bold;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}

.output-value {
    position: absolute;
    left: 50%;
    width: 50%;
    text-align: left;
    color: #222;
    font-family: monospace;
    white-space: pre;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}

.input-row {
    display: flex;
    gap: 1em;
    margin-bottom: 1em;
}

#rgb-input {
    flex: 3 1 0%;
    font-size: 1em;
    padding: 0.5em;
}

#convert-btn {
    flex: 1 1 0%;
    font-size: 1em;
    padding: 0.5em;
    cursor: pointer;
}

.instructions {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 0.98em;
}

.instructions code {
    background: #eee;
    padding: 2px 4px;
    border-radius: 4px;
}

.output-separator {
    border: none;
    border-top: 1px solid #bbb;
    margin: 0 0 10px 0;     /* Only margin below the line */
}