Made styles more compatible with firefox

edited box-sizing and transitions