The study of electrons and the nucleus in atoms, including the energy levels and transitions between them.