Water-resistant devices