I have a clock using lights bouncing off two mirrors in a moving train as shown below. The train is moving in the left direction as shown.
In this situation, the light in direction 1 takes more distance to travel for an observer on the ground level. The light in direction 2 takes less time to travel because it's against the direction of the train movement (and it travels shorter distance) which should compensate for the direction 1 case. Doesn't it mean the clock is the same for both moving and ground observers? What is that I am doing wrong here?