@keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  .abs {
    position: absolute;
  }
  
  a {
    color: white;
    text-decoration: none;
  }
  a:hover {
    color: lightblue;
  }
  body {
    bottom: 0;
    font-family: "Titillium Web", sans-serif;
    color: white;
    left: 0;
    margin: 0;
    position: absolute;
    right: 0;
    top: 0;
    transform-origin: 0px 0px;
    overflow: hidden;
  }
  
  .selfie {
    transform: scale(-1, 1);
  }
  
  .container {
    position: absolute; 
    top: 0;
    right: 0;
    bottom: 0;
    left: 0; 
    background-color: #000000;

    /* background-color: #596e73;
    width: 100%;
    max-height: 100%;
    height: 100%;   */
  }
  
  #mainCanvas {
    /* width: 100%; */
    height: 100%;
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;    /* use top instead, if top/centre aligning  */
  }
  #debugCanvas {
    /* width: 100%; 
    height: 100%; */
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;    /* use top instead, if top/centre aligning  */
  }
  
  .loading {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    align-items: center;
    backface-visibility: hidden;
    justify-content: center;
    opacity: 1;
    transition: opacity 1s;
  }
  .loading .message {
    font-size: x-large;
  }
  .loading .spinner {
    position: absolute;
    width: 120px;
    height: 120px;
    animation: spin 1s linear infinite;
    border: 32px solid #bebebe;
    border-top: 32px solid #3498db;
    border-radius: 50%;
  }
  
  .loaded .loading {
    opacity: 0;
  }

  /*----------------------------------------------------------- */

  .hidden {
    /* display: none;   */
    margin-left: -9999;
  }
  .hidden2 {
    display: none;  
  }
  .transparent {
    opacity:0.3;
  }

  #instructions {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #cccccc;
  }
  #feedbackDiv {
    position: absolute;
    top: 130px;
    right: 20px;
    color: #cccccc;
    font-size: 24px;
    opacity: 0;
  }

  .videoSource {
    position: absolute;
    top: 30px;
    right: 10px;
    width: 160px; 
    height: 90px; 
    background-color: #000000;
  }

  #PresetControls {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 100px;
    color: #333333;
    opacity: 0;
  }
  #CP1 {
    position: absolute;
    left: 120px;
    top: 0px;
    opacity: 0;
  }
  #CP2 {
    position: absolute;
    left: 500px;
    top: 0px;
    opacity: 0;
  }

  .control-panel-expander {
    display: none;
  }
  

  /*----------------------------------------------------------- */