body { font-family: sans-serif; margin: 40px; } section { margin-bottom: 5px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; } section.up { background-color: greenyellow; }