add viewport class, determines the minimum and maximum width