body {
    font-family: monospace;
    background-color: #121212;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 640px;
    margin: 50px auto;
    padding: 40px;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

h1,
h2 {
    text-align: center;
    color: #ffffff;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.description {
    margin-bottom: 5px;
    color: #bbbbbb;
    font-size: 0.9em;
}

.sub {
    text-align: center;
}

.spacer {
    margin-bottom: 15px;
}

input[type="number"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

p {
    margin: 0;
}

button:hover {
    background: #0056b3;
}

#result,
#path,
#steps {
    margin-bottom: 10px;
    color: #ccc;
    white-space: pre-wrap;
    /* To preserve newlines and spacing */
}

#visualization {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.step-description {
    color: #bbb;
    font-size: 1.0em;
    text-align: center;
    margin-top: 5px;
}