function resize() {
  
  if(document.viewport.getHeight() <= 650) {
    $('container').style.marginTop = 0;
    $('container').style.top = 0;
  }
  else {
    $('container').style.top = "50%";
    $('container').style.marginTop = "-322.5px";
  }

  if(document.viewport.getWidth() <= 995) {
    $('container').style.marginLeft = 0;
    $('container').style.left = 0;
  }
  else {
    $('container').style.left = "50%";
    $('container').style.marginLeft = "-497.5px";
  }
  
};


