@media (orientation: portrait) { html { background-image: url('./images/vertical_background.png'); } body { .item { flex-basis: 33%; } } } @media (orientation: landscape) { html { background-image: url('./images/horizontal_background.png'); } body { .item { flex-basis: 25%; } } } html { height: 100%; background-size: cover; } body { font-size: 1.2rem; font-family: Arial; color: #999999; margin: 5%; svg { path, polygon, linearGradient, rect { fill: #00ADDC !important; } circle { fill: none !important; } text { display: none !important; } } .parent { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: flex-start; height: 100%; .item { .name { width: 100%; text-align: center; text-transform: uppercase; margin-top: -20%; } } } }