@-moz-document url-prefix(http) 
{

  /* change the buttons */
  input,
  input[type="reset"],
  input[type="submit"], 
  button
  {
    color: #bbb !important;
    background: #222 !important;
    border: #000 1px solid !important;
    -moz-border-radius: 0.34em !important;
     }

  /*change the input boxes*/

  input, 
  input[type="textarea"],
  input[type="select"],
  textarea
  {
    -moz-border-radius: 0.34em !important;
    color: #bbb !important;
    background: #222 !important;
    border: #000 1px solid !important;
  } 

  /*onfocus, invert border shading*/

  input:not([type="button"]):not([type="reset"]):not([type="submit"]):not([type="checkbox"]):focus, textarea:focus, select:focus
  {  
    -moz-border-radius: 0.34em !important;  
    background-color: #222 !important;
    border: #777 1px solid !important;
    color: #bbb !important;
  }  
  /* Hover effect for inputs */
  input:hover, 
  input[type="textarea"]:hover,
  input[type="select"]:hover,
  textarea:hover
  {
    border-color: #777 !important;
  }

  /*rollover effect on the buttons*/
  input[type="submit"]:hover,input[type="reset"]:hover,button:hover 
  {
    border-color: #777 !important;
  }
}