Added reversed transitions and fixed DOCTYPE