.webvn {
  --webvn-controls-order: 99;
}

.webvn-stage {
  /* child */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  /* self */
  width: 100%;
  height: 100%;

  background-color: #333333;
  background-position: 50% 50%;
  background-attachment: fixed;
  background-clip: border-box;
  background-origin: border-box;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
  /* range is 0 to (imageWidth * scale) - screenWidth */
  /* background-position: 0px 0px; */

  /* transition properties */
  /* opacity: 0; */
  transition-property: opacity;
  transition-duration: 0.4s;
}

.webvn-controls {
  /* child */
  display: flex;
  flex-direction: row;

  /* self */
  width: 100%;
  height: 50px;

  order: var(--webvn-controls-order);
  border: 1px solid black;
  background-color: #00000040;
}

.webvn-controls-button {
  /* self  */
  height: 100%;
  flex: 1 0;
  
  border: 1px solid black;
  background: #00000040;
  appearance: none;

  color: #ffffff;
  text-align: center;
}

.webvn-controls-button:active {
  color: #888888;
  background: #00000080;
}

.splash-scene {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  background-color: #333333;
}

.splash-scene {
  padding: 2em;
}

.splash-scene .webvn-title {
  font-size: 1.2rem;
}

.splash-scene .webvn-title span {
  font-size: 2em;
}

.splash-scene.fade-out {
  transition-property: background-color, opacity;
  transition-duration: 2s, 2s;

  background-color: #ffffff;
  opacity: 0;
}

.webvn-logo {
  font-family: sans-serif
}

.webvn-logo h1 {
  font-family: serif;
  margin-bottom: 0;
}

.webvn-logo h6 {
  color: #bebebe;
  font-weight: 300;
  margin-top: 0;
  padding-left: 0.5em;
}

.webvn-loader {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.webvn-loader progress {
  width: 100%;
  height: 8px;
  opacity: 1;
}

.webvn-loader progress.loaded {
  transition-property: opacity, height;
  transition-duration: 0.5s, 0.5s;
  opacity: 0;
  height: 0;
}

.webvn-loader button {
  transition-property: opacity;
  transition-duration: 0.5s;
  opacity: 0;

  font-family: sans-serif;
  margin-top: 2em;
  width: 8em;
  height: 4em;
  color: #fff;
  appearance: none;
  background-color: transparent;
  border: 2px solid #FFF;
  border-radius: 2em;
}

.webvn-loader button.loaded {
  transition-property: opacity, margin-top;
  transition-duration: 1s, 1s;

  opacity: 1;
  margin-top: 0;
}

.webvn-loader button.fade-down {
  transition-property: opacity, transform, height, margin, padding, border;
  transition-duration: 1s, 2s, 2s, 1s, 1s, 1s;

  opacity: 0;
  transform: translateY(15px);
  height: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.webvn-loader button[disabled] {
  /* visibility: hidden; */
  color: #808080;
  border-color: #808080;
  border-radius: 4em;
}

.webvn-loader button:active {
  background-color: #bebebe;
}

/* .webvn-textbox {
  height: 200px;
  border: 1px solid black;
} */

.webvn-menu-button {
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 1em;
  height: 45px;
  border: 1px solid #bebebe;
  border-radius: 40px;
}

.webvn-menu-button:active {
  background-color: #888888;
}

.webvn-error-log {
  position: fixed;
  top: 0;

  display: flex;
  flex-direction: column;
  gap: 0.5em;
  width: 100%;
  padding-bottom: 0.5em;
}

.webvn-error {
  padding: 0.5em;
  border: 1px solid white;
  border-radius: 12px;
  background: #ff0a3780;

  opacity: 0;
  transition-property: opacity;
  transition-duration: 0.25s;
}

.menu-scene {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1em;
}