.bugfixflex { flex-direction: row; } @media screen and (max-width: 600px) { .bugfixflex { flex-direction: column-reverse; } }