add z-index to prevent wrong positioning of elements especially in Safari