You cannot have two different elements with the same stacking level. Elements always have different stacking levels. This is why your second element obscures the first element. (Without a z-index, the appearance in the DOM determines the stacking level)
Z-index only works on non-static positioned elements (relative, absolute), so that won't help either.
IMO css ( - - z-index , ).
, , , .