#nodeValueInput {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

#linkedList {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto; /* Horizontal scroll if the nodes overflow */
}

.node-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px; /* Fixed width for each node container */
}

.node {
    display: flex;
    justify-content: space-between;
    width: 180px;
    padding: 0;
    border: 1px solid #333;
    border-radius: 0.42rem;
    min-height: 50px;
    overflow: hidden;
}

.node-compartment {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50%;
    padding: 5px;
    box-sizing: border-box;
}

.node-compartment.data {
    background-color: paleturquoise;
}

.node-compartment.pointer {
    background-color: lightcoral;
}

.label {
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    margin-top: -1rem; /* Aligns above the node container */
}

.arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 20px;
    font-weight: bold;
}
