:root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
        sans-serif;
}

#controls {
    position: fixed;
    min-width: min(80%, 40rem);
    height: 8rem;
    bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
    left: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-left: 1rem;
    transition: background-color 0.2s;
}

.ctrl-button {
    width: 4rem;
    height: 4rem;
}

.button {
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background-color: rgb(239, 239, 239);
}

.button:hover {
    background-color: rgb(0, 174, 255);
    color: white;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25);
}

.playing .ctrl-button:hover {
    background-color: rgb(255, 0, 64);
}

#controls.playing {
    background-color: rgba(100, 255, 180, 0.5);
}

#time {
    font-variant-numeric: tabular-nums;
    min-width: 10ch;
    text-align: center;
}

.sim-conf {
    padding: 0.5rem;
    border: 1px solid rgba(240, 248, 255, 0.2);
    border-radius: 4px;
}
.sim-conf summary {
    cursor: pointer;
}

.sim-conf div * {
    margin: 0.3rem 0;
}

.conf-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
#step-multiplier {
    display: block;
}

#actions {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
#actions > .button {
    padding: 0.25rem 0.5rem;
}

#results-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 10rem);
    height: 100%;
    background-color: rgb(155, 25, 43);
    color: white;
    font-size: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5rem;
    flex-direction: column;
}

.percent-complete-container {
    width: 100%;
}
