what direction does the force of friction act in
Static or dynamic friction always act in a direction opposite to the impressed force. If you apply that rule in a totally rigid way, there is really no problem. However, there can be an intuitive problem which makes things look wrong. The problem often arises when you are considering wheels, driving a vehicle.