An earthquake of magnitude 4.0 and depth of 3.40 kilometers occurred 15.02 miles from Stanley, ID in Custer County at 11:40 PM.