$malibu: #59ADEB; .card, .popup { color: #fff; font-size: 2rem; text-align: center; } .cards { bottom: 0; display: flex; justify-content: space-around; left: 0; margin: 0 auto; max-width: 1100px; position: absolute; right: 0; top: 0; } .card { background-color: $malibu; border-radius: 6px; height: 200px; line-height: 175px; position: relative; width: 200px; transform-origin: 0 0; z-index: 1; } .popups { bottom: 0; left: 0; position: absolute; right: 0; top: 0; } .popup { background-color: $malibu; left: 0; height: 100%; position: absolute; top: 0; width: 100%; visibility: hidden; z-index: 2; }