body {
    font-family: "Arial", "Helvetica", sans-serif;
    width: 100vw;
    height: 100vh;
    color: #ddd;
    background-color: #222;
    display: grid;
    grid: auto 1fr auto / auto-flow;
    margin: 0;
    font-size: 16pt;
}

header, footer {
    font-size: 12pt;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    width: 100%;
    text-align: center;
}

.title {
    font-weight: bold;
}

.weight {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.amount {
    padding: 0.1em 1em;
    margin: 0.1em;
    background-color: #246;
    min-width: 4em;
    text-align: center;
    border-radius: 0.5em;
}

.button {
    padding: 0.1em 1em;
    margin: 0.1em;
    border-radius: 1em;
    text-align: center;
    background-color: #444;
    max-width: 6em;
}

.deselected {
    color: #888;
}

.selected {
    background-color: #462;
}

.buttons {
    display: flex;
}

#workspace {
    display: grid;
    grid: 3em 3em 1fr 3em / 1fr 1fr;
}

#baseWeight {
    grid-column: 1 / span 2;
    grid-row: 1;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

#bar .textual,
#buttons .textual {
    border-bottom: 3px solid #888;
    text-align: center;
}

#clearButton {
    grid-column: 1 / span 2;
    grid-row: 2;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

#bar {
    justify-self: center;
    min-width: 80%;
    grid-column: 1;
    grid-row: 3;
    align-self: stretch;
}

#buttons {
    justify-self: center;
    grid-column: 2;
    grid-row: 3;
}

#total {
    border-top: 3px solid #888;
    border-bottom: 3px solid #888;
    padding-top: 0.25em;
    grid-column: 1 / span 2;
    grid-row: 4;
    font-size: 24pt;
    text-align: center;
    background: #444;
}
