@media (orientation: portrait) {
  div { color: purple; }
}
@media (orientation: landscape) {
  div { color: blue; }
}