body.centered {
    display: flex;
    justify-content: center;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
}

.position, .velocity {
    width: 80%;
    display: flex;
    justify-content: space-around;
    border: 2px solid black;
}

.position {
    margin-top: -2px;
    border-bottom: none;
}

.velocity {
    margin-bottom: 1rem;
    border-top: none;
}

.pos, .vel {
    padding: 0.5rem;
}

.controls {
    width: 80%;
    display: flex;
    justify-content: space-around;
}

.controls button {
    padding: 0.5rem;
    width: 30%;
}

.variables {
    width: 80%;
}

.var {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0;
}

.var label {
    display: inline-block;
    width: 30%;
}

.var input {
    width: 30%;
    overflow-x: hidden;
}

#canvas_container {
    height: 404px;
}

#canvas_container canvas {
    border: 2px solid black;
}

#repeat.active {
    border: 2px dashed red;
}