Spending long hours in dim light may affect learning ability