An earthquake of magnitude 3.9 and depth of 13.40 kilometers occurred 19.96 miles from Stanley, ID in Custer County at 12:59 AM.