title: JavaFX CSS Parsing Error
body: <p>I'm getting this error:</p>
  
  <blockquote>
    <p>com.sun.javafx.css.parser.CSSParser parse WARNING: CSS Error parsing
    file:/filepath/bin/: Expected LBRACE at [-1,-1]</p>
  </blockquote>
  
  <p>My code is as follows:</p>
  
  <pre><code>import javafx.application.Application;
  import javafx.geometry.Insets;
  import javafx.scene.Scene;
  import javafx.scene.layout.GridPane;
  import javafx.scene.layout.StackPane;
  import javafx.scene.text.Text;
  import javafx.stage.Stage;
  
  public class Main extends Application {
  
  public static void main(String[] args) {
      launch(args);
  }
  
  public void start(Stage primaryStage) throws Exception {
      StackPane root = new StackPane();
      Scene mainScene = new Scene(root, 800, 600);
      mainScene.getStylesheets().clear();
      mainScene.getStylesheets().add("//stylesheet.css");
      primaryStage.setTitle("Not Facebook");
      primaryStage.setScene(mainScene);
      primaryStage.show();
      //loadGame(primaryStage);
  
  }
  
  public void loadGame(Stage primaryStage) {
      GridPane grid = new GridPane();
      grid.setHgap(0);
      grid.setVgap(0);
      grid.setPadding(new Insets(10, 10, 10, 10));
      Text text = new Text("Hello");
      grid.add(text, 5,5);
      Scene gameScene = new Scene(grid, 800, 600);
      primaryStage.setScene(gameScene);
  }
  
  }
  </code></pre>
  
  <blockquote>
  <pre><code>.root {
    -fx-background-color: #333333;
  }
  </code></pre>
  </blockquote>
  
  <p>I have searched but no one has the same problem and I don't know why this is happening.</p>