"document.getElementById" means "Returns a reference to the element by its ID", see here; and id means identity, you should have only one element in your dom tree per id.
If you want to style multiple elements, try to use class.
HTML
CSS
.item { border-top: 1px solid #0ea2c7; }