.hidden {
  display: none;
}

body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
}

.splash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background-color: #f9f9f9;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e0e0e0' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");

  .splash-content {
    font-family: monospace;

    padding: 32px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #fff;
  }

  .splash-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
  }

  .splash-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
  }

  .splash-error {
    padding: 10px;
    background-color: #000;
    color: #fff;
    border-radius: 4px;
    margin-top: 16px;
    text-align: center;

    &.hidden {
      display: none;
    }
  }
}

#theremin {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#webcam {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror the webcam feed */
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(-1); /* Mirror the canvas to match webcam */
  pointer-events: none;
}

#three-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

#status {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  z-index: 10;
}

#links-para {
  position: absolute;
  bottom: 5px;
  left: 5px;
  font-family: Helvetica, sans-serif;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 10px;
}

a {
  color: #0000ff !important;
}
