body {
    font-family: sans-serif;
    padding: 1rem;
    height: 100vh;
}

h1, h2 {
    text-align: center;
}

.tabs {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    margin-bottom: 1rem;
    display: flex;
}

.tabs button {
    background-color: inherit;
    flex-grow: 1;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
}

.tabs button:hover {
    background-color: #ddd;
}

.tabs button.active {
    background-color: #ccc;
}

.tab-content {
    padding: 1rem;
    border: 1px solid #ccc;
    border-top: none;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

#single-steps-container, #multi-steps-container, #logjump-steps-container, #parallel-steps-container {
    margin-top: 1rem;
    font-family: monospace;
    font-size: 1.1rem;
}

.step {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.word-box-container {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.word-box {
    border: 1px solid #000;
    padding: 5px;
    margin: 2px;
    display: inline-block;
    width: 30px;
    height: 20px;
    text-align: center;
    font-family: monospace;
}

.word-box.empty {
    border: 1px solid transparent;
}

.word-box.carry-box {
    border: none;
    color: #e8590c;
    font-weight: bold;
}

.monospace-label {
    width: 70px; /* Adjust as needed */
    display: inline-block;
    font-family: monospace;
    text-align: right;
    margin-right: 10px;
}

#multi .step {
    display: flex; /* Use flexbox for alignment */
    flex-direction: column;
    align-items: flex-start; /* Align items to the start */
}

/* This will wrap each calculation part */
.calculation-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: monospace;
    margin-left: 20px;
}

.calculation-row {
    display: flex;
    align-items: center;
    height: 35px; /* Ensure rows are aligned */
}

.calculation-row .op-label {
    width: 60px;
    text-align: right;
    margin-right: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.calculation-row .label {
    width: 60px;
    text-align: right;
    margin-right: 10px;
}

.highlight-zero {
    color: green;
    font-weight: bold;
}

.highlight-remove {
    text-decoration: line-through;
    color: red;
}

.hidden {
    display: none;
}

.error {
    color: #a00;
    font-weight: bold;
    background-color: #fee;
    padding: 1rem;
    border: 1px solid #a00;
    border-radius: 5px;
}

.input-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    max-width: 500px;
}

.input-grid label {
    justify-self: end;
    font-weight: bold;
}

#calculate-btn {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
}

.button-container {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.page-list {
    list-style: none;
    padding: 0;
}

.page-list li {
    margin: 10px 0;
}

.page-list a {
    text-decoration: none;
    font-size: 1.2em;
}

.page-list a:hover {
    text-decoration: underline;
} 