Morocco celebrated the New Year amid national festivities as the Africa Cup of Nations moved into the Round of 16.