.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid blue;
    border-bottom: 16px solid blue;   
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    
    position: absolute;
          
    /*Set edges of tag so margin auto knows the max boundry*/
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    z-index:    1000;

    /*Allows the use of margin auto*/
    display: block;
    /*Horizontally and vertically centered
    (Display block will fill remaining margin space equally)*/
    margin: auto;
  }
  
  @-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }